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
I manually add two indicators from my expert advisor as given below. The idea is to add separate sub windows to the chart and if the expert advisore is removed from the chart, so should all the indicaotrs it created.
If I use the code above, the first indicator is removed, but the seconds isn't. The error code is - Error 2: 4115. Now, if I change the onDeinit function as follows:
So I delete the indicator that was added LAST first and the one that was added FIRST is deleted last. Now everything works fine.
I believe there might be a bug in ChartIndicatorDelete, because the order of deletion should not matter, since the parameters for the function are unique (two different subwindows). Can a admin maybe confirm this, or am I understanding something wrong?