Forum

Exit from an EA

Is there an equivalent to the C exit command in mql5? the nearest thing I have found is the ExpertRemove command but when I try to use that I get a compiler error saying the function doesn't have a type. could anyone enlighten me please? Steve

Running an qml5 program

I wonder if anyone can help me, I'm just starting to learn mql5 and I'm having problems getting any programs to actually run!! I have this code snippet:- // Input variables input double TradeVolume= 0.1 ; input int StopLoss= 1000 ; input int TakeProfit= 1000 ; input int MAPeriod= 10 ;