Download MetaTrader 5

Apply a script to several charts

To add comments, please log in or register
BB2013
120
BB2013  

Hi,

I created a indicator and I put that indicator in a template, so if I apply that template to diferente charts, the indicator runs on all of them.

Then, I created a script but, as far as I can see, I have explicitly to apply the scritp to each chart.

Is there a faster way, if I want that the same script runs 10 charts, for example ?

Thanks

Simon Gniadkowski
Moderator
18037
Simon Gniadkowski  
Variopinto:

Hi,

I created a indicator and I put that indicator in a template, so if I apply that template to diferente charts, the indicator runs on all of them.

Then, I created a script but, as far as I can see, I have explicitly to apply the scritp to each chart.

Is there a faster way, if I want that the same script runs 10 charts, for example ?

A script usually runs once and exits . . . if you need something that runs continuously use an Indicator, if it needs to place trade use an EA. If you actually need a script assign it a Hotkey combination, for example, Ctrl + Z, and use that to run the script on each chart one by one.
BB2013
120
BB2013  

Yes, assign to a Hotkey would be the BEST !

Can you explain how to do it ?

Thanks

Simon Gniadkowski
Moderator
18037
Simon Gniadkowski  
Variopinto:

Yes, assign to a Hotkey would be the BEST !

Can you explain how to do it ?

Thanks

In the Navigator window, right click on the script and select Set hotkey or search the MT4 Terminal help for "hotkey" . . .
BB2013
120
BB2013  
RaptorUK:
In the Navigator window, right click on the script and select Set hotkey or search the MT4 Terminal help for "hotkey" . . .

Excelent !
To add comments, please log in or register