EA should not trade pullback candles

 

how to prevent order opening if pullback candles occur?

TF = H1


 
Define precisely what conditions constitute a pullback. Write the code to recognise such condition. If condition exists, then no trading.
 
if (Close > Low) return;
 

SDC:

if (Close > Low) return;

not a good idea

almost all the candles the close is higher than the low

it's rare to find a candle that the close and low equals

you must define how many point the close is higher from the low in order to hold up trading