![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thanks man, but I add the indicator to the chart.
I want to make the problem a little clearer.
Change from H1 timeframe to M30.
Result:
I want to make the problem a little clearer.
Change from H1 timeframe to M30.
Thanks for your comment, but something is wrong here.
ChartIndicatorGet behaves differently in OnDeinit when changing timeframe or removing the EA.
Nr 1:
Nr 2:
In case I missed something, I'd like to apologize in advance ;D
I twicked a bit your code and now it works. The problem was that the number of indicators changes as you start removing them, so you need to start removing from the last one to the first one, in reverse order:
Just a little clean way of doing it.
Similar to what Juan Calvo did.