Forum

Help! MedaEditor tells me didn't defind GetTotalProfits / CloseAllTrades.Why?

Hi all, ha yeah one more new coders.. (code it at bottom) What was mt4 expecting on 145? Why is 104 unbalanced. I thought I did defind GetTotalProfits on line 72. I thought I did defind CloseAllTrades on line 72. Thanks for the help! #property strict string BotName = "JHB Robot" ; int Magic = 123456

Help! :) Why is this not compiling?

#property strict string BotName = "JHB Robot" ; int Magic = 1234 ; int MaxTrades = 1 ; double LotsToTrade = 2.0 ; double StopLoss = 3700 ; double ProfitTarget = 280.00 ; int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { } // This runs on every single tick