Indicators: StocksBG

 

StocksBG:

StocksBG indicator displays the activity of major stock exchanges on a chart with M15 or less timeframe.

StocksBG indicator

Author: Andrey Aseykin

 

Hello Andrey,

I really like this indicator but I run MT4.

Do you have the indicator version for MT4?

Thank you.

 

I have placed all files in one folder and when tried to compile I get this error, only one error


'stocks_bg' - conversion is not accessible because of inheritance access CGOStocksContainer.mqh 134 29

any idea how to correct this?

thank you

 

Great code! I love object-oriented style


@elgaza

you just need to adapt this line of code like that:

before:

      m_container_stock.Add(stocks_bg);                                    // add stock as ONE object to the container

after:

      CObject* temporaryPointer = (CObject*)stocks_bg;
      m_container_stock.Add(temporaryPointer);                                    // add stock as ONE object to the container