I made a script to change all timeframes of the opened charts to the chart's timeframe the script is dragged into. That also works but I always get a system message:
But this only happens when I change the timeframes. With all other scripts (change templates, plot a line etc.) I don't see any system message.
Do you have an idea what that means?
Here is my code:
void OnStart() { //--- int ChartPer = ChartPeriod(); long prevChart, currChart = ChartFirst(); int i = 0; while(i < CHARTS_MAX) { //--- ChartSetSymbolPeriod(currChart, ChartSymbol(currChart), ChartPer); //--- prevChart = currChart; currChart = ChartNext(prevChart); if(currChart < 0) break; i++; } }
I made a script to change all timeframes of the opened charts to the chart's timeframe the script is dragged into. That also works but I always get a system message:
But this only happens when I change the timeframes. With all other scripts (change templates, plot a line etc.) I don't see any system message.
Do you have an idea what that means?
Here is my code:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I think most of you know that script below. You can drag it into a chart, select a timeframe and all opened chart windows will be set to this timeframe.
I have no knowledge about Win32 programming and so I tried to use that frame/structure and use my own code which should be executed in every opened chart window. For the first test I wanted to place a comment with the current Symbol. This is my modification:
Unfortunately, it only works for the window I drag the script into. Can someone please tell me how to fix it? Thanks!!