How can I apply template to a newly opened Chart
- It takes time to open the chart. Sleep five seconds between the open and the apply.
- Do you understand that if you name the template Default.tpl it will be automatically applied?
William
Roeder:
- It takes time to open the chart. Sleep five seconds between the open and the apply.
An answer which again shows primitivity of MQL environment. Even javascript has ability to "wait until first function is done".
btw sleep didn't work.
"Do you understand that if you name the template Default.tpl it will be automatically applied?"
I even know tester.tpl
Hi all,
I use the code below to apply template to newly opened chart but it is not working as intended.
It doesn't work or it works after a minute or something. And also if I open another chart and close it then it applies template to the chart I want.