Any scripts to reload template or indicator each 5 mins?

To add comments, please log in or register
airymind
25
airymind  
Need you gurus to give advices.
remcous
364
remcous  

Hi !

After reflexion, you can't attach a script who reload a template on the same chart.

Maybe you can make a script with the following content and reload tpl on another chart ?

To test...


void OnStart()
{
do 
{ 
        ChartApplyTemplate(idofyourchart,"MyTemplate.tpl");
        Sleep(300000);
} 
while(!IsStopped());
}

Just FYI, Sleep() take wait time in milliseconds, then 5 minutes = 5 * 60 * 1000
William Roeder
21724
William Roeder  
  1. Indicators can not sleep.
  2. A template simply deletes everything off a chart and then loads whatever is in the template. Should change nothing. Why?
To add comments, please log in or register