What does the journal say ?
Did you print last error ?
Hi Marco,
I am using below code to apply template, it is printing "applied successfully" but actually template contents are not reflecting. This template contains my 3 custom indicators and some display settings but these are not getting displayed after apply.
if(ChartApplyTemplate(0,"Custom.tpl")) {
Print("The template 'Custom.tpl' applied successfully");
}
else {
Print("Failed to apply 'Custom.tpl', error code ",GetLastError());
}
Please advice.
Does it work when you manually load it ?
Marco vd Heijden:
Does it work when you manually load it ?
Does it work when you manually load it ?
When I am manually applying it, it is stopping the EA, dont know why ?
Can we apply custom indicator on Chart Sub Window from EA using CODE ?
Documentation on MQL5: Chart Operations / ChartIndicatorAdd
- www.mql5.com
Chart Operations / ChartIndicatorAdd - Reference on algorithmic/automated trading language for MetaTrader 5
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
Dear Users,
I am trying to apply a Custom template using EA in MT4 platform but it is not getting applied on chart.
I tried with following options;
ChartApplyTemplate(0,"\\Custom.tpl");
ChartApplyTemplate(0,"Custom.tpl");
ChartApplyTemplate(0,"C:\\Users\\xxxxxxxx\\AppData\\Roaming\\MetaQuotes\\Terminal\\1DAFD9A7C67DCE4FE37EAA1FC1E5CF75\\templates\\Custom.tpl");
My Template is in the following directory : Users\xxxxxxxx\AppData\Roaming\MetaQuotes\Terminal\1DAFD9A7C67DCE4FE37EAA1FC1E5CF75\templates\Custom.tpl
I am using Meta Editor 5 Build 1384. Meta Trader 4 Build 1010.
Please advice !
Thanks & Regards !
Yogesh Verma