Forum

High-Low Trading

int LotSize = 1 ; double StopLoss = 1 ; double pips; int MagicNumber1 = 1234 ; int MagicNumber2 = 5678 ; double high = iHigh ( NULL , PERIOD_D1 , 1 ); double low = iLow ( NULL , PERIOD_D1 , 1 ); int OnInit () { double ticksize = MarketInfo( Symbol (),MODE_TICKSIZE); if (ticksize == 0.00001 ||

OrdersTotal() Function

Hi all, I'm not a programmer and trying to do something - this can be easy for you. So, apologize firstly. I need to limit my trades. I've used OrdersTotal() function but there seems like a problem. It does not work properly and EA keeps going to open new positions. Can you guys help to check and