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, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.