Is this working "ChartSetInteger" to Multi-Currency (Multi -Symbol) ?

 

Sir ,

It is working this One Symbol 

// Show Grid is Switched Off
      ChartSetInteger(ChartID(), CHART_SHOW_GRID, false);

   // Show Ticker is Switched Off
      ChartSetInteger(ChartID(), CHART_SHOW_TICKER, false);

   // Show Volume is Switched Off
      ChartSetInteger(ChartID(), CHART_SHOW_VOLUMES, false);

   // Chart Candle Colour
      ChartSetInteger(ChartID(), CHART_COLOR_BACKGROUND, clrBlack);
      ChartSetInteger(ChartID(), CHART_COLOR_FOREGROUND, clrWhite);
      ChartSetInteger(ChartID(), CHART_COLOR_CANDLE_BULL, clrBlue);
      ChartSetInteger(ChartID(), CHART_COLOR_CHART_UP, clrBlue);
      ChartSetInteger(ChartID(), CHART_COLOR_CANDLE_BEAR, clrWhite);
      ChartSetInteger(ChartID(), CHART_COLOR_CHART_DOWN, clrWhite);

I want to set this chart colour to multi symbol...

How to do it ?

Is this working "ChartSetInteger" to Multi-Currency (Multi -Symbol) chart ?

 
Vikram J U:

Sir ,

It is working this One Symbol 

I want to set this chart colour to multi symbol...

How to do it ?

Is this working "ChartSetInteger" to Multi-Currency (Multi -Symbol) chart ?

You need to repalce 

ChartID()

with multi symbol chart IDs

long getChartId(string sym){
   
   long chartId=ChartFirst();
   
   while(chartId != -1){      
         Print("sym...",ChartSymbol(chartId)," ID =",chartId);
         if ( ChartSymbol(chartId)==sym) {       
         return chartId;
     }
      
      chartId=ChartNext(chartId);
   }
    return -1;
}
source : https://www.mql5.com/en/forum/322506
Unable to get chart id of second chart in EA
Unable to get chart id of second chart in EA
  • 2019.09.17
  • www.mql5.com
Hi all, I developing an EA and I am using multiple currencies in it and I want to show arrow object on each chart for which I need chart id...
 
Arpit T #:

You need to repalce 

with multi symbol chart IDs

source : https://www.mql5.com/en/forum/322506

Thank you Sir..It is working...