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.
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?"
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: 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?
WHRoeder:
[..] EA can't see it, doesn't need it.
[..] 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(), ...
You are missing trading opportunities:
- Free trading apps
- 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
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?