BarsCalculated(3) New comment justinmcridge 2023.07.07 03:22 Hello everyone, I am using BarsCalculated(handle) in EA like so: double BolliBandLow ( int index) { if(!m_symbol.RefreshRates()) return(-7); if(BarsCalculated(handle)<14){ return(-7);} double BB_low[ ]; ArraySetAsSeries(BB_low,true); ResetLastError(); if(CopyBuffer(handle,2,index,13, BB_low)<0) { return(-13); } return( BB_low[0]); } and I have noticed something unexpected in this !!! if(BarsCalculated(handle)<14){ return(-7);} only starts the calculations of the indicator values that occur after the start of the EA and not the bars already on the chart!! am I missing something ? or is there a way around it? is anyone addressing the same issue? Questions from a "dummy" Questions from Beginners MQL5 MT5 MetaTrader 5 iMA indicator Issue with calculated bars [Deleted] 2023.07.07 08:42 #1 Are you loading the indicator for another chart( another time frame or symbol)? justinmcridge 2023.07.07 09:21 #2 Yashar Seyyedin #: Are you loading the indicator for another chart( another time frame or symbol)?Not at all. Just 1 timeframe 1 symbol New comment
and I have noticed something unexpected in this !!!
only starts the calculations of the indicator values that occur after the start of the EA and not the bars already on the chart!!
am I missing something ? or is there a way around it?
is anyone addressing the same issue?