Hello everyone
I am a newcomer to programming, I created a simple custom indicator (RSI) in a separate window, with arrows that appear in the graph window to signal me if RSI has crossed the level of overbought or oversold (the arrows have I created with the function ObjectCreate.
My problem is that when I remove the indicator from the chart, the arrows remain and do not know how to eliminate them.
Perhaps it is a trivial question, but I repeat that I am a beginner.
Thanks in advance deposit at all and sorry for the English but it is not my native language.
Nailgt.
- [ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5.
- Indicator stops working after manual refresh of the window
- Create an Auto EA
Nailgt: the arrows have I created with the function ObjectCreate.
- If you had used an arrow buffer they would have gone when you closed the indicator. SetIndexStyle - Custom Indicators - MQL4 Reference
- But you didn't, so you must delete them in OnDeinit. You'll need the subwindow ID (ChartWindowFind - Chart Operations - MQL4 Reference) and your object's prefix to pass to ObjectsDeleteAll - Object Functions - MQL4 Reference

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