Download MetaTrader 5

Canot Complie EA afer update to build 244

To add comments, please log in or register
Wackena
648
Wackena  

The tickets section was not available on the MT4 site, so I have posted this on MT5 site.

After updating to build 244, MetaEditor reports error with this code. The EA has been running OK for weeks. What has changed that would make this code now produce this compilation errror?

'   BarTime = ' - variable expected    Bogie-OHLC-v6.mq5    613    61
1 error(s), 0 warning(s)        1    1

//========== Comment Lines =============
   
   Comment(
   AccountInfoString(ACCOUNT_COMPANY)," - Server Time = ",TimeToString(TimeCurrent(),TIME_SECONDS),
  "\nDaily Signal = ",text,"   Current Signal = ",text2,"\nDaily =",DoubleToString(daily,Digits()),"   Current = ",DoubleToString(current,Digits()),
  "\nMA Signal = ",text3,
  "\nPrevious MA = ",DoubleToString(m_ema_previous,Digits()),"   Current MA = ",DoubleToString(m_ema_current,Digits()),
  "\nTotal Open Trades = ",total,
  "\nProfit = ",Profit,
  "\nOrder Comment = ",PosCom,"  Order Magic = ",PosMag,
  "\nPrevious Bar Time = ",TimeToString(nBars,TIME_MINUTES),"   BarTime = ",TimeToString(BarTime,TIME_MINUTES),
  "\nIs Bar End = ",IsBarEnd,
  "\nPastOpen = ",m_PastOpenD1,"  PastHigh = ",m_PastHighD1,"  PastLow = ",m_PastLowD1,"  PastClose = ",m_PastCloseD1);

This is the line with error.

"\nPrevious Bar Time = ",TimeToString(nBars,TIME_MINUTES),"   BarTime = ",TimeToString(BarTime,TIME_MINUTES),
Ilyas
1206
Ilyas  

Thank you for message. Fixed, please wait for updates.

To add comments, please log in or register