Search in scripts for "range"
Up/Down RangeMeasuring the difference between the highs and lows from the average, this measure can serve as a proxy for the volatility, just like the ATR.
However, it breaks the range into an upward and a downward moving component, so it also gives information about the current trend direction.
In fact, I turned it into a momentum indicator here:
Function Frequency of RangeFunction to derive the frequency a range is visited over time.
returns value (0 to 1) percent multiplier
[RS]Multiple Time Frame Range Swing V0EXPERIMENTAL:
(republishing, previous had alot of lines crowding the chart)
MTF Range Swing.
GS_Opening-Range-V1ORB Opening Range Breakout 5 and 3O Minute Indicator
Kudos to Chris Moody for the inspiration to create my first indicator.
The 5 and 30 run together at times but the scalp would be when the equity breaks the 5 go long or short for the scalp and when it breaks the 30 go for the swing trade.
[RS][ALPHA]Predictive Range Analysis V0this code is untested use at your own risk...
applying timed price change over the square to predict price expansion or contraction of the range, it is not predicting the future price only the range that is possible for the price to be in within a margin of error of possibility, with that said i think its very unlikely for price to fall outside the range, due to virtual constraint applied by the auto corrective/cyclical nature of price action.
Average True Range Trailing Stops ColoredAverage True Range Trailing Stops Strategy, by Sylvain Vervoort
The related article is copyrighted material from Stocks & Commodities Jun 2009
Average True Range Trailing Stops, by Sylvain Vervoort Average True Range Trailing Stops, by Sylvain Vervoort
The related article is copyrighted material from Stocks & Commodities Jun 2009
5 Day Average Daily RangeSimple 5 day average range, adjust to true price movement rather than fixed levels.
-Enjoy
range calculation and targetsrange calculation and targets for everyone with targets both bullish and bearish
Range Breakout with Volume ConfirmationRange Breakout along with Volume Build up. However, ADX needs to be checked manually
RANGEThe indicator predicts the lower and upper limits of the next bar. The principle of constructing the indicator: the volatility of candles is analyzed, then it is averaged and reduced to a stationary series to obtain a normal distribution. For a stationary series, the standard deviation for the period is analyzed, and the number of standard periods multiplied by the Student's coefficient is added to the average value of volatility. The next term of the stationary series is predicted as the previous term plus the difference between the previous term of the stationary series and the pre-existing one. After that, the stationary series is transformed to a non-stationary one, and thus the upper and lower limits are obtained.
The upper and lower limits are determined with a confidence probability of 0.95. The places where the lows and highs go beyond their limits are marked with colored circles above and below the candles. In the upper right corner there is a summary table of the indicator metrics, which contains the following metrics: 1. current upper and lower limits 2. How much does the current price differ in % from the upper and lower ranges 3. A metric that considers the standard error between the limits of the indicator and the highs and lows 4. The percentage of accuracy of the indicator 5. The correlation coefficient between the upper and lower limit and, respectively, the maxima and minima
The periods are specified separately for the minimum and maximum. Depending on the tasks, you can iterate through the periods to reduce the error or increase the correlation coefficient
Range Breaker [MOT]Range Breaker - Volatility Compression System
Range Breaker is a technical analysis tool designed to identify periods of market consolidation (volatility compression) and generate signals when the market transitions into an expansion phase (breakout). Unlike static box tools that require manual drawing, this script uses an adaptive, volatility-based algorithm to automatically detect, draw, and monitor trading ranges in real-time. It adapts to changing market conditions by comparing recent price action against the asset's Average True Range (ATR).
METHODOLOGY & CORE CONCEPTS
1. Volatility Compression Detection
The script's primary engine is a "Tightness Filter." It continuously measures the distance between the highest high and lowest low over a lookback period.
The Logic: It compares this raw range size against the ATR multiplied by a specific threshold. If the current range is significantly smaller than the historical average volatility, the script identifies this as a "Consolidation" event and begins constructing a box.
Adaptive Thresholds: This method ensures the indicator works across all assets (Crypto, Forex, Stocks) because the definition of "tight" is relative to the asset's own volatility, not a fixed price distance.
2. Dynamic Range Expansion
Originality lies in how the script manages an active range. A consolidation phase is not static; it breathes.
The Mechanism: If price pushes the boundary of the box but remains within the consolidation logic (does not close outside with momentum), the box dynamically expands to include the new data. This prevents premature signals and accurately captures the full "churn" of the accumulation/distribution phase.
3. Signal Generation Models
The script offers two distinct ways to trade the detected ranges:
Momentum Breakouts: A signal is triggered when a candle closes decisively outside the box boundaries (plus a buffer).
Wick Reversals (Mean Reversion): The script identifies "False Breakouts" where price probes outside the range but fails to close there (leaving a long wick). If confirmed by the subsequent candle, this signals a potential reversal back to the midline.
A chart showing a highlighted consolidation box with a "Vol Break" signal triggering on the breakout.
Visualizing volatility compression followed by a confirmed momentum breakout.
A chart showing a "Wick Reversal" signal where price poked out of the box but failed to close, indicating a trap/reversal back into the range.
False Breakout Detection: The script identifies liquidity traps at the range edges.
FEATURES & SETTINGS
Preset Profiles
To make the tool instantly usable for different styles, we have included tuned preset profiles that adjust the ATR multipliers and lookback periods automatically:
Tight Ranges: For scalping on lower timeframes.
Normal Ranges: Balanced settings suitable for most intraday and short-term swing trading strategies (Default).
Swing Trading: Looser parameters for capturing multi-day consolidations.
Options Selling: Optimized to find long, sideways chop ideal for theta strategies.
The settings menu showing the "Preset" dropdown selected.
Built-in profiles allow for quick adaptation to different market environments.
Volume Confirmation
The Volume Filter: Users can enable a "Volume Spike" requirement. This checks if the breakout candle's volume is significantly higher than the average volume (e.g., > 1.7x), helping to filter out "fakeouts" that lack institutional participation.
Visual Customization
Full control over Box colors, borders, and midlines.
Toggle signals for "Wick Reversals" and standard "Breakouts" independently.
HOW TO USE & BEST PRACTICES
The Squeeze: Use this tool to identify "the calm before the storm." Long periods of consolidation (large boxes) often lead to more explosive moves.
Breakout & Retest Strategy: While the script signals the initial breakout, conservative traders often wait for price to pull back and "retest" the range extreme (Box Top/Bottom) or the Midline as support/resistance. Entering on this confirmation often provides a better risk-to-reward ratio.
Risk Management: Stop losses can be strategically placed based on your style. Aggressive traders might place stops below the entry candle, while conservative traders often place them below the opposite side of the range box to allow for volatility.
Filtering Fakeouts: We highly recommend enabling the "Confirm with Volume Spike" option in the settings. Breakouts accompanied by low volume often fail and return to the range.
Reversals: In choppy sideways markets, use the "Wick Reversal" signals to trade from the edges back toward the midline (Mean Reversion).
ALERTS
The script includes the following alert conditions:
Range Detected: Triggered when a new consolidation phase begins.
Range Breakout: Triggered when price closes outside the box.
Breakout with Volume Confirmation: Triggered only when a breakout is accompanied by a significant volume spike, allowing for filtered automated entries.
Range Reversal: Triggered on confirmed Wick Reversal setups.
⚠️ DISCLAIMER
This script is for educational and analytical purposes only. It does not constitute financial advice. Trading involves significant risk. Past performance of the logic described is not indicative of future results.






















