Download MetaTrader 5

EA should not trade pullback candles

To add comments, please log in or register
fulltilt
384
fulltilt  

how to prevent order opening if pullback candles occur?

TF = H1


Keith Watford
Moderator
8293
Keith Watford  
Define precisely what conditions constitute a pullback. Write the code to recognise such condition. If condition exists, then no trading.
Ian Venner
2584
Ian Venner  
if (Close > Low) return;
qjol
3245
qjol  

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

To add comments, please log in or register