RSI - Dynamic Overbought/Oversold RangeDefault overbought/oversold levels of RSI does not hold good for instruments which are trending well. It happens often that instruments keep trading in single half of the range for prolonged time without even touching the other half. This also came up often in tradingview pine chat discussions where I participate regularly.
Hence, thought of creating this script to help other scriptors in finding different methods to derive dynamic high/low range of RSI. This can also be adopted for other range bound oscillators - though not inlcuded in this script.
⬜ Method
▶ Derive multitimeframe RSI. Parameters - Resolution, Source and Length are pretty straight forward. Repaint when unchecked uses previous bar value.
▶ Dynamic range detection follows below steps.
Get highest and lowest of the oscillator source for Range Length period.
Use Detection method further to refine the highest and lowest range. If detection method is "highlow", then it looks for lowest value for high range and highest value for low range. If not, uses moving average.
◽Note: Detection range length is used only for finding highest and lowest of Oscillator value ranges. Further detection range method of highlow and other moving average types use Oscillator length.
חפש סקריפטים עבור "range"
ICT Time RangesICT Time Ranges is a concept around the fact that price likes to show volatility spikes in certain times of the day.
Although there are many other scripts such as that revolve around this concept, the difference between this one and some of the others out there is the fact that this code specifically focuses on the ranges like New York, London, Asia, and ICTs concept behind having a "True Day Range". Also, prior scripts draw horizontal lines to delineate the High and Low of the Day. Although this is useful in some cases, I find it to clutter up the chart too much for my liking, so this script negates any of that and simply prints a box in the parameters given within the settings pop-up. This also allows you the fact of having a shape and letter(s) marker for when a new day starts at 0:00.
With this script, you can enable / disable times of the day for:
- London Session
- New York Session
- London Close Session
- Asia Session
- "IPDA" True Day
You can also change the times that these sessions will update to, along with the opacity and color that they print to mark out these times / ranges. The same can be said with the "Day of Week" markers, which can be color coded and show different shapes / formats to your liking.
I find that putting the Session boxes opacity to 7-8% and the day of week markers to 20% is best as this makes them visible enough to see while also keeping it easy on your eyes to analyze your charts.
Overall, this script was based around specific concepts I liked from other individuals' scripts such as @BryceWH and @AvniPiro , but that are tweaked to what I personally find as most beneficial. To see others scripts like this one, you can search for "ICT Killzones" in the public script library!
MTFX Asia SessionThis free tool automatically maps the Asia session range in real time, drawing the box, midline, and extended high/low levels.
If price sweeps the Asia high/low and then returns back inside the range, the midline often serves as the first target, with the opposite boundary as the secondary target.
If the range is broken and price holds outside, the session lines will provide clear levels for retest and continuation of a break of the range.
These dynamics make the Asia range perfect for spotting liquidity sweeps, containment, and breakout opportunities.
Default timezone is EST (America/New_York), with session hours set to 17:00–03:00 EST. Customise inputs to fit your definition of Asia hours.
The session box appears once the Asia session ends, locking in the range. Extended lines help track how London/New York trades against Asia’s containment. Alerts are included for price touching Asia high/low.
Source code is protected to preserve the framework, but the indicator is fully functional and customisable.
This is my first post here on TradingView, and I’m excited to share tools I’ve built and use myself. My hope is to continue publishing frameworks and insights in the future, so follow along if you’d like to see how these ideas evolve.
I hope these tools help you trade with more clarity and discipline — and I welcome your feedback as I continue to refine them.
Mummytrades_FX
SJ Fx Session RangeSJ Fx Session Range Indicator
A Professional Forex Session Tracking Tool with Opening Range Analysis
Overview
The SJ Fx Session Range indicator is a comprehensive tool designed to help forex traders visualize major trading sessions (Asia, Europe+London, and New York) along with their first 15-minute opening ranges. Built with Pine Script v5, this indicator provides clear session boundaries, high/low ranges, and customizable opening range analysis to enhance your trading decisions.
Key Features
1. Trading Session Boxes
- Three major forex sessions: Asia, Europe+London, and New York
- Color-coded session boxes with transparent backgrounds for easy visualization
- Automatic session high/low tracking
- Session labels displayed inside boxes for quick identification
- Displays up to 50 historical sessions for pattern analysis
2. Opening Range Analysis
- Tracks first 15-minute opening range for Europe, London, and NY sessions
- Plots high, low, and mid-range levels
- Customizable line colors for each session's opening range
- Background highlights during the first 15 minutes of each session
- Helps identify potential breakout or reversal zones
3. Daylight Saving Time Support
- Built-in DST toggle for easy seasonal adjustment
- Automatically adjusts all session timings by 1 hour when enabled
- Clear tooltip instructions for when to enable/disable DST
- Default timings configured for IST timezone (Asia/Kolkata)
4. User-Friendly Design
- Clean input interface organized by session categories
- Fixed optimal settings for boxes and lines (50-day history)
- All session times are easily customizable with helpful tooltips
- Warning tooltips to prevent accidental timing changes
Default Session Times (when DST is disabled)
- Asia Session: 04:00 - 12:30 IST
- Europe + London Session: 12:30 - 20:00 IST
- New York Session: 20:00 - 02:30 IST
How to Use
1. Add to Chart: Apply the indicator to any forex pair chart
2. Adjust DST: Enable the "Start Daylight Saving Time Change" checkbox on the second Sunday in March; disable on the first Sunday in November
3. Customize Sessions: Toggle individual sessions on/off based on your trading preference
4. Opening Range Colors: Customize the opening range line colors for better visibility
5. Session Times: Default times are optimized for IST; modify only if trading from a different timezone
Technical Specifications
- Version: Pine Script v5
- Overlay: Yes (draws directly on price chart)
- Maximum Objects: 500 boxes, 500 lines
- History: 50 days of session data
- Timezone: Asia/Kolkata (IST) - customizable in code
Use Cases
- Identify high-liquidity trading periods
- Track session volatility patterns
- Monitor opening range breakouts/breakdowns
- Analyze session-specific price action
- Plan entries around major session opens
- Avoid trading during low-liquidity periods
Performance
Optimized for efficient rendering with:
- Fixed 50-day history limit for optimal performance
- Automatic cleanup of old session boxes and lines
- Lightweight code structure for fast chart loading
Customization Options
Available Inputs:
- Enable/disable individual sessions
- Adjust session timings (with safety tooltips)
- Toggle DST on/off
- Show/hide opening range analysis
- Customize opening range line colors for each session
Fixed for Optimal Performance:
- Session box colors (Asia: Aqua, Europe: Green, NY: Red)
- 50-day historical display
- Line width and style
- Mid-range line always displayed
Educational Value
This indicator helps traders:
- Understand forex market structure and session overlaps
- Recognize high-probability trading times
- Develop session-based trading strategies
- Improve timing of trade entries and exits
Open Source License
This script is published under Mozilla Public License 2.0, allowing you to:
- Use freely for personal trading
- Modify and adapt to your needs
- Learn from the code structure
- Share improvements with the community
Credits
Developed by Shantanu Joshi
- Designed for forex traders focusing on session-based strategies
- Built with clean, well-documented Pine Script v5 code
- Regular updates and improvements based on user feedback
Support & Feedback
If you find this indicator useful:
- Give it a thumbs up
- Share your trading results in the comments
- Suggest improvements or new features
- Report any issues for quick resolution
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always conduct your own research and risk management before making trading decisions. Past performance does not guarantee future results.
Compatible with: CFDs of forex pairs, commodities, indices, and crypto.
Best used on: 5-minutes
Recommended chart type: Candlestick charts
ATR Anchored Range %b by TradeSeekersAll time highs got you spooked to enter with no levels in sight?
Stuck in a multi-week range and wondering where the heck the pivots are!?
Wondering if you're longing the top or shorting the potential bottom and about to get smoked, sending you back to burger flipping?!
Fret not trading friends!
I've been crafting the ultimate map for scalpers, slingers, swingers, swindlers, swashbucklers -and traders too.
Why should I care about this, what's an ATR!?
Nearly any trader that's entered the markets has heard of ATR, perhaps even taken a stab at trying to calculate the flux capacity of a weekly ATR on a lower timeframe. Continually calculating things manually sucks!
Ok, so you haven't heard of ATR? It's the average true range... what's the true range!? It's simply the low subtracted from the high (high - low) of any given candle.
How is ATR useful?
The theory is simple, if the ATRs on the daily timeframe for a stock are 5, then traders may have a reasonable expectation that any day in the near future the stock will mostly move +/- 5 pts. This +/- 5 can be used as a possible daily high and low for traders to use.
But ATR changes as time passes, with every billionaire X post, viral cat meme, fed announcement or government shutdown the market makes it's move. This means without this tool, traders need to run the standard lame (sorry) ATR indicator and then hand draw a bunch of important levels (barf).
I'm convinced and ready to join the ATR army, what do I do?
Glad to have you aboard sailor, slap this indicator on your layout - it'll initially display a bottom panel, say nice things to it.
Usage
The lower panel provides a %b plot representative of the current price relative to the timeframe and period ATR. (Defaults to 1D timeframe and 20 - 20 trading days in a month yo)
This %b plot is a map for price against the key ATR based levels and resets each time the timeframe change occurs.
Keep reading! (maybe grab a snack, you're doing great)
If you want to see what the indicator sees, how it maths the math, open the settings and check the "overlay" option... it's amazing, I know.
Main base of operations
This will be the gray area between first red and green lines, imagine this is a future candle for the timeframe anchored. The red would represent the candle high (red means stop/overbought), and the green would represent the candle low (green means go/oversold).
Regardless of the timeframe anchored, this area always represents the area the ATR indicates will be the building area of the current candle being formed. Traders should expect most of the trading to occur within this area.
The mid line
Don't diddle in the middle, this by default is the open price and it's the ultimate bias filter for bull or bear riders.
Extension areas
Beyond the gray area is the extension zone, this provides a whole ATR from the mid line to the extension.
Assembling a trade plan
There are just a couple of key concepts to master in order to become the ultimate ATR samurai warrior, capable of slicing through even the messiest liquidity.
Above the midline and holding, but still within the gray area? Could be a great long entry with targets to upper levels. The same holds true for below open and holding while still being within the lower gray area.
As price makes it's ascension or decline towards the ends of the initial gray ATR range, consider managing trades here. If it's suspected, due to a strong hold of the midline, that the range low or high is the midline, then continue to manage trades towards the extension zones.
Timeframes and periods oh my
The tooltips already provide some hints, but not everyone goes around clicking and hovering everything in sight (maybe I'm the only one that does that?).
There's a thoughtful approach to the default values, I like to consider the big market participants with my day trades, swings trades and beyond.
By default I've chosen the daily timeframe and a period of 20, one for each trading day of the calendar month.
It's no large leap to consider alternatives, what about 1W timeframe and a period of 4 (1 month) or 52 (1 year)?
The possibilities are nearly infinite, comment on any particular favorite combos.
An Italian Special Bonus!!!
...sorry, it's not pizza....
First, did you know the famous Italian Fibonacci's real name was actually Leonardo? I'm not sure how I feel about that. Fun fact, my ancestors are Italian.
Alright, you may have guessed that the special bonus is the mythical Fibonacci inspired "Golden Pocket", maybe it's a foreshadowing of your pockets - one can only hope.
Use this feature to show the commonly referenced Fibonacci levels within each major ATR range. I've seen some totally mathematical epic-ness with these hence the addition.
Once key ATR levels have been hit look for reversals back to golden pockets (you tricksy hobbits) for potential entry back towards the prior hit ATR level.
The %b turns gold if you have the feature enabled and of course the overlay displays them also, how fun!
Final thoughts
I hope you have as much fun using this indicator as I do, it has brought much joy to my trading experience. If you don't have fun with it, well I hope you had fun reading about it at least.
100% human crafted and darn proud of it
- SyntaxGeek
Key levels + Session Range (Sweep-Aware Levels)Overview
This indicator provides a single, clean view of two core intraday contexts that day traders rely on:
Daily Liquidity Levels: prior day high/low (PDH/PDL), prior day open/close, weekly highs/lows, and other commonly referenced reference points.
Session Ranges: clearly plotted high/low for each active session (e.g., Asia, London, New York), tracked live as the session evolves.
By unifying these two information layers, traders can immediately see when price is sweeping a session’s extremes into known daily liquidity—a frequent precursor to reversals or continuation moves. This saves chart space, reduces cognitive overload, and turns two separate checks into one coherent read.
What it does
Plots daily liquidity references: previous day high/low, previous day open/close, and optional higher-timeframe levels (open, high, mid and low 4H ,Day, Week, month, year and quarterly).
Tracks session high/low live: as each session unfolds, the indicator updates that session’s running High and Low, then locks them at session end.
Maps interaction between the two layers: you can instantly spot session sweeps that tag PDH/PDL (or weekly extremes), highlight potential liquidity grabs, and frame risk with objective boundaries.
Keeps the chart clean: just essential lines/zones and concise labels—no extra clutter.
Why it’s useful & original
Single-purpose integration: Rather than a generic mashup, this is a purpose-built fusion where session dynamics are read in the context of daily liquidity. That relationship is the core edge—seeing when a session sweep aligns with known liquidity pools.
Workflow efficiency: One overlay replaces two indicators, simplifying visibility and reducing conflicting visuals.
Decision clarity: The combination highlights setups many intraday traders already watch manually (e.g., NY session high sweep into PDH), but makes them obvious in real time.
How it works (plain-English logic)
Daily Liquidity Engine
At the start of each day, the indicator records PDH, PDL, prior open/close and (optionally) prior week high/low.
These levels are plotted and extended across the session as static references.
Session Range Tracker
For each defined session (e.g., Asia/London/New York), the script initializes session High/Low at session open.
Throughout the session, it updates those extremes in real time and locks them on session close.
Interaction Layer
When price reaches or sweeps a session High/Low near a daily level (e.g., within your chosen tolerance), the confluence becomes visually obvious.
Traders can then decide whether it’s a likely liquidity grab (fade/reversal idea) or a continuation through the pool (breakout idea), per their plan.
How to use it
Identify session context: Start by noting where price is trading relative to the current session’s High/Low.
Locate nearby daily liquidity: Check distance to PDH/PDL, prior open/close, and weekly extremes.
Look for confluence:
Sweep-and-fade idea: Session High swept into PDH (or Session Low into PDL) with failure to hold → potential reversal context.
Break-and-go idea: Strong close through PDH/PDL following a session extreme break → potential continuation context.
Risk framing: Session High/Low and PDH/PDL provide objective anchors for stops and targets. Adapt to your own risk model (e.g., use ATR or structure-based stops).
Keep it clean: Use this as your primary overlay to avoid clutter; add confirmations (volume, structure) only if they genuinely help your process.
Settings (typical options)
Sessions: Choose which sessions to display (e.g., Asia/London/NY) and their time zones/hours.
Daily Levels: Toggle PDH/PDL, prior open/close, prior week High/Low, and other references you rely on.
Visuals: Colors, line styles, label visibility, and optional band shading for quick recognition.
Confluence Tolerance (optional): Define how near a session extreme must be to a daily level to consider it a “liquidity touch/sweep” in your visuals.
Alerts (optional): First touch/sweep of session High/Low, break/close beyond PDH/PDL, or custom distance conditions.
Chart & Publishing Notes (for reviewers and users)
Clean chart by design: Only essential lines/labels for session extremes and daily references.
Plain-English description: Explains what, why, and how so non-coders can use it confidently.
Original integration: The value here is the purposeful interaction—seeing session sweeps in context of daily liquidity in one place—rather than a cosmetic mashup.
Limitations & good practice
This tool is contextual, not predictive. It highlights structure and liquidity landmarks; trade decisions are yours.
Session definitions vary by asset/exchange; ensure your session times match your market.
Past behavior at these levels does not guarantee future outcomes; always use proper risk management.
Disclaimer
This indicator is for educational and informational purposes only and is not financial advice. Trading involves risk; always test and evaluate with your own methods and risk parameters.
Dynamic Volume Clusters with Retest Signals (Zeiierman)█ Overview
The Dynamic Volume Clusters with Retest Signals indicator is designed to detect key Volume Clusters and provide Retest Signals. This tool is specifically engineered for traders looking to capitalize on volume-based trends, reversals, and key price retest points.
The indicator seamlessly combines volume analysis, dynamic cluster calculations, and retest signal logic to present a comprehensive trading framework. It adapts to market conditions, identifying clusters of volume activity and signaling when the price retests critical zones.
█ How It Works
⚪ Volume Cluster Detection
The indicator dynamically calculates volume clusters by analyzing the highest and lowest price points within a specified lookback period.
Cluster Logic:
Bright Lines (Strong Red/Green):
These indicate that the price has frequently revisited these levels, creating a dense cluster.
Such areas serve as support or resistance, where significant historical trading has occurred, often acting as barriers to price movement.
Traders should consider these levels as potential reversal zones or consolidation points.
Faded or Darker Lines:
These lines indicate areas where the price has less historical activity, suggesting weaker clustering.
These zones have less market memory and are more likely to break, supporting trend continuation and rapid price movement.
⚪ Candle Color Logic (Market Memory)
Blue Candles (High Cluster Density):
Candles turn blue when the price has revisited a particular area many times.
This signals a highly clustered zone, likely to act as a barrier, creating consolidation or range phases.
These areas indicate strong market memory, potentially rejecting price attempts to break through.
Green or Red Candles (Low Cluster Density):
Once the price breaks out of these dense clusters, the candles turn green (bullish) or red (bearish).
This suggests the price has moved into a less clustered territory, where the path forward is clearer and trends are likely to extend without immediate resistance.
⚪ Retest Signal Logic
The indicator identifies critical retest points where the price crosses a cluster boundary and then reverses. These points are essential for traders looking to catch continuation or reversal setups.
⚪ Dynamic Price Clustering
The indicator dynamically adapts the clustering logic based on price movement and volume shifts.
Uses a dynamic moving average (VPMA) to maintain adaptive cluster levels.
Integrates a Kalman Filter for smoothing, reducing noise, and improving trend clarity.
Automatically updates as new data is received, keeping the clusters relevant in real-time.
█ How to Use
⚪ Trend Following & Reversal Detection
Use Retest signals to identify potential trend continuation or reversal points.
⚪ Trading Volume Clusters and Market Memory
Identify Key Zones:
Focus on bright, saturated cluster lines (strong red or green) as they indicate high market memory, where price has spent significant time in the past.
These zones are likely to exhibit a more choppy market. Apply range or mean reversion strategies.
Spot Potential Breakouts:
Faded or darker cluster lines indicate areas of low market memory, where the price has moved quickly and spent less time.
Use these areas to identify possible trend setups, as they represent lower resistance to price movement.
⚪ Interpreting Candle Colors for Market Phases
Blue Candles (High Cluster Density):
When candles turn blue, it signals that the price has revisited this area multiple times, creating a dense cluster.
These zones often trap price movement, leading to consolidations or range phases.
Use these areas as caution zones, where price can slow down or reverse.
Green or Red Candles (Low Cluster Density):
Once the price breaks out of these clustered zones, the candles turn green (bullish) or red (bearish), indicating lower market memory.
This signals a trend initiation with less immediate resistance, ideal for momentum and breakout trades.
Use these signals to identify emerging trends and ride the momentum.
█ Settings
Range Lookback Period: Sets the number of bars for calculating the range.
Zone Width (% of Range): Determines how wide the volume clusters are relative to the calculated range.
Volume Line Colors: Customize the appearance of bullish and bearish lines.
Retest Signals: Toggle the appearance of Triangle Up/Down retest markers.
Minimum Bars for Retest: Define the minimum number of bars required before a retest is valid.
Maximum Bars for Retest: Set the maximum number of bars within which a retest can occur.
Price Cluster Period: Adjusts the sensitivity of the dynamic clustering logic.
Cluster Confirmation: Controls how tightly the clusters respond to price action.
Price Cluster Start/Peak: Sets the minimum and maximum touches required to fully form a cluster.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
PumpC Opening Range Breakout (ORB) 5min Range📄 PumpC ORB 5-Minute Opening Range Breakout Indicator
✨ Overview
The PumpC ORB 5-Minute Opening Range Breakout indicator captures early session price action by tracking the high, low, and open of a defined 5-minute window at market open (customized for Futures or Stocks).
It plots breakout levels, extension targets, average range calculations, volume tracking, and provides visual and table-based data summaries.
This indicator is designed for traders seeking a complete, clean visualization of Opening Range Breakouts (ORB) with flexible customization.
⚙️ Main Features
Opening Range Box (ORB Box) Draws a box around the high and low of the first 5-minute session (8:30–8:35 ET for Futures, 9:30–9:35 ET for Stocks). Box extends from the session open to the session close (4:00 PM ET). Option to enable/disable historical boxes. Box color and opacity are customizable. Core ORB Levels Open Level: Plots the open price of the 5-minute ORB window. ORB Levels: Plots breakout levels at multiples: +0.5x the range +1.5x the range (customizable factor) Each level has independent color settings and visibility toggles. Option to show or hide historic extension levels. Table Display Compact table in the top-right corner showing: ORB ATR (average range) ORB ATR in ticks Today's ORB range ORB Volume ATR (average volume during ORB) Today's ORB Volume Volume is formatted automatically into "K" (thousands) or "M" (millions) for readability. Background Highlights After the ORB window closes: Blue highlight if today's ORB range is greater than the 10-day ATR average. Orange highlight if today's ORB range is smaller than the 10-day ATR average. Helps quickly assess relative strength or weakness compared to historical behavior. Alerts Breakout Confirmations: Fires when price closes above ORB High or below ORB Low. Fallout Traps: Alerts when price wick crosses ORB High/Low but closes back inside the range. Alerts use clean titles and simple messages for easy identification.
🔧 Inputs and Customization
Mode Toggle: Choose between Futures (8:30 ET open) or Stocks (9:30 ET open). Show/Hide Labels: Control label visibility for ORB and extension levels. Line Width Control: Customize thickness for ORB lines and extension levels. ORB Level Level Visibility: Independently enable or disable each extension line. Table Appearance: Customize table background color, font color, and padding. ORB Box Settings: Customize box color and control whether historical boxes are drawn.
📚 How to Use
Select Mode: Choose Futures or Stocks depending on your instrument. Observe the Opening Range: Focus on the ORB High and ORB Low during the first 5 minutes after the open. Monitor Breakouts: Breakout alerts will fire when price closes outside the ORB range, signaling potential continuation. Watch for Fallout Traps: Fallout alerts signal when price briefly wicks above/below but closes back inside the ORB range. Use Table Metrics: Instantly compare today's ORB range and volume versus historical averages to assess session strength or weakness.
🛡️ Notes
Best used on the 1-minute or 5-minute chart for intraday trading. Ensure your TradingView chart time zone is set to New York for correct functioning. Alerts must be manually configured after adding the indicator to your chart.
Trading Sessions [BigBeluga]
This indicator brings Smart Money Concept (ICT) session logic to life by plotting key global trading sessions with volume and delta analytics. It not only highlights session ranges but also tracks their midpoints — which often act as intraday support/resistance levels.
🔵 KEY FEATURES
Visual session boxes: Plots boxes for Tokyo, London, New York, and Sydney sessions based on user-defined UTC+0 time ranges.
Volume & delta metrics: Displays total volume and delta volume (buy–sell difference) within each session.
Mid, High & Low Range Extension: Once a session ends, the high, low, and midpoint levels automatically extend — ideal for detecting SR zones.
Session labels: Each box includes a label with session name, time, volume, and delta for quick reference.
Custom session control: Enable or disable sessions individually and configure start/end times.
Clean aesthetics: Transparent shaded boxes with subtle borders make it easy to overlay without clutter.
Sessions Dashboard: Shows the time range of each session and tells you whether the session is currently active.
🔵 USAGE
Enable the sessions you want to monitor (e.g., New York or Tokyo) from the settings.
Use session volume and delta values to gauge the strength and direction of institutional activity.
Watch for price interaction with the extended range — it often acts as dynamic support/resistance after the session ends.
Overlay it with liquidity tools or breaker blocks for intraday strategy alignment.
🔵 EXAMPLES
Extended Future Range acted as resistance/support.
Delta value helped confirm bullish pressure during New York open.
Multiple sessions helped identify kill zone overlaps and high-volume turns.
Trading Sessions is more than just a visual scheduler — it's a precision tool for traders who align with session-based volume dynamics and ICT methodology. Use it to define high-probability zones, confirm volume shifts, and read deeper into the true intent behind market structure.
StatPivot- Dynamic Range Analyzer - indicator [PresentTrading]Hello everyone! In the following few open scripts, I would like to share various statistical tools that benefit trading. For this time, it is a powerful indicator called StatPivot- Dynamic Range Analyzer that brings a whole new dimension to your technical analysis toolkit.
This tool goes beyond traditional pivot point analysis by providing comprehensive statistical insights about price movements, helping you identify high-probability trading opportunities based on historical data patterns rather than subjective interpretations. Whether you're a day trader, swing trader, or position trader, StatPivot's real-time percentile rankings give you a statistical edge in understanding exactly where current price action stands within historical contexts.
Welcome to share your opinions! Looking forward to sharing the next tool soon!
█ Introduction and How it is Different
StatPivot is an advanced technical analysis tool that revolutionizes retracement analysis. Unlike traditional pivot indicators that only show static support/resistance levels, StatPivot delivers dynamic statistical insights based on historical pivot patterns.
Its key innovation is real-time percentile calculation - while conventional tools require new pivot formations before updating (often too late for trading decisions), StatPivot continuously analyzes where current price stands within historical retracement distributions.
Furthermore, StatPivot provides comprehensive statistical metrics including mean, median, standard deviation, and percentile distributions of price movements, giving traders a probabilistic edge by revealing which price levels represent statistically significant zones for potential reversals or continuations. By transforming raw price data into statistical insights, StatPivot helps traders move beyond subjective price analysis to evidence-based decision making.
█ Strategy, How it Works: Detailed Explanation
🔶 Pivot Point Detection and Analysis
The core of StatPivot's functionality begins with identifying significant pivot points in the price structure. Using the parameters left and right, the indicator locates pivot highs and lows by examining a specified number of bars to the left and right of each potential pivot point:
Copyp_low = ta.pivotlow(low, left, right)
p_high = ta.pivothigh(high, left, right)
For a point to qualify as a pivot low, it must have left higher lows to its left and right higher lows to its right. Similarly, a pivot high must have left lower highs to its left and right lower highs to its right. This approach ensures that only significant turning points are recognized.
🔶 Percentage Change Calculation
Once pivot points are identified, StatPivot calculates the percentage changes between consecutive pivot points:
For drops (when a pivot low is lower than the previous pivot low):
CopydropPercent = (previous_pivot_low - current_pivot_low) / previous_pivot_low * 100
For rises (when a pivot high is higher than the previous pivot high):
CopyrisePercent = (current_pivot_high - previous_pivot_high) / previous_pivot_high * 100
These calculations quantify the magnitude of each market swing, allowing for statistical analysis of historical price movements.
🔶 Statistical Distribution Analysis
StatPivot computes comprehensive statistics on the historical distribution of drops and rises:
Average (Mean): The arithmetic mean of all recorded percentage changes
CopyavgDrop = array.avg(dropValues)
Median: The middle value when all percentage changes are arranged in order
CopymedianDrop = array.median(dropValues)
Standard Deviation: Measures the dispersion of percentage changes from the average
CopystdDevDrop = array.stdev(dropValues)
Percentiles (25th, 75th): Values below which 25% and 75% of observations fall
Copyq1 = array.get(sorted, math.floor(cnt * 0.25))
q3 = array.get(sorted, math.floor(cnt * 0.75))
VaR95: The maximum expected percentage drop with 95% confidence
Copyvar95D = array.get(sortedD, math.floor(nD * 0.95))
Coefficient of Variation (CV): Measures relative variability
CopycvD = stdDevDrop / avgDrop
These statistics provide a comprehensive view of market behavior, enabling traders to understand the typical ranges and extreme moves.
🔶 Real-time Percentile Ranking
StatPivot's most innovative feature is its real-time percentile calculation. For each current price, it calculates:
The percentage drop from the latest pivot high:
CopycurrentDropPct = (latestPivotHigh - close) / latestPivotHigh * 100
The percentage rise from the latest pivot low:
CopycurrentRisePct = (close - latestPivotLow) / latestPivotLow * 100
The percentile ranks of these values within the historical distribution:
CopyrealtimeDropRank = (count of historical drops <= currentDropPct) / total drops * 100
This calculation reveals exactly where the current price movement stands in relation to all historical movements, providing crucial context for decision-making.
🔶 Cluster Analysis
To identify the most common retracement zones, StatPivot performs a cluster analysis by dividing the range of historical drops into five equal intervals:
CopyrangeSize = maxVal - minVal
For each interval boundary:
Copyboundaries = minVal + rangeSize * i / 5
By counting the number of observations in each interval, the indicator identifies the most frequently occurring retracement zones, which often serve as significant support or resistance areas.
🔶 Expected Price Targets
Using the statistical data, StatPivot calculates expected price targets:
CopytargetBuyPrice = close * (1 - avgDrop / 100)
targetSellPrice = close * (1 + avgRise / 100)
These targets represent statistically probable price levels for potential entries and exits based on the average historical behavior of the market.
█ Trade Direction
StatPivot functions as an analytical tool rather than a direct trading signal generator, providing statistical insights that can be applied to various trading strategies. However, the data it generates can be interpreted for different trade directions:
For Long Trades:
Entry considerations: Look for price drops that reach the 70-80th percentile range in the historical distribution, suggesting a statistically significant retracement
Target setting: Use the Expected Sell price or consider the average rise percentage as a reasonable target
Risk management: Set stop losses below recent pivot lows or at a distance related to the statistical volatility (standard deviation)
For Short Trades:
Entry considerations: Look for price rises that reach the 70-80th percentile range, indicating an unusual extension
Target setting: Use the Expected Buy price or average drop percentage as a target
Risk management: Set stop losses above recent pivot highs or based on statistical measures of volatility
For Range Trading:
Use the most common drop and rise clusters to identify probable reversal zones
Trade bounces between these statistically significant levels
For Trend Following:
Confirm trend strength by analyzing consecutive higher pivot lows (uptrend) or lower pivot highs (downtrend)
Use lower percentile retracements (20-30th percentile) as entry opportunities in established trends
█ Usage
StatPivot offers multiple ways to integrate its statistical insights into your trading workflow:
Statistical Table Analysis: Review the comprehensive statistics displayed in the data table to understand the market's behavior. Pay particular attention to:
Average drop and rise percentages to set reasonable expectations
Standard deviation to gauge volatility
VaR95 for risk assessment
Real-time Percentile Monitoring: Watch the real-time percentile display to see where the current price movement stands within the historical distribution. This can help identify:
Extreme movements (90th+ percentile) that might indicate reversal opportunities
Typical retracements (40-60th percentile) that might continue further
Shallow pullbacks (10-30th percentile) that might represent continuation opportunities in trends
Support and Resistance Identification: Utilize the plotted pivot points as key support and resistance levels, especially when they align with statistically significant percentile ranges.
Target Price Setting: Use the expected buy and sell prices calculated from historical averages as initial targets for your trades.
Risk Management: Apply the statistical measurements like standard deviation and VaR95 to set appropriate stop loss levels that account for the market's historical volatility.
Pattern Recognition: Over time, learn to recognize when certain percentile levels consistently lead to reversals or continuations in your specific market, and develop personalized strategies based on these observations.
█ Default Settings
The default settings of StatPivot have been carefully calibrated to provide reliable statistical analysis across a variety of markets and timeframes, but understanding their effects allows for optimal customization:
Left Bars (30) and Right Bars (30): These parameters determine how pivot points are identified. With both set to 30 by default:
A pivot low must be the lowest point among 30 bars to its left and 30 bars to its right
A pivot high must be the highest point among 30 bars to its left and 30 bars to its right
Effect on performance: Larger values create fewer but more significant pivot points, reducing noise but potentially missing important market structures. Smaller values generate more pivot points, capturing more nuanced movements but potentially including noise.
Table Position (Top Right): Determines where the statistical data table appears on the chart.
Effect on performance: No impact on analytical performance, purely a visual preference.
Show Distribution Histogram (False): Controls whether the distribution histogram of drop percentages is displayed.
Effect on performance: Enabling this provides visual insight into the distribution of retracements but can clutter the chart.
Show Real-time Percentile (True): Toggles the display of real-time percentile rankings.
Effect on performance: A critical setting that enables the dynamic analysis of current price movements. Disabling this removes one of the key advantages of the indicator.
Real-time Percentile Display Mode (Label): Chooses between label display or indicator line for percentile rankings.
Effect on performance: Labels provide precise information at the current price point, while indicator lines show the evolution of percentile rankings over time.
Advanced Considerations for Settings Optimization:
Timeframe Adjustment: Higher timeframes generally benefit from larger Left/Right values to identify truly significant pivots, while lower timeframes may require smaller values to capture shorter-term swings.
Volatility-Based Tuning: In highly volatile markets, consider increasing the Left/Right values to filter out noise. In less volatile conditions, lower values can help identify more potential entry and exit points.
Market-Specific Optimization: Different markets (forex, stocks, commodities) display different retracement patterns. Monitor the statistics table to see if your market typically shows larger or smaller retracements than the current settings are optimized for.
Trading Style Alignment: Adjust the settings to match your trading timeframe. Day traders might prefer settings that identify shorter-term pivots (smaller Left/Right values), while swing traders benefit from more significant pivots (larger Left/Right values).
By understanding how these settings affect the analysis and customizing them to your specific market and trading style, you can maximize the effectiveness of StatPivot as a powerful statistical tool for identifying high-probability trading opportunities.
Candle Range-BarsThe Candle Range Bars indicator visually represents the range of each candlestick in either pips or ticks, depending on your preference. It plots vertical bars to show the size of each candle, making it easy to identify periods of high or low volatility. The indicator also displays the exact range value (in pips or ticks) above each bar, with customizable text size and color for better readability.
Key Features
Pips or Ticks Mode:
Choose to display the candle range in pips (for forex traders) or ticks (for other instruments).
Customizable Text:
Adjust the text color and text size (Tiny, Small, Normal, Large) to suit your chart style.
Clear Visuals:
Bars are colored green for bullish candles and red for bearish candles, making it easy to distinguish between up and down moves.
Flexible Use:
Ideal for analyzing volatility, identifying consolidation zones, and comparing candle ranges across different timeframes.
How to Use:
Add the indicator to your chart.
Customize the settings:
Choose between pips or ticks.
Adjust the text color and text size for the range values.
Observe the bars and their corresponding range values to analyze market volatility.
Why Use This Indicator?:
Simplify Range Analysis: Quickly see the size of each candlestick without manual calculations.
Customizable: Tailor the appearance to match your trading style.
Versatile: Works on any instrument and timeframe.
Settings:
Show Pips (Otherwise Ticks): Toggle between pips and ticks mode.
Text Color: Choose the color of the range value text.
Text Size: Select the size of the range value text (Tiny, Small, Normal, Large).
Ideal For:
Forex, stocks, commodities, and crypto traders.
Traders who focus on volatility and range analysis.
Anyone looking for a clear and customizable way to visualize candle ranges.
This description highlights the key features, benefits, and usability of your indicator, making it appealing to other TradingView members. Let me know if you'd like to tweak it further! 😊
Volume & Range Spike DiamondVolume & Range Spike Diamond
Detect significant volume and price range breakouts directly on your chart with this intuitive indicator.
This TradingView indicator highlights bullish and bearish breakout opportunities by analyzing both volume and price range spikes. Perfect for identifying strong market movements in real-time.
Key Features:
Volume Increase Threshold (%): Customize the percentage increase in volume required to trigger a spike.
Price Range Increase Threshold (%): Define the percentage increase in the price range for additional precision.
Volume Lookback Period: Set the number of bars to calculate the average volume for comparison.
Bullish and Bearish Signals: Highlights bullish spikes below bars and bearish spikes above bars using colored diamonds.
Detailed Labels: Optionally display labels with percentage increases for volume and range.
Alerts Integration: Receive notifications for bullish and bearish breakout conditions.
How It Works:
The indicator compares the current bar's volume to the average volume of previous bars over the specified lookback period.
It also evaluates the price range (high - low) of the current bar against the previous bar.
If both volume and price range exceed their respective thresholds, a breakout condition is flagged.
Bullish spikes are displayed with upward-pointing diamonds below the bars, while bearish spikes use downward-pointing diamonds above the bars.
Optional labels show detailed percentage increases for both metrics.
Customization Options:
// Inputs
volumeIncreaseThreshold = input.float(50, "Volume Increase Threshold (%)", minval=0, step=5)
rangeIncreaseThreshold = input.float(200, "Price Range Increase Threshold (%)", minval=0, step=5)
lookbackPeriod = input.int(5, "Volume Lookback Period", minval=1, maxval=50)
showLastLabel = input.bool(false, "Show Only Last Label")
Alerts Configuration:
Bullish Volume Breakout: Triggered when a bullish spike is detected.
Bearish Volume Breakout: Triggered when a bearish spike is detected.
Enhance your trading strategy by detecting high-probability breakout opportunities with this reliable indicator!
Squeeze Range: Bollinger Bands / Keltner Channels [Whvntr]Presenting Squeeze Range: Bollinger Bands / Keltner Channels
TTMSqueeze method is a volatility and momentum indicator introduced by John Carter of Simpler Trading, which capitalizes on the tendency for price to break out strongly after consolidating in a tight trading range.
How did I make this indicator? The Bollinger Bands & Keltner Channels base scripts are from the standard indicators of their class in the Technicals section... I made this indicator first then noticed there were 3 others with a similar concept, but this differs in it's unique features and application of the TTMSqueeze strategy. This indicator plots the True Range of the Keltner Channel (Customizable in 'Bands Style" in the Inputs Menu) the instances the Bollinger Bands are within the range of the Keltner channel (the market just entered a squeeze).
Featuring: customizable Moving Averages
1. Exponential (Default for both BB & KC)
2. Simple
3. RMA (MA used in RSI )
Keltner channels have a multiplier of 2 & 3 on the Chart (3 being the outer).
How do I use this indicator? Once the teal dots are inside the solid red lines this would indicate that TTMperiod of low market volatility (the market is preparing itself for an explosive move up or down). Do some research and study how to use the TTMSqueeze method by John Carter. Disclaimer: not a guarantee of future favorable results.
Mastering Market Structure"Market structure first, always" - Mr. Anderson aka TrueCrypto28 right before he went on to master Kung-Fu
Understanding and identifying market structure is essential for successful and consistent profitability. No system is perfect, but trading in the direction of the prevailing market structure can reduce the likelihood of being caught severely offsides and can yield trades with tighter invalidations and greater risk-to-reward potential.
This script will automatically identify and plot the following:
Market Structure
Pivot highs and lows using the lookback left and right lengths are analyzed to identify major swing highs and lows to identify the current trading range.
Bullish structure is characterized by a series of higher highs and higher lows.
Bearish Structure is characterized by lower highs and lower lows.
Structure breaks when a bar closes outside the current trading range. Major swing highs and lows will update following these breaks to continue following the current price action
Current market structure bias, bullish or bearish, can be displayed in a table in the location of your choosing.
Structure is fractal, so seeing low time frame structure shift against the high time frame structure can identify the beginning of a pullback. When it realigns with the high timeframe structure, it can identify the beginning of the high time frame trend continuation. You can choose to analyze structure on any timeframe with this script and even add multiple copies of it to your chart each analyzing different a timeframes to easily find high quality trade opportunities.
Fibonacci Levels of the current trading range
These are included to help identify areas of interest for trade execution and profit levels.
We want to buy at a discount and sell at a premium. The "Wholesale Zone" can be considered below the 50% retracement level in bullish structure, or above it in a bearish structure.
When in a bullish structure, "discount" buy opportunities can be found below the 50% retracement level with the expectation of trend continuation.
In a bearish structure, more ideal "premium' sell opportunities can be found above the 50% retracement with the expectation of trend continuation.
Optimal trade entry (OTE) zone, between the 61.8% and 78.6% retracement can offer a great risk-to-reward ratio for execution of a new position in trending environments.
When trading sideways in a range, opening new buy positions near the bottom of the range or new sell positions from the top of the range are preferred. Midrange 50% level commonly sees some reaction and can be used as a primary target with further targets either being the opposite end of the range or lower support levels (see order block section).
Order Blocks
New Bullish and bearish order blocks are created and plotted with every respective market structure break. They identify the price level from which the most recent leg of price action that yielded the structure break began.
In strong trending environments, these levels should continue to support or resist price. They are great areas to look to enter new positions.
Order blocks can also be used as targets for your trades to avoid giving back unrealized profits as price tends to react off of these levels.
To keep your chart clean and the order blocks relevant, an order block will be automatically deleted if price trades through and closes beyond it. Otherwise, printed order blocks will remain on your chart until either it's origin bar is out of TradingView's maximum bar history allowance or their maximum box count allowance.
Pairing these with fibonacci levels, retracements into order blocks that are in the Wholesale Zone or even the OTE zone offer higher probability trades with more favorable risk-to-reward potential.
Swing Failure
Swing failure patterns (SFPs) arise when a candle takes out a swing high or low, but fails to close beyond it.
Again, pairing these with other features of this script like range boundaries, wholesale zones, OTE zones, and order blocks can help traders identify the best times to actually execute their trade as SFPs are commonly seen at points of inflection in price action.
Moving Averages
Up to 4 moving averages from the current time frame are available. MA type and lengths can be adjusted to your preference.
Up to 4 MTF MAs. By Default this is an EMA 200 as it is commonly used for trend identification and support/resistance.
These are included for confluence of trend direction and strength.
They can also act as dynamic support and resistance and so can be useful for trade execution if price bounces or rejects off of them or targets as price may do so when it reaches them.
Additionally, alerts have been coded for the following scenarios:
MS Break alerts will trigger on bar close when a break in market structure has been confirmed.
SFP alerts will trigger on bar close when the swing failure pattern has been confirmed.
Entering OB alerts will trigger as soon as price touches the closest order block.
Entering Wholesale Zone alerts will trigger as soon as price cross the 50% retracement level. This can be used as an early alert to identify assets that have undergone a significant pullback before potential continuation in the direction of the main trend.
Entering OTE Zone alerts will trigger as soon as price crosses into the Optimal Trade Entry zone between the 61.8% and 78.6% retracement.
This script is unique in the way that it tracks market structure, automatically updates as price action continues to develop, presents high quality areas of interest, and SFPs for trend reversal and continuation. Traders will no longer need to constantly monitor their charts or exhaustively update their alerts to find good trade opportunities. This script takes care of all of it automatically. Collectively, all of the included features can be used to build a complete trading system.
Williams %RHi! WPR is the Williams percentage range indicator in my design. The main idea is that the intersection of the indicator and the moving average in the overbought and oversold zones + color highlighting gives more clear visual signals for making trading decisions based on this indicator.
SuperTrendRange by DGTSuperTrendRange study attempts to determine the state of the market
• whether a well-established bull/bear trend is present
• whether the market is trading in a range
SuperTrendRange (STR) takes into account the volatility of the market - further details regarding volatility can be found in the description of “Volatility Bands by DGT” study
Due to its similarities to SupertTrend (ST) and Parabolic SAR (SAR), I will try to explain by stating differences between them
SuperTrendRange uses both the ATR (Average True Range) and STDEV (Standard Deviation) as part of its calculations - unlike ST and SAR where they use only ATR
Sensitivity of the indicator is adjusted using the multiplier setting of both ATR and STDEV
Additionally, unlike ST, the source of the basis of SuperTrendRange can be selected among the assets price value or its moving average
Source and Length are adjustable too
The SuperTrendRange, like Parabolic SAR indicator, appears on a chart as a series of dots, either above, below or unlike Parabolic SAR both above and below of the asset's price
A dot placed
- below the price when the market is trending upward
- above the price when it is trending downward
- both above and below when the price starts moving sideways – this is a feature that both SuperTrend and Parabolic SAR misses, where they are known to produce false signals and losing trades, whereas SuperTrendRange emphasis the zones of the ranges occurring and in most cases are considered no trade recommended zones. Please note that the range width may vary depending on how the market is volatile. It is up to the users to trade if it fits their trading strategies
Dots plotted above and below can be assumed as Support and Resistance levels
Example usages – with trading opportunities
Gold Monthly Chart
Bitcoin Daily Chart
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Sideways Money - Bitcoin BeatsHello, Hello, Hello,
And welcome back to Bitcoin Beats.
This is another version of my previous script, "Range Indicator - Bitcoin Beats".
Designed initially for breakouts but shows adaptive ranges and consolidation in XBTUSD(Haven't tested other assets but should do the same thing).
If we are consolidating (which is most of the time) a good strategy to trade would be to trade ranges. However, as soon as you spot the range it can feel like the range has changed so you lose out on making the monies.
This indicator plots out the average range in a consolidation.
It also shows you when the range has broken in a direction that it previously hasn't broken in. This essentially signifies the the trend changing and gives warning that trading the range may no longer be valid.
There are a few ways to trade this indicator and I will explain 2 of them here.
PLEASE TRADE AT YOUR OWN RISK. YOUR FUNDS ARE YOUR RESPONSIBILITY.
IF YOU TRADE WITH THESE STRATEGIES, YOU ARE TO BLAME FOR YOUR OWN LOSSES.
BY USING THIS INDICATOR YOU AGREE THAT I WILL NOT BE HELD LIABLE IN THE CASE OF YOU LOSING FUNDS.
Strategy 1:
- Have 2 bitmex accounts open.
- Use on the 30m, 1h, 3h or 12h.
- Long AND Short on both accounts when we hit the middle area. This is called the "Reload Zone".
- When we hit the edge of each side of the plotted range, close the positions in profit.
- You will then have 1 trade underwater.
- If the range is solid, the price will move back to the Reload Zone in which you reload you position that you took profit with.
- You then have both a Long AND Short open after 1 profitable trade.
- Rinse and repeat until you get the "STRATEGY CAUTION" message signifying that the range will most likely break soon.
Strategy 2(least profitable):
- When the "STRATEGY CAUTION" Message appears, you can long or short depending on which side it breaks toward.
- If we break down, short.
- If we break up, Long.
I wouldn't advise this second strategy if you are a beginner as the results are inconclusive and it's more of a hybrid trading strategy, meaning you have to know how to trade with price action flowing.
Usually if it is appearing volatile, you can go to a higher time frame and find the exact range it's catering to, adjusting your strategy accordingly.
See you soon,
Goodbye, from Bitcoin Beats.
[iQ]PRO Fractals in Dealing Range and Fib Levels+⚡️ PRO Combined Fractal & Dealing Range THEORY W QUADRANTS AND FIB LEVELS: Dynamic Price Structure Analysis
The PRO Combined Fractal & Dealing Range indicator is a proprietary, cutting-edge market structure analysis tool designed to give serious traders a tactical edge by merging advanced Fractal-based wave detection with a sophisticated Dynamic Dealing Range system. This professional-grade utility provides a crystal-clear, multi-layered view of key supply and demand zones, trend reversals, and structural boundaries.
Key Features & Proprietary Logic
This indicator is built on two harmoniously integrated engines, providing a comprehensive view that goes far beyond standard technical analysis.
📈 Adaptive Fractal Wave Engine
Our custom-tuned Fractal Engine employs a unique, multi-degree detection process to identify both Base Swings and Higher Degree Swings with unparalleled precision.
Proprietary Period Calculation: The engine utilizes a specialized formula based on the Golden Ratio (ϕ) to determine a refined higher-degree lookback period: Period
F
=floor(Period
Base
ϕ
). This adaptive logic helps filter market noise and highlight only the most significant structural turning points.
Dynamic Labeling: Automatically places visual markers on the chart to define confirmed Highs and Lows, simplifying the interpretation of market structure and potential directional shifts.
🎯 Dynamic Dealing Range System
This core component provides a detailed, automatically calculated framework of critical price levels, serving as a roadmap for potential entries, targets, and risk management.
Strategic Quadrant Mapping: Automatically establishes a significant Dealing Range based on a customizable lookback period, then divides it into four distinct Quadrants (Q1-Q4). These zones highlight areas of Premium, Equilibrium (Q2-Q3), and Discount, guiding trading decisions relative to the overall range.
Advanced Level Detection:
Fibonacci Retracement: Displays key Fibonacci levels (e.g., 50%, 61.8%, 78.6%) within a user-defined range, identifying high-probability reversal and reaction areas.
Liquidity & Pivots: The indicator incorporates a proprietary Liquidity Detection Algorithm using adaptive pivot sensitivity to identify significant historical support and resistance zones.
Inter-Timeframe Structure: Features a non-repainting method to display Important Highs/Lows (such as Monthly, Weekly, and Daily extremes) right on your current chart, bridging the gap between timeframes.
Professional Trader Utility
Clarity on Price Action: Instantly see the structure of the market and which direction the momentum is flowing based on the confirmed fractal swings.
Actionable Alerts: Receive timely and precise alerts when price approaches critical psychological and structural levels, including the Quadrant boundaries and the highly reactive Fibonacci 0.618 level.
Information at a Glance: A clean, professional table is displayed on the chart, summarizing the calculated range boundaries (Quadrant and Fibonacci Highs/Lows) for immediate reference.
The PRO Combined Fractal & Dealing Range is an indispensable tool for traders focused on market structure, institutional price action, and trading within clearly defined ranges. It is designed to minimize subjectivity and maximize clarity on your TradingView chart.
NO REPAINT ;)
Session Open Range, Breakout & Trap Framework - TrendPredator OBSession Open Range, Breakout & Trap Framework — TrendPredator Open Box
Stacey Burke’s trading approach combines concepts from George Douglas Taylor, Tony Crabel, Steve Mauro, and Robert Schabacker. His framework focuses on reading price behaviour across daily templates and identifying how markets move through recurring cycles of expansion, contraction, and reversal. While effective, much of this analysis requires real-time interpretation of session-based behaviour, which can be demanding for traders working on lower intraday timeframes.
The TrendPredator indicators formalize parts of this methodology by introducing mechanical rules for multi-timeframe bias tracking and session structure analysis. They aim to present the key elements of the system—bias, breakouts, fakeouts, and range behaviour—in a consistent and objective way that reduces discretionary interpretation.
The Open Box indicator focuses specifically on the opening behaviour of major trading sessions. It builds on principles found in classical Open Range Breakout (ORB) techniques described by Tony Crabel, where a defined time window around the session open forms a structural reference range. Price behaviour relative to this range—breaking out, failing back inside, or expanding—can highlight developing session bias, potential trap formation, and directional conviction.
This indicator applies these concepts throughout the major equity sessions. It automatically maps the session’s initial range (“Open Box”) and tracks how price interacts with it as liquidity and volatility increase. It also incorporates related structural references such as:
* the first-hour high and low of the futures session
* the exact session open level
* an anchored VWAP starting at the session open
* automated expansion levels projected from the Open Box
In combination, these components provide a unified view of early session activity, including breakout attempts, fakeouts, VWAP reactions, and liquidity targeting. The Open Box offers a structured lens for observing how price transitions through the major sessions (Asia → London → New York) and how these behaviours relate to higher-timeframe bias defined in the broader TrendPredator framework.
Core Features
Open Box (Session Structure)
The indicator defines an initial session range beginning at the selected session open. This “Open Box” represents a fixed time window—commonly the first 30 minutes, or any user-defined duration—that serves as a structural reference for analysing early session behaviour.
The range highlights whether price remains inside the box, breaks out, or rejects the boundaries, providing a consistent foundation for interpreting early directional tendencies and recognising breakout, continuation, or fakeout characteristics.
How it works:
* At the session open, the indicator calculates the high and low over the specified time window.
* This range is plotted as the initial structure of the session.
* Price behaviour at the boundaries can illustrate emerging bias or potential trap formation.
* An optional secondary range (e.g., 15-minute high/low) can be enabled to capture early volatility with additional precision.
Inputs / Options:
* Session specifications (Tokyo, London, New York)
* Open Box start and end times (e.g., equity open + first 30 minutes, or any custom length)
* Open Box colour and label settings
* Formatting options for Open Box high and low lines
* Optional secondary range per session (e.g., 15-minute high/low)
* Forward extension of Open Box high/low lines
* Number of historic Open Boxes to display
Session VWAPs
The indicator plots VWAPs for each major trading session—Asia, London, and New York—anchored to their respective session opens. These session-specific VWAPs assist in tracking how value develops through the day and how price interacts with session-based volume distributions.
How it works:
* At each session open, a VWAP is anchored to the open price.
* The VWAP updates throughout the session as new volume and price data arrive.
* Deviations above or below the VWAP may indicate balance, imbalance, or directional control.
* Viewed together, session VWAPs help identify transitions in value across sessions.
Inputs / Options:
* Enable or disable VWAP per session
* Adjustable anchor and end times (optionally to end of day)
* Line styling and label settings
* Number of historic VWAPs to draw
First Hour High/Low Extensions
The indicator marks the high and low formed during the first hour of each session. These reference points often function as early control levels and provide context for assessing whether the session is establishing bias, consolidating, or exhibiting reversal behaviour.
How it works:
* After the session starts, the indicator records the highest and lowest prices during the first hour.
* These levels are plotted and extended across the session.
* They provide a visual reference for observing reactions, targets, or rejection zones.
Inputs / Options:
* Enable or disable for each session
* Line style, colour, and label visibility
* Number of historic sessions displayed
EQO Levels (Equity Open)
The indicator plots the opening price of each configured session. These “Equity Open” levels represent short-term reference points that can attract price early in the session.
Once the level is revisited after the Open Box has formed, it is automatically cut to avoid clutter. If not revisited, the line remains as an untested reference, similar to a naked point of control.
How it works:
* At session open, the open price is recorded.
* The level is plotted as a local reference.
* If price interacts with the level after the Open Box completes, the line is cut.
* Untested EQOs extend forward until interacted with.
Inputs / Options:
* Enable/disable per session
* Line style and label settings
* Optional extension into the next day
* Option for cutting vs. hiding on revisit
* Number of historic sessions displayed
OB Range Expansions (Automatic)
Range expansions are calculated from the height of the Open Box. These levels provide structured reference zones for identifying potential continuation or exhaustion areas within a session.
How it works:
* After the Open Box is formed, multiples of the range (e.g., 1×, 2×, 3×) are projected.
* These expansion levels are plotted above and below the range.
* Price reactions near these areas can illustrate continuation, hesitation, or potential reversal.
Inputs / Options:
* Enable or disable per session
* Select number of multiples
* Line style, colour, and label settings
* Extension length into the session
Stacey Burke 12-Candle Window Marker
The indicator can highlight the 12-candle window often referenced in Stacey Burke’s session methodology. This window represents the key active period of each session where breakout attempts, volatility shifts, and reversal signatures often occur.
How it works:
* A configurable window (default 12 candles) is highlighted from each session open.
* This window acts as a guide for observing active session behaviour.
* It remains visible throughout the session for structural context.
Inputs / Options:
* Enable/disable per session
* Configurable window duration (default: 3 hours)
* Colour and transparency controls
Concept and Integration
The Open Box is built around the same multi-timeframe logic that underpins the broader TrendPredator framework.
While higher-timeframe tools track bias and setups across the H8–D–W–M levels, the Open Box focuses on the H1–M30 domain to define session structure and observe how early intraday behaviour aligns with higher-timeframe conditions.
The indicator integrates with the TrendPredator FO (Breakout, Fakeout & Trend Switch Detector), which highlights microstructure signals on lower timeframes (M15/M5). Together they form a layered workflow:
* Higher timeframes: context, bias, and developing setups
* TrendPredator OB: intraday and intra-session structure
* TrendPredator FO: microstructure confirmation (e.g., FOL/FOH, switches)
This alignment provides a structured way to observe how daily directional context interacts with intraday behaviour.
See the public open source indicator TP FO here (click on it for access):
Practical Application
Before Session Open
* Review previous session Open Box, Open level, and VWAPs
* Assess how higher-timeframe bias aligns with potential intraday continuation or reversal
* Note untested EQO levels or VWAPs that may function as liquidity attractors
During Session Open
* Observe behaviour around the first-hour high/low and higher-timeframe reference levels
* Monitor how the M15 and 30-minute ranges close
* Track reactions relative to the session open level and the session VWAP
After the Open Box completes
* Assess price interaction with Open Box boundaries and first-hour levels
* Use microstructure signals (e.g., FOH/FOL, switches) for potential confirmation
* Refer to expansion levels as reference zones for management or target setting
After Session
* Review how price behaved relative to the Open Box, EQO levels, VWAPs, and expansion zones
* Analyse breakout attempts, fakeouts, and whether intraday structure aligned with the broader daily move
Example Workflow and Trade
1. Higher-timeframe analysis signals a Daily Fakeout Low Continuation (bullish context).
2. The New York session forms an Open Box; price breaks above and holds above the first-hour high.
3. A Fakeout Low + Switch Bar appears on M5 (via FO), after retesting the session VWAP triggering the entry.
4. 1x expansion level serves as reference targets for take profit.
Relation to the TrendPredator Ecosystem
The Open Box is part of the TrendPredator Indicator Family, designed to apply multi-timeframe logic consistently across:
* higher-timeframe context and setups
* intraday and session structure (OB)
* microstructure confirmation (FO)
Together, these modules offer a unified structure for analysing how daily and intraday cycles interact.
Disclaimer
This indicator is for educational purposes only and does not guarantee profits.
It does not provide buy or sell signals but highlights structural and behavioural areas for analysis.
Users are solely responsible for their trading decisions and outcomes.
A+ Model - Cave EducationHere is a comprehensive and detailed explanation of the "A+ Model - Cave Education" Pine Script code.
This script is a sophisticated technical analysis tool designed for TradingView. It assists traders in identifying specific institutional time windows, price ranges (sessions), and "Macro" volatility periods based on the ICT (Inner Circle Trader) or similar time-based trading concepts.
Below is the breakdown of how the code functions, organized by its logic sections.
1. General Overview
The script is an overlay indicator (it sits directly on the price chart). Its primary purpose is to:
Highlight a specific trading session (The "A+ Box") and mark its High/Low.
Mark key institutional times (07:00 NY and 09:30 NY Open).
Identify "Macro" windows (specific 20-minute periods where algorithms are active) and draw dynamic ranges around them based on volatility (ATR).
Project future times onto the chart to help the trader prepare for the next day.
2. Settings & Inputs (User Configuration)
The code begins by defining a vast array of user inputs, grouped for better usability:
General Time & Box: Allows the user to define the "A+ Session" time (default 20:00-00:00) and the Time Zone (UTC-5/New York). It also handles the visual style (colors) of the session box.
Visibility: A crucial performance and visual clutter setting. boxDays limits how far back the A+ boxes and time lines are drawn (default 14 days). Macros are strictly limited to the current week to prevent chart lagging.
Line & Text Controls: Every visual element (A+ lines, NY markers, Macros) has toggles (input.bool) to show/hide the lines or the text labels separately.
Macro Settings: Defines the time windows for three separate macros and an ATR Multiplier. The ATR multiplier determines how wide the channel lines are drawn around the macro price action.
3. Logic Breakdown by Section
Section 1: The "A+ Draw" Box (Session Range)
This is the core of the A+ Model.
Logic: The script checks if the current bar is within the user-defined sessionTime.
Box Creation:
When the session starts, it initializes a new Box (box.new).
Throughout the session, it continuously updates the Box's Top (Highest High) and Bottom (Lowest Low) to encompass the full range of that time period.
Extension Lines (Support/Resistance):
Once the session ends, the script draws two horizontal lines: one from the Session High and one from the Session Low.
Smart Break Logic: These lines are active (highActive, lowActive). They extend to the right until the price breaks them (High line is broken by a higher price, Low line by a lower price). This helps traders see if the session range is being respected or broken later in the day.
Section 2: Time Lines (NY Midnight & Open)
This section marks vertical reference points.
It checks for specific times: 07:00 and 09:30 (in the user's timezone).
If the current bar matches these times, it draws a vertical line (line.new) covering the High/Low of that bar and places a label (e.g., "NY." or "09:30") above it.
This helps the trader orient themselves regarding the New York session Open and the "Killzone" start.
Section 3: Macros (Volatility Windows)
This is the most complex calculation in the script.
Definition: Macros are specific time windows (e.g., 09:50–10:10) where price delivery is often accelerated.
Visibility Rule: To keep the script fast, this only runs if isCurrentWeek is true.
ATR Offset: The script calculates the Average True Range (ATR). It uses this to create a "channel" around the price.
Drawing Logic:
When a Macro time starts, the script tracks the Highest High and Lowest Low inside that specific 20-minute window.
It draws parallel horizontal lines above and below these prices.
The Twist: The lines are not drawn at the High/Low. They are offset by ATR * Multiplier. This creates a wider "zone" around the macro price action, visually indicating a volatility range.
Section 4: Future Projection (Tomorrow)
This feature is for planning ahead.
It runs only on the last bar of the chart (barstate.islast).
It calculates the timestamps for the next occurrence of the key times (07:00, 09:30, and all three Macros).
It draws vertical lines into the future (empty space on the right of the chart).
Benefit: The trader can see exactly where 09:30 or the next Macro will occur on the timeline before the candles even print.
4. Helper Functions
The code uses custom functions to keep the logic clean:
f_drawFuture(...): A standardized function to draw the future vertical lines and labels so the code doesn't have to repeat itself for every single time marker.
isStartTime(...) & isInTime(...): Shorthand functions to check if the current candle belongs to a specific session string (like "0950-1010").
Summary of Improvements in this Version
Compared to a standard indicator, this script is highly optimized:
Text Control: You can turn off text labels while keeping the lines (or vice versa).
Performance: It limits historical drawing (only 14 days back for boxes, only this week for macros) to prevent "Maximum Line Count" errors in Pine Script.
Visual Clarity: It uses different colors for different Macros (Blue, Red, Orange) to make them instantly distinguishable.
External Range Liquidity by fx4_livingExternal Range Liquidity Indicator
This indicator visualizes the evolving price range boundaries and subdivisions for a user-defined intraday session period on the chart.
It computes and displays the highest and lowest prices observed within the specified session (used as external range liquidity), updating dynamically with each bar, and includes optional midpoint and quartile levels represented by horizontal lines that adjust as the range develops.
Key Features:
Session Range Calculation: Tracks the maximum high and minimum low prices during the active session, refreshing in real-time.
Midpoint Display: Optionally plots a median level between the session high and low, with selectable styles (solid, dotted, or dashed).
Quadrant Display: Optionally segments the range into quarters by displaying levels at 25% and 75% from the low, with customizable line styles.
Color Customization: Allows selection of colors for the high boundary (default blue), low boundary (default red), midpoint (default gray), and quadrants (default gray).
Session Input: User-configurable session timeframe, defaulting to 18:00-16:14 across all weekdays and weekends, using America/New York time zone.
Timeframe Compatibility: Optimized for intraday use on charts of 30 minutes or lower; attempts to apply on higher timeframes will display an error.
Visualization Style: High and low ranges appear as stepped lines with diamond markers indicating external liquidity purges. Midpoint and quadrant lines are horizontal segments without extension for precise session representation.
Settings:
Range: Specifies the session window (e.g., "1800-1614").
High Color: Color for the upper range line.
Low Color: Color for the lower range line.
Show range mid point: Enable/disable the midpoint line.
(Midpoint color and style): Inline choices for color and line type (Solid, Dotted, Dashed).
Show range quadrants: Enable/disable both the 25% and 75% lines.
(Quadrants color and style): choices for color and line type (Solid, Dotted, Dashed).
This tool serves purely for visual analysis of session price dynamics on charts.
It offers no signals, predictions, or guidance for any market actions.
Users are encouraged to perform independent evaluations and align with their own strategies when incorporating charting elements.
Sessions & ORB Pro | Bifrost InstituteSessions & ORB Pro | BI
Professional Session Analysis and Opening Range Breakout Tracker
This advanced indicator provides comprehensive session tracking and Opening Range Breakout (ORB) analysis across multiple global trading sessions. Designed for intraday traders, this tool helps identify key support and resistance levels, session volatility patterns, and potential breakout opportunities.
Overview
Session-based trading is crucial for understanding market behavior, as different global sessions (US, European, Asian) exhibit distinct characteristics in terms of volatility, volume, and price action. This indicator allows traders to:
Identify Session Highs and Lows: Track the boundaries of each trading session to spot key support/resistance levels
Monitor Opening Range Breakouts: Capture the first 5, 15, or 30 minutes of major exchange openings to identify early directional bias
Analyze Multi-Session Patterns: View up to 4 concurrent or sequential sessions with full historical data
Customize Visual Analysis: Tailor colors, styles, and overlays for each session independently
Key Features
Multi-Session Support
Configure up to 4 independent trading sessions (US, Europe, Asia, Custom)
Fully customizable session times with timezone support (UTC offset, Chart timezone, or Exchange timezone)
Daylight Savings Time adjustment for accurate session timing
Session range boxes with adjustable transparency and outline styles
Historical session tracking (1-20 previous sessions)
Opening Range Breakout (ORB)
Track Opening Range for major exchanges: NYSE, LSE, TSE, TSX, ASX, HKEX, SSE
Configurable ORB periods: 5-minute, 15-minute, or 30-minute ranges
Visual ORB boxes with customizable colors and outline styles
ORB High/Low lines with optional extension beyond session close
Individual color control for each session's ORB
Session Analytics
Session High/Low: Horizontal lines marking the session's price extremes
Trendline: Linear regression trendline showing session directional bias
Mean: Session average price for mean reversion analysis
VWAP: Volume-weighted average price for institutional level analysis
Range Boxes: Visual representation of each session's price range
Advanced Customization
Individual Color Pickers: Set unique colors for each overlay type per session
Line Styles: Choose between Solid, Dashed, or Dotted for all line types
Label Options: Customize labels to show Date (d/M), Day of Week (ddd), and/or Price
Extend Options: Extend Session H/L and ORB lines beyond current bar
Outline Styles: Independent control of Range and ORB outline appearance
Information Dashboard
Optional real-time dashboard displaying:
Session Status: Open/Closed indicator for each session
Trend: R² correlation coefficient showing directional strength
Volume: Cumulative session volume
σ (Sigma): Session standard deviation for volatility analysis
Range: Session High, Low, and Range in points
ORB: Opening Range High, Low, and Range in points
Dashboard is fully customizable with toggleable columns and adjustable size/position.
Flexible Configuration
Time Zone Management: Three modes for precise session timing
Historical Display: Show/hide previous sessions for cleaner charts
Label Customization: Independent label size and content options for Session H/L vs ORB
Range Settings: Adjustable transparency, outlines, and label positioning
Use Cases
Session Traders: Identify when specific markets are most active and volatile
ORB Traders: Capture early session momentum and breakout opportunities
Support/Resistance: Use session highs/lows as key price levels
VWAP Strategies: Track institutional activity through session VWAP
Multi-Market Analysis: Monitor overlap between global trading sessions
Default Configuration
The indicator comes pre-configured with US (NYSE), Europe (LSE), and Asia (TSE) sessions, making it immediately useful for forex, indices, and global equity traders. Session D is available for custom session requirements.
Perfect for day traders, scalpers, and swing traders who rely on session-based analysis and institutional order flow.
[INVX] Trading Range
Trading Range
The “ Trading Range” indicator visualizes short-term price ranges (typically 1–2 days) based on statistical percentiles of high and low prices relative to the previous day’s close. It provides a clear view of potential support and resistance zones and includes optional EMA overlays for trend context.
Concept & Calculation
Uses the previous daily close as a reference point.
Calculates percentile-based levels for highs and lows over a configurable lookback period.
Plots two resistance zones and two support zones as shaded areas.
Includes up to 3 optional EMA lines for trend visualization.
Trading range zones are designed for daily-based calculations. If the indicator is applied to a chart timeframe larger than 1 day (e.g., weekly, monthly), the trading range zones will not be displayed.
Key Features
Short-Term Trading Range:
Displays zones that reflect short-term price behavior (1–2 days).
Percentile-Based Levels:
Levels are calculated using percentile interpolation for highs and lows.
Historical Lines Option:
Toggle to show past levels for context.
Realtime Calculation update:
Update calculations dynamically with the current bar.
EMA Overlay:
Up to three customizable EMA lines for trend analysis.
Display Line Values:
Option to show level values on the chart with adjustable label size.
Trading Range Settings
Historical Lines: Show or hide past support/resistance levels.
Realtime Calculation: Enable or disable real-time updates.
Display Line Values: Show numeric values for levels.
Size: Adjust label size when values are displayed.
EMA Line Settings
Enable/disable each EMA line.
Configure length and color for each EMA.
Usage Tips
Use the shaded zones as visual reference areas for short-term price interaction.
Combine with other tools such as trend indicators or volume analysis to strengthen the analysis.
Historical lines can help assess how price has reacted to these zones in the past.
Limitations & Disclaimer
This indicator is provided for informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset.
Market conditions, asset volatility, and timeframe selection may significantly affect indicator performance.
Users should always validate signals with additional analysis and apply appropriate risk management strategies.
Past performance is not indicative of future results. Use indicator at your own discretion and risk.
Under no circumstances shall InnovestX be liable for any loss or damage you or anyone else incur as a result of any trading or investment activity that you or anyone else engages in based on any information or material you receive through InnovestX or TradingView.






















