Delete HLINE
hello, i am facing a problem. as soon as the last executed trade runs into loss (SL hit), an arrow_stop is placed on the chart. the SL is placed at the price of a HLINE (temp_green_down). as soon as the arrow_stop appears on the chart, the prices of the lines are assigned with the double values "Delete_Green_Line_Up" and "Delete_Green_Line_Down", which are globally initialized with "0". then a for-loop runs through all objects and is supposed to delete these two lines Delete_Green_Line_Up and Delete_Green_Line_Down, at the respective prices. temp_green_up and temp_green-down are also double values... the prices all fit, have it displayed 10000 times. the problem: Delete_Green_Line_Down can be deleted. but as soon as i want to delete Delete_Green_Line_Up, all lines on the chart disappear and it gets into a continuous loop. can not find the error...
Translated with www.DeepL.com/Translator (free version)
- Price=Ask
- Problem with drawing indicators in mql5
- Count objects

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- 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