I cant apply templates that is contained in 'templates' folder from script New comment ama 2016.03.05 21:02 I'm writing a script that apply templates on current chart. Here, I can't load templates from 'templates folder' in MT4 data folder by ChartApplyTemplate function. But I can load templates from MT4 data folder directly.void OnStart() { //--- string datapath=TerminalInfoString(TERMINAL_DATA_PATH); Alert(datapath); string tplpath=datapath; tplpath+="\\templates\\test.tpl"; Alert(tplpath); if(!FileIsExist(tplpath)) { Alert("File not found"); return; } bool res=ChartApplyTemplate(0,tplpath); if(!res) { Alert("! ChartApplyTemplate"); int err=GetLastError(); string e=IntegerToString(err); Alert(e); } } Is this a bug? Algo Trading and ChartApplyTemplate change the EA properties for several EAs at the same time How to apply indicator with specified parameters from EA? New comment
I'm writing a script that apply templates on current chart.
Here, I can't load templates from 'templates folder' in MT4 data folder by ChartApplyTemplate function. But I can load templates from MT4 data folder directly.
Is this a bug?