Forum

Need help with code

Hi! The following code works perfectly with demo accounts, but it doesn't work with real account . It gives 4746 error, when it try to open position. Help me please. #include <Trade/Trade.mqh> input double Lots = 0.1; string state; double StopLoss; double TakeProfit; string PrevState; CTrade order;