Any suggestion?
Ziheng Zhuang:
Any suggestion?
Any suggestion?
Where is saved your template ?
The ChartApplyTemplate() function is intended for using a previously saved template, and it can be used in any mql5 program. The path to the file that stores the template is passed as the second parameter to ChartApplyTemplate(). The template file is searched according to the following rules:
- if the backslash "\" separator (written as "\\") is placed at the beginning of the path, the template is searched for relative to the path _terminal_data_directory\MQL5,
- if there is no backslash, the template is searched for relative to the executable EX5 file, in which ChartApplyTemplate() is called;
- if a template is not found in the first two variants, the search is performed in the folder terminal_directory\Profiles\Templates\.
Alain Verleyen:
It is saved in terminal_directory\Profiles\Templates\
Where is saved your template ?
Ziheng Zhuang:
It is saved in terminal_directory\Profiles\Templates\
It is saved in terminal_directory\Profiles\Templates\
So that dosn't work with the Strategy Tester.
You can name a template as your EA (yourEAname.tpl) and it will be loaded automatically.
Alain Verleyen:
So that dosn't work with the Strategy Tester.
You can name a template as your EA (yourEAname.tpl) and it will be loaded automatically.
Thank you.
Tested,it is a convenient method.
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
Hello, I want to load a template to a back-testing chart, but I got an error#5019:ERR_FILE_NOT_EXIST.
Code same as below:
Any suggestion is preciated !