I cant apply templates that is contained in 'templates' folder from script

 

 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?

Reason: