You can build a loop with:
ChartID |
ChartIndicatorsTotal |
ChartFirst |
ChartNext |
ChartNavigate |
and before that a loop though all Symbols and open a chart with them with:
ChartOpen |
You find them all in the MQL5 reference (some with examples)
thanks a lot Carl!!
can you show me an example of such loop?
or - beteer yet - BEIGN A MDOERATOR - maybe - you have a seen a script which just exports all open charts in CSV format? without the needt to attach and loop through all open charts???
thansk alot!!!
dave
that sounds gerat but I am new to coding - maybe you have seen a script which does this? I think this woudl be a very handy macro for all -c an you help me code this?
It depends on what symbols you need. This is a snippet to get the symbols which are active in the market watch window.
void OnStart() { for(int i=SymbolsTotal(true)-1; i>=0; --i) do_history_stuff(SymbolName(i, true)); }
It depends on what symbols you need. This is a snippet to get the symbols which are active in the market watch window.

- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a neatly working scrip which exports the data when I attach to a single chart.
Can this script be run by a macro which will progressively attach it to all of the open charts - automatically? just run through all open charts...
the scrip is here
https://www.mql5.com/en/code/232
Dave