PROTECTED SOURCE SCRIPT
Atualizado

SMA Oscillation Strength Index

39
This indicator quantifies how strongly price oscillates around a simple moving average (SMA), normalized to a 0–100 scale for easier interpretation.

It calculates the standard deviation of the distance between price and its SMA over a lookback period, then normalizes that value by dividing it by the current ATR to account for volatility. This produces a raw "oscillation strength" signal.

The signal is then smoothed using an EMA and rescaled from its expected range (0–3) to a normalized 0–100 scale. The final output increases when price oscillates clearly above and below the SMA (e.g., in ranging conditions), and stays low when price hugs the SMA tightly (e.g., in low-volatility or noisy conditions).

Customizable upper and lower thresholds allow the user to mark different strength regimes, such as "ranging" vs "flat".
Notas de Lançamento
Updated Chart

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.