I'm unable to save horizontal lines/rectangles etc. I've tried saving the template, saving profiles.
I've tried saving using a naked chart with no indicators on. I've tried deleting java temporary files and cache.
Nothing.
Driving me nuts, so if anyone has a solution i'd be very grateful.
Maybe you have an Indicator/EA running that has a ObjectsDeleteAll() call in the deinit() ? when you close MT4 and the chart closes deint() is called an removes all your Objects.
I've tried saving lines/rectangles to a naked chart with no indicators on; same problem.
When i do have indicators on, if i drop down a time frame, the horizontal lines/ rectangles disappear also,
so I think you're right about an indicator running an 'objectsDeleteAll() .
How would i find out if there is an 'objectsDeleteAll() command hidden in one of the indicators.
However, I've got the same problem with a naked chart, so there might be another reason.
(I've also added back show in all timeframes under visualization and problem still occurs )
ps thank you :-)
I've tried saving lines/rectangles to a naked chart with no indicators on.
When i do have indicators on, if i drop down a time frame, the horizontal lines/ rectangles disappear also,
so I think you're right about an indicator running an 'objectsDeleteAll() .
How would i find out if there is an 'objectsDeleteAll() command hidden in one of the indicators.
ps thank you :-)
Thank you RaptorUK. I've found it, it was in an indicator. Have attached the file below.
If anyone could help by deleting the offending code without altering the indicator I'd be really grateful.
Many thanks.
Katie
ObjectsDeleteAll() only applies to the chart the indicator is attached to.
ObjectsDeleteAll() only applies to the chart the indicator is attached to.
Thanks SDC. Is there a way i can keep the indicator, but being able to draw horizontals & rectangles etc and they won't be deleted?
Or I'm I better off ditching the indicator all together.
Kate
Hi, try this, it should work and will remove the comment as well
GumRai,
Thank you, this is very much appreciated.
Regards Kate
xx

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm unable to save horizontal lines/rectangles etc. I've tried saving the template, saving profiles.
I've tried saving using a naked chart with no indicators on. I've tried deleting java temporary files and cache.
Nothing.
Driving me nuts, so if anyone has a solution i'd be very grateful.
Thank you.
kate