If you're looking to amp up your trading game, the StocksBG indicator is a powerful tool for MetaTrader 5 that displays the activity of major stock exchanges right on your chart. It's especially effective for timeframes of M15 or less.
This indicator utilizes the OBJ_LABEL graphical object for creating labels, while the OBJ_EDIT object is used for crafting rectangles. The OBJ_EDIT object also ensures that the indicator is visible in the Strategy Tester, so make sure your main terminal window is at least 300 pixels in height.
The StocksBG indicator is structured using classes, with each class stored in its own file. Just remember to keep all files in a single folder to ensure proper functionality.
Overview of Classes
- CGraphBase — This class is all about creating and setting properties for graphical objects.
- CGLabel — Works specifically with OBJ_LABEL objects.
- CGCanvas — Focuses on OBJ_EDIT objects, helping to create the rectangle canvas.
- CStockStyles — Manages object sizes and color schemes.
- CGStocksAsBG — Creates objects that define stock exchanges.
- CGOStocksBG — Generates objects for the 15 major stock exchanges.
- CGOStocksContainer — Acts as a container for CGOStocksBG.
- StocksBG — This is the indicator itself, and you'll need to compile this file.
Input Parameters
input int ipt_top=0; // Top indent input int ipt_down=20; // Bottom indent input int ipt_scheme=0; // Color scheme input int ipt_total=4; // Number of days to show

Related Posts
- Unlock Trading Insights with Volume Profile + Range v6.0 for MetaTrader 5
- Hourly Buffers for Data Collection in MetaTrader 5: A Simple Guide
- ID Lite Info MA: A Comprehensive Indicator for MetaTrader 5
- Mastering the Open Range Breakout Indicator for MetaTrader 5
- Optimize Your Backtesting with the New Economic Calendar Tool for MetaTrader 5