Download MetaTrader 5
To add comments, please log in or register
Have you found a good programmer? Make a targeted order!
rod178
274
rod178 2014.11.01 11:17 

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 2014.11.02 01:46  
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
274
rod178 2014.11.02 09:50  
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
14206
whroeder1 2014.11.02 12:50  
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
6377
Carl Schreiber 2014.11.02 22:35  
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