hi guys
i have 10 opened charts and i'm using the code below to autoflip them.
But.. is there a way to change the symbol directly inside a chart?
for example.. typing the symbols names in the chart box from a script/EA ( img below )
i only need the windows/dll command, i can code the rest of the script myself
thanks for helping
Yes, it is possible with ChartSetSymbolPeriod.
Just it has a bit weird handling, when applied to a home chart.
After the command it runs like that:
- OnDeinit() with reason 3
- OnInit() with reason 3
!!! - After the OnInit() finished it runs the rest of the method, which triggered the command (e.g. OnTick) with the command following the ChartSetSymbolPeriod.
So be sure you have a return statement following this command to avoid any mess.
you're great!! :)
i saw ChartSetSymbolPeriod in the documentation but i thougt that was a way to change the Period and not both.
thank you very much!
- 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 guys
i have 10 opened charts and i'm using the code below to autoflip them.
But.. is there a way to change the symbol directly inside a chart?
for example.. typing the symbols names in the chart box from a script/EA ( img below )
i only need the windows/dll command, i can code the rest of the script myself
thanks for helping