Is there a real bug in MT5? Bars() works fine in a script but not in an indicator...?!
From an indicator :
2021.02.12 21:44:56.175 362679 (EURUSD,D1) EURUSD daily bars: 12925 2021.02.12 21:44:56.175 362679 (EURUSD,D1) GBPUSD daily bars: 2381 2021.02.12 21:44:56.175 362679 (EURUSD,D1) USDCHF daily bars: 2381 2021.02.12 21:44:56.175 362679 (EURUSD,D1) USDJPY daily bars: 2381 2021.02.12 21:44:56.175 362679 (EURUSD,D1) AUDCAD daily bars: 7152 2021.02.12 21:44:56.175 362679 (EURUSD,D1) AUDCHF daily bars: 7140 2021.02.12 21:44:56.175 362679 (EURUSD,D1) AUDJPY daily bars: 7170 2021.02.12 21:44:56.175 362679 (EURUSD,D1) AUDNZD daily bars: 7139 2021.02.12 21:44:56.175 362679 (EURUSD,D1) AUDUSD daily bars: 7062 2021.02.12 21:44:56.175 362679 (EURUSD,D1) CADCHF daily bars: 7061
Alain Verleyen:
From an indicator :
How can that be possible?
Everytime I start the MT5 and run the indicator I only see these zeros... what's wrong here?
Hey guys,
here you find a script and an indicator and both use Bars(). Please have a look at the attached screenshot.
The first 10 values are from the script and below them you see the same 10 values but from the indicator.
Do I miss something or is this a bug within MT5?
Here is the script where everything works fine:
And here the indicator:
The result can be seen in the screenshot.