Forum

Off Quotes Error in MT4

I've written an expert for MT4 that is giving ERR_OFF_QUOTES errors trying to modify an existing order. I place the order in the first step with OrderSend, and receive an acknowledgment that this was successful. I then try to modify the order for the StopLoss and Profit Target with what seem to me

PERIOD_M1

I have a simple ea that uses the Macd to enter a scalping trade. The Macd calculation is fixed on the M1 chart by using PERIOD_M1: MacdMainCurrent = iCustom ( NULL , PERIOD_M1 , "IBFX - MACD Traditional" , FastSma , SlowSma , SignalSma , MODE_MAIN , 0 ) ; MacdSignalCurrent = iCustom ( NULL