Forum

Cannot close using Resistance option

I am trying to close a Open BUY trade after it goes below 20 pips, but instead it closes after 1 pip. void OnTick () { double high = High [ iHighest ( NULL , 0 , MODE_HIGH , 4 , 1 )]; //Close Buy if ((high- Close [ 1 ]) <= 20 * Point ) { if ( IsTradeAllowed ())

Support Resistance EA

I got this EA from online somewhere. It seems to take only Buy orders. Any suggestion why it doesn't take sell trades? //+------------------------------------------------------------------+ //| openorder.mq4 | //| Copyright ©