How can I prevent the objects drawn with the indicator from disappearing after the terminal is closed and opened?[MQL5]
I press a button and at the end of various calculations objects are drawn on the graph. If I delete the indicator I delete the drawings with "ObjectDelete()" in the "OnDeinit()" function, it's fine. However, after drawing the indicator, I close and open the terminal and of course everything resets. It is nice to reset, but the disappearance of the drawings causes me to do the same calculation again. How can I prevent this? Is the "OnDeinit()" function causing this?
- Creating a robot
- Help Button
- how to delete object after close custom indicator?
ZiYaR1: I delete the drawings with "ObjectDelete()" in the "OnDeinit()" function, Is the "OnDeinit()" function causing this?
You delete them "in the OnDeinit." "Is OnDeinit causing this?" When in doubt, think!
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