Download MetaTrader 5

Strategy Tester Visualization mode: templates used for several charts

To add comments, please log in or register
Dr Matthias Hammelsbeck
550
Dr Matthias Hammelsbeck  

Hi,

I have a problem in strategy tester in visualization mode:

If the terminal sets a template with the name tester.tpl in the directory/profiles/templates of the client terminal, then it will be applied to the opened chart. In its absence, the default template is applied. (default.tpl).

So far so good.

But now:  if I use more than one symbol or more than one time frame in the EA additional charts will be displayed in the strategy tester with an ugly green/white/black background design.

I want to apply the tester.tpl. Even if I create a new template with name <eaname>.tpl in the directory profiles/templates, I have no success. 

 

Is there anybody who can help me?

 

Thank you!

Bobcat 

BB-8
12
BB-8  
Hi!

Have you figured out how to apply the custom template on other symbol/timeframes?

I tried to use chart functions:

https://www.mql5.com/en/docs/chart_operations/chartapplytemplate

  long first = ChartFirst();                            // first = 12345
  long next = ChartNext(first);                         // next = -1
   
  ChartSaveTemplate(0, "thetemplate");
  int error = GetLastError() ;                          // error = 4001 - Unexpected internal error
          
  ChartApplyTemplate(first , "tester.tpl");
  error = GetLastError() ; 				// error = 5019 - File does not exist

  ChartApplyTemplate(next , "tester.tpl");              // error = 5019 - File does not exist
  error = GetLastError() ;
But have no success changing the template in strategy tester.
Documentation on MQL5: Chart Operations / ChartApplyTemplate
Documentation on MQL5: Chart Operations / ChartApplyTemplate
  • www.mql5.com
Chart Operations / ChartApplyTemplate - Reference on algorithmic/automated trading language for MetaTrader 5
To add comments, please log in or register