Hi friends,
My EA wants to place the order when the moving averages (FMA & SMA) cross happens for the SECOND time. Please advise which block would be ideal to form this.? Below is the screenshot of the EA.

Hi friends,
My EA wants to place the order when the moving averages (FMA & SMA) cross happens for the SECOND time. Please advise which block would be ideal to form this.? Below is the screenshot of the EA.

@Lorenzo97 As per my little knowledge, it is not possible to put but stop and sell stop. Because in condition block we say if tge current candle cross the high/low of certain time range. So when it cross then only it is applicable. Thus it will not put buy or sell stop orders before crossing the high or low.
You know how it worked for me? I kept a few points as buffering. So when it crossed the high, it put the buy stop adding the buffering.
For eg. If high is 8550 and i kept buffering 5 points so my entry is 8560. Current andle when cross 8550 it places buy stop at 8560. And when 8560 is reached then the call is triggered.
@Lorenzo97 Bro, my question is why you want only buy stop and sell stop. Same work will be done by buy now and sell now. What difference it makes? Just curious to know the difference.
@Lorenzo97 Your strategy is not complete. You should say about SL , target etc. What if the first day call continues for next day? It will put another buy or sell order when it crosses the second day high / low along with the previous day order?
@Lorenzo97 You can not use pending order with out an existing order. Because pending order is based on the initial order.
If you put pending order, when high breaks it will place the order. If you put buy now same when high breaks it will place the order . I don't see any difference between buy now and pending order at initial point. I think rest i had told you already.
This is as per my knowledge.
Candle Close (Crosses above) Market properties - time period with highest price
Once in a bar
Buy now
@firooz I can't spoon feed you more than this

@firooz I had sent you the link in my previous reply but you made it wrongly in your EA.
Connect the SL block to "If Position" block in orange.
@ambrogio Thank you sir for your valuable reply. As per your suggestion, if the candle 0 closes below previous candles 1 & 2 but the wick is above candle 1&2, then it will not take buy call.
For me , if the candle crosses the high of candle 1 & 2 then i want to put the call. I dont mind if it closes below but if it crosses the high then it should put the ccall.
Due to this reason i had selected candle high.