PROTECTED SOURCE SCRIPT

Intelligent Oscillation Box

39
Indicator Name: Smart Consolidation Box

Purpose: Automatically draws "consolidation boxes" and identifies breakout directions.

Core Logic:

Find Consolidation: If the price fluctuates very little over a recent period (below a set threshold), it is identified as consolidation, and a blue box is drawn.

Monitor Breakout: When the price moves outside the box, the color does not change immediately.

Filter False Breakouts: A breakout is only confirmed as genuine if the price remains outside the box for several consecutive bars.

Bullish Breakout (Up): Box turns Green.

Bearish Breakout (Down): Box turns Red.

Box Expansion: During the blue consolidation phase, if the price makes a new high/low while the overall range remains tight, the box automatically expands to include it.

One-Sentence Summary: It automatically draws the market's "consolidation ranges" for you and provides a clear color-coded signal when the range is effectively broken.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.