Z-Score Trend Monitor [EdgeTerminal]The Z-Score Trend Monitor measures how far the short-term moving average deviates from the long-term moving average using the spread difference of the two — in standardized units. It’s designed to detect overextension, momentum exhaustion, and potential mean-reversion points by converting the spread between two moving averages into a normalized Z-score and tracking its change and direction over time.
The idea behind this is to catch the changes in the direction of a trend earlier than the usual and lagging moving average lines, allowing you to react faster.
The math behind the indicator itself is very simple. We take the simple moving average of the spread between a long term and short term moving average, and divide it by the difference between the spread and spread mean.
This results in a relatively accurate and early acting trend detector that can easily identify overbought and oversold levels in any timeframe. From our own testing, we recommend using this indicator as a trend confirmation tool.
How to Use It:
Keep an eye on the Z-Score or the blue line. When it goes over 2, it indicates an overbought or near top level, and when it goes below -2, it indicates an oversold or near bottom.
When Z-Score returns to zero or grey line, it suggests mean reversion is in progress.
You can also change the Z-Score criteria from 2 and -2 in the settings to any number you’d like for tighter or wider levels.
For scalping and fast trading setups, we recommend shorter SMAs, such as 5 and 20, and for longer trading setups such as swing trades, we recommend 20 and 100.
Settings:
Short SMA: Lookback period of short term simple moving average for the lower side of the SMA spread.
Short Term Weight: Additional weight or multiplier to suppress the short term SMA calculation. This is used to refine the SMA calculation for more granular and edge cases when needed, usually left at 1, meaning it will take the entire given value in the short SMA field.
Long SMA: Lookback period of long term simple moving average for the upper side of the SMA spread.
Long Term Weight: Additional weight or multiplier to suppress the long term SMA calculation. This is used to refine the long SMA calculation for more granular and edge cases when needed, usually left at 1, meaning it will take the entire given value in the long SMA field.
Z-Score Threshold: The threshold for upper (oversold) and lower (overbought) levels. This can also be set individually from the style page.
Z-Score Lookback Window: The lookback period to calculate spread mean and spread standard deviation
支撐和阻力
TJR's BOS strategyBreak of Structure (BOS) Indicator: TJR version
This Break of Structure (BOS) Indicator helps you identify key market shifts by highlighting breaks in market structure. It uses price action to spot significant swing highs and swing lows and draws horizontal lines that extend to the right whenever a BOS occurs.
Features:
Real-Time Updates: The indicator continuously updates in real time, marking BOS points as they occur.
BOS Lines:
Bullish Break of Structure (BOS): Occurs when the price closes above a previously established high.
Bearish Break of Structure (BOS): Occurs when the price closes below a previously established low.
Customizable: Easily change the color and line length of the BOS markers to suit your charting preferences.
Max Lines Control: Limit the number of BOS lines shown in both upward and downward directions to keep the chart clean.
Visual Clarity: Lines are drawn directly on the high or low levels, marking clear BOS zones on the chart for easy identification.
How to Use:
BOS Up: A bullish BOS is marked when the price closes above a previously marked high.
BOS Down: A bearish BOS is marked when the price closes below a previously marked low.
Trend Direction: This indicator can be particularly useful for traders following trend continuation or reversal strategies, as BOS points represent key areas where market sentiment shifts.
Custom Settings:
Change the color of BOS lines for better visibility.
Adjust the maximum number of BOS lines to display.
Order Block Breakout TrackerOrder Block Breakout Tracker
The Art of Trading Through Order Blocks
________________________________________
Overview:
The Order Block Breakout Tracker indicator is designed for traders to identify and track key order block levels in the market, providing visual cues and alerts when these levels are broken. This indicator helps traders spot potential market reversals, trend changes, and breakouts in real time. With adjustable parameters and customizable visuals, it is suitable for various trading strategies and market conditions.
________________________________________
Key Features:
1. Order Block Identification:
• Automatically detects and draws Bullish and Bearish Order Blocks based on significant price action patterns.
• Bullish OB: Identified when the price forms a strong bullish candle with a higher close.
• Bearish OB: Identified when the price forms a strong bearish candle with a lower close.
2. Customizable Visuals:
• Color Settings: Choose your preferred colors for bullish and bearish order blocks, including their labels.
• Label Customization: Set specific colors and styles for the labels to enhance clarity.
• Opacity Control: Adjust the transparency of order block zones to better visualize price action.
• Line Thickness: Define the thickness of the order block lines for better visibility.
3. Breakout Detection and Alerts:
• Detects when an Order Block is broken, signaling potential entry or exit points.
• Alert Conditions: Receive real-time alerts when a bullish or bearish order block is broken, keeping you informed of critical price movements.
• Bar Color Change: Optionally change the bar color when an order block is broken to indicate a shift in market sentiment.
4. Line Extension Feature:
• Extend broken order block lines for a customizable number of bars (up to 3 bars by default) after the breakout. This feature gives traders a visual reference for further price movement after a breakout.
5. Timeframe Control:
• Display order blocks only on timeframes above a specified minimum timeframe to ensure reliable signal generation.
• Dynamic Timeframe Filtering: Customize the indicator to only show order blocks on higher timeframes for more significant trends.
6. ATR-Based Filter for Candle Size:
• Filter out insignificant price action by adjusting the minimum candle size using an ATR multiplier.
• Ensures that only meaningful candles are considered for order block identification, reducing noise.
________________________________________
Customization Inputs:
• Show Order Blocks: Toggle the visibility of order blocks on the chart.
• Keep Broken OB: Option to keep broken order blocks on the chart for historical reference.
• Opacity: Set the transparency level of the order block zones.
• Bullish and Bearish OB Colors: Customize the colors for bullish and bearish order blocks.
• Line Extension: Extend order block lines by a specified number of bars after a breakout.
• Bar Color on Break: Change the color of bars when an order block is broken.
• Minimum Timeframe: Set the minimum timeframe for displaying order blocks.
________________________________________
Trading Strategy:
• Bullish Order Block: When a bullish order block is identified, it marks a potential support zone where price could reverse higher.
• Bearish Order Block: When a bearish order block is identified, it marks a potential resistance zone where price could reverse lower.
• Breakout Signals: A breakout above a bearish order block or below a bullish order block signals a continuation in the direction of the breakout.
________________________________________
Alerts and Notifications:
Set up real-time alerts when:
• A Bullish OB is broken.
• A Bearish OB is broken.
• Any Order Block is broken.
________________________________________
Use Cases:
• Day Traders: Quickly spot and react to order block breakouts and reversals.
• Swing Traders: Track longer-term support and resistance levels based on order block zones.
• Scalpers: Identify short-term breakouts and make quick trades based on market structure.
________________________________________
Conclusion:
The Smart Order Block Zones indicator is an essential tool for traders who wish to enhance their market analysis by focusing on key price levels where significant institutional activity may be taking place. With its customizable features and real-time alerts, this tool helps you stay on top of critical market movements and make informed trading decisions.
TJR Liquidity mark-out indicatorIndicator Description:
This custom Pine Script indicator is designed to mark highs and lows based on a simple candle pattern recognition system, ideal for traders using TJR's Strategy or any strategy focused on liquidity.
The indicator marks out key levels where the price has not yet taken out liquidity. Specifically, it looks for price patterns where there is:
A bullish candle followed by a bearish candle (marking a potential high).
A bearish candle followed by a bullish candle (marking a potential low).
Once these highs and lows are identified, lines are drawn extending to the right until price sweeps the level — that is, when the price breaks above a high or below a low, the line is deleted. This makes the indicator highly useful for liquidity-based strategies where the goal is to spot unfilled liquidity zones (i.e., levels where price has not yet reached).
The indicator is especially beneficial for traders who:
Use TJR's Strategy, which typically involves identifying market structure shifts and liquidity zones.
Focus on liquidity pools and want to visualize areas where the market could potentially "sweep" or revisit to grab liquidity before continuing its movement.
By showing these areas where the liquidity hasn't been taken out yet, this indicator allows traders to better time their entries and exits, helping them align with areas of unfilled liquidity in the market. It’s a great addition for those looking to trade near key liquidity zones or manage risk based on market structure shifts.
Key Features:
Marks Liquidity Zones: Detects potential liquidity areas based on candle patterns.
Dynamic Lines: Lines extend to the right and disappear once price sweeps them.
Perfect for TJR's Strategy: Aligns with liquidity-focused strategies.
Customizable: Choose time periods, colors, and line length for personalized settings.
Real-time Updates: Continuously updates as new candles form, ensuring you have the latest liquidity data.
OA - PowerZones Support And ResistancePowerZones - Dynamic Support/Resistance Identifier
Overview
PowerZones is an advanced technical analysis tool that automatically detects significant support and resistance zones using volume data and pivot points. This indicator pulls data from higher timeframes (weekly by default) to help you identify strong and meaningful levels that are filtered from short-term "noise."
Features
Multi-Timeframe Analysis: Create support/resistance levels from daily, weekly, or monthly data
Volume Filtering: Detect high-volume pivot points to identify more reliable levels
Dynamic Threshold: Volume filter that automatically adjusts to market conditions
Visual Clarity: Support/resistance zones are displayed as boxes with adjustable transparency
Optimal Level Selection: Filter out close levels to focus on the most significant support/resistance points
Use Cases
Entry/Exit Points: Identify trading opportunities at important support and resistance levels
Stop-Loss Placement: Use natural support levels to set more effective stop-losses
Target Setting: Use potential resistance levels as profit-taking targets
Understanding Market Structure: Detect long-term support/resistance zones to better interpret price movement
Input Parameters
Lookback Period: The period used to determine pivot points
Box Width : Adjusts the width of support/resistance zones
Relative Volume Period: The period used for relative volume calculation
Maximum Number of Boxes: Maximum number of support/resistance zones to display on the chart
Box Transparency: Transparency value for the boxes
Timeframe: Timeframe to use for support/resistance detection (Daily, Weekly, Monthly)
How It Works
PowerZones identifies pivot highs and lows in the selected timeframe. It filters these points using volume data to show only meaningful and strong levels. The indicator also consolidates nearby levels, allowing you to focus only on the most important zones on the chart.
Best Practices
Weekly timeframe setting is ideal for identifying long-term important support/resistance levels
Working with weekly levels on a daily chart allows you to combine long-term levels with short-term trades
ATR-based box width creates support/resistance zones that adapt to market volatility
Use the indicator along with other technical indicators such as RSI, MACD, or moving averages to confirm trading signals
Note: Like all technical indicators, this indicator does not guarantee 100% accuracy. Always apply risk management principles and use it in conjunction with other analysis methods to achieve the best results.
If you like the PowerZones indicator, please show your support by giving it a star and leaving a comment!
ULTIMATE Price Action Oscillator with Volume-Based S/R - MehtaULTIMATE Price Action Oscillator with Volume-Based S/R (UPO-PRO-VOL)
Key Features:
Smart Oscillator: Combines price action momentum with customizable smoothing.
Volume-Confirmed S/R: Identifies high-confidence Support/Resistance levels when price crosses above-average volume.
Real-Time Tracking: Displays S/R levels with timestamps (IST) in a clean table.
Visual Alerts: Dashed lines + labels mark key levels for easy spotting.
⚠️ STRONG DISCLAIMER
❌ This indicator is for educational purposes only.
❌ Not financial advice. Trading involves risk—always conduct your own analysis.
❌ No guarantee of accuracy. Past performance ≠ future results.
❌ Adjust settings carefully. Test in a demo account first.
❌ Volume thresholds may vary by asset. Customize Volume Threshold Multiplier as needed.
📝 How to Use:
S/R Signals: Green "S" = Support (oscillator crosses up with high volume). Red "R" = Resistance (oscillator crosses down with high volume).
Table: Tracks latest S/R prices and formation time (IST).
Tweak Settings: Adjust Oscillator Length, Smoothing, and Volume Threshold for your trading style.
Tip: Combine with trend analysis for higher-probability trades!
Script Settings (Default):
Oscillator Length: 5 (Can be adjusted upto a maximum value of 200)
Smoothing: 3
S/R Lookback: 100 bars
Volume Threshold: 1.5x avg volume
Initial Imbalance [First FVG - ICT] v1Initial Imbalance v1
This indicator identifies the first Fair Value Gap (FVG) at the start of a user-defined session, inspired by The Inner Circle Trader. It helps traders spot initial imbalance in a sessions price action, offering filter options to refine FVG detection and optional session high/low lines for context.
Features:
Detects the first bullish or bearish FVG at the session start (default: 08:30). ISE: Sets a custom session start time (hour and minute).
Filters FVGs by size: None, ATR-based, or Points-based.
Displays session high/low lines (optional) to visualize the session range.
Customizable colors for bullish and bearish FVGs (background and border derived from a single color input).
Alerts for new FVGs and mitigated FVGs.
Settings:
Session Start Time: Define the hour and minute for the session start.
FVG Filter Type: Choose None, ATR, or Points to filter FVGs by size.
ATR Multiple / Minimum Points: Set the minimum FVG size for ATR or Points filters.
Show Session High/Low Lines: Toggle visibility of session range lines.
Bullish/Bearish FVG Colors: Customize colors for FVGs.
Technical Details:
Overlay indicator, displayed directly on the price chart.
This indicator is ideal for traders seeking to identify key price imbalances at the start of a session, with flexible filtering and visualization options.
GZ Indicator✍️ Description:
GZ Indicator is an advanced indicator that automatically detects Golden Zones, optimal market entry zones based on the latest significant pivots. The system uses Fibonacci extensions to project precise price targets, while providing a dynamic, visual stop-loss.
Main features:
- Pivot Detection: Automatic identification of significant pivots (high/low).
- Optimal Entry Zones (OTE): Automatically calculates ideal entry zones based on Fibonacci retracements.
- Precise Targets: Displays price targets with Fibonacci extensions.
- Dynamic Stop-Loss: Visual stop-loss zone adjusted to market conditions.
- RSI and MACD display: Add an RSI and MACD chart to facilitate trend analysis and confirm your entries.
- Intelligent refresh: Automatic deletion of the active zone as soon as the stop-loss is reached.
🔥 Key features:
Automatic detection of significant pivots (highs and lows)
Dynamic calculation of the OTE (Optimal Trade Entry) zone on retracements 0.618 - 0. 705
Clear display of price targets based on extensions
Intelligent updating: old zones are retained for historical analysis
Automatic deletion of current zone if Stop-Loss is reached
Contextual RSI and MACD chart for improved trend analysis
Code optimized for minimum recalculations, fluid even on fast time units.
⚡ How to use it:
Spot the appearance of a Golden Zone.
Enter a position in the zone with RSI/MACD or price action confirmation.
Use the targets displayed to set your progressive Take-Profits.
Respect the Stop-Loss zone automatically drawn.
🛠️ Available parameters:
Activate/deactivate RSI/MACD chart
Choose number of pivots for detection
Display old targets
[⚠️ Disclaimer:
This indicator is a decision-making tool. It is not intended to be used as financial advice. Please always perform your own analysis and manage your risks properly.
🔥 Bon trading ! 🚀
DMM Face-Melter Pro v2🔧 Core Components & Functionality
📐 Dynamic Fibonacci Levels (Slow)
Five ultra-reliable zones based on extended Fibonacci sequences (think 377, 610, 987, etc.).
Specifically designed to remain hidden until price proximity matters.
When price action moves within ~10% of one of these levels, it’s automatically activated and displayed.
As price moves away, the level enters a cooldown phase and stops printing on the chart.
Especially powerful in swing setups and macro timeframes, where these levels often mark major turning points or hidden support/resistance, yet are not routinely tracked due their long length.
🧊 Cool 9 + Gradient Suite (Fast to Medium)
Cool 9: A fast-reacting line with a smooth visual gradient stretching to the Fibonacci 34. The gradient visually communicates momentum decay and near-term exhaustion.
Cool 21 and Cool 55: Optional overlays that round out this trio of reactive lines. These mid-length Fib levels are ideal for spotting rhythm-based reversals and continuation patterns.
All three have proven effectiveness across all timeframes, from intraday to monthly charts, with an emphasis on oscillation structure.
🌫 Death Metal Bands (Candle Coloring Logic)
Candle colors shift dynamically based on interaction with a Bollinger Bands–inspired cloud.
Candles get brighter or darker as they close deeper into the upper or lower cloud, giving an intuitive sense of price extremes without extra lines.
The color sequence resets when price enters the middle zone.
Choose between:
Standard Mode: Green/red candles shift toward white/gray.
Low-Stress Mode: Cream/gray candles shift toward purple/blue—for reduced screen fatigue and clearer judgment in high-volatility conditions.
🟨 200-Day Cloud
A cloud-based visualization of the 200-period moving average, enhanced with an embedded Fibonacci level.
Helps identify high-confluence zones that institutional traders often react to, but which are rarely marked with this level of refinement.
🧠 How to Use It
This script was built for traders who need high-signal input and low chart noise:
Swing traders can use the dynamic Fibonacci levels to monitor hidden zones where price often pivots.
Trend followers can lean on the Cool 9 suite to confirm direction and strength in real time.
Visual and discretionary traders will benefit from candle color cues that highlight exhaustion without clashing with other systems or charts.
Godfather of Support & Resistance Godfather of Support & Resistance
Overview
The Godfather of Support & Resistance script is a powerful tool designed to help traders identify critical support and resistance levels on their charts. These price levels are vital for understanding market behavior, as they often act as turning points where prices reverse, consolidate, or break through. By automating the detection of these levels, this script simplifies your trading decisions and enhances your technical analysis.
How It Works
Pivot Points for Level Detection:
The script uses pivot points to identify potential support (lows) and resistance (highs) levels:
A pivot high is a local peak (a high surrounded by lower highs).
A pivot low is a local trough (a low surrounded by higher lows).
You can adjust the Pivot Length (pivotLen) input to control the sensitivity of detection. Smaller values detect more levels, while larger values focus on major levels.
Dynamic Grouping with Tolerance:
The script dynamically groups nearby price levels using a tolerance percentage. This tolerance is based on the level's price, making it adaptive to all types of assets (low- and high-priced).
For example, if the tolerance is set to 1% and a level is at $100, levels within $1 are grouped together.
Touch Count for Significance:
The script tracks how many times the price interacts with each level (touch count). Only levels that meet or exceed the Minimum Touches (minTouches) input are displayed on the chart. This ensures only meaningful levels are highlighted.
Clear Visual Representation:
Resistance Levels (Red Lines): Represent areas where the price tends to reverse downward.
Support Levels (Green Lines): Represent areas where the price tends to reverse upward.
Labels are added to each level (optional) to display the price and the number of touches for better decision-making.
Inputs You Can Customize
Minimum Touches to Show Level:
Set the minimum number of price interactions required for a level to be displayed.
Maximum Lines to Keep:
Limit the number of support and resistance lines displayed to keep your chart clean and focused.
Pivot Length:
Customize the sensitivity of pivot point detection. Smaller values detect more levels, while larger values focus on key levels.
Tolerance for Touch Detection (%):
Adjust the grouping tolerance as a percentage of the price. For example, 1% groups levels that are within 1% of each other.
How to Use
Apply the Script:
Add the script to your TradingView chart, and it will automatically detect and plot support and resistance levels.
Analyze the Levels:
Use Resistance Levels (red lines) as potential sell zones or areas to place stop-loss orders above.
Use Support Levels (green lines) as potential buy zones or areas to place stop-loss orders below.
Customize for Your Trading Style:
Adjust the inputs to match your preferred strategy and the timeframe or asset you're analyzing.
Example Use Case
Imagine you're analyzing a stock:
Resistance Level: The script identifies resistance at $150 with 3 touches. This might be a potential sell zone if the price struggles to break through.
Support Level: The script identifies support at $130 with 4 touches. This might be a potential buy zone if the price shows signs of bouncing upward.
Key Features
Automatically detects and plots support and resistance levels.
Tracks the number of price touches to filter out weak levels.
Adapts dynamically to price ranges using a percentage-based tolerance.
Fully customizable to suit different trading styles and assets.
Clean and professional chart display with a limit on the number of lines.
Notes
This script is for educational purposes only and should not be considered financial advice.
Always perform your own analysis and manage risk before making trading decisions.
Why Use This Script?
The Godfather of Support & Resistance script simplifies your trading decisions by automating the detection of critical price levels. Whether you're a beginner or an experienced trader, this script is designed to save you time and help you focus on making informed trades.
Start using it today to master the art of support and resistance trading!
Let me know if you need further refinements for this description!
Anchored Darvas Box## ANCHORED DARVAS BOX
---
### OVERVIEW
**Anchored Darvas Box** lets you drop a single timestamp on your chart and build a Darvas-style consolidation zone forward from that exact candle. The indicator freezes the first user-defined number of bars to establish the range, verifies that price respects that range for another user-defined number of bars, then waits for the first decisive breakout. The resulting rectangle captures every tick of the accumulation phase and the exact moment of expansion—no manual drawing, complete timestamp precision.
---
### HISTORICAL BACKGROUND
Nicolas Darvas’s 1950s box theory tracked institutional accumulation by hand-drawing rectangles around tight price ranges. A trade was triggered only when price escaped the rectangle.
The anchored version preserves Darvas’s logic but pins the entire sequence to a user-chosen candle: perfect for analysing a market open, an earnings release, FOMC minute, or any other catalytic bar.
---
### ALGORITHM DETAIL
1. **ANCHOR BAR**
*You provide a timestamp via the settings panel.* The script waits until the chart reaches that bar and records its index as **startBar**.
2. **RANGE DEFINITION — BARS 1-7**
• `rangeHigh` = highest high of bars 1-7 plus optional tolerance.
• `rangeLow` = lowest low of bars 1-7 minus optional tolerance.
3. **RANGE VALIDATION — BARS 8-14**
• Price must stay inside ` `.
• Any violation aborts the test; no box is created.
4. **ARMED STATE**
• If bars 8-14 hold the range, two live guide-lines appear:
– **Green** at `rangeHigh`
– **Red** at `rangeLow`
• The script is now “armed,” waiting indefinitely for the first true breakout.
5. **BREAKOUT & BOX CREATION**
• **Up breakout** =`high > rangeHigh` → rectangle drawn in **green**.
• **Down breakout**=`low < rangeLow` → rectangle drawn in **red**.
• Box extends from **startBar** to the breakout bar and never updates again.
• Optional labels print the dollar and percentage height of the box at its left edge.
6. **OPTIONAL COOLDOWN**
• After the box is painted the script can stay silent for a user-defined number of bars, letting you study the fallout without another range immediately arming on top of it.
---
### INPUT PARAMETERS
• **ANCHOR TIME** – Precise yyyy-mm-dd HH:MM:SS that seeds the sequence.
• **BARS TO DEFINE RANGE** – Default 7; affects both definition and validation windows.
• **OPTIONAL TOLERANCE** – Absolute price buffer to ignore micro-wicks.
• **COOLDOWN BARS AFTER BREAKOUT** – Pause length before the indicator is allowed to re-anchor (set to zero to disable).
• **SHOW BOX DISTANCE LABELS** – Toggle to print Δ\$ and Δ% on every completed box.
---
### USER WORKFLOW
1. Add the indicator, open settings, and set **ANCHOR TIME** to the candle you care about (e.g., “2025-04-23 09:30:00” for NYSE open).
2. Watch live as the script:
– Paints the seven-bar range.
– Draws validation lines.
– Locks in the box on breakout.
3. Use the box boundaries as structural stops, targets, or context for further trades.
---
### PRACTICAL APPLICATIONS
• **OPENING RANGE BREAKOUTS** – Anchor at the first second of the session; capture the initial 7-bar range and trade the first clean break.
• **EVENT STUDIES** – Anchor at a news candle to measure immediate post-event volatility.
• **VOLUME PROFILE FUSION** – Combine the anchored box with VPVR to see if the breakout occurs at a high-volume node or a low-liquidity pocket.
• **RISK DISCIPLINE** – Stop-loss can sit just inside the opposite edge of the anchored range, enforcing objective risk.
---
### ADVANCED CUSTOMISATION IDEAS
• **MULTIPLE ANCHORS** – Clone the indicator and anchor several boxes (e.g., London open, New York open).
• **DYNAMIC WINDOW** – Switch the 7-bar fixed length to a volatility-scaled length (ATR percentile).
• **STRATEGY WRAPPER** – Turn the indicator into a `strategy{}` script and back-test anchored boxes on decades of data.
---
### FINAL THOUGHTS
Anchored Darvas Boxes give you Darvas’s timeless range-break methodology anchored to any candle of interest—perfect for dissecting openings, economic releases, or your own bespoke “important” bars with laboratory precision.
Auto Darvas Boxes## AUTO DARVAS BOXES
---
### OVERVIEW
**Auto Darvas Boxes** is a fully-automated, event-driven implementation of Nicolas Darvas’s 1950s box methodology.
The script tracks consolidation zones in real time, verifies that price truly “respects” those zones for a fixed validation window, then waits for the first decisive range violation to mark a directional breakout.
Every box is plotted end-to-end—from the first candle of the sideways range to the exact candle that ruptures it—giving you an on-chart, visually precise record of accumulation or distribution and the expansion that follows.
---
### HISTORICAL BACKGROUND
* Nicolas Darvas was a professional ballroom dancer who traded U.S. equities by telegram while touring the world.
* Without live news or Level II, he relied exclusively on **price** to infer institutional intent.
* His core insight: true market-moving entities leave footprints in the form of tight ranges; once their buying (or selling) is complete, price erupts out of the “box.”
* Darvas’s original procedure was manual—he kept notebooks, drew rectangles around highs and lows, and entered only when price punched out of the roof of a valid box.
* This indicator distills that logic into a rolling, self-resetting state machine so you never miss a box or breakout on any timeframe.
---
### ALGORITHM DETAIL (FOUR-STATE MACHINE)
**STATE 0 – RANGE DEFINITION**
• Examine the last *N* candles (default 7).
• Record `rangeHigh = highest(high, N) + tolerance`.
• Record `rangeLow = lowest(low, N) – tolerance`.
• Remember the index of the earliest bar in this window (`startBar`).
• Immediately transition to STATE 1.
**STATE 1 – RANGE VALIDATION**
• Observe the next *N* candles (again default 7).
• If **any** candle prints `high > rangeHigh` or `low < rangeLow`, the validation fails and the engine resets to STATE 0 **beginning at the violating candle**—no halfway boxes, no overlap.
• If all *N* candles remain inside the range, the box becomes **armed** and we transition to STATE 2.
**STATE 2 – ARMED (LIVE VISUAL FEEDBACK)**
• Draw a **green horizontal line** at `rangeHigh`.
• Draw a **red horizontal line** at `rangeLow`.
• Lines are extended in real time so the user can see the “live” Darvas ceiling and floor.
• Engine waits indefinitely for a breakout candle:
– **Up-Breakout** if `high > rangeHigh`.
– **Down-Breakout** if `low < rangeLow`.
**STATE 3 – BREAKOUT & COOLDOWN**
• Upon breakout the script:
1. Deletes the live range lines.
2. Draws a **filled rectangle (box)** from `startBar` to the breakout bar.
◦ **Green fill** when price exits above the ceiling.
◦ **Red fill** when price exits below the floor.
3. Optionally prints two labels at the left edge of the box:
◦ Dollar distance = `rangeHigh − rangeLow`.
◦ Percentage distance = `(rangeHigh − rangeLow) / rangeLow × 100 %`.
• After painting, the script waits a **user-defined cooldown** (default = 7 bars) before reverting to STATE 0. The cooldown guarantees separation between consecutive tests and prevents overlapping rectangles.
---
### INPUT PARAMETERS (ALL ADJUSTABLE FROM THE SETTINGS PANEL)
* **BARS TO DEFINE RANGE** – Number of candles used for both the definition and validation windows. Classic Darvas logic uses 7 but feel free to raise it on higher timeframes or volatile instruments.
* **OPTIONAL TOLERANCE** – Absolute price buffer added above the ceiling and below the floor. Use a small tolerance to ignore single-tick spikes or data-feed noise.
* **COOLDOWN BARS AFTER BREAKOUT** – How long the engine pauses before hunting for the next consolidation. Setting this equal to the range length produces non-overlapping, evenly spaced boxes.
* **SHOW BOX DISTANCE LABELS** – Toggle on/off. When on, each completed box displays its vertical size in both dollars and percentage, anchored at the box’s left edge.
---
### REAL-TIME VISUALISATION
* During the **armed** phase you see two extended, colour-coded guide-lines showing the exact high/low that must hold.
* When the breakout finally occurs, those lines vanish and the rectangle instantly appears, coloured to match the breakout direction.
* This immediate visual feedback turns any chart into a live Darvas tape—no manual drawing, no lag.
---
### PRACTICAL USE-CASES & BEST-PRACTICE WORKFLOWS
* **INTRADAY MOMENTUM** – Drop the script on 1- to 15-minute charts to catch tight coils before they explode. The coloured box marks the precise origin of the expansion; stops can sit just inside the opposite side of the box.
* **SWING & POSITION TRADING** – On 4-hour or daily charts, boxes often correspond to accumulation bases or volatility squeezes. Waiting for the box-validated breakout filters many false signals.
* **MEAN-REVERSION OR “FADE” STRATEGIES** – If a breakout immediately fails and price re-enters the box, you may have trapped momentum traders; fading that failure can be lucrative.
* **RISK MANAGEMENT** – Box extremes provide objective, structure-based stop levels rather than arbitrary ATR multiples.
* **BACK-TEST RESEARCH** – Because each box is plotted from first range candle to breakout candle, you can programmatically measure hold time, range height, and post-breakout expectancy for any asset.
---
### CUSTOMISATION IDEAS FOR POWER USERS
* **VOLATILITY-ADAPTIVE WINDOW** – Replace the fixed 7-bar length with a dynamic value tied to ATR percentile so the consolidation window stretches or compresses with volatility.
* **MULTI-TIMEFRAME LOGIC** – Only arm a 5-minute box if the 1-hour trend is aligned.
* **STRATEGY WRAPPER** – Convert the indicator to a full `strategy{}` script, automate entries on breakouts, and benchmark performance across assets.
* **ALERTS** – Create TradingView alerts on both up-breakout and down-breakout conditions; route them to webhook for broker automation.
---
### FINAL THOUGHTS
**Auto Darvas Boxes** packages one of the market’s oldest yet still potent price-action frameworks into a modern, self-resetting indicator. Whether you trade equities, futures, crypto, or forex, the script highlights genuine contraction-expansion sequences—Darvas’s original “boxes”—with zero manual effort, letting you focus solely on execution and risk.
Paul_BDT Osc. RSI with Divergence, Order Blocks & Channel//=====================================================================
// Combination of:
// 1. Classic RSI with overbought/oversold thresholds
// 2. Adaptive bands on RSI (dynamically calculated with EMA of gains/losses)
// 3. Moving averages on RSI (optional, including SMA + Bollinger Bands)
// 4. Detection of RSI/price divergences (classic: bullish and bearish)
// 5. Detection of ranges (consolidation zones) with Order Blocks and extensions
// 6. Candle coloring based on dynamic RSI thresholds (breakout/breakdown)
//
// All with multi-timeframe options (displaying adaptive bands from a higher timeframe).
//=====================================================================
//=======================//
// 1. INPUTS (Parameters)
//=======================//
// RSI parameters: source, length, OB/OS thresholds, higher timeframe, divergence activation, adaptive bands display
// Smoothing parameters: choice of MA type applied to RSI (SMA, EMA, etc.) + optional Bollinger Bands
// Order Block parameters: display of ranges, order blocks, zone and candle colors
//=======================//
// 2. CALCULATIONS
//=======================//
// Base RSI calculated on the selected source (default: close)
// Smoothing: applies a chosen moving average to the RSI
// If 'SMA + Bollinger Bands' is selected, also calculates standard deviation to plot the bands
// Adaptive RSI bands: calculated via EMA method of gains/losses over a specific period (close to Wilder's RSI)
// Two adaptive thresholds are defined: upper (overbought) and lower (oversold), which adjust according to the market
// Multi-timeframes:
// Retrieves adaptive bands calculated on a higher timeframe (e.g., daily if TF = 'D')
// Allows overlaying adaptive RSI thresholds from different timeframes
// Dynamic definition of RSI thresholds for candle coloring:
// - Bullish/bearish center: 55/45
// - Adjusts the thresholds based on the price position relative to SMA 200 (if > SMA200, bullish center is used)
//=======================//
// 3. PLOTS (Displays)
//=======================//
// Display of the classic RSI with its OB/OS thresholds + gradient fill to better visualize the zones
// Display of moving averages on RSI and optional Bollinger Bands (if enabled)
// Display of adaptive RSI bands:
// - Those from the higher timeframe (always displayed)
// - Those from the current timeframe (optional display)
// Candle coloring (barcolor):
// - Green if RSI exceeds the dynamic upper threshold (breakout)
// - Red if RSI drops below the dynamic lower threshold (breakdown)
// - Specific color for candles within the neutral zone (range candle color)
//=======================//
// 4. DIVERGENCES
//=======================//
// Detection of regular RSI/price divergences:
// - Bullish divergence: price forms a new lower low, RSI forms a higher low
// - Bearish divergence: price forms a new higher high, RSI forms a lower high
// Display on the RSI panel:
// - Curves and labels (Bull/Bear) at divergence points
//=======================//
// 5. RANGE DETECTION & ORDER BLOCKS
//=======================//
// Automatic detection of ranges (consolidation zones):
// - Based on dynamic RSI thresholds (if RSI oscillates within a defined band)
// - Identifies the range's highs/lows (with configurable future extensions)
// Two types of zones plotted with 'boxes':
// 1. **Range close box**: frames the main consolidation zone (candle bodies)
// 2. **Order block box**: tighter zone around the extremes (highs/lows of closes)
// A midline is drawn at the center of the order block (dashed)
// If price breaks the range boundaries, the zone is removed (range ended)
Adaptive Support & Resistance Levels [StabTrading]The Adaptive S&R Levels indicator is designed to study support and resistance levels by synthesizing multiple well-known techniques for identifying these zones. It aims to provide traders with reliable price levels that reflect the collective perspective of market participants, using historical price action and projective techniques for extreme conditions.
💡 Introduction: Identified Problem
Traders often draw support and resistance lines using varied methods, leading to inconsistencies in where these levels are placed on charts. This variability can reduce the effectiveness of individual levels, as price may not react strongly to zones that lack broad recognition. The Adaptive S&R Levels indicator addresses this by aggressively averaging multiple established techniques to create support and resistance lines that align with what most traders are likely to identify, increasing the probability of price reactions.
🚀 How it Works: Overview
The indicator employs a multi-technique algorithm to generate support and resistance levels, ensuring they represent a consensus of trader perspectives.
🚀 How it Works: Chart Levels Display and Styling
Support levels, displayed in green below the current price, and resistance levels, shown in red above the price, are plotted clearly on the chart. Levels are numbered sequentially (e.g., v1, v2) as they move further from the current price, providing a visual hierarchy of proximity. Extreme levels, labeled as "Extreme Support" or "Extreme Resistance," are plotted in a bolder color to distinguish them as the outermost boundaries, maintaining the same green (support) and red (resistance) color scheme for consistency.
🚀 How it Works: Historical Price Action Algorithm
For areas with available historical data, the algorithm analyzes price action using a variety of recognized methods for drawing support and resistance, such as pivot points, swing highs/lows, and volume-based zones. It calculates a weighted average of these techniques to produce a “regression fit” line that reflects the accumulation of levels traders might draw. By prioritizing areas where multiple methods converge, the indicator identifies zones likely to be significant to a wide audience, enhancing their relevance.
🚀 How it Works: Projective Techniques Algorithm
In scenarios without recent historical price action—such as all-time highs or lows—the indicator employs an alternative algorithm that combines projective techniques commonly used by traders. These include Fibonacci extensions, Measured Moves (price projections), Psychological Milestones (e.g., round numbers), Channel/Trendline Extrapolation, and Time-Based Targets (inspired by methods like Gann techniques). The algorithm seeks a confluence of these methods to draw support and resistance levels that align with what most traders would consider significant in such conditions. These levels maintain the same green (support) and red (resistance) color scheme, with numbering based on their distance from the price.
🚀 How it Works: Noise Parameter Adjustment
Users can adjust a noise parameter to control the number of displayed levels. Lower settings show more lines, reflecting a broader range of potential zones but with less confluence. Higher settings increase the required confluence of techniques, resulting in fewer lines that have a higher probability of eliciting a price reaction. This customization allows traders to tailor the indicator to their preferred timeframe or trading style.
🔥 Features
Confluence-Based Levels: Support and resistance lines are derived from a weighted average of multiple techniques, aiming to mirror the levels most traders would recognize.
Extreme Levels: Generates support and resistance in areas without historical price action, using techniques like Fibonacci extensions and Measured Moves.
Color-Coded Display: Green support levels appear below the current price, and red resistance levels appear above, with extreme levels in a bolder shade for distinction.
Adjustable Noise Parameter: Users can modify the confluence threshold to display more lines (lower settings) or fewer, higher-probability lines (higher settings).
📈 Implementing the System
1. Adjust Settings
Set the noise parameter based on your trading style (0.1 to 10).
Use lower values for more frequent levels, suitable for scalping or short-term analysis.
Use higher values for fewer, higher-confluence levels, ideal for swing trading or longer-term strategies.
Adjust for your timeframe: Settings tend to be lower on shorter timeframes and higher on longer timeframes.
2. Identify Levels
Monitor green support levels below the price for potential buying zones, noting their numbered proximity (v1, v2, etc.).
Observe red resistance levels above the price for potential selling or shorting zones, noting their numbered proximity.
Note extreme levels (labeled "Extreme Support" or "Extreme Resistance") in areas like all-time highs, which may act as key reversal points.
3. Evaluate Price Reactions
Track how price interacts with the plotted levels to assess their effectiveness, considering their proximity to price.
Observe performance in bullish, bearish, or ranging markets to understand the indicator’s behavior at different levels.
Test different noise parameter settings across various assets and timeframes to find the optimal balance for your approach.
4. Layering Trades with Levels
Use the numbered levels to layer into a trade: for example, enter a partial position at a closer support level (e.g., v1) and add to it at a further level (e.g., v2) if price continues to decline, spreading risk across multiple zones.
Layer out of a trade by taking partial profits at each resistance level as price rises (e.g., reduce position at v1, then v2), or fully exit at an "Extreme Resistance" level to maximize gains while managing exposure.
🔶 Conclusion
The Adaptive S&R Levels indicator provides a framework for studying support and resistance by averaging multiple trader-recognized techniques. With its ability to handle both historical and extreme price scenarios, numbered levels for visual hierarchy, and customizable noise settings, it offers a versatile tool for analyzing key price levels. Designed for educational use, it encourages traders to test and observe how these consensus-driven levels align with market behavior within broader analysis.
All-Time, Yearly & Monthly High/LowThis indicator visually tracks and displays:
• All-Time High (ATH) – The highest price the asset has ever reached
• All-Time Low (ATL) – The lowest price the asset has ever reached
• Yearly High/Low – The highest and lowest prices recorded in the current calendar year
• Monthly High/Low – The highest and lowest prices in the current calendar month
It helps traders quickly identify major support/resistance levels and historical price extremes across different timeframes. Level
Color
Updates When
All-Time High
Red
A new highest price ever is reached
All-Time Low
Green
A new lowest price ever is reached
Yearly High
Orange
New yearly high occurs or changes with new year
Yearly Low
Teal
New yearly low occurs or changes with new year
Monthly High
Fuchsia
New monthly high or at the start of each new month
Monthly Low
Navy Blue
New monthly low or at the start of each new month This indicator is especially useful for:
• Swing traders watching monthly or yearly trend zones
• Breakout traders looking to spot price levels where breakouts might occur
• Reversal traders using all-time levels for high-risk reward zones
• Long-term investors gauging historical extremes for entries/exits
Auto Support Resistance Channels [TradingFinder] Top/Down Signal🔵 Introduction
In technical analysis, a price channel is one of the most widely used tools for identifying and tracking price trends. A price channel consists of two parallel trendlines, typically drawn from swing highs (resistance) and swing lows (support). These lines define dynamic support and resistance zones and provide a clear framework for interpreting price fluctuations.
Drawing a channel on a price chart allows the analyst to more precisely identify entry points, exit levels, take-profit zones, and stop-loss areas based on how the price behaves within the boundaries of the channel.
Price channels in technical analysis are generally categorized into three types: upward channels with a positive slope, downward channels with a negative slope, and horizontal (range-bound) channels with near-zero slope. Each type offers unique insights into market behavior depending on the price structure and prevailing trend.
Structurally, channels can be formed using either minor or major pivot points. A major channel typically reflects a stronger, more reliable structure that appears on higher timeframes, whereas a minor channel often captures short-term fluctuations or corrective movements within a larger trend.
For instance, a major downward channel may indicate sustained selling pressure across the market, while a minor upward channel could represent a temporary pullback within a broader bearish trend.
The validity of a price channel depends on several factors, including the number of price touches on the channel lines, the symmetry and parallelism of the trendlines, the duration of price movement within the channel, and price behavior around the median line.
When a price channel is broken, it is generally expected that the price will move in the breakout direction by at least the width of the channel. This makes price channels especially useful in breakout analysis.
In the following sections, we will explore the different types of price channels, how to draw them accurately, the structural differences between minor and major channels, and key trade interpretations when price interacts with channel boundaries.
Up Channel :
Down Channel :
🔵 How to Use
A price channel is a practical tool in technical analysis for identifying areas of support, resistance, trend direction, and potential breakout zones. The structure consists of two parallel trendlines within which price fluctuates.
Traders use the relative position of price within the channel to make informed trading decisions. The two primary strategies include range-based trades (buying low, selling high) and breakout trades (entering when price exits the channel).
🟣 Up Channel
In an upward channel, price moves within a positively sloped range. The lower trendline acts as dynamic support, while the upper trendline serves as dynamic resistance. A common strategy involves buying near the lower support and taking profit or selling near the upper resistance.
If price breaks below the lower trendline with strong volume or a decisive candle, it can signal a potential trend reversal. Channels constructed from major pivots generally reflect dominant uptrends, while those based on minor pivots are often corrective structures within a broader bearish movement.
🟣 Down Channel
In a downward channel, price moves between two negatively sloped lines. The upper trendline functions as resistance, and the lower trendline as support. Ideal entry for short trades occurs near the upper boundary, especially when confirmed by bearish price action or a resistance level.
Exit targets are typically located near the lower support. If the upper boundary is broken to the upside, it may be an early sign of a bullish trend reversal. Like upward channels, a major down channel represents broader selling pressure, while a minor one may indicate a brief retracement in a bullish move.
🟣 Range Channel
A horizontal or range-bound channel is characterized by price oscillating between two nearly flat lines. This type of channel typically appears during sideways markets or periods of consolidation.
Traders often buy near the lower boundary and sell near the upper boundary to take advantage of contained volatility. However, fake breakouts are more frequent in range-bound structures, so it is important to wait for confirmation through candlestick signals and volume. A confirmed breakout beyond the channel boundaries can justify entering a trade in the direction of the breakout.
🔵 Settings
Pivot Period :This parameter defines how sensitive the channel detection is. A higher value causes the algorithm to identify major pivot points, resulting in broader and longer-term channels. Lower values focus on minor pivots and create tighter, short-term channels.
🔔 Alerts
Alert Configuration :
Enable or disable the full alert system
Set a custom alert name
Choose the alert frequency: every time, once per bar, or on bar close
Define the time zone for alert timestamps (e.g., UTC)
Channel Alert Types :
Each channel type (Major/Minor, Internal/External, Up/Down) supports two alert types :
Break Alert : Triggered when price breaks above or below the channel boundaries
React Alert : Triggered when price touches and reacts (bounces) off the channel boundary
🎨 Display Settings
For each of the eight channel types, you can customize:
Visibility : show or hide the channel
Auto-delete previous channels when new ones are drawn
Style : line color, thickness, type (solid, dashed, dotted), extension (right only, both sides)
🔵 Conclusion
The price channel is a foundational structure in technical analysis that enables traders to analyze price movement, identify dynamic support and resistance zones, and locate potential entry and exit points with greater precision.
When constructed properly using minor or major pivots, a price channel offers a consistent and intuitive framework for interpreting market behavior—often simpler and more visually clear than many other technical tools.
Understanding the differences between upward, downward, and range-bound channels—as well as recognizing the distinctions between minor and major structures—is critical for selecting the right trading strategy. Upward channels tend to generate buying opportunities, downward channels prioritize short setups, and horizontal channels provide setups for both mean-reversion and breakout trades.
Ultimately, the reliability of a price channel depends on various factors such as the number of touchpoints, the duration of the channel, the parallelism of the lines, and how the price reacts to the median line.
By taking these factors into account, an experienced analyst can effectively use price channels as a powerful tool for trend forecasting and precise trade execution. Although conceptually simple, successful application of price channels requires practice, pattern recognition, and the ability to filter out market noise.
Trend Breakout [Uncle Sam Trading]Trend Breakout Indicator
Overview
The Trend Breakout Indicator is a powerful, non-repainting tool designed to help traders identify high-probability breakout and trend reversal setups on any market and timeframe. By leveraging pivot points, this indicator draws dynamic support and resistance channels, highlights counter-trend breakouts, and provides visual cues for market direction. It’s ideal for traders looking to simplify their analysis while targeting key price levels for entries and exits.
Key Features
Pivot-Based Channels: Draws a red upper channel (resistance) and a green lower channel (support) by connecting recent pivot highs and lows.
Counter-Trend Breakout Signals:
Blue “CT Breakup” signal (▲) when the price breaks above the upper channel during a downtrend, indicating a potential reversal or pullback.
Orange “CT Breakdown” signal (▼) when the price breaks below the lower channel during an uptrend, signaling a potential downmove.
Trend Visualization: Background color shifts to green for uptrends and red for downtrends, making it easy to gauge market direction.
Customizable Settings: Adjust pivot detection sensitivity with “Pivot Left Bars” (default: 5) and “Pivot Right Bars” (default: 1), and control channel extension with “Channel Extension Bars” (default: 50).
Optional Trend Signals: Enable “Show Trend Change Signals” to display trend shifts with green (uptrend) or red (downtrend) arrows.
Alert Conditions: Set alerts for counter-trend breakouts and trend changes directly on TradingView.
Example Performance (BTCUSDT, 1-Hour Chart)
On the BTCUSDT 1-hour chart:
A “CT Breakdown” signal appeared on April 6 at 8:00 AM at $82,700, followed by a drop to $74,400 within hours—a 10% move.
A “CT Breakup” signal occurred on April 9 at 1:00 AM at $76,600, leading to a rally to $86,600 in a few hours—a 9% gain.
These examples highlight the indicator’s ability to spot significant price movements, though results depend on market conditions, your trading style, and risk management.
Settings
Pivot Left Bars (default: 5): Number of bars to the left for pivot detection.
Pivot Right Bars (default: 1): Number of bars to the right for pivot confirmation (ensures non-repainting signals).
Channel Extension Bars (default: 50): How far the channels extend to the right.
Show Pivot Points (default: true): Displays small triangles at pivot highs (maroon) and lows (navy).
Show Counter-Trend Breakout Signals (default: true): Shows CT Breakup and CT Breakdown signals.
Show Trend Change Signals (default: false): Displays trend shift arrows when enabled.
How to Use
Add the indicator to your chart via TradingView’s indicator library.
Adjust the settings to match your trading style and timeframe.
Watch for “CT Breakup” and “CT Breakdown” signals to identify potential trade setups.
Use the background color (green/red) to confirm the current trend.
Set alerts for breakouts or trend changes to stay updated on key signals.
Always combine with proper risk management and your own analysis—past performance is not a guarantee of future results.
Notes
The indicator is non-repainting, meaning signals are confirmed and won’t disappear after they form.
Works on any market (crypto, forex, stocks) and timeframe, such as the BTCUSDT 1-hour chart shown.
Performance varies based on market volatility and your trading strategy.
This is a free tool created to support the TradingView community—feedback is welcome in the comments!
Disclaimer
Trading involves risk, and this indicator is not a guaranteed predictor of future price movements. Always conduct your own analysis and manage risk appropriately. The examples provided (e.g., BTCUSDT signals) are for educational purposes only and reflect past performance, which may not repeat.
Benner Cycle + Auto Weekly FibonacciBenner Cycle Wave
A sinusoidal wave modeled after the historic Benner Cycle theory, which suggests regular economic and market turning points.
- Auto-adjusts based on chart time
- Displays BUY/SELL signal markers at cycle peaks and troughs
Fibonacci Retracement Levels
Automatically draws key Fibonacci levels (0% to 100%) using the daily high and low, helping you spot potential reversal or continuation zones.
- Fully dynamic: updates at the start of each week
- Great for intraday and swing traders looking to time pullbacks or breakouts
Why use both?
The Benner wave highlights when markets may shift. The Fibonacci levels show where price could react. Together, they give you time + price confluence — a powerful edge in trade planning.
CoffeeShopCrypto High Timeframe Dynamic Order BlocksThis indicator automates the detection of significant order blocks in real time, from higher timeframes (Daily, Weekly, Monthly) and dynamically adapts their zone boundaries to your current chart timeframe regardless of what you change it to. By analyzing market structure across multiple time horizons, it identifies institutional-level supply/demand zones and precisely recalculates their parameters to match your active chart's resolution - whether you're viewing 1-minute or 4-hour candles or even higher.
Key Technical Features:
Multi-Timeframe Analysis: Scans daily/weekly/monthly data to identify the most significant order blocks that influence all lower timeframes
Adaptive Zone Calculation: Automatically recalculates zone boundaries when you change timeframes, maintaining accurate price levels and candle formations specific to your chart
Smart Price Action Filtering: Isolates only the relevant candles that formed each order block within your current timeframe's context
Structural Precision: Adjusts zone width and position based on the actual candle wicks/bodies that created the order block in your active timeframe.
What they look like when calculated instantly.
About Order Blocks (Market Structure Perspective):
Order blocks represent concentrated areas where institutional traders executed significant positions, creating imbalances in market structure.
These zones become:
Bullish Order Blocks: Demand areas where aggressive buying overwhelmed sellers, often appearing as consolidation before strong upward movements.
Bearish Order Blocks: Supply zones where distribution activity preceded substantial downward moves.
How It Works Differently:
The indicator identifies these critical areas by analyzing the relationship between consecutive candles' opens, highs, lows, and closes - particularly focusing on break-of-structure patterns that confirm zone validity.
Traditional order block indicators simply copy higher timeframe zones to lower charts. These common orderblocks are said be found as the candle before the candle that caused a huge market swing. In a break long, you would look backwards to find the first previous bearish candle. The opposite find would be for a break short.
This is a most unreliable method in finding orderblocks and simply is not true.
Zone Extensions. Choose how far into the future you want your zone to go to. There is no wrong number but you don't want to go too far.
This scripts performs true multi-timeframe analysis by:
Detecting the original order block formation conditions on HTFs
Drilling down to find the exact "candle sequence" that created the zone in your current timeframe.
Continuously monitoring for structural breaks that invalidate zones
Automatically adjusting all visual elements when you switch timeframes
Usage Benefits:
Eliminates manual timeframe switching to identify significant zones
Maintains visual consistency when changing chart resolutions
Provides cleaner charts by only showing relevant order blocks
Adapts to any market (Forex, Stocks, Crypto) and any timeframe combination
Breached Zones. The zone becomes invalidated but the Supply or Demand line is still relevant.
Note on Trading:
While this indicator precisely identifies order block locations, trading methodologies using these zones depend on individual strategy preferences. The tool focuses exclusively on accurate technical detection and adaptive visualization across timeframes.
How to Use Them:
As long as you don't have price action breach of a Bullish Zone Demand Floor you can keep using that zone as a bullish orderblock until its Demand Floor has been breached.
This also means you can still use its Demand Floor as a support level while the Zone itself is no longer relevant. This eliminates the orderblock ZONE as being an orderblock and now you only have a supply floor left to use as support.
As long as you don't have price action breach of a Bearish Zone Supply Wall you can keep using that zone as a bearish orderblock until its Supply Wall has been breached.
This also means you can still use its Supply Wall as a resistance level while the Zone itself is no longer relevant. This eliminates the orderblock ZONE as being an orderblock and now you only have a resistance level.
Once either has been breached, you would find liquidity behind the zone of the ordreblock. This is where price will seek support or resistance depending on the zone type.
Orderblocks has a BODY and who knew they could be so cute. I mean look at this structure.
This is how they are built and what their levels represent.
Global Market Opens by Koenigsegg🧠 Global Market Opens Filter by Koenigsegg
Track the pulse of global capital flows with surgical precision, on business days only.
This powerful tool maps the exact open levels of the world's four major trading hubs: Europe, New York, Asia, and Australia — right onto your chart in real time, while intelligently filtering out weekends when global markets are closed.
Designed for professional traders who value clarity and timing, the indicator plots clean horizontal lines at the precise open of each session (based on your defined time), with customizable visuals and fixed projection logic to keep your levels consistent and readable. The built-in weekend filter ensures you only see relevant session opens during active trading days.
Whether you're trading forex, indices, crypto, or equities, this tool gives you the tactical edge to anchor your intraday playbook around session opens — when volatility, volume, and opportunity align.
🛠️ Core Features
✅ Weekday-only filtering - Automatically excludes weekend session opens in UTC time
✅ Plotted session opens for:
- London (LSE/Europe) – "LON/AMS/PAR"
- New York (NYSE) – "NEWYORK"
- Tokyo (TSE) – "TOKYO"
- Sydney (ASX) – "AUSTRALIA"
✅ Precise horizontal lines with fixed future projection for clean chart structure
✅ Real-time session detection based on your time inputs
✅ Adjustable line length with a set number of bars ahead
✅ Custom color selection per session for clear differentiation
✅ Minimal labels for a clean, pro-grade interface
✅ Toggle each session individually to tailor it to your market hours
✅ Toggle weekend filtering to suit your specific analysis needs
✅ Built to maintain chart performance – lightweight and optimized
🌍 Why It Matters
Markets move when sessions change hands. With this tool, you can:
- Align your entries and exits with institutional activity zones
- See where price anchors or rejects during session opens
- Filter out noise from weekend sessions when markets are closed
- Build confluence with structure, liquidity grabs, and narrative shifts
This isn't just another visual tool. It's a precision clock for those who know what time it is — and trade accordingly.
⚙️ Configuration Options
Session Times - Set custom open hours and minutes for each global market open
Color Selection - Choose distinctive colors for each session line
Fixed End Position - Define how far ahead lines should project (in bars)
Weekend Filter - Toggle UTC weekend filtering on/off based on your needs
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice. Trading is risky and can result in significant losses. Use at your own discretion.
💡 Pro Tip
Pair this tool with your order flow, CVD, or liquidity maps to see where price respects or breaks session anchors during active trading days. The moment a session opens, watch if the buyers are in control or if the sellers are in control. With the weekend filter, you'll focus solely on market-relevant session opens when institutions are actually trading. Timing is everything — and now, you control it.
📊 Hashtags
#KoenigseggTools #TradingView #MarketOpenLines #WeekdayFilter #LSE #NYSE #TSE #ASX #SessionTrading #PriceAction #PrecisionTrading #SmartMoney #InstitutionalZones #Forex #Crypto #Equities #IntradayStrategy #GlobalOpens
Session extensions [dani]Session Extension
Indicator Description
The Session Extensions indicator is a customizable tool designed to visually represent key price levels during a specified trading session. It calculates and displays the high, low, and midpoints of the session, along with extension levels based on user-defined multipliers. These extensions help traders identify potential support and resistance zones beyond the initial session range.
This indicator is particularly useful for intraday traders who rely on session-based analysis to make informed decisions. It overlays directly on the chart, ensuring seamless integration with price action.
Key Features
Session-Based Analysis : Tracks and highlights key price levels (high, low, midpoint) during a specific trading session.
Customizable Extension Levels : Allows users to define up to six extension levels (both above and below the session range) with unique multipliers, colors, styles, and widths.
Real-Time Updates : Automatically updates during the active session and resets at the start of a new session.
Usage Guidelines
Add the Indicator to Your Chart : Apply the Session Extensions indicator to your chart to visualize key session-based levels.
Intraday Focus : This indicator is optimized for intraday trading. Ensure that the chart's timeframe is set to an intraday interval (e.g., 1-minute, 5-minute).
Session Alignment : Verify that the session time aligns with your trading schedule and timezone. Misalignment may result in incorrect session detection. (This indicator use America - New York timezone)
Avoid Overcrowding : While the indicator supports multiple extension levels, enabling too many levels simultaneously may clutter the chart. Use discretion when configuring extension levels.
Customize Line Styles and Colors : Tailor the appearance of lines and labels to align with your trading style. Use solid, dashed, or dotted lines, and choose colors that enhance visibility without cluttering the chart.
Combine with Other Tools : Pair this indicator with other technical analysis tools (e.g., moving averages, volume profiles) to enhance decision-making.
Disclaimer & Chat
The Session Extensions indicator is intended for educational and analytical purposes only. It does not provide financial advice or guarantee trading success. Users are responsible for verifying the accuracy of session times and ensuring proper configuration before using the indicator in live trading. This indicator is not a trading signal generator.
Thank you for choosing this indicator! I hope it becomes a valuable part of your trading toolkit. Remember, trading is a journey, and having the right tools can make all the difference. Whether you're a seasoned trader or just starting out, this indicator is designed to help you stay organized and focused on what matters most—price action. Happy trading, and may your charts be ever in your favor! 😊
From, Dani.
Supply & Demand Histogram and Lines [BerlinCode42]Happy Trade,
This is a Supply & Demand Histogram—also referred to as a Heatmap—that highlights key S&D levels on the chart. Unlike traditional approaches that use volume, this script identifies specific chart patterns and evaluates them to generate the Supply & Demand Histogram. It analyzes the Supply and the Demand separately.
The script is equipped with trade signals for external use (Indicator on Indicator) and is fully compatible with my strategy template script. This allows you to easily create backtests and combine it with other indicators to build a custom strategy.
Intro
Calculation of the Supply & Demand Histogram
Usage and Settings Menu
Declaration for Tradingview House Rules on Script Publishing
Disclaimer
1. Calculation of the Supply & Demand Histogram
Initially, the total price range—spanning from the absolute minimum to the absolute maximum observed price—is discretized into 10,000 equally sized intervals. For each interval, the algorithm performs the following:
It detects chart patterns that typically emerge in zones of varying volatility, categorizing them accordingly. Each identified pattern is assigned a individual weight based on its structural parameters, such as amplitude or slope. Lets call them Structural Weights. These weighted occurrences are then aggregated per interval, resulting in a quantitative representation of supply and demand pressure across the price spectrum, visualized as a histogram.
This pattern-based methodology facilitates the quantitative estimation of supply and demand zones without reliance on volume metrics.
2. Usage and Settings Menu
Initially, the user can configure the granularity of the price segmentation used in the Supply & Demand Histogram. This is achieved by enabling the 'Show Price Range' option, as illustrated in Image 1. Activating this feature overlays a gray-shaded region on the chart, visually representing the defined price range.
Image 1
The vertical position of this range can be adjusted using the 'Price Range Offset' parameter, while the interval widths are modifiable via the 'Step Factor' setting. It is critical to ensure that the specified range encapsulates the entirety of historical and anticipated price movements; failure to do so may result in calculation errors if price action extends beyond the defined bounds. Nevertheless, the default Step Factor has been conservatively chosen to accommodate most price dynamics.
Due to performance considerations, the indicator does not render all 10,000 discrete intervals comprising the full histogram. Instead, it selectively displays a subset of 100 intervals centered around the most recent price."
Once the price range has been configured, disable the “Show Price Range” option again in order to display the Supply & Demand Histogram.
Subsequently, users can fine-tune the histogram computation via two key settings, shown in Image 2:
Volume Count – This option allows selection between a pattern-based structural weighting method and a traditional volume-based approach for histogram construction. The structural method estimates significance through pattern characteristics rather than traded volume.
Supply + Demand – This toggle determines whether Supply and Demand levels are calculated and displayed independently or merged into a unified histogram. If one subscribes to the principle that a breached Supply zone can transform into a Demand zone (and vice versa), enabling this option will reflect that assumption by aggregating both into a single composite structure.
Image 2
Once this setup is complete, the Supply & Demand Histogram along with its most significant price levels will be visualized on the chart. Users can further refine the display settings to tailor the visual output.
In the settings menu, refer to the section illustrated in Image 3. There, you can adjust the number of displayed price levels by increasing or decreasing the S&D Line Filter percentage. A lower percentage results in fewer, more prominent levels being shown, while a higher percentage includes more levels.
The S&D histogram itself can also be hidden if desired.
Image 3
This indicator supports external integration via Indicator on Indicator Functionality or alerts. Specifically, when a price level is either touched or broken, an alert can be triggered. To visually identify where such alerts would occur, enable Show Alert Labels, which marks the respective bars on the chart.
If you want to import the trade signals into a Backtest or Strategy Template script, simply use the two signal outputs: "Break Signals" and "Touch Signals".
A value of zero indicates that no touching or breaking event is occurring.
A positive value signifies that a supply level has been touched or broken.
A negative value indicates a demand level interaction.
The absolute value of each signal corresponds to the price level of the respective Supply or Demand line.
The colors used to represent Supply and Demand levels can be customized to your preference.
Additionally, a Time and Session Filter has been added. This feature allows you to exclude specific time periods and dates from the analysis, enabling a better understanding of which trading times and market sessions are responsible for the formation of particular Supply & Demand levels.
To activate the filter, check the leftmost checkbox, then define the desired Date, Time, and Session parameters accordingly as shown in image 4.
Image 4
3. Declaration for Tradingview House Rules on Script Publishing
The unique feature of this Supply & Demand Histogram is its pattern-based calculation methodology. This approach enables the estimation of Supply and Demand levels even for assets that do not provide volume data. Additionally, it allows for separate computation of Supply and Demand. That means a broken Demand level does not necessarily convert into a Supply level, and vice versa.
This script is closed-source and invite-only to support and compensate for months long development work.
4. Disclaimer
Trading is risky, and traders do lose money, eventually all. This script is for informational and educational purposes only. All content should be considered hypothetical, selected post-factum and is not to be construed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. Using this script on your own risk. This script may have bugs and I declare don't be responsible for any losses.
Now it’s your turn!
CandelaCharts - Premium & Discount 📝 Overview
Premium and Discount are key concepts in ICT (Inner Circle Trader) trading strategies, used to pinpoint ideal entry and exit points in the market. These concepts are based on an understanding of market structure and the behavior of institutional traders, commonly referred to as Smart Money.
To understand the Premium and Discount zones, it's crucial to first grasp the concept of the equilibrium level, also known as the basic or fair value. The equilibrium represents the midpoint of a given price range and acts as a reference point, dividing the range into Premium and Discount zones.
The equilibrium reflects the "fair value" of the price within the considered range. Traders use this as a benchmark to assess whether the current price is in the Premium or Discount zone.
The Premium zone lies above the equilibrium level, while the Discount zone is located below it within the price range.
📦 Features
Swing-based detection
Custom detection
Modes
Styling
⚙️ Settings
Range: Determines how you will identify Premium and Discount, either by swing points or by custom date.
Mode: Controls what UI will be displayed
Premium: Sets the Premium color
Discount: Sets the Discount color
Equilibrium: Sets the Equilibrium color
Labels: Controls the labels visibility
⚡️ Showcase
Pro Mode
Solid Mode
Outlined Mode
Flat Mode
The Indicator can be effortlessly applied in replay mode to highlight premium and discount zones based on the most prominent market swings.
🚨 Alerts
The indicator does not provide any alerts!
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.