OPEN-SOURCE SCRIPT
STOC - Super Cycle Price Structure v2.0

STOC – Super Cycle Price Structure | Initial Release
STOC – Super Cycle Price Structure combines trend alignment, rolling support and resistance, volatility contraction, and price-action signals in a single chart overlay. It helps traders study developing trends, identify potential breakout and pullback setups, and monitor weakening price structure.
Trend Structure
• Customizable 21-period Fast EMA and 50-period Base EMA.
• Customizable 150-period and 200-period SMAs.
• Trend cloud and background shading for market context:
- Green: Price above the Base EMA, with the Base EMA above the 150 SMA, the 150 SMA above the 200 SMA, and the 200 SMA rising versus 20 bars earlier.
- Yellow: Price and the Base EMA above the 200 SMA, without full bullish alignment.
- Red: Conditions outside the two bullish classifications. This does not independently confirm a downtrend.
Support, Resistance and Setup Detection
• R1: Highest high over the resistance lookback, excluding the current candle.
• S1: Lowest low over the support lookback, excluding the current candle.
• Configurable base-depth and ATR-contraction thresholds.
• Optional breakout volume confirmation, using volume relative to its 50-period average.
Signal Guide
• BO — Breakout: Price crosses above rolling resistance while the full bullish trend filter is active. The optional relative-volume filter applies when enabled.
• PB — Pullback: Price touches or moves below the Fast EMA, then closes above it with a bullish candle while the full bullish trend filter remains active.
• Orange Dot — Contraction Begins: Marks the start of a qualifying volatility-contraction condition within the configured base-depth limit, with price above the 200 SMA.
• X — Trend Exit: Price crosses below the Base EMA, highlighting potential trend weakness.
The contraction marker is a simplified volatility-contraction screen; it does not verify a complete multi-swing VCP pattern. Breakout signals do not require a preceding contraction marker.
Customization and Alerts
Toggle moving averages, trend cloud, background shading, support/resistance, and signal markers. Adjust lookback periods, contraction sensitivity, base-depth limits, and breakout-volume requirements.
Separate alert conditions are available for breakouts, pullbacks, and Base EMA exits.
Optional percentage reference bands are calculated from the previous chart candle’s close. They are illustrative levels, not exchange-defined circuit limits.
Usage Notes
All lengths refer to bars on the selected chart timeframe. Signals can change while the current candle is forming; use Once Per Bar Close when configuring alerts for closing-bar evaluation. Pullback signals may repeat and exit markers are independent of previous entry signals.
Disclaimer: For educational and informational purposes only. This indicator does not guarantee profitable outcomes or constitute investment advice. Apply independent analysis, position sizing, and risk management.
STOC – Super Cycle Price Structure combines trend alignment, rolling support and resistance, volatility contraction, and price-action signals in a single chart overlay. It helps traders study developing trends, identify potential breakout and pullback setups, and monitor weakening price structure.
Trend Structure
• Customizable 21-period Fast EMA and 50-period Base EMA.
• Customizable 150-period and 200-period SMAs.
• Trend cloud and background shading for market context:
- Green: Price above the Base EMA, with the Base EMA above the 150 SMA, the 150 SMA above the 200 SMA, and the 200 SMA rising versus 20 bars earlier.
- Yellow: Price and the Base EMA above the 200 SMA, without full bullish alignment.
- Red: Conditions outside the two bullish classifications. This does not independently confirm a downtrend.
Support, Resistance and Setup Detection
• R1: Highest high over the resistance lookback, excluding the current candle.
• S1: Lowest low over the support lookback, excluding the current candle.
• Configurable base-depth and ATR-contraction thresholds.
• Optional breakout volume confirmation, using volume relative to its 50-period average.
Signal Guide
• BO — Breakout: Price crosses above rolling resistance while the full bullish trend filter is active. The optional relative-volume filter applies when enabled.
• PB — Pullback: Price touches or moves below the Fast EMA, then closes above it with a bullish candle while the full bullish trend filter remains active.
• Orange Dot — Contraction Begins: Marks the start of a qualifying volatility-contraction condition within the configured base-depth limit, with price above the 200 SMA.
• X — Trend Exit: Price crosses below the Base EMA, highlighting potential trend weakness.
The contraction marker is a simplified volatility-contraction screen; it does not verify a complete multi-swing VCP pattern. Breakout signals do not require a preceding contraction marker.
Customization and Alerts
Toggle moving averages, trend cloud, background shading, support/resistance, and signal markers. Adjust lookback periods, contraction sensitivity, base-depth limits, and breakout-volume requirements.
Separate alert conditions are available for breakouts, pullbacks, and Base EMA exits.
Optional percentage reference bands are calculated from the previous chart candle’s close. They are illustrative levels, not exchange-defined circuit limits.
Usage Notes
All lengths refer to bars on the selected chart timeframe. Signals can change while the current candle is forming; use Once Per Bar Close when configuring alerts for closing-bar evaluation. Pullback signals may repeat and exit markers are independent of previous entry signals.
Disclaimer: For educational and informational purposes only. This indicator does not guarantee profitable outcomes or constitute investment advice. Apply independent analysis, position sizing, and risk management.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Building STOC: Systematic and Rule Based Trading - Crypto, Commodities, India & Global Investments.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Building STOC: Systematic and Rule Based Trading - Crypto, Commodities, India & Global Investments.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.