Download MetaTrader 5

Pls help: How to change the symbol of chart windows by keyboard in MT4

To add comments, please log in or register
chen
96
chen  
for example,I open a chart window of a symbol, can I change the symbol of the chart window by keyboard upwards or downwards according to the market watch list.I mean when I press a certain key, the chart window will show the next symbol. Thanks!
rod178
272
rod178  
zc147369:
for example,I open a chart window of a symbol, can I change the symbol of the chart window by keyboard upwards or downwards according to the market watch list.I mean when I press a certain key, the chart window will show the next symbol. Thanks!

You can easily write a script to change a charts Symbol. This script can be assigned  CTRL  or  ALT keys.

PS  why not just drag the new Symbol from Market Watch directly to the chart ie with the mouse. 

whroeder1
15019
whroeder1  
Press enter and type in the symbol you want; you can also scroll instantly to a specific date
chen
96
chen  
WHRoeder:
Press enter and type in the symbol you want; you can also scroll instantly to a specific date
Can I use only one key to show the symbol upwards, and another key for downwards accoring to the "market watch" table?
chen
96
chen  
rod178:

You can easily write a script to change a charts Symbol. This script can be assigned  CTRL  or  ALT keys.

PS  why not just drag the new Symbol from Market Watch directly to the chart ie with the mouse. 

Can you help me to write the script? If it is possible, It is more easy to change the symbol by key board than mouse.
rod178
272
rod178  
zc147369:
Can you help me to write the script? If it is possible, It is more easy to change the symbol by key board than mouse.

 

One option would be to create an array of symbols within the script  and attach the script to an ALT key which would cycle through the array of symbols and execute on the single chart

ie

ChartSetSymbolPeriod(currentChartID,symbolArrayA[i],currentChartTimeframe);
chen
96
chen  
rod178:

 

One option would be to create an array of symbols within the script  and attach the script to an ALT key which would cycle through the array of symbols and execute on the single chart

ie

 


Thank you. Would you help me to write the complete script?
rod178
272
rod178  
zc147369:
Thank you. Would you help me to write the complete script?

https://book.mql4.com/

 

https://www.upwork.com/o/jobs/browse/skill/metatrader-4-mt4/ 

To add comments, please log in or register