Machine Learning Key Levels [AlgoAlpha]🟠 OVERVIEW
This script plots Machine Learning Key Levels on your chart by detecting historical pivot points and grouping them using agglomerative clustering to highlight price levels with the most past reactions. It combines a pivot detection, hierarchical clustering logic, and an optional silhouette method to automatically select the optimal number of key levels, giving you an adaptive way to visualize price zones where activity concentrated over time.
🟠 CONCEPTS
Agglomerative clustering is a bottom-up method that starts by treating each pivot as its own cluster, then repeatedly merges the two closest clusters based on the average distance between their members until only the desired number of clusters remain. This process creates a hierarchy of groupings that can flexibly describe patterns in how price reacts around certain levels. This offers an advantage over K-means clustering, since the number of clusters does not need to be predefined. In this script, it uses an average linkage approach, where distance between clusters is computed as the average pairwise distance of all contained points.
The script finds pivot highs and lows over a set lookback period and saves them in a buffer controlled by the Pivot Memory setting. When there are at least two pivots, it groups them using agglomerative clustering: it starts with each pivot as its own group and keeps merging the closest pairs based on their average distance until the desired number of clusters is left. This number can be fixed or chosen automatically with the silhouette method, which checks how well each point fits in its cluster compared to others (higher scores mean cleaner separation). Once clustering finishes, the script takes the average price of each cluster to create key levels, sorts them, and draws horizontal lines with labels and colors showing their strength. A metrics table can also display details about the clusters to help you understand how the levels were calculated.
🟠 FEATURES
Agglomerative clustering engine with average linkage to merge pivots into level groups.
Dynamic lines showing each cluster’s price level for clarity.
Labels indicating level strength either as percent of all pivots or raw counts.
A metrics table displaying pivot count, cluster count, silhouette score, and cluster size data.
Optional silhouette-based auto-selection of cluster count to adaptively find the best fit.
🟠 USAGE
Add the indicator to any chart. Choose how far back to detect pivots using Pivot Length and set Pivot Memory to control how many are kept for clustering (more pivots give smoother levels but can slow performance). If you want the script to pick the number of levels automatically, enable Auto No. Levels ; otherwise, set Number of Levels . The colored horizontal lines represent the calculated key levels, and circles show where pivots occurred colored by which cluster they belong to. The labels beside each level indicate its strength, so you can see which levels are supported by more pivots. If Show Metrics Table is enabled, you will see statistics about the clustering in the corner you selected. Use this tool to spot areas where price often reacts and to plan entries or exits around levels that have been significant over time. Adjust settings to better match volatility and history depth of your instrument.
Titik pangsi dan tahap
High/Low of Previous 3 Days & Daily Open (Frame-Independent)High/Low of Previous 3 Days & Daily Open
This indicator automatically plots:
The highest high and lowest low of the previous 3 trading days (excluding today),
Today’s daily open,
And shows a clear “Buy chủ đạo” (Strong Buy) label if price closes above the 3D-High,
Or a “Sell chủ đạo” (Strong Sell) label if price closes below the 3D-Low.
Key advantages:
Always calculates the true 3-day range on any timeframe (not just 3 bars),
Instantly highlights breakout zones for strong trend trading,
Simple, clean, and highly effective for both breakout and trend-following traders.
Just add it to your chart and watch for strong moves whenever price breaks out of the recent 3-day range!
Range Bar Gaps DetectorRange Bar Gaps Detector
Overview
The Range Bar Gaps Detector identifies price gaps across multiple range bar sizes (12, 24, 60, and 120) on any trading instrument, helping traders spot potential support/resistance zones or breakout opportunities. Designed for Pine Script v6, this indicator detects gaps on range bars and exports data for use in companion scripts like Range Bar Gaps Overlap, making it ideal for multi-timeframe gap analysis.
Key Features
Multi-Range Gap Detection: Identifies gaps on 12, 24, 60, and 120-range bars, capturing both bullish (gap up) and bearish (gap down) price movements.
Customizable Sensitivity: Includes a user-defined minimum deviation (default: 10% of 14-period SMA) for 12-range gaps to filter out noise.
7-Day Lookback: Automatically prunes gaps older than 7 days to focus on recent, relevant price levels.
Data Export: Serializes up to 10 gaps per range (tops, bottoms, start bars, highest/lowest prices, and age) for seamless integration with overlap analysis scripts.
Debugging Support: Plots gap counts and aggregation data in the Data Window for easy verification of detected gaps.
How It Works
The indicator aggregates price movements to simulate higher range bars (24, 60, 120) from a base range bar chart. It detects gaps when the price jumps significantly between bars, ensuring gaps meet the minimum deviation threshold for 12-range bars. Gaps are stored in arrays, serialized for external use, and pruned after 7 days to maintain efficiency.
Usage
Add to your range bar chart (e.g., 12-range) to detect gaps across multiple ranges.
Use alongside the Range Bar Gaps Overlap indicator to visualize gaps and their overlaps as boxes on the chart.
Check the Data Window to confirm gap counts and sizes for each range (12, 24, 60, 120).
Adjust the "Minimal Deviation (%) for 12-Range" input to control gap detection sensitivity.
Settings
Minimal Deviation (%) for 12-Range: Set the minimum gap size for 12-range bars (default: 10% of 14-period SMA).
Range Sizes: Fixed at 24, 60, and 120 for higher range bar aggregation.
Notes
Ensure the script is published under your TradingView username (e.g., GreenArrow2005) for use with companion scripts.
Best used on range bar charts to maintain consistent gap detection.
For advanced overlap analysis, pair with the Range Bar Gaps Overlap indicator to highlight zones where gaps from different ranges align.
Ideal For
Traders seeking to identify key price levels for support/resistance or breakout strategies.
Multi-timeframe analysts combining gap data across various range bar sizes.
Developers building custom indicators that leverage gap data for advanced charting.
RISK## Main Purpose
The indicator calculates and displays risk levels based on margin requirements and daily settlement prices, helping traders visualize their potential risk exposure.
## Key Features
**Inputs:**
- **Margin for Calculation**: The CME long margin requirement for the asset
- **HTF Margin Line**: An anchor point for higher timeframe margin calculations
**Core Calculations:**
1. **Settlement Price Tracking**: Captures daily settlement prices during specific session times (6:58-6:59 PM ET for close, 6:00-6:01 PM ET for new day open)
2. **Risk Percentage**: Calculates `margin / (point value × settlement price)` - with special handling for Micro contracts (symbols starting with "M") that uses 10× point value
3. **Risk Intervals**: Determines price intervals representing one margin unit of risk
## Visual Display
The indicator plots multiple risk levels on the chart:
- **Settlement price** (orange circles)
- **Globex open** (green circles)
- **Upper/Lower Risk levels** (red circles) - one and two risk intervals away
- **Subdivision levels** (blue crosses) - 25%, 50%, and 75% of each risk interval
- **MHP+ level** (black crosses) - HTF anchor adjusted by risk percentage
- **HTF Anchor** (black crosses)
## Practical Use
This helps futures traders:
- Visualize how far price can move before hitting margin calls
- See risk levels relative to daily settlements
- Plan position sizing and risk management
- Understand exposure in terms of actual margin requirements
The indicator essentially transforms abstract margin numbers into concrete price levels on the chart, making risk management more visual and intuitive.
👽 TIME PERIODS👽 TIME PERIODS v1.15
Visualize key time divisions and session levels on any chart:
• Timezone‐aware session shading
– Highlight active NY session (configurable HHMM–HHMM and days)
– Adjustable background opacity
• Weekly & Monthly Separators
– Toggle on/off
– Custom color, style (solid/dashed/dotted) & width
• Day-of-Week Labels
– Diamonds at session start for M–S
– Toggle on/off
• Session Open Line
– Horizontal line at each session’s open
– Configurable color, width & “distanceRight” in bars
– Always shows current session
• Midpoint Vertical Line
– Plots halfway between session open & close
– Custom color, style & width
– Toggle on/off
▶ All elements grouped for easy parameter tweaking
▶ Fully timezone-configurable (default America/New_York)
▶ Version 1.15 — added distanceRight feature & current session support
Use this to see exactly where your chosen session, weekly/monthly boundaries, and intraday pivot points fall—across any timeframe.
Pivot Swings w Table Pivot Swings w Table — Intraday Structure & Range Analyzer
This indicator identifies key pivot highs and lows on the chart and highlights market structure shifts using a real-time table display. It helps traders visually confirm potential trade setups by tracking unbroken swing points and measuring the range between the most recent pivots.
🔍 Features:
🔹 Automatic Pivot Detection using configurable left/right bar logic.
🔹 Unbroken Pivot Filtering — only pivots that haven't been invalidated by price are displayed.
🔹 Dynamic Range Table with:
Latest valid Pivot High and Pivot Low
Total Range Width
Upper & Lower 25% range thresholds (useful for value/imbalance analysis)
🔹 Trend-Based Color Coding — the table background changes based on which pivot (high or low) occurred more recently:
🟥 Red: Downward bias (last pivot was a lower high)
🟩 Green: Upward bias (last pivot was a higher low)
🔹 Optional extension of pivot levels to the right of the chart for support/resistance confluence.
⚙️ How to Use:
Adjust the Left Bars and Right Bars inputs to fine-tune how swings are defined.
Look for price reacting near the Upper or Lower 25% zones to anticipate mean reversion or breakout setups.
Use the trend color of the table to confirm directional bias, especially useful during consolidation or retracement periods.
💡 Best For:
Intraday or short-term swing traders
Traders who use market structure, support/resistance, or trend-based strategies
Those looking to avoid low-quality trades in tight ranges
✅ Built for overlay use on price charts
📈 Works on all symbols and timeframes
🧠 No repainting — pivots are confirmed with completed bars
BankNifty Auto S/R LevelsAttention BankNifty Option Traders,
Introducing the most accurate indicator which draws precise support and resistance lines automatically. Most important thing is this indicator auto adjusts and levels as the price rises or falls. To check the accuracy and efficacy of these support and resistance, change the time frame to 1H. You will be astonished to see its precision.
Thank you.
MTF Market Structure Pivots/Dealing Ranges | InvrsROBINHOODMulti-Timeframe Advanced Market Structure Pivots - Dealing Ranges | InvrsROBINHOOD
This indicator provides a sophisticated framework for analyzing market structure by identifying and classifying key pivot points on the user defined higher timeframes. It automatically draws the most relevant bullish and bearish dealing ranges based on this structure, equipping traders with a clear and objective view of the market's flow and potential areas of interest whilst on the lower timeframes.
Understanding Market Structure
At its core, market structure is the sequence of highs and lows that form the trend. This indicator demystifies market structure by categorizing pivots into a three-tiered hierarchy, allowing you to instantly gauge the significance of a swing point.
The Hierarchy of Pivots
Short Term Highs (H) & Lows (L)
These are the most basic swing points in price action, representing minor, localized turning points. They are the fundamental building blocks of all larger trends and structures. While common, they help define the immediate price action and short-term directional bias.
Intermediate Highs (ITH) & Lows (ITL)
An Intermediate High (ITH) is a short-term high that is higher than the short-term highs immediately preceding and succeeding it. Similarly, an Intermediate Low (ITL) is a short-term low that is lower than its neighboring lows.
Importance: These pivots are significantly more important than standard H/L points. They represent a more substantial shift in supply and demand and often mark the beginning or end of a corrective wave within a larger trend. A break of an ITH or ITL suggests a potential change in the intermediate-term trend.
Long Term Highs (LTH) & Lows (LTL)
These are the most critical pivots identified by the indicator. A Long Term High (LTH) is an intermediate high that is higher than the intermediate highs on either side of it. A Long Term Low (LTL) is an intermediate low that is lower than its neighboring intermediate lows.
Importance: LTH and LTL points represent major structural anchors. They often define the boundaries of long-term trading ranges, mark the conclusion of major market cycles, or signal a significant trend reversal. A price break beyond an LTH or LTL is a powerful confirmation that the long-term market structure has shifted.
By understanding this hierarchy, a trader can better assess the strength of a trend. For example, in a strong uptrend, price will consistently form higher L's, IPL's, and LTL's. A break of a key ITL would be the first major warning sign that the dominant bullish structure is in jeopardy.
The Dealing Range: Fibonacci Analysis
Beyond identifying pivots, the indicator's primary function is to establish the current Dealing Range. A dealing range is the price zone between a significant structural pivot and the subsequent impulse move away from it. The indicator uses a proprietary scoring system to objectively identify the most probable and "protected" high or low to anchor these ranges.
How to Use the Dealing Ranges
The indicator will plot two potential dealing ranges, one bullish and one bearish, complete with key Fibonacci retracement levels.
Bullish Dealing Range (Black):
This range is drawn from a significant low (the anchor) up to the highest high formed after that low.
Application: This range highlights potential "discount" buying opportunities. When price pulls back from the high, the Fibonacci levels (e.g., 50%, 61.8%, 78.6%) serve as high-probability zones where buyers may step in to resume the upward trend. The original low of the range is the ultimate invalidation point for this bullish idea.
Invalidation: The bullish range is considered complete and will be removed if the price breaks above the high of the range, as the market has shown its intention to continue higher. The indicator will then seek to establish a new range.
Bearish Dealing Range (White):
This range is drawn from a significant high (the anchor) down to the lowest low formed after that high.
Application: This range identifies potential "premium" selling opportunities. As price rallies from the low, the Fibonacci levels act as potential resistance zones where sellers may re-emerge to continue the downward trend. The original high of the range is the ultimate invalidation for this bearish scenario.
Invalidation: The bearish range is considered complete and will be removed if the price breaks below the low of the range, signaling a continuation of the downtrend. The indicator will then await a new structure to form.
By combining a hierarchical understanding of market structure with automatically drawn Fibonacci dealing ranges, this tool helps traders to objectively identify the trend, frame high-probability trade ideas, and manage risk with clearly defined levels of interest and invalidation.
DR-SK A B C SK A B C - Target and Stop Loss Indicator for Trading
The "SK A B C" script is an advanced technical analysis tool designed to identify price targets and stop loss levels based on three input points (A, B, C) on the chart. The script calculates four potential targets (E, N, V, NT) based on the movement between the points, allowing for customization to suit different trading strategies. It also supports various stop loss methods, including Fixed Percentage, ATR-Based, and Swing High/Low.
Key Features:
Target Calculation (E, N, V, NT): The script calculates and displays potential targets (E, N, V, NT) based on the price movement between the input points (A, B, C).
Stop Loss Options:
Fixed Stop Loss: Based on a percentage of the price.
ATR-Based Stop Loss: Uses the Average True Range (ATR) for calculating the stop loss level.
Swing High/Low Stop Loss: Based on the most recent swing high or low.
Display Targets with Labels: Displays targets clearly on the chart, with options for price labels and boxes around the targets.
Full Customization: Customize colors, lines, and labels to fit your personal preferences.
Real-Time Alerts: Set up alerts to notify you when the price hits a target or stop loss level.
Summary Results Display: A table that shows the targets along with their prices and percentage distance from the current price.
How to Use the Script:
Set Input Points: Select three points (A, B, C) on the chart. The script will calculate the targets based on these points.
Choose Stop Loss Method: Select your preferred stop loss method (Fixed, ATR-Based, Swing High/Low).
Customize the Display: Customize the chart’s appearance by adjusting colors and other options.
Set Alerts: Enable alerts to be notified when the price reaches the targets or stop loss levels.
Notes:
The script follows basic technical analysis principles and helps traders accurately determine potential price targets using input points.
It provides flexibility through customizable stop loss methods and target options, making it a versatile and user-friendly tool.
Superfui - AintLenFuiSuperfui - AintLenFui: A Multi-Strategy Trading Framework
It can work as great as your brain can process and throw your creative on it.
The name tributed to my friends who always support me.
Thank you so much for others' code. I use them to build this.
// --- Credits ---
// @veryfid for ATR SL
// @TradesLuci1 for Breakouts
// @Dreadblitz for Follow Line Indicator - ORC Crypto FLI_AAFLI
// @Misu for Range Detector
The "Superfui - AintLenFui" is not a single strategy but a comprehensive and adaptive trading framework. It intelligently combines three distinct sub-strategies into one powerful system, designed to perform across various market conditions—whether the market is trending, ranging, or transitioning.
The core strength of this framework lies in its versatility, robust risk management, and its non-repainting signal logic, ensuring that backtest results are reliable and align with live trading performance.
The Three Core Strategies (The Three Pillars)
This framework automatically identifies the market condition and deploys the most suitable strategy.
1.Breakout Strategy (Trend Following)
Objective: To capture momentum and ride strong trends.
How it Works: It identifies key support/resistance levels using Pivot Highs and Lows. A trade is triggered when the price decisively breaks through these levels, signaling the start or continuation of a trend.
Ideal Market: Strong trending markets (Uptrends or Downtrends).
2.Mean Reversion Strategy (Range Trading)
Objective: To profit from price fluctuations within a defined range.
How it Works: When the built-in "Range Detector" identifies a sideways market (indicated by orange bands), this strategy activates. It looks for buy opportunities when the price dips to the lower band (in an oversold RSI condition) and sell opportunities when the price rises to the upper band (in an overbought RSI condition).
Ideal Market: Sideways, choppy, or non-trending markets.
3.RD Signal Strategy (Momentum Ignition)
Objective: To catch the very beginning of a new trend as it emerges from a range.
How it Works: This strategy triggers a trade based on the Range Detector's color change. A signal is generated when the market state shifts from "Range" (Orange) to "Uptrend" (Green) for a long trade, or to "Downtrend" (Red) for a short trade.
Ideal Market: Market transitions from a range-bound state to a trending state.
Additional Advanced Filtering & Confirmation
To improve signal quality and reduce false entries, the framework employs a suite of professional-grade filters (Most of them are for Breakout):
Volatility Filter: Ensures trades are taken only when market volatility is within an optimal range.
Volume Confirmation: Validates breakout signals with a surge in trading volume.
ADX Filter: Confirms that a trend has sufficient strength before entering a Breakout trade.
Multi-Timeframe (MTF) Analysis: Aligns trades with the dominant trend on higher timeframes for increased probability.
MA & RSI Filters: Provide additional layers of confirmation for trade direction and momentum.
Robust Risk Management
Capital protection is a cornerstone of this strategy.
Flexible Stop Loss: Options for ATR-based, Candle-based, or fixed Points stop loss.
Breakeven: Automatically moves the stop loss to the entry point after a certain profit is reached, protecting the trade from turning into a loss.
Trailing Stop: Locks in profits by moving the stop loss as the price moves favorably.
Max Daily Drawdown: A critical safety feature that halts all trading for the day if a predefined equity loss percentage is hit, preventing catastrophic losses.
Key Feature: Non-Repainting Logic
The strategy is specifically coded to be non-repainting. It makes all trading decisions based on data from confirmed, closed candles. This means the signals you see in a backtest are exactly what you would have seen in real-time, providing a high degree of confidence in the strategy's historical performance.
φ Naked Liquidation φφ Naked Liquidation φ
The Relic of Ruin and Revelation
Forged in the silence between candles and chaos, Naked Liquidation is not an indicator. It is a prophecy engine. A tool for those who no longer believe in coincidence.
Mark a high or a low, and summon a procession of liquidation levels. Up to forty at once, unfolding with mechanical precision and the cold inevitability of fate. Each line marks a point where overconfidence meets oblivion.
Or let it enter Auto Mode, where the tool locks onto the live price. No need for input. No room for error. It calculates on the edge of every tick, mapping destruction as it forms.
There are no labels. No signposts. Only quiet alignments on your chart, indistinguishable to the uninitiated. A hidden code written in liquidation thresholds.
Naked Liquidation is a myth dressed in stealth. It shows no mercy, asks no questions, and gives no second chances. It doesn’t just track the market. It sees the reckoning.
Use it if you dare. The map to ruin is now yours.
Trading Sessions (Asia, Europe, US) [Moscow Time]Title:
Trading Sessions (Asia, Europe, US)
Description:
This indicator highlights the three major trading sessions — Asian, European, and US — based on Moscow Time (GMT+3). It's useful for identifying key market activity periods and understanding when volatility typically increases.
Asian Session: 03:00–10:00 MSK (Tokyo, Hong Kong, Sydney) — shown in blue
European Session: 10:00–17:00 MSK (London, Frankfurt) — shown in green
US Session: 17:00–00:00 MSK (New York, Chicago) — shown in red
The background shading dynamically adjusts to highlight each session on any timeframe.
This tool is perfect for traders who want to visually track global session activity in their local time zone.
Elev8+ Reversal IndicatorThe Ultimate Reversal Finder Indicator. Does NOT Repaint or give 100 signals a day. Will only indicate strong reversal points. Use with extra confluence like support and resistance, MA's, liquidity sweeps, etc. More accurate at higher timeframes.
Bullish Auto FibsBullish Auto Fibs Indicator
Description
The Bullish Auto Fibs indicator is a sophisticated tool designed for traders on the TradingView platform, specifically tailored for analyzing bullish price movements on XRP and other assets. It automatically plots Fibonacci retracement, B Wave, and extension levels based on a customizable ZigZag pattern, providing clear visual cues for potential support, resistance, and price targets. With a focus on the 15-minute timeframe, this indicator enhances technical analysis by dynamically updating Fibonacci levels as new pivot highs and lows are detected, ensuring traders stay aligned with evolving market trends.
Key Features:
Automatic Fibonacci Levels: Plots retracement (23.6%, 38.2%, 50%, 61.8%, 78.6%), B Wave (23.6% to 161.8%), and extension (100%, 161.8%, 261.8%) levels.
Dynamic ZigZag Detection: Identifies pivot highs and lows with an adjustable length (1–100 bars, default 20).
Real-Time Updates: Adjusts Fibonacci levels when new highs (for retracements) or lows (for B Wave and extensions) are detected, preserving key reference points like the B Wave pivot high.
Customizable Display: Toggle visibility for retracement, B Wave, and extension levels to suit your analysis needs.
Visual Clarity: Uses distinct colors (gray for retracements, yellow for B Wave, green for extensions) and labels for easy interpretation.
This indicator is ideal for traders employing Elliott Wave theory, Fibonacci-based strategies, or trend-following approaches, offering a robust framework for identifying key price levels in bullish markets.
User Manual
Configuration
The indicator’s settings can be adjusted via the “Settings” panel in TradingView:
Yellow ZigZag Length (default: 20, range: 1–100): Controls the sensitivity of pivot detection. Higher values detect more significant pivots; lower values increase sensitivity for shorter-term swings.
Show Retracement Fibs (default: true): Enable/disable retracement levels (low to high, 0% at high, 100% at low).
Show B Wave Fibs (default: true): Enable/disable B Wave levels (high to low, 100% at high, 0% at low, with extensions up to 161.8%).
Show Extension Fibs (default: true): Enable/disable extension levels (pivot low as 0%, projecting upward).
How It Works
ZigZag Pattern:
The indicator identifies pivot highs and lows using the ta.pivothigh and ta.pivotlow functions, with the specified yellowLength.
Pivots are marked with “H” (high) or “L” (low) labels in yellow.
Fibonacci Levels:
Retracement Fibs: Drawn from a pivot low (100%) to a pivot high (0%). Updates to a new high if detected, maintaining the original low.
B Wave Fibs: Drawn from a pivot high (100%) to a pivot low (0%), with extensions above 100%. Updates to a new low if detected, preserving the original high.
Extension Fibs: Drawn from a pivot low (0%) upward, based on the prior low-to-high wave length. Updates to a new low if detected.
Dynamic Updates:
Lines and labels extend to the current bar for active Fibonacci levels, ensuring real-time relevance.
When a new pivot is detected, previous levels are cleared, and new levels are drawn to reflect the latest price structure.
Usage Tips
Trend Confirmation: Use retracement levels to identify potential support zones during pullbacks in a bullish trend.
B Wave Analysis: Leverage B Wave levels for corrective wave targets, especially in Elliott Wave strategies.
Price Targets: Extension levels highlight potential bullish continuation zones.
Timeframe Flexibility: While optimized for 15-minute charts, adjust yellowLength for higher (e.g., 50–100) or lower (e.g., 5–10) timeframes.
Combine with Other Tools: Pair with trend indicators (e.g., moving averages) or oscillators (e.g., RSI) for enhanced decision-making.
Troubleshooting
No Levels Displayed: Ensure at least two pivots (high and low) are detected. Increase yellowLength if pivots are sparse.
Overlapping Labels: Reduce chart zoom or toggle off unnecessary Fibonacci types to declutter.
Performance Issues: The indicator limits arrays to 500 entries to prevent slowdowns. Older pivots are automatically removed.
Notes
The indicator is optimized for bullish markets but can be adapted for other assets by adjusting the ZigZag length.
For best results, test settings on historical data to align with your trading style.
RTH Standard Deviation+RTH Standard Deviation+ Indicator
Overview
The RTH Standard Deviation+ (RTH SD+) indicator is a versatile tool designed for traders to visualize key price levels based on the Regular Trading Hours (RTH) session.
It calculates and displays the high, low, equilibrium (midpoint), and standard deviation-based levels derived from the RTH session's price range.
This indicator is ideal for day traders and swing traders looking to identify potential support, resistance, and breakout zones.
Features
Customizable Session Window: Define the RTH session based on your preferred time window and timezone.
Key Price Levels: Displays high, low, equilibrium, 25%/75% quartile levels, and standard deviation levels (±0.5, ±1.0, ±1.33, ±1.66, ±2.0, and optional extended levels up to ±4.0).
Visual Elements: Includes horizontal lines, labels, boxes, and vertical lines to highlight key levels and session boundaries.
Flexible Styling: Customize line styles, colors, thicknesses, and visibility for all elements.
Extended Levels: Optional display of additional standard deviation levels (±2.25, ±2.33, ±2.5, ±2.66, ±2.75, ±3.0, ±3.25, ±3.33, ±3.5, ±3.66, ±3.75, ±4.0).
Deviation Boxes: Visualize specific standard deviation ranges (±0.1, ±1.33/1.66, ±2.33/2.66, ±3.33/3.66) with customizable colors.
Inputs
Session Window: Set the RTH session time (default: 06:00–09:00).
Timezone: Select the appropriate timezone (default: UTC-4).
Label Offset: Adjust the horizontal offset for price level labels (default: 5 bars).
Line Offset: Set the length of horizontal lines extending from the session end (default: 20 bars).
Show SD Levels: Toggle visibility of standard deviation lines (±0.5, ±1.0, ±1.33, ±1.66, ±2.0).
Show SD Labels: Enable or disable labels for standard deviation levels.
Show SD Boxes: Display shaded boxes for specific standard deviation ranges (e.g., ±1.33/1.66).
Show ±0.1 Dev Boxes: Highlight smaller deviation ranges (±0.1) with boxes.
Vertical Line: Toggle a vertical line at the session end, with customizable color, style, and thickness.
High/Low, Equilibrium, 25%/75%, ±0.1 Dev, ±1.33/1.66: Toggle visibility and customize colors, styles, and thicknesses for these levels.
Extended Levels: Enable additional standard deviation levels (e.g., ±2.25, ±2.5, etc.) for advanced analysis.
How It Works
Session Tracking: The indicator identifies the user-defined RTH session based on the specified time window and timezone.
It tracks the high, low, and equilibrium (midpoint) of the session's price action.
Price Range Calculation: At the session's end, the indicator calculates the price range (high - low) and uses it to compute standard deviation levels relative to the high, low, or equilibrium.
Level Visualization:
High/Low Lines: Display the session's high and low prices as horizontal lines, extended beyond the session end.
Equilibrium Line: Shows the midpoint of the session range.
Quartile Lines: Plots 25% and 75% levels within the session range.
Standard Deviation Lines: Displays levels at ±0.5, ±1.0, ±1.33, ±1.66, and ±2.0 standard deviations, with optional extended levels up to ±4.0.
Deviation Boxes: Shaded boxes highlight specific ranges (e.g., ±1.33/1.66) for quick reference.
±0.1 Deviation Lines/Boxes: Optional smaller deviation levels for precise analysis.
Dynamic Updates: During the session, high and low lines update in real-time. At session end, all levels are finalized and extended forward for post-session analysis.
Clearing Mechanism: When a new session begins, previous drawings are cleared to avoid clutter.
Usage
Add to Chart: Apply the indicator to your TradingView chart via the Pine Editor or Indicator menu.
Configure Settings:
Adjust the session window and timezone to match your market (e.g., 09:30–16:00 UTC-4 for US equities RTH).
Customize visibility, colors, styles, and thicknesses to suit your chart preferences.
Enable extended levels for deeper analysis or disable them for simplicity.
Interpret Levels:
High/Low: Act as potential support/resistance or breakout levels.
Equilibrium: Represents the session's midpoint, often a pivot point.
25%/75% Quartiles: Indicate intermediate levels within the session range.
Standard Deviation Levels: Highlight statistically significant price zones for potential reversals or breakouts.
Boxes: Emphasize key zones for quick visual reference.
Trading Application: Use levels to identify entry/exit points, set stop-losses, or gauge market volatility.
For example, ±1.0 standard deviation levels often act as strong support/resistance, while ±2.0 levels may indicate overextension.
Notes
Ensure the session window aligns with the market’s trading hours for accurate calculations.
The indicator is designed for intraday and post-session analysis but can be adapted for other timeframes.
Use in conjunction with other technical analysis tools for comprehensive decision-making.
Extended levels (±2.25 and beyond) are disabled by default to reduce chart clutter but can be enabled for specific strategies.
TradingView House Rules Compliance
This indicator contains no copyrighted material and adheres to TradingView’s Pine Script guidelines.
This indicator was approved and created with @TIMELESS1_
Liquidity Zone IndicatorLiquidity Zone Indicator
This PineScript indicator for TradingView identifies liquidity zones in the market where significant trading activity occurs, based on volume spikes and price levels. It highlights areas where large orders may be filled, useful for day traders and scalpers.
Features:
Detects bullish and bearish liquidity zones using a lookback period (default: 50 bars) and volume threshold (default: 1.5x average volume).
Displays zones as shaded boxes or diamond markers above/below bars, customizable by color.
Option to extend zones until price breaks through, with dynamic transparency for better visualization.
Includes an alert for when a liquidity zone is hit.
Settings:
Liquidity Lookback: Number of bars to analyze for high/low price levels.
Volume Threshold: Multiplier for detecting volume spikes.
Display as Zone: Toggle between zone boxes or markers.
Extend Zone: Keep zones active until price crosses them.
Zone Color: Customize the color of zones or markers.
Ideal for traders looking to spot potential reversal or breakout areas driven by liquidity.
Multi Pivot Point - Nadeem alaa V1This advanced pivot point indicator combines both Traditional and Camarilla methods in one unified script, offering full customization and bilingual interface (Arabic–English).
It supports flexible pivot timeframes, including standard (Daily, Weekly, Monthly) and extended intervals (Biyearly, Quinquennial, Decennial).
Key features:
Traditional and Camarilla Pivot Levels (R1–R5, S1–S5, H1–H6, L1–L6)
Multi-timeframe logic with auto or manual resolution control
Customizable label placement, prices, and line styles
Daily-based or intraday-based OHLC calculation logic
Designed for high accuracy, clean visualization, and ease of use
Recuadro 06:00–07:30 NY extendido hasta 11:00 con DRDefining Range 6:00 am -7:30 am NY time
This indicator includes the daily range between 6:00am -7:30 am according to quarterly Theory
Dhokiya's 0.09% IndicatorThis is a custom indicator for predicting the levels on NSE:NIFTY chart for day trading. More strategy details will be updated soon.
(WIP)
- Rahul Dhangar
Initial Balance Wave Map📊 Initial Balance Wave Map – Powered by VWAP Wave
The Initial Balance Wave Map is your visual roadmap for navigating the first hour of trading like a pro. Built to align with the VWAP Wave System, this indicator automatically plots the Initial Balance (IB) high and low, calculates real-time IB extensions, and layers in key midpoints and volume-based structure to map out high-probability zones for both reversals and breakouts. This upgraded indicator builds upon the open-source foundation by @noop-noop, with enhancements and user-facing labels tailored for Auction Market Theory, scalping, and structure-based trade setups.
🔍 Key Features:
✅ Automatically plots IB High/Low based on session times (customizable)
🔁 Displays +1x / +2x IB extensions and midpoints for precision targeting
📐 Integrated with VWAP Wave strategy: use with deviation bands for full context
🎯 Works across futures, forex, and crypto — universal structure map
🎨 Optional visual highlights for calculation window and labeling
💡 How to Use:
Fade setups: Look for price rejection at ±1x or ±2x IB extensions inside a balanced market.
Breakout setups: Combine IB breaks with VWAP Wave price discovery for high-momentum plays.
Return to value: When price rejects extension levels and rotates, target the IB midpoint or VWAP.
Whether you’re scalping futures like NQ & ES, swinging gold, or analyzing forex pairs, the Initial Balance Wave Map gives you the structural clarity to react instead of guess.
For more information, visit vwapwave.com and find the VWAP Wave System official published book on Amazon.com .
🙌 Credits:
This script builds upon the excellent open-source work by @noop-noop. Original script available here .
Precision Candle & PSP 🔹 Precision Candle & PSP: Multi-Asset Confirmation Engine
The Precision Candle & PSP indicator is a dual-confirmation engine that detects two distinct price action setups — Precision Candles (PC) and Precision Swing Points (PSP) — using data from two comparison assets of your choice.
By incorporating confirmation from correlated or leading instruments, this tool provides a powerful way to filter out low-probability signals and focus on high-confluence reversal points.
⚙️ Key Features
Multi-Asset Confirmation Logic:
You can define two external symbols (e.g., correlated futures, ETFs, or indices). Signals are only displayed if one of those assets supports the signal seen on the current chart.
Precision Candle (PC) Detection:
This identifies potential reversal bars by checking for opposing candle sentiment between your chart and the comparison asset(s). For example, a bullish bar on the chart paired with a bearish bar on the comparison asset may indicate a rejection or divergence.
Precision Swing Point (PSP) Detection:
Detects swing highs and lows (mid-point structure) and filters them through confirmation from Asset 1 or 2, enabling highly refined structural reversal points.
Asset Priority System:
If both assets confirm, Asset 1 is prioritized. This gives traders control over which market they trust most as the lead signal.
Full Control Over Signal Types:
Toggle between PC, PSP, or both. You can also filter swing points by bullish-only, bearish-only, or both.
Timeframe Filtering:
Allows signals to show only on user-selected timeframes (1m to 1W), which helps align signals with your strategy.
Session-Based Filtering:
Enables session-based control — show signals only during specific time windows (e.g., New York Open, London Close, etc.).
🧠 How It Works
Precision Candle (PC):
Compares the current candle direction (bullish or bearish) on the main chart with the selected asset(s). A signal is generated if there’s candle divergence, indicating potential mispricing or reversal opportunity.
Precision Swing Point (PSP):
Detects classic swing structures (highs/lows) and applies the same multi-asset candle divergence logic, but using the middle bar of the swing. This provides more context and accuracy around turning points.
Visual Priority:
PSP color (from swing logic) takes priority if both PC and PSP trigger on the same bar.
🎯 Who This Indicator Is For
Reversal and structure traders who want early confirmation signals.
Multi-timeframe analysts who want to filter setups by session or timeframe.
Traders working with correlated markets, such as ES/NQ or DXY/Gold, where cross-confirmation adds an edge.
Discretionary traders who need context beyond price alone.
🔒 Why It’s Closed-Source
This script contains:
A custom-built multi-asset confirmation engine, including symbol prioritization and fallback logic.
Dual-layered filtering (timeframe + session) for hyper-specific signal control.
A proprietary blend of candle divergence + swing detection across separate assets — not publicly available in open-source scripts.
Due to the unique logic behind its signal detection and asset coordination framework, the script is protected to preserve its originality and edge.
⚠️ Important Notes
This tool does not generate buy/sell signals — it highlights price structure points that meet your selected confirmation criteria.
You must select valid trading symbols that are available in your data plan.
For best results, use this on correlated or leading markets (e.g., ES/NQ, YM/RTY, BTC.D/BTC, etc.).
Quarterly Theory Opening Prices🔹 Quarterly Theory Opening Prices (QTOP) Indicator
This indicator plots critical institutional price levels based on Quarterly Theory principles. It identifies and displays key opening prices from various timeframes — including Midnight Open, True Session Open (AM & PM), True Week Open, and True Month Open — all dynamically calculated and timezone-aligned.
These levels are widely used by professional traders to anticipate price reactions around session changes. The indicator is highly customizable, giving users visual and analytical access to these levels on any timeframe and market.
🔍 What This Indicator Does
Midnight Open (MO): The open of the new calendar day, often used in intraday trading for anchoring daily ranges.
True Session Open (TSO AM/PM): Reflects institutional trading session starts, designed to highlight liquidity injections during early U.S. market hours (07:30 and 13:30 EST).
True Week Open (TWO): Marks the institutional open for the trading week, beginning on Monday at 18:00 EST (Sunday 6 PM), used for weekly bias.
True Month Open (TMO): Accurately locates the first institutional trading Monday after NFP for monthly opening flow analysis — a rarely implemented but critical level for swing and macro traders.
🎯 Who It’s For
This indicator is designed for:
Intraday traders looking for early-session range anchors and reversal zones.
Swing traders using weekly/monthly opens as structural bias points.
Liquidity-based traders monitoring reactions around key institutional price levels.
🔒 Why It's Closed-Source
This script contains:
A custom-built session detection engine based on timestamp conditions instead of bar-based time filtering, ensuring more accurate plotting across timezones.
Dynamic label and line positioning logic that adapts based on timeframe and chart zoom, minimizing overlap and improving readability.
Proprietary open-level offset calculation logic to enhance visibility and prevent plotting distortion across devices and brokers.
Because these features go beyond existing open-source implementations, and required extensive backtesting and refinement, the source code has been protected.
⚙️ How to Use
Use on any chart and timeframe.
Adjust session settings via the UI panel.
Works best on instruments aligned with New York trading hours, but timezone support is included.
Use plotted levels to define trading ranges, support/resistance, or reference for breakout/reversal strategies.
📌 Note: This tool is not a buy/sell signal generator — it’s designed to provide reliable reference levels around which you can apply your own strategy.
Fair Value Z Gauge📊 Fair Value Z Gauge Indicator Description
- This indicator visually represents whether the price is relatively overvalued or undervalued compared to a specific moving average (MA) using a Z-score normalization approach.
- When the Z-score is around 0, it can be interpreted statistically as fair value or "fair price."
✅ Key Concept
- Price-to-MA ratio (p_ratio): Calculated by dividing the price by the MA and then subtracting 1, this shows the relative deviation from the moving average.
- Z-score normalization: p_ratio is divided by its 200-period standard deviation, making it easy to identify statistically significant overbought or oversold zones.
✅ Default & User Inputs
- Default MA period (100, DEMA by default)
- Selectable MA types: EMA, SMA, WMA, VWMA, RMA, DEMA, TEMA, ZLEMA, HMA
- Upper/lower threshold levels (h_level: 3, l_level: -1.5)
- Signal line period (default: 100) and line thickness
✅ Visualization
- Z-score line: Red gradient for overbought, aqua/green gradient for oversold zones
- Signal line: SMA of p_ratio for trend confirmation
- Upper/lower threshold lines: Clearly indicate risk and undervaluation zones
- Fill highlights: Visual emphasis when crossing thresholds
- Bar color: Automatically adjusts based on Z-score status
- Table: Displays real-time p_ratio value
✅ Swing Trading Strategy Interpretation & Usage
- Upper red peak: Overbought zone → Mandatory profit-taking or sell signal
- Lower blue bottom: Undervalued zone → Mandatory buy signal
- Line dropping toward 0: Ideal for gradual, phased entries (scaling in)
- Signal line: Helps confirm overall trend and entry/exit timing
💡 Usage Ideas
- Enables clear, quantified entry/exit strategies based on statistical overextension
- Allows for various MA combinations to define personalized "fair value" levels
- Ideal for scaling in/out and portfolio rebalancing strategies
copyright @invest_hedgeway
===========================================================================
📊 Fair Value Z Gauge 지표 설명
- 이 지표는 가격이 특정 이동평균(MA) 대비 상대적으로 고평가(Overvalued) 혹은 저평가(Undervalued) 되었는지를 Z-score 방식으로 정규화하여 시각적으로 보여줍니다.
- Z-Score가 0이라면 통계적으로 적정평가=공정가치라고 설명할 수 있습니다.
✅ 주요 개념
-가격 대비 이동평균 비율 (p_ratio) : 가격을 MA로 나눈 뒤 -1을 적용해 MA와의 상대적 괴리를 계산합니다.
- Z-score 기반 정규화: p_ratio를 200기간 표준편차로 나누어, 통계적으로 의미 있는 과열 구간과 저평가 구간을 쉽게 파악하도록 설계했습니다.
✅ 기본 입력 및 사용자 입력값
- 기본 MA 기간 (기본: 100, DEMA)
- MA 유형 선택 가능 : EMA, SMA, WMA, VWMA, RMA, DEMA, TEMA, ZLEMA, HMA
- 상단/하단 기준 경계선 (h_level: 3, l_level: -1.5)
- 시그널 라인 기간 (기본: 100) 및 굵기
✅ 시각화 구성
- Z-score 라인: 과열 시 빨간색, 과매도 시 청록색/녹색 그라디언트
- 시그널 라인: p_ratio의 SMA로 추세 보조
- 상단/하단 기준선: 위험 구간과 저점 구간 한눈에 확인
- fill 강조: 기준선 돌파 시 시각적 강조
- 바 색상: Z-score 상태에 따라 자동 채색
- 테이블: 현재 p_ratio 값 실시간 표시
✅ 스윙매매 간 전략적 해석 및 활용
- 상단 빨간 색상 최고·저점: 과열 구간 → 반드시 차익실현 또는 매도 신호
- 하단 파랑 색상 저점: 저평가 구간 → 반드시 매수 신호
- 선이 하락하며 0 인근 도달: 단계적 분할매수 시점
- 시그널 라인은 전체 흐름과 추가 타이밍 보조
💡 활용 아이디어
- 정량화된 과열·과매도 기준으로 단호한 진입·청산 전략 가능
- 다양한 MA 실험으로 자신만의 "공정 가치" 탐색
- 분할매수·매도, 포트폴리오 리밸런싱 전략에 최적
copyright @invest_hedgeway