Set up a small test project, just doing the first cross and adding into a variable, display this in a comment. once working, adjust to reset to 0 when the cross = 2, this way you can watch on back test and vissualy check it's what you want.
@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.
@jstap Linked "Draw Line" and did the back test for last 3 months. But it's still the same. Out of candle ID 1 &2, it takes call only if Candle ID 2 is having higher high or lower low. If candle ID 1 has higher high or lower low then no calls taken.
On the below attached image, Candle ID 1 lower low is marked where it has to go for sell but not taken.
@jstap so the second image would work fot the purpose i'am loking for ! without the use of flags , and how the other separated blocks would know if the pending order is triggered , please bear with me i'm new to this , thanks again