Two pieces of information matter to many traders at the moment of a decision: how long until the candle closes, and how much the broker charges as spread right now. Many strategies act on closed candles, and the last seconds before the close are often the most active. A wide spread, on the other hand, can turn a good setup into a bad trade, especially during news, rollover or low liquidity.
This indicator puts both values on the chart in a clear, configurable text block. It uses a one-second timer for the countdown, so the display keeps running during quiet periods when ticks come rarely. It reads only the open time of the last bar and does not scan the history.
| Input | Default | Purpose |
|---|---|---|
| Display | ||
| InpShowCountdown | true | Show the candle countdown timer |
| InpShowSpread | true | Show the current spread |
| InpSpreadUnit | SPREAD_POINTS | Spread unit: SPREAD_POINTS or SPREAD_PIPS |
| InpSpreadWarnLevel | 0 | Spread warning level in points; 0 disables the warning |
| Position | ||
| InpCorner | CORNER_RIGHT_UPPER | Chart corner where the labels are placed |
| InpXDistance | 10 | Horizontal distance from the corner in pixels (0 and above) |
| InpYDistance | 20 | Vertical distance from the corner in pixels (0 and above) |
| Font and colors | ||
| InpFontName | Consolas | Font name; a monospaced font keeps the countdown from jittering |
| InpFontSize | 12 | Font size (6 to 40) |
| InpTextColor | clrWhite | Color of the labels |
| InpWarnColor | clrTomato | Color of the spread label when it exceeds the warning level |

Fig. 1. CandleTimerSpread on an M15 chart with default settings (black and white image per Code Base guidelines).
ATR Dynamic Support and Resistance Bands
Dynamic support and resistance bands built from a moving average and the Average True Range (ATR). The bands widen when volatility rises and narrow when it falls.
Supertrend EA Gold Breakeven
Supertrend expert advisor for MT5 on Gold (XAUUSD), forex and indices: entry on the closed candle of the flip, stop at the Supertrend line, target by stop multiple, breakeven and lot by risk percent. Open source code.
Supertrend Indicator with Trend Color Change
Supertrend trend-following indicator based on ATR. The line changes color and side of the price when the trend changes, with optional signal arrows and alerts.
Daily Open Line with Distance in Points
Draws the daily open price as a horizontal line and shows, in points, how far the current price is from today's open. The label changes color depending on whether the price is above or below the open.