Download MetaTrader 5
To add comments, please log in or register
Track all payments in your profile. It is easy!
chen
14
chen 2015.12.10 14:11 
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
276
rod178 2015.12.10 19:07  
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
13599
whroeder1 2015.12.10 20:07  
Press enter and type in the symbol you want; you can also scroll instantly to a specific date
chen
14
chen 2015.12.12 12:41  
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
14
chen 2015.12.12 15:43  
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
276
rod178 2015.12.13 15:50  
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
14
chen 2015.12.14 11:21  
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
276
rod178 2015.12.14 13:53  
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