Forum

order not getting expire

order is created but its not expiring after 1 min input ENUM_TIMEFRAMES orderexpiration = PERIOD_M1 ; datetime expirrry = TimeTradeServer () + PeriodSeconds (orderexpiration); MqlTradeRequest neueOrder={ 0 }; MqlTradeResult result={ 0 }; neueOrder.symbol = _Symbol ;

Not able to solve this 4001 Error

hello here is the mql5 code i am getting 4001 error continuously and i am running this OnCalculate bool PlotTrend( const long chart_ID= 0 , string name= "trendline" , const int subwindow= 0 , datetime

Changing tf of all charts except .... need help

Hello here i attached a script to change all charts tf i need to add thing like if the chart has MACD indicator on it then the script should not be changing that particular chart tf or The script should change all H4 charts to D1 charts if there is any M15 chart window then script should not change