Testing CGraphic - questions and suggestions - page 13

 
pivomoe:

If you open a second EA on a different chart, the first chart starts receiving information from both the first EA and the second one at the same time.

It seems that the same graphical resource is used by several EAs. Apparently, when creating the name of the resource, the library uses the name of the BMP object. And it is the same in both cases.

Andrey Khatimlianskii:

Don't you need to add ChartId to the object name? I don't remember if it is added inside the function.

It should help.

 
Andrey Khatimlianskii:

Don't you need to add ChartId to the object name? I can't remember if it's added inside the function.

It helped.

Graphic.Create(ChartId,"CPrecieIdealnayFast "+Symbol(), 0, 10, 30, 500, 500);   

Thank you all.

Smells like a bug. Expected that the chart will be output exactly in the ChartId specified. Why specify it then at all ?

Документация по MQL5: Операции с графиками / ChartID
Документация по MQL5: Операции с графиками / ChartID
  • www.mql5.com
ChartID - Операции с графиками - Справочник MQL5 - Справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5