Candles Size Stats
- Indicators
-
Nik Andersen
Independent algorithmic trader and EA developer based in Denmark with 15 years of trading experience.
Creator of Nika EA — a professional multi-strategy Expert Advisor built on a proprietary signal engine with 12 signal types, 11 MA methods, and 15 layered risk management controls. - Version: 1.30
Candles Size Stats
Candles Size Stats is a lightweight yet powerful indicator that measures and visualizes the size of every candle (High − Low range) in pips, giving you an instant statistical picture of price volatility on any symbol and timeframe.
What it does
The indicator plots each candle's full range as a color-coded histogram in a separate window. Bars are green when the current candle is larger than the previous one and dark green when it is smaller, making expansion and contraction immediately visible at a glance.
On top of the histogram it can overlay up to five statistical reference lines calculated over a rolling lookback window of your chosen length:
- Average – the simple mean candle size over the last N candles
- Median – the middle value of the sorted distribution, resistant to outliers
- P90 / P70 / P50 (or any custom percentile) – the candle size below which X% of all candles fall, useful for defining "normal", "large", and "extreme" moves
On-chart Dashboard
An optional floating dashboard displays the most relevant statistics for the latest closed bar in real time:
- Current candle size in pips
- Average and Median over the selected period
- Three configurable percentile levels
- vs Avg % – how much the current candle deviates from the average, shown in green when above and blue when below
All dashboard colors, font size, and position are fully customizable through input parameters.
Inputs
| Parameter | Description |
|---|---|
| Max Lookback | Maximum number of bars to calculate back |
| Candles Count | Rolling window size for statistics (default 50) |
| Display Average | Show/hide the average line |
| Display Median | Show/hide the median line |
| Display Within Percent 1/2/3 | Show/hide each percentile line |
| Candle Size Within Percent 1/2/3 | Percentile threshold (e.g. 90 = 90th percentile) |
| Show Dashboard | Enable the floating info panel |
| Dashboard colors, font size, X/Y position | Full visual customization |
Use cases
- Quickly judge whether the current candle is unusually large or small relative to recent history
- Set volatility-aware stop-loss distances based on average or percentile candle size
- Filter trade entries: only take signals when the candle is below the 70th percentile to avoid chasing extended moves
- Identify low-volatility compression zones where candles are consistently below the median
Compatible with MetaTrader 5. Works on all symbols and all timeframes.

User didn't leave any comment to the rating