AngleIndicator
- Индикаторы
- Версия: 1.0
- Активации: 10
ATR-normalized MA slope in degrees, comparable across all instruments. Color-coded labels flag strong trend moves.
AngleIndicator turns the slope of a simple moving average into an objective, comparable angular measure.
Most "angle" indicators calculate slope from the raw price change, so the result depends on the instrument's absolute scale and on the timeframe: the same degree value means completely different things on a currency cross, an index, or a volatile symbol. AngleIndicator solves this by normalizing the SMA change by the ATR. The slope is expressed in "ATR per bar" and then converted into degrees, so a slope of 45 degrees always represents a movement of one ATR per bar, regardless of the instrument or timeframe. The result is a consistent reading and thresholds you can reuse across your whole watchlist.
HOW IT WORKS
- Calculates the SMA on closing prices for the chosen period.
- Measures its change between two consecutive bars and normalizes it by the ATR.
- Converts the ratio into degrees via arctangent, returning a value roughly between -90 and +90 degrees.
- Plots the value as an oscillator in a separate window and, when the slope exceeds the threshold, adds a label on the price chart above the high (bullish) or below the low (bearish).
KEY FEATURES
- Slope measurement independent of instrument and timeframe thanks to ATR normalization.
- Configurable threshold in degrees to filter significant moves and cut out noise.
- Directional color-coded labels (green up, red down) with an ATR-based offset for clean placement.
- Optimized chart-object handling: labels are limited to recent bars to preserve performance on long histories.
- Fully customizable: SMA period, ATR period, slope threshold, label visibility and maximum label count.
USE CASES
- Spotting strong-trend phases versus sideways ranges.
- Directional confirmation for entry and exit decisions.
- Comparing trend strength across instruments using a single shared threshold.
- A building block for automated strategies that use the normalized slope as a signal.
