MA Relative Candles
- 지표
- 버전: 1.50
- 활성화: 10
Overview
MA Relative Candles displays the chart’s candlesticks in a separate window with a moving average as the zero line. Each candle retains its original body and wick size in price units, so you can see how far its open, high, low, and close sit above or below the reference.
The indicator is designed for traders who already use a moving average as a reference. By making each candle’s distance from the MA explicit, it aims to reduce judgment bias and help traders apply the same reference consistently when making decisions.
The default setup uses EMA 50 Close as the reference and EMA 14 Close as the Fast MA. An optional percentage envelope grid and experimental swing reversal markers provide additional context.
Visual Elements
| Element | Meaning |
|---|---|
| Green, red, and silver candles | Bullish candles, bearish candles, and dojis, respectively. Color follows the candle’s open and close. |
| Zero line | Represents the Reference MA on each bar. Its style and thickness are configurable. |
| Gold line | Shows the difference between the Fast MA and the Reference MA. |
| Dashed grid | Marks percentage distances above and below zero, based on the latest Reference MA value. |
| Blinking gold dot | Marks a potential swing reversal while the current candle is forming. |
| Green up arrow / red down arrow | Marks a bullish or bearish swing setup that meets the confirmation rules at candle close. |
Inputs
Moving Averages and Zero Line
| Input | Default | Description |
|---|---|---|
| ReferenceMethod / FastMethod | EMA / EMA | Selects SMA, EMA, SMMA, or LWMA independently for each MA. |
| ReferencePrice / FastPrice | Close / Close | Selects the applied price for each MA. |
| ReferencePeriod / FastPeriod | 50 / 14 | Sets the period for each MA. |
| ZeroLineStyle | Dotted | Selects the zero-line style. |
| ZeroLineWidth | 1 | Sets the zero-line thickness from 1 to 5. |
Reference Envelope
| Input | Default | Description |
|---|---|---|
| ReferenceEnvelope | true | Shows or hides the dashed percentage grid. |
| GridPercent | 0.1 | Sets the grid interval in percent. The default marks ±0.1%, ±0.2%, ±0.3%, and successive multiples within the visible range. |
Swing Reversal Signals
| Input | Default | Description |
|---|---|---|
| ActiveSignal | true | Shows or hides the blinking dots and reversal arrows. |
| SwingLookback | 5 | Sets how many preceding bars define the swing high and low. |
| MinSweepATR | 0.10 | Sets the minimum distance price must move beyond the swing level, in ATR units. |
| MinReboundATR | 0.50 | Sets the minimum distance from the candle’s extreme to its close, in ATR units. |
| MinBodyATR | 0.20 | Sets the minimum candle body size in the reversal direction, in ATR units. |
| RequireReclaim | true | Requires the candle to close back across the swing level it breached. |
Interpretation
-
A candle entirely above zero has its low above that bar’s Reference MA. A wick crossing zero shows that the candle’s range spans the reference.
-
When the gold line crosses zero, the Fast MA crosses the Reference MA.
-
Use the same Reference MA settings on the main chart to check whether the MA is rising, falling, or flat. The subwindow shows price relative to that MA.
-
A blinking dot can appear when the live candle breaches a recent swing level and starts to pull back. The dot can disappear if the setup falls short of confirmation.
-
With reclaim enabled, a bullish arrow requires price to breach the prior swing low and close back above it. A bearish arrow requires price to breach the prior swing high and close back below it. Both directions also apply the configured ATR thresholds.
Notes
-
The indicator uses the symbol and timeframe of the attached chart.
-
Swing thresholds use ATR(14) from the previous completed bar.
-
The grid updates with the latest Reference MA. When levels become too dense for the window, the display skips some multiples to keep the lines readable.
-
Swing reversal markers are experimental. Use them as additional chart context.
Disclaimer
MA Relative Candles is provided for analytical and educational purposes. Reversal markers identify setups that meet the configured rules. Future price direction remains uncertain.
