ChartApplyTemplate Only work with default.tpl

fdesu  

Hi Everyone.

Im doing a script to apply template with the EA included but only work with default.tpl, i try with print error, but doesnt show up, someone know what can i doing wrong?


ChartApplyTemplate(0 , "test.tpl");


Thanks in advanced!


Regards!

Documentation on MQL5: Chart Operations / ChartApplyTemplate
Documentation on MQL5: Chart Operations / ChartApplyTemplate
  • www.mql5.com
ChartApplyTemplate - Chart Operations - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Keith Watford  

I don't know if it will make any difference, but try

ChartApplyTemplate(0 , "test");
Ernst Van Der Merwe  
   if(!ChartApplyTemplate(0,"\\profiles\\templates\\test.tpl"))
      Print("Error applying template: ",(string)_LastError);
fdesu  
Keith Watford:

I don't know if it will make any difference, but try

Doesn't work!, but thanks anyways.


Ernst Van Der Merwe:

Is working!!, Thank u !!!


Thanks all !!