OPEN-SOURCE SCRIPT

STOC - Super Cycle Price Structure v2.0

174
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.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.