This is only a minor annoyance.
Steps:
- Start with a "clean" chart. That is, just bars, no other indicators.
- Start EA with a dialog on it created from CAppDialog. This EA has labels, edits, buttons, etc.
- Save as Template.
For some reason, the labels are stored in the .tpl file. For example:
Thus, any time I use the template, I get all these artifacts.
It only saves the labels objects. These are standard CLabel objects, e.g.
I can easily go into the .tpl file and remove the artifacts, which is why I say this is only a minor annoyance, but I am wondering if I am missing the right way of doing things.
It is how templates are working.
Doing it by code, you could save the template as you want. For example, save the template, then read it and write it again filtering all objects.
Saving a template saves everything. That is your "some reason."
This is only a minor annoyance.
Steps:
- Start with a "clean" chart. That is, just bars, no other indicators.
- Start EA with a dialog on it created from CAppDialog. This EA has labels, edits, buttons, etc.
- Save as Template.
For some reason, the labels are stored in the .tpl file. For example:
Thus, any time I use the template, I get all these artifacts.
It only saves the labels objects. These are standard CLabel objects, e.g.
I can easily go into the .tpl file and remove the artifacts, which is why I say this is only a minor annoyance, but I am wondering if I am missing the right way of doing things.
For me to save this as a template it would be like driving 100mph and decided to switch gear to park without slowing down first :) ... CAppDialog = live interface ...if would be like take a screenshot of your desktop and expect to work as a full system when displayed on another computer :) .
For me to save this as a template it would be like driving 100mph and decided to switch gear to park without slowing down first :) ... CAppDialog = live interface ...if would be like take a screenshot of your desktop and expect to work as a full system when displayed on another computer :) .
Saving a template saves everything. That is your "some reason."
Well, sort of, but no.
Templates saves some objects, e.g. experts, indicators, and labels. It appears that anything one could create manually using the "Line Studies" toolbar.
But templates do not save all objects, e.g. Buttons, Edits, Bitmap Labels, nor Rectangle Labels.
It is how templates are working.
Doing it by code, you could save the template as you want. For example, save the template, then read it and write it again filtering all objects.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
This is only a minor annoyance.
Steps:
For some reason, the labels are stored in the .tpl file. For example:
Thus, any time I use the template, I get all these artifacts.
It only saves the labels objects. These are standard CLabel objects, e.g.
I can easily go into the .tpl file and remove the artifacts, which is why I say this is only a minor annoyance, but I am wondering if I am missing the right way of doing things.