Loading…

Compact Mode Broadcaster

A trading setup with several panel-style indicators across several charts gets cluttered fast, and shrinking each panel by hand, chart by chart, is tedious. This tool publishes one small ON/OFF toggle button; clicking it writes 1.0 or 0.0 into a single terminal-wide global variable (GlobalVariableSet), under the documented name "Murodillo_CompactMode". GlobalVariableSet/Get values are shared across every chart in the terminal, not scoped to one chart, so any other panel indicator that checks this same variable name on its own initiative sees the change immediately, everywhere, without needing its own toggle. This indicator only owns the broadcast side of that convention - it cannot force a panel that was never written to check the flag to obey it. It is a publish mechanism other catalogue panels can opt into by reading the same global variable name, not a remote-control that reaches into unrelated indicators' code. Notes and limitations - Only broadcasts the flag; it has no way to enumerate or verify which other indicators, on which charts, are actually reading it. - Terminal global variables set with GlobalVariableSet are auto-deleted by the terminal after roughly four weeks with no access. This indicator re-touches the variable every 60 seconds via a timer while it stays attached to keep the clock fresh, but if every copy of this broadcaster and every reading panel are removed from the terminal for that long, the flag can reset to "not set" (read as OFF by convention) on the next attach. - Removing this indicator from its chart does not delete the shared global variable - other charts' panels may still depend on its last value. - Only one flag (compact/not compact) is broadcast; it is not a general settings bus.

Indicator · MT4 · v1.0 · Free

About Compact Mode Broadcaster

Compact Mode Broadcaster is an indicator for MetaTrader 4. It has 5 settings, such as Start compact, On color and Off color. MQL source code included.

Files in the download: CompactModeBroadcaster.ex4, CompactModeBroadcaster.mq4, CompactModeBroadcaster.txt.

Settings

SettingDefaultWhat it does
Start compactfalseInitial state when this indicator first loads
On colorclrLimeGreenButton colour when compact mode is ON
Off colorclrDimGrayButton colour when compact mode is OFF
X offset10Button horizontal offset
Y offset20Button vertical offset

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: MT4 Indicator · MQL4 Source Code

MetaTrader 4 & 5 indicators · PolyMaria