Download MetaTrader 5

template - save current

To add comments, please log in or register
rod178
272
rod178  

Looking for a method to save the current Chart Template to overwrite the name of the template in use.

Whilst saving the current chart to a template is simple I'm still perplexed at how to capture the name of the template in use.  It seems that there is no method such as "GetTemplate(ChartID)", as templates are loaded at initiation and not referenced subsequently.. 

One possibility may be to save the template name as a chart or file variable and later refer to the variable before saving the template. 

 Any other suggestions?

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI  
Don't we usually do have some sort of hints when saving names? So that when we see the saved name, straight away we know.
rod178
272
rod178  
deysmacro:
Don't we usually do have some sort of hints when saving names? So that when we see the saved name, straight away we know.
Much more robust approach is to keep it as generic as possible. Bottom line is "is it possible to determine, via code, the name of the current charts Template?"
whroeder1
15023
whroeder1  
rod178: Looking for a method to save the current Chart Template to overwrite the name of the template in use.
Why? Human applies the template to the chart for visual appeal and is done. EA can't see it, doesn't need it. What is changing?
Carl Schreiber
6786
Carl Schreiber  
WHRoeder:
[..] EA can't see it, doesn't need it.

I don't agree. An EA can (now) open a new chart, can install a template and can request the applied indicators (all:ChartIndicatorsTotal()): ChartIndicatorName(), ...

To add comments, please log in or register