In den Scripts nach "range" suchen
New median and range expansionIndicator for starting chasing the trend early.
Indicates new higher or lower candle median in conjunction with greater range.
Average True Range (ATR %) Stop Loss CalculatorThis indicator takes the average of a series of ATR to calculate what I would consider an optimum stop loss placement represented in percentage (read below for full overview).
While the data is plotted what is most helpful are the actual numbers presented and for my charts I remove most of the plotting.
This indicator is most helpful on the daily timeframe but can be used for all timeframes such as the 4HR, 1HR or even 15M.
This indicator should not be used alone. It should be used in conjunction with proper price action analysis. It’s also a great indicator if you chart using Value Channels. Ideally you want your stop placement to be below at least one core Value Channel boundary range. In addition to standard support and resistance and some key moving averages the market respects. This also works best when trading with the prevailing BIAS of the instrument (bull or bear).
Cryptos: Generally, that means you’re buying on retracements that fit the end of a structured move. The other option is using this in a clear up trending market where the pull backs are clearly being supported with buying.
FOREX: I built another indicator for FOREX search: ATRPIPS with SL
WTI: Helpful but I have different rules for when I trade WTI. I rely upon VCs and diagnal VCs much more when trading this.
Equities: Helpful but with the increase of volatility as well as uncertainty of Bias of the market-- this should be used as more of a guide than
What is most important is the actual percentage numbers but I've found graphing 1-3 of the actual ATRs is helpful. The rest just uncheck the checkbox in the options.
Indicator Overview:
Value 1 - 3 Period ATR (maroon)
Value 2 - 7 Period ATR (green)
Value 3 - 30 Period ATR (blue)
Value 4 - 90 Period ATR (blue, bold)
Value 5 - 1 Period ATR (green)
Value 6 - 1 Period ATR (red)
Value 6 – Prime Stop Loss Placement (maroon). This is the average of all above ATRs multiplied by 1.5
Value 7 - Move Left (red). Experimental value. This is the difference between (prime stop loss) and 1 day period move. Two ways to use this value. Use as a tighter stop loss placement. The other option is to use as a retrace target for purchase and using the Prime Stop Placement value as you’re stop loss.
All ATRs use the LOW price of the period. After testing both the low and close I’ve settled on the low to capture the most volatility you will typically experience.
Once again, this indicator should be used in conjunction with your proven trade system.
Also, by knowing what the values are within the indicator you could just eye ball what would be the best stop placement depending on the ATR or 1 or 2 ATRs you find most represent the volatility of what you are trading.
I will be expanding on this indicator by bringing in average measured moves as well as volume analysis and most likely with color changes and modifications.
Background:
While using and refining my trade system I've noticed that most moves happen in 3 periods. So we start there. The 7 period is good for a 24 hour market such as crypto (although weekend trading can be a hit or miss) and to some extent FOREX. The longer periods of 30 & 90 are to smooth out the data set. The final value of the 1 period is to bring a little more recency to the calculation.
Why multiply the average by 1.5? I've found in my own trading and system I built to be the best placement (in conjunction with VCs) to ensure you're stop isn't to close and is within the instrument you are trading volatility .
I'm looking at making this more intelligent as well as take into account volume and structured moves.
Average True Range Stop Loss CalculatorThis indicator takes the average of a series of ATR to calculate what I would consider an optimum stop loss placement represented in percentage (read below for full overview).
While the data is plotted what is most helpful are the actual numbers presented.
This indicator is most helpful on the daily timeframe but can be used for all timeframes such as the 4HR or 1HR.
This indicator should not be used alone. It should be used in conjunction with proper price action analysis. It’s also a great indicator if you chart using Value Channels. Ideally you want your stop placement to be below at least one core Value Channel boundary range. In addition to standard support and resistance and some key moving averages the market respects. This also works best when trading with the prevailing BIAS of the instrument (bull or bear).
Cryptos: Generally, that means you’re buying on retracements that fit the end of a structured move. The other option is using this in a clear up trending market where the pull backs are clearly being supported with buying.
FOREX: I use this in my FOREX swing trades for my stop placements. Keep in mind I primarily trade my trade system and use this indicator to ensure my stop placements I define based on VCs are within the ATR tolerance. I’ve found that ATR * 1.5 is the best for my trade system.
WTI: Helpful but I have different rules for when I trade WTI. I rely upon VCs and diagnal VCs much more when trading this.
Equities: Helpful but with the increase of volatility as well as uncertainty of Bias of the market-- this should be used as more of a guide than
Indicator Overview:
Value 1 (maroon): 3 Period ATR
Value 2 (green): 7 Period ATR
Value 3 (blue): 30 Period ATR
Value 4 (blue, bold): 90 Period ATR
Value 5 (green): 1 Period ATR
Value 6 – Prime Stop Loss Placement (red): Average of all above ATR multiplied by 1.5
Value 7 (red): Difference between Value 6 (prime stop loss) and current period move. This is an experimental value. Two ways to use this value. Use as a tighter stop loss placement. The other option is to use as a retrace target for purchase and using the Prime Stop Placement value as you’re stop loss.
All ATRs use the LOW price of the period. After testing both the low and close I’ve settled on the low to capture the most volatility you will typically experience.
Once again, this indicator should be used in conjunction with your proven trade system.
Also, by knowing what the values are within the indicator you could just eye ball what would be the best stop placement depending on the ATR or 1 or 2 ATRs you find most represent the volatility of what you are trading.
I will be expanding on this indicator by bringing in average measured moves as well as volume analysis and most likely with color changes and modifications.
Background:
While using and refining my trade system I've noticed that most moves happen in 3 periods. So we start there. The 7 period is good for a 24 hour market such as crypto (although weekend trading can be a hit or miss) and to some extent FOREX. The longer periods of 30 & 90 are to smooth out the data set. The final value of the 1 period is to bring a little more recency to the calculation.
Why multiply the average by 1.5? I've found in my own trading and system I built to be the best placement (in conjunction with VCs) to ensure you're stop isn't to close and is within the instrument you are trading volatility.
I'm looking at making this more intelligent as well as take into account volume and structured moves.
ATR 0.5 & 0.7 rangesIt good to look to ATR on intraday trading.
According to our team research only 4.8% of days security goes out of their ATR.
So we developed ATR indicator which shows Daily ATR ranges on smaller time frames.
When price crosses 70% of previous day ATR is good to look for signal to trade backward.
0.382 Fibonacci Line of Trailing 1-year Price RangeYou may try adding this Line to your daily charts. It represents the 0.382 Fibonacci level of the trailing 1-year Price Range.
If price is above this line, then it is in Bullish Territory and long entries can be looked for.
According to backtesting I've done, price being above the 0.382 Fibonacci and/or the 200d sma are the 2 best determinants of
qualifying an equity to be in Bullish Territory on the daily chart.
SD - Developing Central Pivot RangeThis script implements a developing version of Central Pivot Range.
Inputs:
Developing 'CPR' resolution - Either D (Daily), W (Weekly), M (Monthly) or 12M (Yearly). The default value is M.
sadig172 - Average True Range Multiplied by factorCalculates and shows a percentage of the Average True Range.
Default is 120% ATR.
JustinTrades Opening Range IndicatorJustinTrades Opening Range Indicator
This indicator automatically plots the 30-second opening range for the regular trading session and builds a clean, structured framework around it. It’s designed specifically for NQ and ES futures.
Once the first 30 seconds of the RTH session complete, the script locks in the Opening Range High (ORH) and Opening Range Low (ORL). Those two levels are then extended across the chart as solid lines that grow with each new bar. You can optionally shade the range between them if you want to highlight that zone.
Above and below the opening range, the indicator plots up to seven target levels in each direction. These levels are spaced automatically — 65 points apart for NQ and 15 points apart for ES — but you can also set your own spacing if you prefer. Each target is shown as a short tick mark on the right side of the chart, with an optional price label for quick reference.
The OR lines are marked on the right edge with simple tags labeled “ORH” and “ORL.” No clutter, no extra labels, just a clean view of the range and your targets.
Everything resets automatically at the start of each new session. It doesn’t matter what timeframe you trade on — the opening range is always calculated from the true first 30 seconds of the day.
Key features:
30-second Opening Range High and Low
Full-width, progressive OR lines that extend with price action
Optional shading between ORH and ORL
7 up / 7 down target ticks with configurable spacing and labels
Adjustable colors and tick lengths
Session-based reset every day
This is a clean, no-fluff indicator built for traders who use the opening range as a reference point throughout the day.
Candle Range Theory Range FinderThe video below will explain how to use the indicator.
In a nutshell, it'll shows range candles after 2 strong closes below a prior day's low or above a prior day's high for a possible range candle to trade a reversal off of.
Red arrows are to be treated as a range where you may want to start to look for longs.
Green arrows show where a range where you may want to look for shorts.
Again, the video will make it clearer.
ORB Range Only (Customizable Time Zone)ORB Range Only (Customizable Time Zone)
Overview
The ORB Range Only (Customizable Time Zone) is a Pine Script v6 indicator for TradingView that identifies and visualizes Opening Range Breakout (ORB) levels for intraday trading. It plots the high and low during a user-defined window (default: 15 minutes) as key reference levels and extends them through the session. A tick-snapping option aligns the start to the first bar in the window. A 1-minute fallback and optional breakout markers provide a clear, display-based workflow for studying breakout conditions.
How It Works
The indicator tracks the session window’s highest and lowest prices using TradingView’s ta.highest and ta.lowest. A snap-to-first-bar mechanism anchors the window’s start to the first bar at/after the intended timestamp to help on thin charts. For sparse data, a 1-minute fallback retrieves display-based highs/lows via request.security (no lookahead). While the window is open, a dynamic box updates in real time; once it closes, a final box is drawn and extended to 16:00 in the selected time zone, with dotted lines at the ORB high/low. Breakout triangles appear when price crosses these locked levels.
Key Features
• Customizable ORB window (duration and 12-hour start with AM/PM)
• Tick-aligned start (snap to first available bar)
• 1-minute fallback for sparse data
• Live “building” box and post-window final box with dotted levels
• Optional breakout markers (bullish/bearish triangles)
• Time zone presets (Chart, major regions, UTC, or Custom Olson ID) and color controls
What It Displays
A real-time ORB range box during the window and a locked range for the rest of the session, with optional breakout markers to study intraday momentum and reference levels across stocks, forex, futures, or crypto.
Originality
This Pine v6 indicator implementation uses TradingView’s built-in request.security, ta.highest, and ta.lowest functions.
Common Ways People Use It
• Day traders reviewing opening-range breakouts
• Scalpers focusing on early session volatility
• Technical analysts marking intraday reference levels
Configuration Notes
Set the ORB window (default: 15 minutes at 8:00 AM in the selected time zone, default preset: Chart), enable/disable tick-snapping and the 1-minute fallback, choose a time zone preset or a custom Olson ID, and adjust colors. Use breakout triangles to visualize when price crosses the ORB high/low.
Legal Disclaimer
This indicator is for informational and educational purposes only—not investment, financial, or trading advice. Past performance is not indicative of future results; trading involves risk of loss. Provided “as is” with no warranties. Consult a qualified professional before making decisions. By using it, you assume all risk and agree to this disclaimer.
Otekura Range Trade Algorithm [Tradebuddies]The Range Trade Algorithm calculates the levels for Monday.
On the chart you will see that the Monday levels will be marked as 1 0 -1.
The M High level calculates Monday's high close and plots it on the screen.
M Low calculates the low close of Monday and plots it on the screen.
The coloured lines on the screen are the points of the range levels formulated with fibonacci values.
The indicator has its own Value table. The prices of the levels are written.
Potential Range breakout targets tell prices at points matching the fibonacci values. These are Take profit or reversal points.
Buy and Sell indicators are determined by the range breakout.
Users can set an alarm on the indicator and receive direct notification with their targets when a new range occurs.
Fib values are multiplied by range values and create an average target according to the price situation. These values represent an area. Breakdown targets show that the target is targeted until the area.
BRT Micro Range Change: Signals** BRT Micro Range Change: Signals - Advanced Range-Based Trading Indicator **
** Overview **
The BRT Micro Range Change indicator represents a sophisticated approach to market analysis, utilizing proprietary range-based methodology combined with inverted signal logic. This unique indicator transforms traditional price action into structured range blocks, providing traders with counter-trend signal opportunities based on micro-range movements.
** Key Features & Unique Innovations **
** Proprietary Range Construction Algorithm **
• Custom range block generation using advanced price smoothing techniques
• Dynamic range sizing with percentage-based or fixed value options
• Multi-timeframe range analysis capability
• Intelligent block trend detection and reversal identification
** Inverted Signal Logic (Core Innovation) **
• ** Unique Counter-Strategy Approach **: When underlying range analysis suggests bearish momentum, the indicator generates LONG signals, and vice versa
• Advanced signal filtering prevents repetitive entries of the same type
• Position-aware logic tracks theoretical strategy state for optimal signal timing
** Comprehensive Risk Management **
• Dual calculation modes for Take Profit and Stop Loss (Fixed percentage or ATR-based)
• Real-time TP/SL level visualization
• Configurable ATR multipliers for volatility-adjusted exits
• Built-in position tracking and exit signal generation
** Advanced Technical Components **
• Integrated Simple Moving Average with multiple source options (Close, OHLC4, HL2, etc.)
• Custom ATR calculation optimized for range-based analysis
• Smart alert system with detailed entry/exit information
• Visual signal overlay with customizable display options
** Configuration Options **
• Range Type: Fixed value or percentage-based sizing
• Range Timeframe: Multi-timeframe analysis support
• SMA Integration: 14 configurable sources with custom coloring
• Alert Management: Comprehensive notification system
• Signal Display: Toggle visual markers and labels
** Technical Innovation **
This indicator's ** core uniqueness ** lies in its inverted signal methodology combined with advanced range-based market structure analysis. Unlike conventional indicators that follow trend direction, this system identifies potential reversal opportunities by analyzing when traditional range-based strategies would enter positions, then providing opposite directional signals. The proprietary range construction algorithm ensures high-quality block formation while the anti-repetition logic prevents signal spam.
** Usage Recommendations **
• Ideal for counter-trend trading strategies
• Effective in ranging and consolidating markets
• Best used in conjunction with additional confirmation indicators
• Suitable for multiple asset classes and timeframes
** Usage Recommendations **
• Ideal for counter-trend trading strategies
• Effective in ranging and consolidating markets
• Best used in conjunction with additional confirmation indicators
• Suitable for multiple asset classes and timeframes
** Historical Backtesting Results **
** Comprehensive Historical Data Verification **
• The indicator has been ** thoroughly tested ** on historical data using default settings
• Testing was conducted across a ** wide spectrum of crypto assets ** to ensure result reliability
• ** Optimal performance ** is demonstrated on the ** 5-minute timeframe **
• ** Entry Methodology **: utilization of limit orders at the lower boundary price of blocks for long positions and upper boundary price of blocks for short positions
• ** Trading Discipline **: strict adherence to the principle of "no repeated entries in the same direction"
• ** Order Management **: one order per trade with activation exclusively upon range block color change
** Technical Support **
For technical support inquiries, questions, or feedback, please feel free to leave comments below or send direct messages to the author. We are committed to providing assistance and continuously improving the indicator based on user experience and feedback.
** Important Risk Disclosure **
** DISCLAIMER: ** ** This indicator is provided for informational and educational purposes only. Trading financial instruments involves substantial risk of loss and may not be suitable for all investors. Past performance does not guarantee future results. Users should thoroughly test any trading strategy in a demo environment before risking real capital. The indicator's signals should not be considered as financial advice or recommendations to buy or sell any financial instrument. Users are solely responsible for their trading decisions and should consult with qualified financial advisors before making investment decisions. The authors and publishers assume no liability for any losses incurred through the use of this indicator. **
** Code Authenticity **
This indicator contains ** 100% original code ** developed specifically for advanced range-based analysis. All algorithms, mathematical calculations, and signal generation logic have been created from scratch, ensuring unique functionality not available in standard indicators.
Trend dealing rangeHi all!
This indicator will help you find the current dealing range according to the trend. If the trend is bullish the indicator will look for a range between the latest low pivot to the latest high pivot. Vice versa in a bearish trend. The code uses my new library 'FibonacciRetracement' () that has the same code as my other indicator 'Fibonacci retracement' ().
It plots 5 lines from the low to the high and labels them 0 %, 25 %, 50 %, 75 % and 100 %. A trendline can be drawn between the two pivots (dashed and gray by default). Firstly you can define the pivot lengths used, this setting is in the 'Market structure' section but it also applies to the dealing range (it defaults to 5 (left) and 2 (right)). You can show prices if you want to (shown in parantheses, off by default). You can change the default labels position (from left) and the font size (12 by default and higher up it's 7 for market structure text). Lastly you can change the alert frequency (defaults to once per bar close) and the price that has to enter a zone for alert to be sent. 'Close' means that the closing price (or current price if you change the alert frequency to all or once per bar) has to be inside the zone and 'Wick' means that the entire candle needs to be inside the zone.
It's very useful for traders to find the current dealing range and this indicator will help you to do so.
So, this indicator will give you the dealing range and basic market structure through break of structures and change of characters.
If you have any input or suggestions on future features or bugs, don't hesitate to let me know!
Best of trading luck!
Opening Range BreakoutThis indicator is designed for Opening Range Breakout (ORB) traders who want automatic calculation of breakout levels and multiple price targets.
It is optimised for NSE intraday trading, capturing the first 15-minute range from 09:15 to 09:30 and plotting key breakout targets for both long and short trades.
✨ Features:
Automatic daily reset — fresh levels are calculated every trading day.
Opening Range High & Low plotted immediately after 09:30.
Two profit targets for both Buy & Sell breakouts based on the opening range size:
T1 = 100% of range added/subtracted from OR high/low.
T2 = 200% of range added/subtracted from OR high/low.
Clear breakout signals (BUY / SELL labels) when price crosses the OR High or Low.
Custom alerts for both buy and sell triggers.
Designed to work on any intraday timeframe (1min, 3min, 5min, etc.).
📊 How it works:
From 09:15 to 09:30, the script records the highest and lowest prices.
At 09:30, the range is locked in and breakout targets are calculated automatically.
Buy and Sell signals are generated when price breaks above the OR High or below the OR Low.
Targets and range lines automatically reset for the next day.
⚠️ Notes:
This script is tuned for NSE market timings but can be adapted for other markets by changing the session input.
Works best on intraday charts for active traders.
This is not financial advice — always backtest before trading live.
IB with Range PercentageThis Pine Script indicator for TradingView combines several powerful technical analysis tools to give traders a comprehensive view of market action:
Inside Bar Detection: Identifies the classic inside bar candlestick pattern.
Moving Averages: Provides multiple moving averages to help determine trend and potential support/resistance levels.
Information Table: Displays key market data in a concise table format.
1. Inside Bar Detection and Range
The indicator marks inside bars on the chart. An inside bar is a candlestick where its entire range (high and low) falls within the range of the preceding candlestick (often called the "mother bar"). This pattern often signifies market consolidation or indecision.
Customizable Marking: Users can choose the shape and color used to mark the inside bars, such as triangles, squares, or circles.
Range Percentage: A label shows the range of the inside bar as a percentage of the previous bar's low, providing a quantitative measure of its size.
Time Restriction: A setting allows displaying inside bars only for a specified number of past days, focusing analysis on recent price action.
Customizable Label Size: Users can choose the size of the range percentage label for optimal visibility.
2. Moving Averages for Trend Analysis
The indicator can plot up to four moving averages (MAs) on the chart. Moving averages smooth out price data to help identify trends and potential support and resistance levels.
User-Selectable MA Type: For each MA, traders can choose between Simple Moving Average (SMA) or Exponential Moving Average (EMA).
Customizable Length: Users can specify the length (number of periods) for each MA, such as 20, 50, 100, or 200.
Customizable Color: Each MA's line color can be chosen to suit personal preferences.
Trend Identification: When the price is above an MA, it suggests an uptrend, while prices below suggest a downtrend. The slope of the MA also indicates trend momentum.
3. Information Table for Key Data
A customizable information table is displayed on the chart, providing a quick overview of important market data.
Average Daily Range (ADR) Percentage: Shows the average daily range of the asset as a percentage, reflecting its historical volatility.
Distance from EMAs: Displays how far the current price is from the 10, 20, and 50 period Exponential Moving Averages. A positive percentage indicates the price is above the MA, while a negative percentage means it's below.
Customizable Table Elements: Users can choose the table's background color, text color, and text size for optimal readability.
How to Use This Indicator:
This indicator can be a valuable tool for traders using technical analysis:
Inside Bar Breakouts: Inside bars often precede breakouts. Traders can use the inside bar markings and range percentage to identify potential breakout opportunities.
Confirmation of Trends: Moving averages help confirm the direction of the trend, enabling traders to align their inside bar strategies with the prevailing market direction.
Support and Resistance: Moving averages can act as dynamic support and resistance levels. Traders can look for inside bars forming near these levels as potential entry or exit points.
Volatility and Range Analysis: The ADR percentage helps assess the normal daily range of an asset, which can be useful for setting realistic price targets and managing risk.
Risk Management: The distance from EMAs can alert traders to potential overextended moves, providing information for setting stop-loss or take-profit levels.
By combining these elements, this indicator provides a layered approach to market analysis, allowing traders to identify potential trading opportunities and manage risk effectively based on both candlestick patterns and trend-following indicators. Remember that no indicator guarantees success, and it's essential to use this tool in conjunction with other analysis techniques and proper risk management practices.
Multi-Timeframe ATR, Range Size, and Ticks DisplayThis PineScript indicator for TradingView displays a multi-timeframe (MTF) table showing ATR values, calculated range sizes (based on a user-defined percentage of ATR), and the number of ticks (R) in each range size for timeframes: 15m, 1h, 4h, 8h, and 1D. It also shows the minimum price change (mintick) for the symbol.
Key features:
ATR Calculation: Uses the standard ATR with a configurable period (default 14) fetched via request.security for each timeframe.
Range Size: Computes range as ATR * (percentage / 100), where percentage is user-input (default 10%).
Ticks (R): Divides range size by syminfo.mintick to get the number of ticks, useful for setting range bar sizes (e.g., in NinjaTrader or TradingView range charts).
Table Display: A customizable table at the top-right corner, updated only on the last bar for performance. Includes an option to show/hide the table.
Compatibility: Works on time-based charts; values remain consistent even if switching chart types, as ATR is always pulled from specified timeframes.
To use: Add to TradingView, adjust inputs, and apply to a time-based chart (e.g., 1m or 5m) for scalping BTC/USDT as per your strategy. The script ensures calculations are timeframe-independent, so switching to range/renko/etc. won't alter the displayed MTF data.