Loading…

Colour Scheme Preset Applier

A template swap replaces indicators, objects and every other chart setting along with the colours, which is overkill - and risky, since it can silently drop an attached EA or indicator - when all that is actually wanted is a colour change. This script uses ChartSetInteger to touch only the built-in colour properties (background, foreground, grid, bull/bear candle colour, chart line, up/down bars, and the bid/ ask/last/stop-level lines) and leaves everything else on every chart exactly as it was. Three presets are included: Dark (the classic black-background MT4 look), Light (a white background with readable dark foreground), and Print (white background, black-and-white candles, intended for screenshots or printed reports where colour would not reproduce or would be a distraction). The script can apply the chosen scheme to every open chart in the terminal in one pass, or to the current chart only. Notes and limitations - This changes only the twelve built-in chart colour properties it sets explicitly; indicator line colours, chart object colours, and panel/EA-drawn UI elements are untouched and may still clash with the new scheme if they hardcode their own colours. - The change is not saved to a template and does not persist across a terminal restart or a chart's own template reload - re-run the script after either if the scheme needs to be reapplied. - "Print" is tuned for black-and-white legibility on paper/screenshot, not for live intraday reading - up and down candles are not colour- distinguished in that preset by design.

Script · MT5 · v1.0 · Free

About Colour Scheme Preset Applier

Colour Scheme Preset Applier is a script for MetaTrader 5. It can alert you with a pop-up, sound, email or push message. It has 2 settings, such as Scheme and Apply to all. MQL source code included.

Files in the download: ColourSchemePresets.ex5, ColourSchemePresets.mq5, ColourSchemePresets.txt.

Settings

SettingDefaultWhat it does
SchemeSchemeDarkColour scheme to apply
Apply to alltrueApply to every open chart (false = current chart only)

How to install

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

Download the PDF guide

Tags: Grid · Alerts · MT5 Script · MQL5 Source Code

MQL4 & MQL5 scripts · PolyMaria