Scripts: ChartChanger

 

ChartChanger:

The script is assigned to a hot key for quick change of charts around in a circle.



Author: Olegs Kucerenko

 
void OnStart() { long c=ChartNext(ChartID()); if (c==-1) c=ChartFirst(); ChartSetInteger(c, CHART_BRING_TO_TOP, 0, true); }
a vivid example of a case when the solution to a problem is less than its technical specification :)
 
sergeev:
a vivid example of a case when the solution of a problem is less than its technical task :)
:-)
 

Ctrl+F6

Ctrl+Shift+F6

 
Integer:

Ctrl+F6

Ctrl+Shift+F6

and as a consequence - a simple problem has been solved long ago, and in a better way than you will solve it. :)
 

The script has one plus - the combination can be different from the standard one.

Although, if you get used to Ctrl+Tab, it will be convenient not only in MT.

 
can it be programmed to change the chart automatically after few seconds.
 

It is an interesting script, but it opens charts from right to left and jumps as it pleases.

Are the CTRL+TAB keys standard for this command? Are they not prescribed in the code?

 
Oleg:

It is an interesting script, but it opens charts from right to left and jumps as it pleases.

Are the CTRL+TAB keys standard for this command? Are they not prescribed in the code?

The order is set by MT.

And the combination Ctrl+Tab is standard for any Windows application.

 
CTRL+TAB switches to the previous chart. That is, if you clicked conditionally the first, then 5, 8, 2, 15, then by ctrl+tab you will switch graphs in the reverse order 15, 2, 8, 5, 1.
 

Indicator is incomplete : it needs time frame changer as well as it is in MT4

some other functions doesn't work...

Files:
NZDUSDDaily.png  74 kb