Download MetaTrader 5
To add comments, please log in or register
Do you have questions on how to turn your idea into reality? Ask them on the Forum!
kate682
148
kate682 2014.03.18 23:39 

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

Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.03.18 23:42  
kate682:

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.
kate682
148
kate682 2014.03.18 23:50  
RaptorUK:
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 :-)

kate682
148
kate682 2014.03.19 00:20  
kate682:


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

Ian Venner
2583
Ian Venner 2014.03.19 00:23  

ObjectsDeleteAll() only applies to the chart the indicator is attached to.

kate682
148
kate682 2014.03.19 00:30  
SDC:

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

Ian Venner
2583
Ian Venner 2014.03.19 00:37  

Open the indicator in MetaEditor

delete the line: ObjectsDeleteAll();

click on compile

thats all you need to do but now the indicator may leave objects on the chart when you remove it.

If there is any problems with the new compiler giving errors when you do that post back here about it.

Keith Watford
Moderator
7959
Keith Watford 2014.03.19 01:48  
kate682:


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


Hi, try this, it should work and will remove the comment as well
kate682
148
kate682 2014.03.19 21:17  
GumRai:

Hi, try this, it should work and will remove the comment as well


GumRai,

Thank you, this is very much appreciated.

Regards Kate

xx

/
To add comments, please log in or register