How do I get to store all the open chart symbols as an array
//+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { //--- string Symbol[]; int size=0; long currChart=ChartFirst(); while(currChart>-1) { ArrayResize(Symbol,++size); Symbol[size-1]=ChartSymbol(currChart); //--- get next chart ID currChart=ChartNext(currChart); } for(int i=0;i<size;i++) Print(Symbol[i]); } //+------------------------------------------------------------------+
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register