From documentation: https://www.mql5.com/en/docs/series/timeseries_access#synchronized
For Expert Advisors and indicators, it is better to use the event model of handling. If during handling of OnTick() or OnCalculate() event, data receipt for the required timeseries failed, you should exit the event handler, relying on the access availability during the next call of the handler.
From what I've seen it can occur that on first OnCalculate call there can be some issues in getting other timeframes/symbols datas but on next calls it works well.
From documentation: https://www.mql5.com/en/docs/series/timeseries_access#synchronized
For Expert Advisors and indicators, it is better to use the event model of handling. If during handling of OnTick() or OnCalculate() event, data receipt for the required timeseries failed, you should exit the event handler, relying on the access availability during the next call of the handler.
Actually I also use the indicator when Market is Closed. At this time OnCalculate() called only once.
Try this indicator, it give same result as ATR and is MTF
Try this indicator, it give same result as ATR and is MTF
thanks bro
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys,
I need to get ATR value of Daily period at any timeframe but I get 4806 error code. I don't know how to tackle it.
At 1Day Period I can get ATR values, but I need to get 1Day ATR values at any timeframe.
when I change Timeframe, I get BarsCalculated() returned -1, error code 4806.