Home Technical Indicator Post

StocksBG Indicator: Enhance Your MetaTrader 5 Experience

Attachments
12905.zip (22.23 KB, Download 0 times)

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

StocksBG indicator

Related Posts

Comments (0)