I need 2 lines of code so I can edit an EA to test a theory.
Basically
if(last candlestick is 100 pips or more from open to close and bullish) {myOrderType= 2;}
if(last candlestick is 100 pips or more from open to close and bearish) {myOrderType= 1;}
big thanks in advance to anyone who provides this
Basically
if(last candlestick is 100 pips or more from open to close and bullish) {myOrderType= 2;}
if(last candlestick is 100 pips or more from open to close and bearish) {myOrderType= 1;}
big thanks in advance to anyone who provides this