Skip to content
FXNook HubBeta

Alex / Spread and Candle Timer Indicator for MT4

MetaTrader 4IndicatorMITCompiled · build 2425
Compile logCompiled
MetaEditor build 2425 · MT4 · 1 Dec 2026, 10:22 UTCcompiling FXN_SpreadCandleTimer.mq4✓ Result: 0 errors, 0 warnings, 3.9 soutput FXN_SpreadCandleTimer.ex4 · 17 KBsha256 f82f28cb363e0410…d857989c

Files version 1.0

FileLinesSize
FXN_SpreadCandleTimer.mq42208 KB
FXN_SpreadCandleTimer.ex4 compiled by the Lab–17 KB
FXN_SpreadCandleTimer.mq4220 lines
//+------------------------------------------------------------------+//| FXN_SpreadCandleTimer.mq4                                        |//| FXNook Lab Hub starter library - MIT licence                     |//| https://lab.fxnook.com/hub                                       |//+------------------------------------------------------------------+#property copyright "FXNook Lab (MIT licence)"#property link      "https://lab.fxnook.com/hub"#property version   "1.00"#property description "Shows the live spread and the time left in the current candle, next to price or in a chart corner."#property strict#property indicator_chart_window#property indicator_buffers 0#define PFX "FXN_SCT_"enum ENUM_SCT_POSITION{   SCT_AT_PRICE = 0,   // Next to the current price   SCT_CORNER   = 1    // In a chart corner};//--- inputssinput string InpSep1 = "=== Position ===";  // ---- Position ----input ENUM_SCT_POSITION InpPosition  = SCT_AT_PRICE;        // Where to show the textinput int               InpShiftBars = 3;                   // Next to price: bars to the right of the current barinput ENUM_BASE_CORNER  InpCorner    = CORNER_RIGHT_LOWER;  // Corner mode: which cornerinput int               InpX         = 10;                  // Corner mode: horizontal distance in pixelsinput int               InpY         = 20;                  // Corner mode: vertical distance in pixelssinput string InpSep2 = "=== Spread ===";  // ---- Spread ----input bool              InpInPips    = true;                // Show pips on 3/5-digit symbols (false = points)input int               InpMaxSpread = 20;                  // Spread limit in points (colour changes above it)sinput string InpSep3 = "=== Style ===";  // ---- Style ----input color             InpColor     = clrDarkGray;         // Normal text colourinput color             InpHighColor = clrOrangeRed;        // Spread colour above the limitinput string            InpFont      = "Consolas";          // Font nameinput int               InpFontSize  = 10;                  // Font size
Sign in to read all the code and download it

It is free. A free account lets you see every line, copy it, download the source and open a copy in your Lab. The compiled file can be downloaded without an account.

Sign in Create a free account

Version history

  1. Version 1.0Live1 Dec 2026

    First version.

    Source · Compiled