Disliked{quote} Salam mahmood.tava. please look at this chart. {image} I wanted to take a trade IF there was an M15 candle OPEN(Trigger_TF) in between the DAILY LOW and the LOWEST H1 OPEN. I wanted a Fixed_SL of 15 pips. I wanted to trail my stop for 20 pips. I changed the slippage to "0". I loaded the EA after the close of the previous candle at (about) 12:05. The EA placed a trade at 12:10. (see the arrow on the chart and the red line where the stop was placed) The order was a Market order entry at 1.45498. The stop was at 1.45469. (only 2.9 pips instead...Ignored
tanx for your attention
first of all i explained it that EA use points not pip you should enter your sl in points
if you enter 30 means 3 pip and if you want 20 pip sl you must enter 200
"Also, the entry price of the trade should always be the Lowest/Highest H1 Open price. That was 1.45482 on this chart. But the EA placed this trade 1.6 pips passed that."
you r absolutly right it is SPREAD
when we have enter buy position in BID price automaticly you enter in ASK price and the spread will count means when bid price rise to H1_lowest_open and you want to enter buy position,
you enter BID+SPREAD that is ASK price
if i change the program to enter in ASK price then the rull is not passed . means price not rised to H1_lowest_open and the rull is not trigged.
about second question
yes EA do not wait to new candle opened and do the rulss but it is not big problem i can solve it
and ATTENTION
I ASKED THIS QUESTION IN THIS FORUMS BUT SADLY NO ONE DID NOT ANSWER THAT AND SOMEBODY REFER ME TO POST #1( THE ONLY ANSWER IF U ASK A QUESTION HERE )
THE QUESTION IS :
IF TRIGGER CANDLE_OPEN WAS EQUAL TO H1_LOWEST OR HIGHEST OPEN WHAT SHOULD WE DO?
THE RULS SAY THAT IF PRICE GO DOWN FIRST AND THEN COME BACK TO H1_LOWEST_OPEN WE CAN ENTER BUY POSITION.
SO WHAT DOES IT MEAN?
AND HOW CAN DETERMINE IT?
WE MUST GO TO LOWER TIME FRAME
SO IF TRIGGER TIME FRAME IS M15 LIKE YOUR EXAMPLE WHEN TRIGGER_CANDLE_OPEN IS EXACTLY EQUAL TO H1_LOWEST_OPEN WE WATCH LOWER TIME FRAME
IN THIS CASE WE CHECK M5 CANDLE AND IF WE HAVE AN OPEN IN NEXT M5 CANDLE BEHIND H1_LOWER_OPEN AND PRICE RISE TO H1_LOWER_OPEN WE ENTER BUY POSITION.
after all in my backtests i saw that it is better to do not trade if TRIGGER_CANDLE_OPEN IS EXACTLY EQUAL TO H1_LOWEST_OPEN
and i think it is better to wait until next trigger candle
what do u think?