Forum

chart template not getting applied in newly opened chart

Hi Kindly help me with the following code. I am creating an EA in which I want to open new chart with EURUSD M1 and apply the template in newly opened chart . EURUSD chart is getting opened , but template is not getting apllied on newly opened chart EURUSD M1. I have kept the template file in

not able to apply template in newly opened chart

Hi Kindly help me applying template in newly opened chart. it is throwing an error message err 4051 invalid function parameter value. CurrentOpenedChartId=ChartOpen("EURUSD",1); if(FileIsExist("MA.tpl")) { Print("The file MA.tpl found in \\Files'"); //--- apply template