Compile logCompiled
MetaEditor build 6333 · MT5 · 1 Dec 2026, 10:22 UTCcompiling FXN_SpreadCandleTimer.mq5✓ Result: 0 errors, 0 warnings, 3.7 soutput FXN_SpreadCandleTimer.ex5 · 17 KBsha256 25d457a6adf72d08…954c2be8
Files version 1.0
| File | Lines | Size |
|---|---|---|
| FXN_SpreadCandleTimer.mq5 | 210 | 7 KB |
| FXN_SpreadCandleTimer.ex5 compiled by the Lab | – | 17 KB |
FXN_SpreadCandleTimer.mq5210 lines
//+------------------------------------------------------------------+//| FXN_SpreadCandleTimer.mq5 |//| 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 indicator_chart_window#property indicator_buffers 0#property indicator_plots 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};//--- inputsinput group "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 pixelsinput group "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)input group "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 sizeSign 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.