Clean Pivot Lines with AlertsTechnical Overview
This Script is designed for detecting untouched pivot highs and lows. It draws horizontal levels only when those pivots remain unviolated within a configurable lookback window and removes them automatically upon price breaches or sweeps.
Key components include:
Pivot detection logic : Utilizes ta.pivothigh()/ta.pivotlow() (or equivalent via request.security for HTF) with parameterized pivotLength to ensure flexibility and adaptability to different timeframes.
Cleanliness filtering : Checks lookbackBars prior to line creation to skip levels already violated, ensuring only uncontaminated pivots are used.
Dynamic level tracking : Stores active levels in arrays (highLines, lowLines) for continuous real-time monitoring.
Violation logic : Detects both close-based breaks (breakAbove/breakBelow) and wick-based sweeps (sweepAbove/sweepBelow), triggering alerts and automatic teardown.
Periodic housekeeping : Every N (10) confirmed bars, re-verifies “clean” status and removes silently invalidated levels—maintaining chart hygiene and avoiding stale overlays.
Customization options : Supports pivot timeframe override, colors, line width/style, lookback length, and alert toggling.
Utility
This overlay script provides a disciplined workflow for drawing meaningful support/resistance levels, filtering out contaminated pivot points, and signaling validations (breaks/sweeps) with alerts. Its modular design and HTF support facilitate integration into systematic workflows, offering far more utility than mere static pivot plots.
Usage Instructions
1. Adjust `pivot_timeframe`, `pivot_length`, and `lookback_bars` to suit your strategy timeframe and volatility structure.
2. Customize visual parameters as required.
3. Enable alerts to receive in-platform messages upon pivot violations.
4. Use HTF override only if analyzing multi-timeframe pivot behavior; otherwise, leave empty to default to chart timeframe.
Performance & Limitations
- Pivot lines confirmation lags by `pivot_length` bars; real-time signals may be delayed.
- Excessive active lines may impact performance on low-TF charts.
- The “clean” logic is contingent on the `lookback_bars` parameter; choose sufficiently high values to avoid false cleanliness.
- Alerts distinguish between closes beyond and wick-only breaches to aid strategic nuance.
Support and Resistance
Nifty Smart Zones & Breakout Bars(5min TF only) by Chaitu50cNifty Smart Zones & Breakout Bars is a purpose-built intraday trading tool, tested extensively on Nifty50 and recommended for Nifty50 use only.
All default settings are optimised specifically for Nifty50 on the 5-minute timeframe for maximum accuracy and clarity.
Why Last Bar of the Session Matters
The last candle of a trading session often represents the final battle between buyers and sellers for that day.
It encapsulates closing sentiment, influenced by end-of-day positioning, profit booking, and institutional activity.
The high and low of this bar frequently act as strong intraday support/resistance in the following sessions.
Price often reacts around these levels, especially when combined with volume surges.
Core Features
Session Last-Candle Zones
Plots a horizontal box at the high and low of the last candle in each session.
Boxes extend to the right to track carry-over levels into new sessions.
Uses a stateless approach — past zones reappear if relevant.
Smart Suppression System
When more than your Base Sessions (No Suppression) are shown, newer zones overlapping or within a proximity distance (in points) of older zones are hidden.
Older zones take priority, reducing chart clutter while keeping critical levels.
Breakout Bar Coloring
Highlights breakout bars in four categories:
Up Break (1-bar)
Down Break (1-bar)
Up Break (2-bar)
Down Break (2-bar)
Breakouts use a break buffer (in ticks) to filter noise.
Toggle coloring on/off instantly.
Volume Context (User Tip)
For best use, pair with volume analysis.
High-volume breakouts from last-session zones have greater conviction and can signal sustained momentum.
Usage Recommendations
Instrument: Nifty50 only (tested & optimised).
Timeframe: 5-minute chart for best results.
Approach:
Watch for price interaction with the plotted last-session zones.
Combine zone breaks with bar color signals and volume spikes for higher-probability trades.
Use suppression to focus on key, non-redundant levels.
Why This Tool is Different
Unlike standard support/resistance plotting, this indicator focuses on session-closing levels, which are more reliable than arbitrary highs/lows because they capture the final market consensus for the session.
The proximity-based suppression ensures your chart stays clean, while breakout paints give instant visual cues for momentum shifts.
Scalping Indicator (EMA + RSI)Buy and Sell Signals. Use with Supply and Demand to find good entries. Do not rely solely on this signal. Monitors with short and long EMA cross along with oversold or overbought RSI.
Malama's AI Dynamic SR Trend Lines This indicator provides a sophisticated approach to trend line analysis by automatically plotting dynamic support and resistance levels on your chart. Unlike traditional methods that require manually connecting two points, this script uses linear regression on a set of the most recent, significant pivot points. This statistical approach creates trend lines that are more robust, adaptive, and reflective of the current market structure.
The "AI" component lies in its ability to intelligently filter market noise and dynamically adjust to the latest price action, providing a clean and relevant analytical tool for traders.
2. Core Concepts & How It Works
The script's logic is built on a multi-stage process to ensure the generated trend lines are as meaningful as possible.
Pivot Detection: The foundation of the indicator is identifying key swing highs and lows using standard pivot calculations. These points represent potential turning points in the market.
Intelligent Filtering: To avoid clutter from insignificant price fluctuations, the script employs two crucial filters:
ATR Sensitivity Filter: It ignores minor pivots that are too close to the price action, ensuring that only structurally significant swing points are used for calculations. This filters out market noise.
Angular Filter: It discards trend lines that are excessively steep (e.g., over 45 degrees). Such steep lines often represent unsustainable parabolic moves rather than reliable support or resistance zones.
Linear Regression (The "AI" Engine): This is the core of the indicator's originality. Instead of just connecting the last two pivots, the script takes a cluster of the most recent valid pivots (e.g., the last 3, 4, or 5) and calculates the single "line of best fit" that passes through them. This statistical method provides a more accurate and stable representation of the trend's trajectory.
Dynamic Adaptation: The trend lines are not static. As new, significant pivots form, they are added to the calculation set, and the oldest ones are dropped. The regression line is then re-calculated, ensuring the support and resistance levels dynamically adapt to the evolving market trend.
3. Key Features & How to Use
This script is designed to be a versatile tool for trend analysis, confluence, and signal generation.
Dynamic Support & Resistance: Use the green (support) and red (resistance) lines as you would any major trend line. Look for price reactions at these levels, such as bounces, rejections, or powerful breakouts.
Line Strength Visualization: The thickness of a trend line indicates its strength. A thicker line is based on more pivot points or has confluence with an optional EMA, suggesting it's a more significant level that has been respected multiple times.
Automatic Line Pruning: To maintain a clean and readable chart, the indicator automatically removes old trend lines once the price has moved significantly far away from them, leaving only the most relevant levels visible.
Full Customization: Nearly every parameter is adjustable in the settings, including pivot lookback lengths, ATR and angle filters, and all visual aspects like colors and line styles.
Built-in Alerts: You can create alerts directly from the indicator to be notified whenever the price crosses above, crosses below, or simply touches one of the dynamic trend lines.
4. Important Considerations (Disclaimer)
Line Adjustment: Because the indicator is designed to be adaptive, the trend lines will recalculate and adjust as new pivot points are formed and confirmed. This is a core feature of its dynamic nature, meaning the lines are not fixed historical plots. Always wait for a candle to close before making decisions based on a line's position.
Not a Standalone System: This tool is intended for analysis and confirmation. It should be used as part of a comprehensive trading strategy that includes other forms of analysis, risk management, and your own market expertise.
Past performance of the trend lines in identifying support and resistance is not a guarantee of future results. Always trade responsibly.
OHLC Tool CustomizedIMPORTANT
This script is 99% based on the excellent OHLC Tool script by ©SamRecio. My changes are purely cosmetic to fit my needs. The original script is here:
Summary
The entire idea of this customization is to save some screen real estate. I have a ton of crap on my graphs and the default labels with prices are way too wide for my taste.
I *DO* want to have labels, but I want 'O1/H1/L1/C1' as opposed to ScriptName+FieldName+Price.
I really don't care about the price that much, I just want to see the levels and if the current PA will bump against them.
My interest is in yesterday's Open/High/Low/Close so the defaults are set to that.
One cool way this script can be used is it can be added more than once. I personally don't care about OHLC 2 days ago, but I added the second script to the distro graph here to illustrate the point. I kept Timeframe at 1D, set Lookback to 2, changed labels to O2/H2/L2/C2 and voila! (Changed line types to Dashed, too).
Another hack - you can add weekly's and monthly's, if you care...
Limitations
Sadly, there is no way it TV to attach a label to the right edge of the graph, only to the right-most candle and some offset. So when you start dragging you graph left (or right), the labels go with it. BLEH. Well, I'm not doing that so I don't really care.
TV Settings
In order to display the default, standard labels: right-click > Settings > Scales and lines > Indicators and financials: Name, Value
If the above setting is set to Hidden, AND you deselect Override Default Line Labels in this script's config - you will end up with bare lines and no labels whatsoever.
Differences with the original script
You can replace default labels with customized, saving a whopping 2.5cm/1" of screen estate! (default)
You can hide any of the four OHLC lines
You can customize label text
You can choose not to show price (default)
Previous Day High/Low Levels [OWI]📘 How to Use the “Previous Day High/Low Levels ” Indicator
This TradingView indicator automatically tracks and displays the previous day's high and low during the Regular Trading Hours (RTH) session. It’s perfect for traders who want to visualize key support/resistance levels from the prior day in futures like CME_MINI:NQ1! and COMEX:GC1! .
🛠 Setup Instructions
1. Customize RTH Session Times
- In the Settings panel, adjust the following under the Levels group:
- RTH Start Hour and RTH Start Minute: Default is 9:30 AM (New York time).
- RTH End Hour and RTH End Minute: Default is 4:15 PM.
- These define the active trading session used to calculate the day’s high and low.
2. Toggle Labels
- Use the Show PDH/PDL Labels checkbox to display or hide the “PDH” and “PDL” labels on the chart.
- Labels appear after the session ends and follow price dynamically.
📊 What the Indicator Does
- During the RTH session:
- Tracks the highest and lowest price of the day.
- After the session ends:
- Draws horizontal lines at the previous day’s high (green) and low (red).
- Optionally displays labels ("PDH" and "PDL") at those levels.
- Lines extend into the current day to help identify potential support/resistance zones.
✅ Best Practices
- Use this indicator on intraday timeframes (e.g., 5m, 15m, 1h) for best results.
- Combine with volume or price action analysis to confirm reactions at PDH/PDL levels.
- Adjust session times if trading non-US markets or custom hours.
Price Action Key Level Break & Retest — Instant ReversalPrice action-based break & retest tool mapping key levels from pivots, with instant reversals, HTF bias, cooldowns, and alerts.
What it does
This indicator maps key support/resistance from confirmed pivots and tracks classical break → retest behavior, a core price action concept used by professional traders.
It issues SUPPORT (buy) or RESISTANCE (sell) signals when price crosses a level, retests it, and reconfirms in the new direction.
Signals can be confirmed on close to reduce repainting.
Price action focus
The logic is built entirely on price action — no lagging oscillators, no artificial smoothing.
Levels are derived directly from swing highs/lows (pivots) visible on the chart, combined with break-and-retest patterns, enabling traders to react to actual market structure instead of purely indicator-based signals.
Core features
Levels from pivots with configurable lookback and merge tolerance (ticks / % / ATR) to avoid duplicates.
Break & retest logic with optional one-signal-per-level and per-level/global cooldowns.
Instant reversal when a prior signal fails per your success threshold (ticks / % / ATR) and optional timeout.
HTF bias filter (e.g., 15m) to align signals with higher-timeframe market structure.
Alerts for BUY/SELL so you can automate notifications.
Optional Condition Table (C1–C4) showing level type, state, and last signal.
How to use
Apply to your chart and choose whether signals confirm on close.
Set merge tolerance so nearby levels consolidate.
Select an HTF filter if you want directional bias.
Use the condition table during testing; hide it for live trading.
Create alerts from the Alerts panel using the provided alertconditions.
Notes & limits
Based entirely on price action — works best in clean trending or range-bound structures where pivots are respected.
Signals are derived from historical pivots; extreme illiquid moves may produce tight clusters — tune merge tolerance and cooldown.
Backtest before use; performance varies by symbol, session times, and volatility regimes.
For clarity, visuals are intentionally restrained.
Past performance does not guarantee future results. This is an analytical tool; it does not provide investment advice.
EMA 10/50/100/200EMA 10/50/100/200 — Multi‑Timeframe Trend Tracking
This indicator plots four commonly used Exponential Moving Averages (EMAs) — 10, 50, 100, and 200 periods — directly on the price chart to help traders quickly identify market trends, momentum shifts, and potential areas of dynamic support and resistance.
How It Works
EMA 10 (White) — Ultra‑short‑term trend; reacts quickly to price changes and is useful for scalping or identifying momentum bursts.
EMA 50 (Lime) — Short‑ to medium‑term trend indicator; often used to spot trend continuation or corrections.
EMA 100 (Yellow) — Medium‑term view; filters noise and shows the broader direction.
EMA 200 (Red) — Long‑term trend benchmark; widely recognized as a key institutional level.
Trading Applications
Trend Confirmation: When shorter EMAs are positioned above longer ones, the trend is bullish; the opposite alignment signals bearishness.
Dynamic Support & Resistance: EMAs often act as reaction zones where price bounces or rejects.
Momentum Shifts: EMA crossovers can indicate early trend changes.
Best Use Cases
Works on all markets (crypto, forex, stocks, indices).
Suitable for scalping, swing trading, and position trading depending on chart timeframe.
Combine with volume, price action, or oscillators for stronger confirmations.
⚠ Note: This indicator is intended for educational purposes only. Always apply proper risk management before trading.
HVB support and resistance (High Volume Bars lines)This script display lines relating to high volume bars.
The highest volume bar (HVB) will have purple boundaries.
This indicator propose a way to look at support and resistance as relative to those lines.
Volume lines color adjust dynamically depending on price position relative to those lines.
You can tweak various parameters such as lookback period, number of lines (up to 9) and how the algorithm check for the volume percentage relative to volume's history.
Last but not least, the script implement an alert function so you can setup a technical alert containing the following (see NVDA example from april 2025) :
> Price went UP 15.61% in 1 day and rising 17.09% after 2 days (100% of previous volume peak)
Which is to say replacing those variables:
Price went in and after ( of previous volume peak)
🔁 Directional Levels 2.0Directional Levels 2.0 is a multi-tool intraday indicator designed for traders who value clarity, speed, and precision.
It combines adaptive price mapping, momentum confirmation, and an automatic trade plan into one clean chart package.
🔹 Key Benefits
- Dynamic Directional Zones — Identify potential breakout, pullback, and reversal areas in real-time.
- Momentum Dashboard — EMA and oscillator strength readings at a glance.
- Clean CE / PE Prompts — Instant visual cues when trading conditions align.
- Auto Trade Plan — Pre-filled Spot Entry, SL, and Target levels — automatically adjusted for the instrument.
- Fibonacci Pivot Panel — Key daily zones with nearest levels highlighted.
- Top-5 Movers Tracker — View top gainers/losers in your index instantly.
🔹 How to Use
1. Wait for CE/PE prompts as potential trade entries.
2. Confirm bias using the EMA & oscillator dashboard.
3. Use the trade plan panel for pre-defined Entry, SL, and TGT.
4. Monitor the pivot panel for potential exit/reversal zones.
5. Turn on alerts to be notified when a new signal appears.
🔹 Customization Options
- Toggle display of levels, VWAP, dashboards, and alerts.
- Adjust signal buffer to control frequency.
- Change dashboard & pivot table styles to suit your chart.
⚠️ Disclaimer: This is a decision-support tool, not financial advice. Use with proper risk management.
✨ Highlights:
- 📊 All-in-One Intraday Tool — Trend, momentum, key levels & trade plan in one view.
- 🔼🔽 CE / PE Signal Prompts — Instant visual cues when market conditions align.
- 🛠 Auto Trade Plan — Pre-filled Entry, Stop Loss, and Target, index-aware point sizing.
- 🎯 Dynamic Zones & Pivots — Real-time breakout, pullback & reversal areas.
- 📈 Multi-EMA + Oscillator Dashboard — Trend direction & strength at a glance.
- 🏆 Top-5 Movers Table — See strongest & weakest instruments instantly.
- 🔔 Built-in Alerts — Get notified the moment a qualified setup appears.
- ⚙️ Fully Customizable — Toggle features, adjust buffers, and style dashboards your way.
ement.
Malama's KAYCAP Pre-Market BoxMalama's KAYCAP Pre-Market Box
This script is designed for day traders and scalpers who want to visualize key price levels established during the pre-market session. The indicator automatically identifies and draws a box around the open, close, high, and low of a specific, user-defined candle within the pre-market hours.
How It Works:
The core function of this script is to capture the price action of a single candle, which you can specify by hour and minute. The default settings are set to capture the 4:00 AM EST candle. The indicator then plots four distinct horizontal lines on your chart:
Box Top: The higher of the open and close prices for the specified candle.
Box Bottom: The lower of the open and close prices for the specified candle.
Box High: The highest price reached by that candle.
Box Low: The lowest price reached by that candle.
The area between the Box Top and Box Bottom is filled with a semi-transparent gray color to create a clear visual reference.
How to Use It:
Traders can use this pre-market box to identify potential support and resistance levels for the regular trading session. The pre-market high, low, and open/close levels often serve as significant price magnets or barriers once the market opens. This tool helps you quickly spot and react to breakouts or reversals from these initial levels.
The indicator is fully customizable, allowing you to adjust the pre-market start and end times, as well as the exact hour and minute of the candle you want to use to define the box. This flexibility allows you to tailor the script to your specific trading strategy and time zone.
Price Opening LevelsThis TradingView indicator by SnipingInTheRange is designed specifically for futures and indices. It plots key market opening prices:
- Daily, Weekly, Monthly Opens
- SITR Price Open — the 9:30 AM New York session open
The SITR Price Open is the core level, marking the exact price when the NYSE opens. It’s labeled clearly and used as a strategic anchor for intraday trades, reflecting institutional momentum and volatility.
Customizable features include line styles, colors, label visibility, and offset positioning—giving futures and index traders clean, precise visual cues for high-probability setups.
EMA Deviation with Min/Max Levelshis indicator visualizes the percentage deviation of the closing price from its Exponential Moving Average (EMA), helping traders identify overbought and oversold conditions. It dynamically tracks the minimum and maximum deviation levels over a user-defined lookback period, highlighting extreme zones with color-coded signals:
• 🔵 Normal deviation range
• 🔴 Near historical maximum — potential sell zone
• 🟢 Near historical minimum — potential buy zone
Use it to spot price extremes relative to trend and anticipate possible reversals or mean reversion setups.
Supertrend - Support & ResistanceSupertrend – Multi-Timeframe Support & Resistance
This script overlays multiple Supertrend bands from higher timeframes on a single chart and treats them as dynamic support and resistance. The goal is simple: see the bigger picture without leaving your current timeframe.
What it does
• Calculates Supertrend using the same ATR Length and Factor across 5m, 15m, 30m, 1h, 4h, 8h, 12h, and 1D.
• Pulls each timeframe via request.security(..., lookahead_off) so values only update on candle close. No look-ahead, no “teleporting” lines.
• Plots each timeframe’s Supertrend as an on-chart band with increasing transparency the higher you go, so you can visually separate short-term vs higher-timeframe structure.
• Colors indicate direction:
• Green = bearish band above price (acting as resistance)
• Red = bullish band below price (acting as support)
• Drops compact labels (5m, 15m, 30m, etc.) every 20 bars right on the corresponding Supertrend level, so you can quickly identify which line belongs to which timeframe.
Why this helps
Supertrend is great for trend definition and trailing stops. But one timeframe alone can whipsaw you. By stacking multiple timeframes:
• Confluence stands out. When several higher-TF bands cluster, price often reacts.
• You see where intraday pullbacks are likely to pause (lower TF bands) and where trend reversals are more meaningful (higher TF bands).
• It’s easier to align entries with the dominant trend while still timing them on your working timeframe.
How it works (quick refresher)
Supertrend uses ATR to offset a median price with a multiplier (Factor). When price crosses the band, direction flips and the trailing line switches sides. This script exposes:
• ATR Length (default 10): sensitivity of the ATR. Smaller = tighter band, more flips. Larger = smoother, fewer flips.
• Factor (default 3.0): multiplier applied to ATR. Larger = wider band, more conservative.
The same settings are used for all timeframes for clean, apples-to-apples comparisons.
How to use it
• Trend alignment: Prefer longs when most higher-TF lines are below price (red support). Prefer shorts when most are above price (green resistance).
• Pullback entries: In an uptrend, look for pullbacks into a lower-TF red band that lines up near a higher-TF red band. That overlap is your “zone.”
• Breakout confirmation: A strong break and close beyond a higher-TF band carries more weight than a lower-TF poke.
• Stops and targets: Use the nearest opposing band as a logic point. For example, in a long, if price loses the lower-TF red band and the next higher-TF band is close overhead, trim or tighten.
Signals you can read at a glance
• Stacking: Multiple red bands beneath price = strong bullish structure. Multiple green bands above price = strong bearish structure.
• Compression: Bands from different TFs squeezing together often precede expansion.
• Flip zones: When a higher-TF band flips side, treat that level as newly minted support/resistance.
Design choices in the code
• lookahead_off on all request.security calls avoids repainting from future data.
• Increasing transparency as the timeframe rises makes lower-TF context visible without drowning the chart.
• Labels every 20 bars keep the chart readable while still giving you frequent anchors.
Good to know (limits and tips)
• This is an overlay of closed-bar Supertrend values from higher TFs. Intrabar moves can still exceed a band before close; final signal prints at candle close of that timeframe.
• Using the same ATR/factor across TFs makes confluence easier to judge. If you need independent tuning per TF, you can clone the security calls and add separate inputs.
• On very low timeframes with many symbols, multiple request.security calls can be heavy. If performance drops, hide one or two higher TFs or increase the label spacing.
Risk note
This is a context tool, not an auto-trader. Combine it with structure (HH/HL vs LH/LL), volume, and your execution rules. Always test on your market and timeframe before committing real capital.
ProfitBeforeLunch ORB (NAS100 Filter + Active Window)This script is invite-only. VIP members get full access — reach out t.me/CuandayTrading to join or learn more.
Overview
ORB + NAS100 Bias + MorningTrade Window → High-probability intraday setups. SL/TP included.
Key Features
Custom Opening Range Window — Default is 09:30–09:35 EST, adjustable for any instrument.
NASDAQ 100 Bias Filter — Automatically detects bullish or bearish bias based on % change from the daily open.
Active Window Highlight — Trade only during the most active hours (default: 09:36–12:30 EST), with background color changing to green/red based on bias.
Breakout Signals — Clear ▲/▼ markers when price breaks ORH/ORL with bias confirmation.
SL & TP Levels — Automatic stop loss and take profit lines set at a fixed $ distance (default $5 / 500 points) from the entry level.
Status Badge — On-chart panel showing ticker, NAS100 %, bias (LONG/SHORT/NEUTRAL), and active window status.
Clean Visualization — Opening range box, midline, and labels for easy reference.
How It Works
1. The script calculates the Opening Range High (ORH) and Opening Range Low (ORL) during your chosen window.
2. It monitors NAS100’s % change from the daily open:
Bullish bias → Only long breakouts are signaled.
Bearish bias → Only short breakdowns are signaled.
Neutral → No directional bias, trades optional.
3. When price breaks the ORH/ORL after the OR window and inside the active window, a signal is printed with SL & TP levels.
4. SL/TP are fixed distances in price units, adjustable in settings.
Recommended Use
Best on 5-minute charts for US stocks or indices.
Works with NASDAQ 100 stocks and correlated assets.
Combine with your own money management rules and position sizing.
Disclaimer
This script is for educational purposes only. Trading involves significant risk and is not suitable for all investors. Always test on a demo account before live trading. The authors are not responsible for any financial losses incurred.
Support & Resistance Breakouts with TPThis indicator identifies key support and resistance levels based on recent highs and lows over a customizable lookback period. It visually marks breakout signals when price crosses these levels and optionally displays take profit (TP) points after a set number of bars following a breakout.
Features:
Dynamic calculation of support and resistance with adjustable length
ATR-based buffer zones with gradient fills for clear visualization
Multiple line thickness options for personal preference
Breakout signals indicated by arrows on the chart
Optional TP labels to highlight exit points
Alert conditions for breakout and TP events for automated trading alerts
Recent Range DetectorOverview
The Recent Range Detector is a specialized indicator designed to identify when an asset is currently range-bound, providing traders with clear support and resistance levels for range trading strategies. Unlike traditional indicators that focus on trend detection, this tool specifically answers the question: "Is the price range-bound right now, and what are the exact trading levels?"
Key Features
✅ Smart Range Detection - Uses a multi-factor scoring system to identify legitimate ranges
✅ Dynamic Support/Resistance Levels - Automatically calculates and displays key trading levels
✅ Range Quality Scoring - Provides confidence levels (Strong/Moderate/Weak Range)
✅ Touch Validation - Counts actual price touches to confirm range reliability
✅ Breakout Detection - Alerts when price exits the established range
✅ Visual Clarity - Clean boxes, lines, and labels for easy interpretation
How It Works
The indicator analyses recent price action using three core metrics:
Touch Quality (40%) - How many times price has respected support/resistance levels
Containment Quality (40%) - What percentage of recent bars stayed within the range
Recent Respect (20%) - Whether the latest price action confirms the range
These combine into a Range Score (0-1) that determines range strength and reliability.
Settings & Parameters
Range Lookback Period (Default: 15)
Number of bars to analyse for range detection
Shorter periods = more responsive to recent ranges
Longer periods = more stable, fewer false signals
Range Tolerance (Default: 2.0%)
Tolerance for price touches around exact highs/lows
Lower values = stricter range requirements
Higher values = more flexible range detection
Minimum Touches (Default: 3)
Required number of support/resistance touches for valid range
Higher values = more confirmed ranges, fewer signals
Lower values = more sensitive, earlier detection
Visual Options
Show Range Box: Displays the range boundaries
Show Support/Resistance Lines: Extends levels into the future
Understanding the Output
Range Score (0.000 - 1.000)
0.7+ = Strong Range (Green) - High confidence range trading setup
0.5-0.7 = Moderate Range (Yellow) - Decent range with some caution
0.3-0.5 = Weak Range (Orange) - Low confidence, be careful
<0.3 = Not Ranging - Avoid range trading strategies
Range Status Classifications
Strong Range - Perfect for range trading strategies
Moderate Range - Good range with normal risk
Weak Range - Marginal range, use smaller positions
Not Ranging - Price is trending or too choppy for range trading
Key Metrics in Info Table
Range Size (%) - Size of the range relative to price level
5-15% = Ideal range size for most strategies
<5% = Tight range, lower profit potential
>15% = Wide range, higher profit potential but more risk
Support/Resistance Levels - Exact price levels for entries/exits
Use these as your key trading levels
Support = potential buy zone
Resistance = potential sell zone
Total Touches - Number of times price respected the levels
3-5 touches = Newly formed range
6-10 touches = Well-established range
10+ touches = Very strong, reliable range
Price Position (%) - Current location within the range
0-20% = Near support (potential long opportunity)
80-100% = Near resistance (potential short opportunity)
40-60% = Middle of range (wait for better entry)
Visual Elements
Range Box
Green Box = Strong Range (Score ≥ 0.7)
Yellow Box = Moderate Range (Score 0.5-0.7)
Orange Box = Weak Range (Score 0.3-0.5)
Support/Resistance Lines
- Horizontal lines showing exact trading levels
- Extend into the future for forward guidance
- Colour matches the range strength
Background Colouring
- Subtle background tint during range periods
- Helps quickly identify ranging vs trending markets
Breakout Signals
- 📈 RANGE BREAK UP - Price breaks above resistance
- 📉 RANGE BREAK DOWN - Price breaks below support
- Only appears for confirmed ranges (Score ≥ 0.5)
Trading Applications
Range Trading Strategy
1. Look for Range Score ≥ 0.5
2. Buy near support (Price Position 0-20%)
3. Sell near resistance (Price Position 80-100%)
4. Set stops just outside the range
5. Exit on breakout signals
Breakout Strategy
1. Identify strong ranges (Score ≥ 0.7)
2. Wait for volume-confirmed breakout
3. Enter in breakout direction
4. Use previous resistance as support (or vice versa)
Market Context
- Strong ranges often occur after trending moves
- Use higher timeframes to confirm overall market structure
- Combine with volume analysis for better entries/exits
Best Practices
What to Look For
✅ Range Score ≥ 0.5 for trading consideration
✅ Multiple touches (5+) for confirmation
✅ Clear price rejection at levels
✅ Reasonable range size (5-15% for most assets)
✅ Recent price respect of boundaries
What to Avoid
❌ Trading ranges with Score < 0.3
❌ Very tight ranges (<3% size) - low profit potential
❌ Ranges with only 1-2 touches - not confirmed
❌ Ignoring breakout signals
❌ Trading against the higher timeframe trend
Alerts Available
- Range Detected - New range formation
- Range Break Up - Upward breakout
- Range Break Down - Downward breakout
- Range Ended - Range condition ended
Timeframe Recommendations
- Daily Charts - Best for swing trading ranges
- 4H Charts - Good for intermediate-term ranges
- 1H Charts - Suitable for day trading ranges
- Lower Timeframes - May produce more noise
Conclusion
The Recent Range Detector eliminates guesswork in range identification by providing objective, quantified range analysis. It's particularly valuable for traders who prefer range-bound strategies or need to identify when trending strategies should be avoided.
Remember: No indicator is perfect. Always combine with proper risk management, volume analysis, and broader market context for best results.
Disclaimer
This indicator is for educational purposes only and should not be considered as financial advice. Trading involves risk, and past performance does not guarantee future results. Always conduct your own research and consider your risk tolerance before making any trading decisions.
Prev D/W/M + Asia & London Levels [Oeditrades]Prev D/W/M + Asia & London Levels
Author: Oeditrades
Platform: Pine Script® v6
What it does
Plots only the most recent, fully completed:
Previous Day / Week / Month highs & lows
Asia and London session highs & lows
Levels are drawn as true horizontal lines from the period/session start and extended to the right for easy confluence reading. The script is non-repainting.
How it works
Prev Day/Week/Month: Uses completed HTF candles (high / low ) so values are fixed for the entire next period.
Sessions (NY time): Asia (default 20:00–03:00) and London (default 03:00–08:00) are tracked in America/New_York time. High/low are locked when the session ends, and the line is anchored at that session’s start.
Inputs & customization
Visibility: toggle Previous Day/Week/Month, Asia, London, and labels.
Colors: highs default red; lows default green (user-configurable). Session highs default pink, lows aqua (also editable).
Style: line style (solid/dotted/dashed) and width.
Sessions: editable time windows for Asia and London (still interpreted in New York time).
Disclaimer: optional on-chart disclaimer panel with editable text.
Notes
Works on any timeframe. For intraday charts, the HTF values remain constant until the next HTF bar completes.
If your market’s overnight hours differ, simply adjust the session windows in Inputs.
Lines intentionally show only the latest completed period/session to keep charts clean.
Use cases
Quick view of PDH/PDL, PWH/PWL, PMH/PML for bias and liquidity.
Intraday planning around Asia/London range breaks, retests, and overlaps with prior levels.
Disclaimer
This tool is for educational purposes only and is not financial advice. Markets involve risk; past performance does not guarantee future results.
Source-indicatorsSource Indicators – A premium TradingView tool combining automated support/resistance levels, dynamic trendlines, and breakout alerts.
Perfect for spotting key market zones and trend shifts in real-time.
Dynamic Range Targets(Mastersinnifty))Description
The Dynamic Range Targets indicator identifies the largest price range within a specified lookback period and projects multiple target levels both above and below that range. This helps traders anticipate potential breakout or breakdown price objectives based on historical volatility.
How It Works
Scans a user-defined number of previous bars to find the one with the largest high–low range.
Uses that range to calculate upward and downward target levels in increments (100%, 200%, 300%, 400%).
Plots each target level on the chart for visual reference.
Optionally displays price labels on the most recent bar for quick identification.
Inputs
Number of Bars to Look Back – Defines how many past bars the indicator should scan to find the largest range.
Show Target Price Labels – Enables or disables the display of price labels for all target levels on the current bar.
Use Case
Identifying breakout price objectives after periods of consolidation.
Setting predefined profit targets for both long and short trades.
Assessing potential volatility zones in trending and ranging markets.
Disclaimer
This indicator is for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security. Always perform your own analysis and use proper risk management before making trading decisions.
Floating Bands of the Argentine Peso (Sebastian.Waisgold)
The BCRA ( Central Bank of the Argentine Republic ) announced that as of Monday, April 15, 2025, the Argentine Peso (USDARS) will float within a system of divergent exchange rate bands.
The upper band was set at ARS 1400 per USD on 15/04/2025, with a +1% monthly adjustment distributed daily, rising by a fraction each day.
The lower band was set at ARS 1000 per USD on 15/04/2025, with a –1% monthly adjustment distributed daily, falling by a fraction each day.
This indicator is crucial for anyone trading USDARS, since the BCRA will only intervene in these situations:
- Selling : if the Peso depreciates against the USD above the upper band .
- Buying : if the Peso appreciates against the USD below the lower band .
Therefore, this indicator can be used as follows:
- If USDARS is above the upper band , it is “expensive” and you may sell .
- If USDARS is below the lower band , it is “cheap” and you may buy .
It can also be applied to other assets such as:
- USDTARS
- Dollar Cable / CCL (Contado con Liquidación) , derived from the BCBA:YPFD / NYSE:YPF ratio.
A mid band —exactly halfway between the upper and lower bands—has also been added.
Once added, the indicator should look like this:
In the following image you can see:
- Upper Floating Band
- Lower Floating Band
- Mid Floating Band
User Configuration
By double-clicking any line you can adjust:
- Start day (Dia de incio), month (Mes de inicio), and year (Año de inicio)
- Initial upper band value (Valor inicial banda superior)
- Initial lower band value (Valor inicial banda inferior)
- Monthly rate Tasa mensual %)
It is recommended not to modify these settings for the Argentine Peso, as they reflect the BCRA’s official framework. However, you may customize them—and the line colors—for other assets or currencies implementing a similar band scheme.
Deep in the Tape VSA Deep in the Tape VSA
Overview
This indicator applies classic Volume Spread Analysis (VSA) concepts to highlight potential supply/demand events and contextual confirmations on any symbol or timeframe. It focuses on visual study signals (no alerts or trade labels) to help with discretionary analysis.
What it plots
VSA Events: Stopping Volume (SV), Supply Coming In, Buying Climax (BC), Upthrust (UT), No Demand (ND), No Supply (NS), Selling Climax (SC), Shakeout (SO), Test Bar (confirmed), End of Rising Market (EoRM).
Context Lines: When an ultra-high-volume VSA trigger occurs, the bar’s high/low are extended forward as reference lines.
Cluster Zones (optional): Highlights ranges formed after sequences of high-volume bars, with bullish/bearish bias coloring.
Moving Average (optional): Simple MA with color shift based on price relative to the MA.
Logic highlights
Background Strength/Weakness: Tracks recent bullish (SC/SV/SO) and bearish (UT/BC/Supply Coming In) triggers.
Confirmations: Examples include test confirmations after NS/Test, SC/SV continuation checks, UT/BC breakdown/failed responses, and EoRM follow-through.
Failures: Flags conditions where prior signals fail to follow through (e.g., ND/NS failures) under volume/close-position constraints.
Bias Heuristic: Compares peak volumes of recent bullish vs. bearish triggers to infer short-term directional bias.
Inputs (selected)
Toggle individual VSA events (SV, Supply Coming In, BC, UT, ND, NS, Test, SO).
Moving Average length & enable/disable.
Cluster detection parameters (range, minimum bars).
Volume/ATR multipliers, ultra-high-volume lookback, spread/close-position thresholds.
How to use
Start on higher timeframes to establish context, then drill down.
Use the extended high/low from trigger bars as support/resistance reference.
Combine VSA events with spread/close position and relative volume, rather than treating any single signal as a standalone entry.
Notes
Educational/study tool only. Not financial advice.
Signals are contextual and can repaint intra-bar until the bar closes.
Performance may vary by symbol/timeframe due to differing volume characteristics.
V1 — CVD with sessions scaled + divergence stackCVD with session: the three different session colors (fuchsia, purple, and blue).
There are two areas — green and red — which represent divergences with the price.
Be careful: both divergence and confirmation require a valid structure change.
The bubble is a visual aid to help validate or reject the divergence.
A bubble is calculated based on the previous session. You can adjust the volatility using lookbackCloseLL and lookbackHighBR.
SITR Inside Candle + Inside Bar Finder📈 How Traders Use It
- Bullish Setup: Inside Bar forms after a strong bullish Mother Candle. A breakout above the Inside Bar’s high signals continuation.
- Bearish Setup: Inside Bar forms after a strong bearish Mother Candle. A breakout below the Inside Bar’s low signals continuation.
- Reversal Setup: Inside Bar forms after exhaustion or near key support/resistance. Breakout in the opposite direction signals reversal.
🧭 Why It Matters
- Inside Bars represent compression — price is coiling within a tight range.
- Breakouts from Inside Bars often lead to explosive moves.
- The Mother Candle provides context — its size and direction help interpret the breakout’s strength.
🧪 Example
Imagine this sequence:
- A large bullish candle (Mother Candle)
- A small candle entirely within its range (Inside Bar)
- Price breaks above the Inside Bar’s high → Bullish SITR signal