OPEN-SOURCE SCRIPT

StdDev Supertrend {CHIPA}

192
StdDev Supertrend ~ C H I P A is a supertrend style trend engine that replaces ATR with standard deviation as the volatility core. It can operate on raw prices or log return volatility, with optional smoothing to control noise.

Key features include:

Supertrend trailing rails built from a stddev scaled envelope that flips the regime only when price closes through the opposite rail.

Returns-based mode that scales volatility by log returns for more consistent behavior across price regimes.

Optional smoothing on the volatility input to tune responsiveness versus stability.

Directional gap fill between price and the active trend line on the main chart; opacity adapts to the distance (vs ATR) so wide gaps read stronger and small gaps stay subtle.

Secondary pane view of the rails with the same adaptive fade, plus an optional candle overlay for context.

Clean alerts that fire once when state changes

Use cases: medium-term trend following, stop/flip systems, and visual regime confirmation when you prefer stddev-based distance over ATR.

Note: no walk-forward or robustness testing is implied; parameter choices and risk controls are on you.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。