PROTECTED SOURCE SCRIPT
已更新

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".
版本注释
Updated Chart

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。