weighted support or resistance linesQ: Why should users choose this script?
A: I found that in all the publicly available scripts about support and resistance lines, there is basically no weight identification for these lines. In other words, users do not know which support or resistance lines are the most important. So I specifically wrote this script.
1. By adjusting the weights, only the most effective support or resistance lines are displayed. (Length threshold of trend price (Bar))
2. By selecting the number of K-lines, only the latest number of support or resistance lines generated will be displayed. (Maximum number of reserved S/R lines)
3. By selecting whether to automatically remove lines, only support or resistance lines that have not been penetrated by the k-line will be displayed. If this function is checked, the weight can be adjusted lower, as high-weight SR may have already been penetrated, and the newly generated SR may have a lower weight. (Automatically remove lines penetrated by closing price confirmation)
4. Notes: The default parameters work well in 15-minute candlestick charts. For candlestick charts with other time periods, the parameters can be adjusted appropriately. It is suitable for sideways trading but not for strong trends.
5. I'm quite satisfied with the performance of the script, as I specifically optimized it, lol
Support and Resistance
Institutional Support/Resistance Locator🏛️ Institutional Support/Resistance Locator
Overview
The Institutional Support/Resistance Locator identifies high-probability demand and supply zones based on strong price rejection, large candle bodies, and elevated volume . These zones are commonly targeted or defended by institutional participants, helping traders anticipate potential reversal or continuation areas.
⸻
How It Works
The indicator uses a confluence of conditions to detect zones:
• Large Body Candles: Body size must exceed the moving average body size multiplied by a user-defined factor.
• High Volume: Volume must exceed the moving average volume by a configurable multiplier.
• Wick Rejection: Candles must show strong upper or lower wicks indicating aggressive rejection.
• If all criteria are met:
• Bullish candles form a Demand Zone.
• Bearish candles form a Supply Zone.
Each zone is plotted for a customizable number of future bars, representing areas where institutions may re-engage with the market.
⸻
Key Features
• ✅ Highlights institutional demand and supply areas dynamically
• ✅ Customizable sensitivity: body, volume, wick, padding, and zone extension
• ✅ Zones plotted as translucent regions with auto-expiry
• ✅ Works across all timeframes and markets
⸻
How to Use
• Trend Traders: Use demand zones for potential bounce entries in uptrends, and supply zones for pullback short entries in downtrends.
• Range Traders: Use zones as potential reversal points inside sideways market structures.
• Scalpers & Intraday Traders: Combine with volume or price action near zones for refined entries.
Always validate zone reactions with supporting indicators or price behavior.
⸻
Why This Combination?
The combination of wick rejection, volume confirmation, and large candle structure is designed to reflect footprints of smart money. Rather than relying on fixed pivots or subjective zones, this logic adapts to the current market context with statistically grounded conditions.
⸻
Why It’s Worth Using
This tool offers traders a structured way to interpret institutional activity on charts without relying on guesswork. By plotting potential high-impact areas, it helps improve reaction time.
⸻
Note :
• This script is open-source and non-commercial.
• No performance guarantees or unrealistic claims are made.
• It is intended for educational and analytical purposes only.
High_Low levelsThis indicator plots the Previous Day and Premarket High and Low Levels. Can be configured to change colors and line style.
Volume Peak Bars 3.0Indicator highlights the range starting at the highest volume bar. Customizable to your desired time frame. High volume bars tend to give good levels of liquidity ie. Support/Resistance. This indicator follows the same idea as Opening Range Breakout theories - Break Outs of this area with retests or entries into this range tend to give good trade ideas.
Volume Cluster Support & ResistanceVolume Cluster Support & Resistance
This indicator identifies potential Support and Resistance (S/R) levels on the chart using Volume-Based Point of Control (POC) Clustering. It offers extensive customization for calculation parameters, display styles, and visualization options, including S/R zones, color gradients, and historical reaction markers.
How It Works
Volume Based S/R:
Scans the specified Clustering Lookback period for "High Volume Bars", defined as bars where volume exceeds the average volume (over Volume Lookback Period) multiplied by the High Volume Threshold Multiplier.
Calculates the Point of Control (POC) for each high-volume bar using hl2.
Clusters these high-volume bar POCs: POCs within a proximity defined by Cluster Proximity (ATR) (Average True Range multiplier) are grouped together.
Filters these clusters, requiring a Min Bars in Cluster to form a valid S/R zone.
(Image showing the indicator being used on the Bitcoin 5min chart)
The center price of valid clusters determines the S/R level. Clusters above the current price become potential Resistance, and those below become potential Support.
Calculates the offset based on the most recent bar included in the cluster.
Level Selection & Display:
The indicator identifies multiple potential S/R levels.
It then selects and displays the top Number of S/R Levels to Display support levels below the current price and resistance levels above the current price.
(Image showing the indicator on the GBP/USD 5min chart)
ATR Usage:
The Average True Range (ta.atr(14)) is used in two key areas:
Determining the proximity threshold for grouping POCs in the 'Volume Based' clustering (clusterProximityAtr).
Calculating the width of the S/R zones when 'Use Zone Visualization' is enabled (zoneAtrMultiplier).
Key Features & Components
Dual Calculation Methods: Choose between Pivot-based S/R or Volume-based POC clustering.
Volume Confirmation: Pivots require volume confirmation; Volume method directly analyzes high-volume bars.
POC Clustering: Groups high-volume areas to identify significant price zones.
Configurable Lookbacks: Adjust periods for volume averaging, pivot detection, and clustering analysis.
Dynamic S/R Display: Shows a configurable number of the most relevant S/R levels relative to the current price.
Optional Zone Visualization: Display levels as filled zones with configurable width (ATR-based), fill transparency, and border transparency. Includes a dashed center line.
Optional Historical Reactions: Mark past price interactions (lows bouncing off support zones, highs rejecting from resistance zones) directly on the chart (Warning: Can significantly impact performance).
Customizable Styling: Control line style (Solid, Dashed, Dotted), width, color (separate for Support & Resistance), and horizontal extension (None, Left, Right, Both).
Price Labels: Toggle visibility of price labels next to each S/R level/zone.
Visual Elements Explained
S/R Lines/Zones: Plotted lines or filled zones representing calculated support and resistance levels. Color-coded for Support (default green) and Resistance (default magenta).
Line/Zone Borders: Appearance controlled by Style settings (Style, Width, Extension). Can have a gradient color effect based on age if enabled.
Zone Fills: Semi-transparent fills for zones (if enabled), with configurable transparency. Fill color matches the border color (including gradient effect if enabled).
Zone Center Line: A thin, dashed line indicating the exact calculated S/R price within a zone.
Price Labels: Text labels showing the exact price of the S/R level.
Historical Reactions: Small dot markers appearing on historical bars where price potentially reacted to a displayed zone (only if Show Historical Reactions is enabled).
Configuration Options
Users can adjust the following parameters in the indicator settings:
Calculation Method: Select "Pivot Based" or "Volume Based".
Volume Zone Settings (Volume Based): Threshold multiplier, clustering lookback, cluster proximity (ATR), minimum bars per cluster.
Display Options: Toggle S/R visibility, price tags, set the number of levels to show.
Volume Settings: Volume lookback period, volume multiplier (for Pivot confirmation).
Style Settings: Line style, width, extension, support/resistance text and line colors, enable gradient coloring, set gradient start/end colors.
Zone Visualization: Enable/disable zones, set zone width (ATR multiplier), fill and border transparency, enable/disable historical reaction markers (performance warning).
Interpretation Notes
This indicator identifies potential areas of support and resistance based on historical price action and volume analysis. These levels are not guaranteed reversal points.
The 'Volume Based' method focuses on areas where significant trading activity occurred, while the 'Pivot Based' method focuses on price turning points confirmed by volume.
Use the displayed levels in conjunction with other technical analysis tools, price action patterns, and risk management strategies.
Be mindful of the performance impact when enabling Show Historical Reactions, especially on longer timeframes or with large lookback periods. The default setting is false for optimal performance.
The max_bars_back setting is optimized for performance; increasing it significantly may slow down chart loading.
Risk Disclaimer
Trading involves significant risk. This indicator is provided for analytical and educational purposes only and does not constitute financial advice or a trading recommendation. Past performance is not indicative of future results. Always use sound risk management practices and never trade with capital you cannot afford to lose.
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
Essential EMAs (50/100/200) by Koenigsegg⚡ Essential EMAs (50/100/200) — Clean & Focused by Koenigsegg
A no-noise, high-impact EMA trio designed for clarity and precision. This script lays down the 50, 100, and 200 EMAs in a sleek, focused format — perfect for traders who rely on structure, trend, and execution without chart clutter.
Simple. Effective. Intentional.
🔑 Key Features
📏 Plots 50, 100, and 200 EMAs with distinct, easy-to-track colors
🧼 Designed for clean, distraction-free charts — only what matters
🧠 Powered by ta.ema() — fast, reliable, and framework-ready
🎨 Styling:
‣ Green = 50 EMA (short-term structure)
‣ Purple = 100 EMA (mid-term trend)
‣ Red = 200 EMA (macro/long-term bias)
📘 What is an EMA?
An Exponential Moving Average (EMA) is a dynamic average that gives more weight to recent price data. Compared to a simple moving average (SMA), the EMA reacts faster to price changes, making it ideal for identifying evolving trends and structural shifts.
Each EMA here:
- 50 EMA = shorter-term trend, more reactive, faster signal.
- 100 EMA = balanced view, tracks medium-term flows.
- 200 EMA = long-term structure; trusted by institutions.
💡 Pro Tip: EMA Strengths, Weaknesses & Usage
✅ Positives
- Speed & Sensitivity — Reacts faster to trend changes than SMA.
- Trend Clarity — Helps confirm direction and strength of a move.
- Dynamic Support/Resistance — Price often respects EMAs during pullbacks.
- Bias Filter — Quickly spot bullish/bearish context by observing price vs EMA.
⚠️ Negatives
- Lagging Nature — It still relies on past data, so not predictive.
- Choppy Markets — Can give false signals in ranging conditions.
- Over-Reliance — Using EMAs alone without context can mislead entries/exits.
- Not Magic — They show what was, not what will be — your edge must come from strategy, not just lines.
🧠 How to Use EMAs for Edge
📈 Trend Structure
- Bullish Bias: Price above 50/100/200 EMA — especially if they’re stacked: 50 > 100 > 200.
- Bearish Bias: Price below 50/100/200 EMA — stacked 200 > 100 > 50 confirms strength.
🔁 Crossover Signals (Momentum Shifts)
- Bullish Cross: 50 EMA crossing above 100 or 200 = possible trend acceleration.
- Bearish Cross: 50 EMA crossing below 100 or 200 = caution for reversals.
📌 Pro Edge Tip:
The space between EMAs matters. Tight clustering = indecision. Wide separation = trending strength or exhaustion. Use that spacing like a pressure gauge.
🕵️ Dynamic Support/Resistance
- Pullback to 50 EMA in an uptrend = possible re-entry zone.
- Rejection from 200 EMA = macro barrier; failure to break it can signal reversal or continuation failure.
🎯 Purpose
This script delivers the three most respected EMAs in trading — the 50, 100, and 200 — for structural awareness, trend confirmation, and entry/exit precision.
Whether you’re swing trading, day trading, or simply tracking price relative to long-term moving averages, this tool keeps your perspective grounded and your charts clean.
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. Always perform your own analysis and trade responsibly.
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.
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.
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.
1-Candle Order Block DetectorThis simple indicator is based on the 1-Candle rule. During an impulsive move toward the upside or downside, an order block is plotted based on a single down-closed or up-closed candle.
Inputs can be easily customized based on preferences or strength of trend filtering.
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!
RTB - Momentum Breakout Strategy V3
📈 RTB - Momentum Breakout Strategy V3 is a directional breakout strategy based on momentum. It combines exponential moving averages (EMAs), RSI, and recent support/resistance levels to detect breakout entries with trend confirmation. The system includes dynamic risk management using ATR-based stop-loss and trailing stop levels. Webhook alerts are supported for external automated trading integrations.
🔎 The strategy was backtested using default parameters on BTCUSDT Futures (Bybit) with 4-hour timeframe and a 0.05% commission per trade.
⚠️ This script is for educational purposes only and does not constitute financial advice. Always do your own research before trading.
Quater PointsThis is my personal indicator that marks the quater points and also the 100 points. These are all valuable and strong support and resistance levels for NQ not tested on any other ticker.
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.
Zonas Psicológicas Cercanas .XX500Te pinta líneas en el gráfico en las zonas psicológicas 500 más cercanas al precio actual.
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.
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.
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.