Download MetaTrader 5

Canot Complie EA afer update to build 244

To add comments, please log in or register
All articles are available from MetaTrader 5. Contribute your own one!
Wackena
648
Wackena 2010.02.05 20:01 

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 2010.02.09 19:06  

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

To add comments, please log in or register