RVol based Support & Resistance ZonesDescription:
This indicator is designed to help traders identify significant price levels based on institutional volume. It monitors two higher timeframes (defined by the user) simultaneously. When a candle on these higher timeframes exhibits unusually high volume—known as high Relative Volume (RVol)—the indicator automatically draws a "Zone of Interest" box on your current chart.
These zones are defined by:
Up candle : from candle open to low of candle
Down candle : from candle open to high of candle
Key Features:
Multi-Timeframe Monitoring: You can trade on a lower timeframe (e.g., 5-minute) while the indicator monitors the 30-minute and 1-hour charts for volume spikes.
RVol Boxes: Automatically draws boxes extending from high-volume candles.
Up Candles: Box covers Low to Open.
Down Candles: Box covers High to Open.
Live Dashboard: A neat, color-coded table displays the current Volume, Average Volume, and RVol percentage for your watched timeframes.
Real-Time vs. Confirmed: Choose whether to see boxes appear immediately as volume spikes (Live) or only after the candle has closed and confirmed the volume (Candle Close).
Settings Guide:
1. General Settings
Relative Volume Length: The number of past candles used to calculate the "Average Volume." (Default is 20).
Max Days Back to Draw: To keep your chart clean, this limits how far back in history the script looks for high-volume zones. (e.g., set to 5 to only see zones created in the last 5 days).
Draw Mode:
- Live (Real-time): Draws the box immediately if the current developing candle hits the volume threshold. (Note: The box may disappear if the volume average shifts before the candle closes).
- Candle Close: The box only appears once the candle has finished and permanently confirmed the volume spike.
2. Table Settings
Show Info Table: Toggles the dashboard on or off.
Text Size & Position: Customise where the table appears on your screen and how large the text is.
Colours: Fully customisable colours for the Table Header (Top row) and Data Rows (Bottom rows).
3. Timeframe 1 & 2 Settings
You have two identical sections to configure two different timeframes (e.g., 30m and 1H).
Timeframe: The chart interval to monitor (e.g., "30" for 30 minutes, "60" for 1 Hour, "240" for 4 Hours).
Threshold %: The "Trigger" for drawing a box based on relative candle volume in that timeframe.
Example:
100% = Candle Volume is equal to the average volume for the specified timeframe.
200% = Candle Volume is 2x the average volume for the specified timeframe.
300% = Candle Volume is 3x the average volume for the specified timeframe.
Box & Edge Colour: Distinct colours for each timeframe so you can easily tell which timeframe created the zone.
Индикаторы и стратегии
Simulated Liquidation Heatmap [QuantAlgo]🟢 Overview
This indicator visualizes where clusters of stop-loss orders and liquidation levels are likely located, displayed as a 'heatmap'. It's based on the concept of market structure liquidity: large groups of stop orders tend to gather around obvious technical levels (like swing highs and lows), and these pools of orders often attract price movement from institutional traders. The indicator uses a fractal-based algorithm to identify these high-probability liquidation zones and displays them as dynamic, color-coded boxes.
The key feature is the thermal color gradient, which indicates the freshness (age) and therefore the relative relevance of the liquidity zone. Hot colors (e.g., Red/Yellow) represent fresh clusters that have just formed, suggesting strong and immediate liquidity interest. Cold colors (e.g., Blue/Purple) represent aged or decaying clusters that are becoming less relevant over time. This visualization allows traders to anticipate potential liquidity sweeps (stop hunts) and understand areas of significant retail and institutional positioning.
🟢 Key Features
1. Liquidity Zone Heatmap
The core function is the identification of swing high and swing low price points using a user-defined Lookback period. These points are where retail traders are statistically most likely to place their stop-loss orders. The indicator simulates the clustering of these orders by drawing a zone (box) around the detected swing point, with the vertical size controlled by the Stop/Liquidation Zone Width (%) setting.
▶ Cluster Lookback: Defines the sensitivity of swing point detection. Lower values detect frequent, minor zones (scalping/intraday); higher values detect major, stronger swing points (swing trading).
▶ Zone Width (%): Sets the percentage range above and below the swing point where stops are simulated to cluster, accounting for slippage and typical stop placement spread.
▶ Liquidity Decay: Zones gradually fade in color intensity and are eventually removed after the user-defined Liquidity Decay Period (Bars), ensuring the heatmap only displays relevant, current liquidity areas.
▶ Round Number Filter: An optional filter that limits the display to liquidity zones occurring only at psychologically significant round numbers (e.g., $100, $1,500.00), which typically attract higher concentrations of orders.
2. Thermal Color Gradient
The heatmap's color is a direct function of the zone's age, providing a visual proxy for immediate relevance.
▶ Freshness: Newly created zones are displayed in the Hot Color (high relevance).
▶ Decay: As bars pass, the zone color transitions along the gradient toward the Cold Color and increased transparency (lower relevance), until it is removed entirely.
▶ Color Schemes: Multiple pre-configured and custom color schemes are available to optimize the visualization for different chart themes and color preferences.
3. Liquidity Heat Thermometer
An optional visual thermometer is displayed on the chart to provide an instant, overall assessment of the current liquidation heat level in the immediate vicinity of the price.
▶ Calculation: The thermometer calculates an aggregate heat score based on the age and proximity of all liquidity zones within a user-defined Zone Detection Range (%) of the current price.
▶ Visual Feedback: A marker (triangle) points to the corresponding level on the thermometer's color gradient (Hot to Cold). A high reading indicates price is close to fresh, dense stop clusters, suggesting high volatility or an imminent liquidity sweep is probable. A low reading indicates price is in a low-density or aged liquidity area.
▶ Customization: The thermometer's resolution, position, and text size are fully customizable for optimal chart placement and readability.
🟢 Practical Applications
▶ Anticipate Sweeps: Prioritize trading in the direction of Hot (fresh) liquidity zones. For example, a hot low-side zone suggests strong sell-side liquidity (stop-losses) is available for large buyers to sweep.
▶ Filter Noise: Use the Round Number Filter to focus only on the highest probability liquidation zones, which are often at clean, psychological price levels.
▶ Validate Entries: Combine the Heat Thermometer with price action analysis. A rising heat level indicates increasing proximity to a major stop cluster, signaling a potential turn or an aggressive market move to sweep those stops.
▶ Risk Management: Understand that price often acts dynamically around these zones. High heat levels imply high risk/reward setups; stops should be placed strategically beyond the defined Liquidation Zone Width.
▶ Multi-Timeframe Context: Higher timeframes (e.g., Daily, 4-Hour) often reveal more significant, major liquidity zones. Use this indicator on lower timeframes (e.g., 5-min, 15-min) for execution, but prioritize zones that align with higher-timeframe structures.
RSI Cascade DivergencesRSI Cascade Divergences is a tool for detecting divergences between price and RSI with an extended cascade-based strength accumulation logic. A “cascade” represents a sequence of multiple divergences linked through RSI pivot points. The indicator records RSI pivots, checks whether a divergence is present, assigns a strength value to each structure, and displays only signals that meet your minimum strength thresholds.
How Divergence Logic Works
The indicator identifies local RSI extremes (pivots) based on Pivot Length and Pivot Confirm.
For every confirmed pivot it stores:
the RSI value at the pivot,
the corresponding value of the RSI Source price,
the pivot’s bar index.
How a Divergence Is Formed
A divergence is detected when two consecutive RSI pivots of the same type show opposite dynamics relative to the price source defined in RSI Source (default: close), not relative to chart highs/lows.
Bearish divergence: the price source value at the second pivot is higher, but RSI forms a lower high.
Bullish divergence: the price source value at the second pivot is lower, but RSI forms a higher low.
The indicator does not use price highs/lows — only the selected price source at the pivot points.
Cascade Strength Calculation
Each new pivot is compared only with the previous pivot of the same type.
A cascade grows in strength if:
divergence conditions are met,
the difference in RSI values exceeds Min. RSI Distance,
the previous structure already had some strength or the previous pivot was formed in the OB/OS zone.
If the divergence occurs as RSI exits OB/OS, strength is additionally increased by +1.
Behavior in Strong Trends
Divergences may appear repeatedly and even form cascades with high strength. However, if price does not react meaningfully, this indicates strong trend pressure.
In such cases, divergences stop functioning as reversal signals:
RSI attempts to counter-move, but the dominant trend continues.
The indicator accurately reflects this — cascades may form but fail to trigger any reversal, which itself suggests a powerful, persistent trend.
Filtering and Context Reset
To avoid retaining irrelevant pivots:
when RSI is above Overbought → low pivots are cleared;
when RSI is below Oversold → high pivots are cleared.
This prevents false cascades during extreme RSI conditions.
Input Parameters
RSI Source — price source used in RSI calculations (close, hl2, ohlc4, etc.).
RSI Length — RSI calculation period.
Overbought / Oversold — RSI threshold zones.
Pivot Length — number of bars to the left required for a pivot.
Pivot Confirm — bars to the right required to confirm the pivot.
Min. RSI Distance — minimum difference between two pivot RSI values for the divergence to be considered meaningful.
Min. Strength (Bull / Bear) — minimum accumulated strength for:
confirming the signal,
displaying the strength label,
triggering alerts.
Weaker signals below these thresholds appear as dashed guide structures.
Visual
Display settings for lines, markers, and colors.
These parameters do not affect the indicator logic.
Important
Divergences — including cascades — should not be used as a standalone trading signal.
Always combine them with broader market context, trend analysis, structure, volume, and risk management tools.
Helix Protocol 7 v2Helix Protocol 7 - Cascade Protection Update
Overview
This update adds Cascade Protection to Helix Protocol 7, a dual-layer defense system designed to prevent capital destruction during violent market crashes and cascading liquidation events. Mean reversion strategies are vulnerable to "catching falling knives" - buying repeatedly into a crash that keeps crashing. These protections intelligently pause buying during extreme volatility while preserving the ability to capture true bottom entries.
New Features
🛡️ Protection 1: BBWP Volatility Freeze
What it does: Monitors Bollinger Band Width Percentile (BBWP) to detect extreme volatility spikes. When BBWP exceeds the threshold (default 92%), ALL buy signals are frozen until volatility subsides.
Why it matters: During cascading liquidations (like BTC dropping from $92K to $84K in hours), BBWP spikes to extreme levels. These are precisely the moments when mean reversion buys are most dangerous. The freeze prevents buying during the chaos, then automatically unlocks when BBWP drops - allowing you to catch the actual bottom rather than averaging into a falling knife.
Settings:
BBWP Length: 7 (matches The_Caretaker's indicator)
BBWP Lookback: 100 (matches The_Caretaker's indicator)
BBWP Freeze Level: 92% (adjustable)
🛡️ Protection 2: Consecutive Buy Counter
What it does: Tracks how many buy signals have fired without an intervening sell. After reaching the maximum (default 3), additional buys are blocked until a sell signal fires and resets the counter.
Why it matters: Even after BBWP drops, a bounce might fail and continue lower. The counter ensures you can't infinitely average down into a position. It caps your exposure at 3 entries, preserving capital for better opportunities.
Settings:
Max Consecutive Buys: 3 (adjustable)
How The Protections Work Together
Buy Condition Triggered
↓
BBWP ≤ 92%? ──NO──→ ❌ BUY BLOCKED (Volatility Freeze)
↓ YES
Counter < 3? ──NO──→ ❌ BUY BLOCKED (Max Buys Reached)
↓ YES
✅ BUY SIGNAL FIRES
Counter increments (1/3 → 2/3 → 3/3)
Sell Signal Fires
↓
Counter resets to 0/3
Key Design Decision: BBWP freeze is absolute - even "EXTREME" band penetration signals cannot bypass it. This prevents the false confidence of "it's so oversold, it MUST bounce" during true market panics.
Sells are never affected by cascade protection. You always want the ability to exit positions and lock in profits during volatile rallies.
Panel Display
Two new rows in the info panel show real-time protection status:
RowExampleMeaningBBWP 87.3%OK (green)Buys allowedBBWP 94.2%FROZEN (red)Buys blockedBuy Counter2/3 (green)2 buys fired, 1 remainingBuy Counter3/3 (red)Max reached, buys blocked
Buy signal labels now display the counter: BUY: $86,360.43 CAPITULATION
New Alerts
⚠️ BBWP Freeze Activated: "CASCADE PROTECTION: BBWP hit 94.2% - Buys FROZEN"
⚠️ Max Buys Reached: "CASCADE PROTECTION: Max 3 consecutive buys reached - Buys FROZEN"
✅ BBWP Unlocked: "CASCADE PROTECTION: BBWP dropped to 88.1% - Buys UNLOCKED"
Alert JSON now includes consec_buys and bbwp fields for bot logging.
Real-World Performance
November 30 - December 1, 2025 BTC Cascade ($92K → $84K):
Without ProtectionWith Protection8+ buys during crash0 buys during crashAveraged down from $92KWaited for BBWP to dropDeep unrealized loss3 buys near $85-87K bottomCapital depletedCapital preserved
The protection blocked all panic buys during the BBWP >92% spike, then allowed exactly 3 well-timed entries after volatility subsided - capturing the actual bottom instead of the falling knife.
Configuration Recommendations
Market ConditionBBWP FreezeMax BuysStandard (default)92%3Conservative88%2Aggressive95%4
Lower BBWP threshold = More protection, may miss some entries
Higher Max Buys = More averaging allowed, higher risk
Compatibility
Bot Integration: No changes required. Protection logic executes before alerts fire.
Existing Alerts: Must delete and recreate alerts after updating indicator.
The_Caretaker's BBWP: Settings matched to ensure visual consistency between indicators.
Credits
BBWP concept and implementation inspired by The_Caretaker's Bollinger Band Width Percentile indicator. Cascade protection logic developed through analysis of November 2025 BTC market crashes.
Sima-Smart Money Concepts + RSI CandlestickThis indicator displays the RSI in a candlestick format and marks its support and resistance levels, as well as oversold and overbought zones based on Smart Money concepts.
In fact, this indicator is a combination of a candlestick-style RSI and a Smart Money indicator.
SuperTrend Fusion — Trend + Momentum + Volatility FilterSuperTrend Fusion — Trend + Momentum + Volatility Filter
SuperTrend Fusion — ATP is an original, multi-factor trend-filtering tool that enhances the classic SuperTrend by combining three market dimensions in one unified model:
1. Trend direction (SuperTrend)
Provides the base trend structure using ATR-based volatility bands.
2. Momentum confirmation (Average Force – adapted)
An adapted version of an open-source “Average Force” concept published on TradingView by racer8.
This component measures where closing price sits relative to recent highs/lows, smoothed to capture directional pressure.
3. Market condition filtering (Choppiness Index)
Filters out sideways, non-trending zones where SuperTrend alone typically produces false flips.
Together, these components create a cleaner, more selective system that focuses on higher-quality SuperTrend reversals, avoiding the most common whipsaws that occur during low-momentum or high-choppiness periods.
🔍 How it Works
A long signal occurs when:
- SuperTrend flips from downtrend to uptrend
- Momentum (AF) is positive (optional filter)
- The market is trending and not excessively choppy (optional filter)
A short signal triggers under the symmetrical conditions.
Filtered signals are visually marked with subtle “X” markers so traders can understand when a raw SuperTrend flip was rejected by the filters.
The indicator also includes:
Enhanced styling for better visibility
Colored bars during valid signals
Optional background highlight during choppy periods
🎯 What This Indicator Is Designed For
This tool aims to:
- Improve the quality of SuperTrend entries
- Remove many low-probability signals
- Help traders visually identify when the market has the momentum and structure required for cleaner trend continuation
It is not intended to predict markets or guarantee accuracy; rather, it provides structure and clarity for decision-making based on technical rules.
⚙️ Inputs
- ATR Length & Factor (SuperTrend)
- Average Force Period & Smoothing
- Choppiness Length & Threshold
- Option to enable/disable each filter individually
📘 Credits
This script includes an adapted version of an open-source “Average Force” function originally published on TradingView by its author, racer8.
SuperTrend and Choppiness Index components are derived from classical, public-domain formulas.
📌 Important Notes
This indicator is not a strategy and does not guarantee performance.
Signals are based on historical calculations only and do not use lookahead.
Past performance does not guarantee future results.
Always test different assets and timeframes before using in live conditions.
👍 Recommended Usage
For a clean experience:
- Use on standard candlestick charts
- Avoid non-standard chart types (Renko, Heikin Ashi, Kagi, Range)
- Combine with your own risk management and trade planning
Volumetric Inverse Fair Value Gap (IFVG) [Kodexius]The Volumetric Inverse Fair Value Gap (IFVG) indicator detects and visualizes inverse fair value gaps (IFVGs) zones where previous inefficiencies in price (fair value gaps) are later invalidated or “inverted.”
Unlike traditional FVG indicators, this tool integrates volume-based analysis to quantify the bullish, bearish, and overall strength of each inversion. It visually represents these metrics within a dynamically updating box on the chart, giving traders deeper insight into market reactions when liquidity imbalances are filled and reversed.
Features
Inverse fair value gap detection
The script identifies bullish and bearish fair value gaps, stores them as pending zones, and turns them into inverse fair value gaps when price trades back through the gap in the opposite direction. Each valid inversion becomes an active IFVG zone on the chart.
Sensitivity control with ATR filter and strict mode
A minimum gap size based on ATR is used to filter out small and noisy gaps. Strict mode can be enabled so that any wick contact between the relevant candles prevents the gap from being accepted as a fair value gap. This lets you decide how clean and selective the zones should be.
Show Last N Boxes control
The indicator can keep only the most recent N IFVG zones visible. Older zones are removed from the chart once the number of active objects exceeds the user setting. This prevents clutter on higher timeframes or long histories and keeps attention on the most relevant recent zones.
Ghost box for the original gap
When the ghost option is enabled, the script draws a faint box that marks the original fair value gap from which the inverse zone came. This makes it easy to see where the initial imbalance appeared and how price later inverted that area.
Volumetric bull, bear and strength metrics
For each IFVG, the script estimates how much of the bar volume is associated with buying and how much with selling, then computes bull percentage, bear percentage and a strength score that uses a percentile rank of volume. These values are stored with the IFVG object and drive the visualization inside the zone.
Three band visual layout inside each IFVG
Each active IFVG is drawn as a container with three horizontal sections. The top band represents the bull percentage, the middle band the bear percentage and the bottom band the strength metric. The width of each bar reflects its respective value so you can read the structure of the zone at a glance.
Customizable colors and label text
Colors for bull, bear, strength, the empty background area, the ghost box and label text can be adjusted in the inputs. This allows you to match the indicator to different chart themes or highlight specific aspects such as strength or direction.
Automatic invalidation and cleanup
When price clearly closes beyond the IFVG in a way that breaks the logic of that zone, the script marks it as inactive and deletes all boxes and labels linked to it. Only valid and active IFVGs remain on the chart, which keeps the display clean and focused.
Calculations
1. Detecting Fair Value Gaps (FVGs)
A fair value gap is identified when price action leaves an imbalance between candle wicks. Depending on the mode:
Bullish FVG: When low > high
Bearish FVG: When high < low
Optionally, the strict mode ensures wicks do not touch.
The gap’s significance is filtered using the ATR multiplier input to exclude minor noise.
Once detected, FVGs are stored as pending zones until inverted by opposite movement (price crossing through).
bool bull_cond = strict_mode ? (low > high ) : (close > high )
bool bear_cond = strict_mode ? (high < low ) : (close < low )
float gap_size = 0.0
if bull_cond and close > open
gap_size := low - high
if bear_cond and close < open
gap_size := low - high
2. Creating IFVGs (Inversions)
When price later moves through a previous FVG in the opposite direction, an Inverse FVG (IFVG) is created.
For example:
A previous bearish FVG becomes bullish IFVG if price moves upward through it.
A previous bullish FVG becomes bearish IFVG if price moves downward through it.
The IFVG is initialized with structural boundaries (top, bottom) and timestamp metadata to anchor visualization.
if not p.is_bull_gap and close > p.top
inverted := true
to_bull := true
if p.is_bull_gap and close < p.btm
inverted := true
to_bull := false
3. Volume Metrics (Bull, Bear, Strength)
Each IFVG calculates buy and sell volumes from the current bar’s price spread and total volume.
Bull % = proportion of upward (buy) volume
Bear % = proportion of downward (sell) volume
Strength % = normalized percentile rank of total volume
These are obtained through a custom function that estimates directional volume contribution:
calc_metrics(float o, float h, float l, float c, float v) =>
float rng = h - l
float buy_v = 0.0
if rng == 0
buy_v := v * 0.5
else
if c >= o
buy_v := v * ((math.abs(c - o) + (math.min(o, c) - l)) / rng)
else
buy_v := v * ((h - math.max(o, c)) / rng)
float sell_v = v - buy_v
float total = buy_v + sell_v
float p_bull = total > 0 ? buy_v / total : 0
float p_bear = total > 0 ? sell_v / total : 0
float p_str = ta.percentrank(v, 100) / 100.0
Price Action Signals Filtered +EMA🚀 Price Action Signals Filtered + EMA (Dual Confirmation)
💡 Indicator Overview
This indicator is a powerful tool designed to identify potential trend reversals or continuations using Price Action Pivot signals, but it filters them with an Exponential Moving Average (EMA) to ensure dual confirmation.
The indicator's purpose is to generate signals only when a Price Action confirmation aligns with a confirmed market trend (above or below the EMA), thereby reducing noise and increasing signal reliability.
✨ Key Features and Logic
1. Price Action (Pivot) Detection
The indicator automatically detects local low (Pivot Low) and local high (Pivot High) points.
Pivot Low: A potential market bottom.
Pivot High: A potential market top.
2. Price Action Confirmation
After a Pivot is detected, the indicator waits for subsequent confirmation from the closing prices of the candles:
Bullish Confirmation: After a Pivot Low, the indicator requires N consecutive candles (where N is defined in the settings) to close above the previous candle's close. This indicates buying pressure.
**Bearish Confirmation: After a Pivot High, the indicator requires N consecutive candles to close below the previous candle's close. This indicates selling pressure.
3. Trend Filter (EMA) - Dual Confirmation! 🎯
This is the critical component. A confirmed Price Action signal must align with the trend defined by the Exponential Moving Average (EMA):
Bullish Signal (Buy): Generated ONLY if the Bullish Price Action Confirmation occurs while the price (Close) is ABOVE the EMA (default 20 periods).
Bearish Signal (Sell): Generated ONLY if the Bearish Price Action Confirmation occurs while the price (Close) is BELOW the EMA.
This serves as a dual confirmation, ensuring the signal is captured in the direction of the broader market trend.
📈 How to Use
Look for the Signal: Wait for the shape (triangle, circle, or arrow) to appear on the chart.
Verify Confirmation: Know that the signal has already passed through the dual filter: Price Action and EMA.
Bullish signals appear below the bar when the price is ABOVE the EMA.
Bearish signals appear above the bar when the price is BELOW the EMA.
Risk Management: Always use this indicator in combination with your risk management strategy and technical analysis.
📝 Additional Notes
The indicator uses barstate.isconfirmed to accurately plot signals on the candle close.
The EMA line is also plotted on the chart for visual trend verification.
This indicator is a tool only and does not constitute financial advice. Always perform your own analysis and research.
Position Size Calculator + Live R/R Panel — SMC/ICT (@PueblaATH)Position Size + Live R/R Panel — SMC/ICT (@PueblaATH)
Position Size + Live R/R Panel — SMC/ICT (@PueblaATH) is a professional-grade risk management and execution module built for Smart Money Concepts (SMC) and ICT Traders who require accurate, repeatable, institution-style trade planning.
This tool delivers precise position sizing, R:R modeling, leverage and margin projections, fee-adjusted PnL outcomes, and real-time execution metrics—all directly on the chart. Optimized for crypto, forex, and futures, it provides scalpers, day traders, and swing traders with the clarity needed to execute high-quality trades with confidence and consistency.
What the Indicator Does
Institutional Position Sizing Engine
Calculates position size based on account balance, % risk, and SL distance.
Supports custom minimum lot size rounding across crypto, FX, indices, and derivatives.
Intelligent direction logic (Auto / Long / Short) based on SMC/ICT structure.
Advanced Risk/Reward & Profit Modeling
Real-time R:R ratio using actual rounded position size.
Live PnL readout that updates with price movements.
Gross & net profit projections with full fee deduction.
Execution Planning with Draggable Levels
Entry, SL, and TP levels fully draggable for fast scenario modeling.
Automatic projected lines backward/forward with clean label alignment.
TP and SL tags include % movement from Entry, ideal for SMC/ICT journaling.
Precise modeling of real exchange fee structures
Maker fee per side
Taker fee per side
Mixed fee modes (Maker entry, Taker exit, Average, etc.)
Leverage & Margin Forecasting
Margin requirements displayed for 3 customizable leverage settings.
Helps traders understand capital commitment before executing the trade.
Useful for futures, crypto perps, and CFD setups.
Clean HUD Panel for Rapid Decision-Making
A full professional trading panel displays:
Target & actual risk
Position size
Entry / SL / TP
TP/SL percentage distance
Gross profit
Net profit (after fees)
Fees @ TP and @ SL
Live PnL
Margin requirements
Optimized for SMC & ICT Workflows
Perfect for traders using:
Breakers, FVGs, OBs
Liquidity sweeps
Session models
Precision entries (OTE, Displacement, Rebalancing)
Leverage-based execution (crypto perps, futures)
How to Use It
Attach the indicator to your chart.
Set account balance, risk %, fee model, and leverage presets.
Drag Entry, SL, and TP to shape the setup.
View instant calculations of: Position size; R:R; Net PnL after fees; Margin required
Use it as your pre-trade checklist & execution model.
Originality & Credits
This script is an original creation by @PueblaATH, released under the MPL 2.0 license.
It does not copy, modify, or repackage any existing TradingView code.
All logic—including the fee engine, margin calculator, responsive HUD, dynamic risk model, and visual execution system—is authored specifically for this indicator.
teril Harami Reversal Alerts BB Touch (Wick Filter Added) teril Harami Reversal Alerts BB Touch (Wick Filter Added)
teril Harami Reversal Alerts BB Touch (Wick Filter Added) teril Harami Reversal Alerts BB Touch (Wick Filter Added) teril Harami Reversal Alerts BB Touch (Wick Filter Added)
teril Harami Reversal Alerts BB Touch (Wick Filter Added)
Lines Blue OrangeTry this without candles. Can be used with other indicators to help determine the direction.
Minor Break of Structure (Minor BoS)This indicator extracts and isolates the Minor Break of Structure (BoS) logic from a full SMC framework and presents it as a clean, lightweight tool for structure-based price action traders.
Unlike traditional BOS indicators that rely on swing calculations with heavy filtering, this script uses original SMC-style minor structure logic to detect meaningful shifts in internal order flow.
A Minor BoS appears when price breaks above a minor swing high (bullish) or below a minor swing low (bearish), confirming a short-term continuation in trend direction.
Features:
Bullish Minor BoS detection
Bearish Minor BoS detection
Automatic line plotting with extend-right
Clear “Minor BoS” label with tiny footprint
Customizable line styles and colors
Lightweight & optimized for fast execution
Zero repainting on BoS confirmations
This tool is ideal for traders who want a simple, clean, and reliable structure-based signal without the noise of major structure, order blocks, liquidity sweeps, or external SMC modules.
(QUANTLABS) Fractal God Mode: 25-Timeframe Scanner The indicator aggregates data into three distinct metric columns:
1. STRUCT (Market Structure) This analyzes price action relative to Fractal Pivots (Highs and Lows) to determine market direction.
HH (Breakout): Price has closed above the previous Pivot High. (Bullish Structure)
LL (Breakdown): Price has closed below the previous Pivot Low. (Bearish Structure)
TRAPPED: Price is trading between the last Pivot High and Low. This indicates a ranging market where trend trades should be avoided.
2. VELOCITY (Thrust) This measures the specific strength of the current candle on that timeframe.
The Math: It calculates the ratio of the body (Close - Open) relative to the total candle range (High - Low).
The Signal: High positive numbers (Green) indicate buyers are closing near highs. High negative numbers (Red) indicate sellers are dominating the range.
3. QUALITY (Efficiency Ratio) This acts as a "Noise Filter." It determines if the trend is moving in a straight line or whipping back and forth.
The Math: It divides the Net Price Movement (Distance from 5 bars ago) by the Total Path Traveled (Sum of the ranges of the last 5 bars).
PRISTINE (Values > 0.6): The market is moving efficiently in one direction.
CHOPPY (Values < 0.4): The market is volatile and non-directional (High Noise).
1. The Matrix (Dashboard) Located in the bottom right, this table gives you an instant read on Short-Term (3m-9m), Medium-Term (10m-45m), and Long-Term (1H-Daily) trends.
2. Coherence Flow At the bottom of the table, the script sums up the structural score of all 25 timeframes.
COHERENT BULL: When the Short, Medium, and Long terms align green.
COHERENT BEAR: When the Short, Medium, and Long terms align red.
3. God Mode (Global S/R) The indicator can plot Support and Resistance levels from higher timeframes onto your current chart. For example, while trading the 5m chart, you can see the 4H and Daily pivot levels plotted automatically as dotted lines, ensuring you never trade blindly into a higher-timeframe wall.
Trend Following: Wait for the "Coherent Bull/Bear" signal at the bottom of the dashboard. This confirms that momentum is aligned from the 3m chart up to the Daily.
Scalping: Focus on the Quality column. Only take trades when the Quality is "CLEAN" or "PRISTINE." Avoid entries when the dashboard warns of "High Noise" (Choppy).
Risk Management: If the dashboard shows "TRAPPED" on the Long Term (1H+), reduce position size or wait for a breakout.
Pivot Lookback: Adjusts the sensitivity of the Fractal Structure (Default: 5).
Show Fractal DNA Matrix: Toggles the dashboard table.
Show ALL Timeframe S/R: Enables "God Mode" to see supports/resistances from all 25 timeframes (Heavy visual processing, use carefully).
YM Ultimate SNIPER v8 final# YM Ultimate SNIPER v8 - Complete Documentation
## 🎯 WIN AT ALL COST EDITION
### FIXED: Scoring System + Solid Table + All Timeframes + Filtered Visuals
**TARGET: 3-7 High-Confluence Trades per Day**
**Philosophy: "Zones That Matter" + "See Inside The Candle"**
---
# 📋 QUICK START CHEATSHEET
## ⚡ 60-SECOND SETUP
### Step 1: Add to Chart
1. Open TradingView → Indicators → Pine Editor
2. Paste the v8 code → Save → Add to Chart
3. Use 5-minute chart for day trading
### Step 2: Verify Settings (YM Default)
```
TIER THRESHOLDS:
├── S-Tier: 50 points (institutional sweep)
├── A-Tier: 25 point# YM Ultimate SNIPER v8 - Complete Documentation
## 🎯 WIN AT ALL COST EDITION
### FIXED: Scoring System + Solid Table + All Timeframes + Filtered Visuals
**TARGET: 3-7 High-Confluence Trades per Day**
**Philosophy: "Zones That Matter" + "See Inside The Candle"**
---
# 📋 QUICK START CHEATSHEET
## ⚡ 60-SECOND SETUP
### Step 1: Add to Chart
1. Open TradingView → Indicators → Pine Editor
2. Paste the v8 code → Save → Add to Chart
3. Use 5-minute chart for day trading
### Step 2: Verify Settings (YM Default)
```
TIER THRESHOLDS:
├── S-Tier: 50 points (institutional sweep)
├── A-Tier: 25 points (strong momentum)
└── B-Tier: 12 points (quick scalp)
INTRABAR: 1-minute (most precise)
SESSIONS: NY Window (0930-1130) ← Primary focus
```
### Step 3: Look for These Signals
```
⚡GOD = GOD MODE (9.0+ score) → TAKE IT NOW, full size
S🎯 = S-Tier HOLD → 2.5-3.5 R:R target
A🎯 = A-Tier SWING → 2.0-2.5 R:R target
B🎯 = B-Tier SCALP → 1.5-2.0 R:R target
Z = Zone entry (no tier but quality zone)
LS↑/↓ = Liquidity Sweep (filtered for quality)
✕ = Absorption (filtered for quality)
```
---
# 🔥 THE SCORE SYSTEM (v8 REBUILT)
## How It Works Now
The score is **100% ADDITIVE** - no more gating. Every factor adds points:
| Category | Factor | Points |
|----------|--------|--------|
| **TIER** | S-Tier | +3.0 |
| | A-Tier | +2.0 |
| | B-Tier | +1.0 |
| **ZONES** | In FVG Zone | +1.5 |
| | In Order Block | +1.5 |
| | In IFVG | +1.0 |
| **VOLUME** | Meets minimum (1.5x) | +0.5 |
| | Strong (2.0x) | +0.75 |
| | Extreme (2.5x) | +0.75 |
| **DELTA** | Buy/Sell dominant (60%+) | +1.0 |
| | Strong (70%+) | +0.5 |
| | Extreme (78%+) | +0.5 |
| **CVD** | Bullish/Bearish | +0.5 |
| | Strong momentum | +0.5 |
| | Extreme momentum | +0.5 |
| **CANDLE** | Strong body (60%+) | +0.5 |
| | Significant range (1.2x avg) | +0.5 |
| | Clean wicks | +0.5 |
| **SWEEP** | Recent sweep (within 3 bars) | +1.5 |
| | Current bar sweep | +0.5 |
| **SESSION** | In key session | +1.0 |
| **INTRABAR** | IB Delta dominant | +1.0 |
| | IB Delta strong | +0.5 |
| | IB Delta extreme | +0.5 |
| | IB Momentum confirmed | +0.5 |
| | IB Momentum strong | +0.5 |
| | Absorption detected | +1.0 |
| | Internal sweep | +0.5 |
| | Volume cluster (favorable) | +0.5 |
**Max Raw Score: ~22 points → Normalized to 10**
## Score Classifications
| Score | Classification | Action | Size |
|-------|---------------|--------|------|
| **9.0-10** | ⚡ GOD MODE | TAKE IT NOW | Full position |
| **8.0-8.9** | ⭐ EXCELLENT | High priority | 75-100% size |
| **5.0-7.9** | 🟡 MEDIUM | Standard setup | 50-75% size |
| **<5.0** | ❌ NO SIGNAL | No trade | — |
---
# 📊 INSTRUMENT-SPECIFIC SETUP
## YM (Dow Jones Mini) - DEFAULT
```
TIER THRESHOLDS:
├── S-Tier: 50 points
├── A-Tier: 25 points
└── B-Tier: 12 points
TICK VALUE: 1.00 (1 tick = 1 point)
CONTRACT VALUE: $5 per point
RECOMMENDED:
├── Chart: 5-minute
├── Intrabar TF: 1 (1-minute) OR 100T (tick for Premium+)
├── Sessions: NY Open (9:30-11:30)
└── Stop: 2 ticks below signal candle low
PRO TIP: Use 100T or 250T tick intrabar for true order flow
```
## NQ (Nasdaq Mini)
```
TIER THRESHOLDS:
├── S-Tier: 100 points
├── A-Tier: 50 points
└── B-Tier: 25 points
TICK VALUE: 0.25 (4 ticks = 1 point)
CONTRACT VALUE: $5 per point ($20 per tick)
RECOMMENDED:
├── Chart: 5-minute
├── Intrabar TF: 1 (1-minute)
├── Min Volume Ratio: 1.8 (more volatile)
├── Delta Threshold: 0.62 (stricter)
└── Sessions: NY Open + Power Hour
```
## GC (Gold)
```
TIER THRESHOLDS:
├── S-Tier: 20 points (=$200)
├── A-Tier: 10 points (=$100)
└── B-Tier: 5 points (=$50)
TICK VALUE: 0.10 (10 ticks = 1 point)
CONTRACT VALUE: $10 per point ($1 per tick)
RECOMMENDED:
├── Chart: 5-minute
├── Intrabar TF: 1 (1-minute)
├── Sessions: London + NY overlap
├── Min Volume Ratio: 1.5
└── Note: More responsive to geopolitical events
```
## BTC (Bitcoin Futures)
```
TIER THRESHOLDS:
├── S-Tier: 500 points
├── A-Tier: 250 points
└── B-Tier: 100 points
TICK VALUE: 5.00 (1 tick = 5 points)
CONTRACT VALUE: $5 per point
RECOMMENDED:
├── Chart: 15-minute (less noise)
├── Intrabar TF: 5 (5-minute)
├── Sessions: Consider 24/7 (disable session filter)
├── Min Volume Ratio: 2.0 (crypto is spiky)
├── Absorption Threshold: 0.70 (stricter)
└── Note: Higher volatility, use wider stops
```
## ES (S&P 500 Mini)
```
TIER THRESHOLDS:
├── S-Tier: 20 points
├── A-Tier: 10 points
└── B-Tier: 5 points
TICK VALUE: 0.25 (4 ticks = 1 point)
CONTRACT VALUE: $12.50 per point ($50 per tick)
RECOMMENDED:
├── Chart: 5-minute
├── Intrabar TF: 1 (1-minute)
├── Sessions: NY Open (primary)
├── Note: Most liquid, cleanest price action
└── Good for learning the system
```
---
# 🕐 INTRABAR TIMEFRAME GUIDE
## Available Timeframes (v8 COMPLETE!)
### TICK TIMEFRAMES (Premium+ Required)
| Timeframe | Code | Best For |
|-----------|------|----------|
| 1 Tick | 1T | **ULTIMATE PRECISION** - every single trade |
| 5 Ticks | 5T | Ultra-precise scalping |
| 10 Ticks | 10T | High-frequency analysis |
| 25 Ticks | 25T | Tick scalping |
| 50 Ticks | 50T | Short-term tick analysis |
| 100 Ticks | 100T | Standard tick analysis |
| 250 Ticks | 250T | Medium tick grouping |
| 500 Ticks | 500T | Larger tick grouping |
| 1000 Ticks | 1000T | High-level tick view |
### SECOND TIMEFRAMES
| Timeframe | Code | Best For |
|-----------|------|----------|
| 1 Second | 1S | Ultra-scalping |
| 5 Seconds | 5S | Scalping, high-frequency |
| 10 Seconds | 10S | Fast scalping |
| 15 Seconds | 15S | Quick scalps |
| 30 Seconds | 30S | Short-term scalps |
### MINUTE TIMEFRAMES
| Timeframe | Code | Best For |
|-----------|------|----------|
| 1 Minute | 1 | **RECOMMENDED** for 5m charts |
| 2 Minutes | 2 | 10m charts |
| 3 Minutes | 3 | 15m charts |
| 5 Minutes | 5 | 15-30m charts |
| 10 Minutes | 10 | 30m-1h charts |
| 15 Minutes | 15 | 1h charts |
| 30 Minutes | 30 | 1-2h charts |
| 45 Minutes | 45 | 2-4h charts |
| 1 Hour | 60 | 4h charts |
| 2 Hours | 120 | Daily charts |
| 3 Hours | 180 | Daily charts |
| 4 Hours | 240 | Weekly charts |
### HIGHER TIMEFRAMES
| Timeframe | Code | Best For |
|-----------|------|----------|
| Daily | D | Weekly/Monthly charts |
| Weekly | W | Monthly charts |
| Monthly | M | Long-term analysis |
## 🔥 TICK DATA ADVANTAGE
**Why Use Tick Data?**
- **True Order Flow**: See every single transaction
- **No Time Aggregation**: Pure price/volume action
- **Institutional Footprint**: Catch block trades instantly
- **Maximum IB Precision**: Most accurate delta/momentum
**Best Tick Settings by Instrument:**
| Instrument | Chart TF | Recommended Tick IB |
|------------|----------|---------------------|
| YM | 5 min | 100T or 250T |
| NQ | 5 min | 50T or 100T (more liquid) |
| ES | 5 min | 50T or 100T (most liquid) |
| GC | 5 min | 100T or 250T |
| BTC | 15 min | 250T or 500T |
## ⚠️ CRITICAL RULE
**Intrabar TF MUST be LOWER than your chart TF!**
### Automatic Validation (v8 NEW!)
The script now automatically detects invalid intrabar configurations:
**When Intrabar TF is INVALID:**
1. **Yellow warning label** appears on chart: "⚠️ INTRABAR TF INVALID"
2. **Table shows**: "IB Data: ⚠️ INVALID TF" with yellow background
3. **Alert available**: "⚠️ INTRABAR CONFIG ERROR"
4. **Score impact**: Intrabar points (up to 5) are NOT added
**Example - 2 Minute Chart:**
```
VALID selections: 1T, 5T, 10T, 25T, 50T, 100T (any tick)
1S, 5S, 10S, 15S, 30S (any second)
1 (1-minute only)
INVALID selections: 2, 3, 5, 10, 15... (2min or higher)
D, W, M (obviously)
```
| Your Chart | Valid Intrabar Options |
|------------|------------------------|
| **2 minute** | **1T-1000T, 1S-30S, 1 only** |
| 5 minute | 1T-1000T, 1S-30S, 1-4 min |
| 15 minute | 1T-1000T, 1S-30S, 1-10 min |
| 1 hour | 1T-1000T, 1S-30S, 1-45 min |
| 4 hour | 1T-1000T, 1S-30S, 1-180 min |
| Daily | All tick, seconds, minutes up to 240 |
---
# 🎨 VISUAL FILTERING (v8 NEW!)
## The Problem (v7)
Too many sweep and absorption markers cluttered the chart with low-quality signals.
## The Solution (v8)
**Quality filters** - only show sweeps/absorption that MATTER.
### Sweep Quality Score
A sweep needs confluence to display:
```
+1.5 = In FVG Zone
+1.5 = In Order Block
+1.0 = Strong volume
+0.5 = In session
+1.0 = Intrabar confirmation
───────────────────
MIN NEEDED: 2.0 to show
```
### Absorption Quality Score
```
+1.5 = In FVG Zone
+1.5 = In Order Block
+1.0 = Tier signal present
+0.5 = In session
+0.5 = CVD confirmation
───────────────────
MIN NEEDED: 2.0 to show
```
### Settings
```
VISUAL FILTERS:
├── Only Show Quality Sweeps: ON (default)
├── Only Show Quality Absorption: ON (default)
├── Min Sweep Quality Score: 2.0
└── Min Absorption Quality Score: 2.0
Turn OFF filters to see ALL signals (not recommended)
```
---
# 📈 CVD IMPLEMENTATION (v8 FIXED)
## What Changed
### v7 Issues:
- CVD accumulated forever (overflow risk)
- Short slope calculation (only 3 bars)
- No session reset
### v8 Fixes:
```
1. SESSION RESET: CVD resets at London/NY open
2. PROPER SLOPE: Calculated over 5 bars
3. STDEV COMPARISON: Strong/Extreme = slope > 1-2 stdev
```
## CVD Readings in Table
| Display | Meaning | Score Contribution |
|---------|---------|-------------------|
| 🔥 BULL | Extreme bullish momentum | +1.5 total |
| 🔥 BEAR | Extreme bearish momentum | +1.5 total |
| ↑ BULL | Strong bullish trend | +1.0 total |
| ↓ BEAR | Strong bearish trend | +1.0 total |
| bull | Bullish bias | +0.5 |
| bear | Bearish bias | +0.5 |
| — | Neutral/mixed | +0 |
---
# ✅ ENTRY CHECKLIST v8
## Quick Checklist (Print This!)
### For ANY Signal:
- Score ≥ 3.5 (signal shown)
- Session active (🟢 in table)
- Direction matches bias
### For MEDIUM+ Signal (Score 5.0+):
- Delta matches direction (✓ or better)
- CVD trending with signal
- Volume ≥ 1.5x average
### For EXCELLENT Signal (Score 7.0+):
All above PLUS:
- In FVG Zone OR Order Block
- Strong delta (✓✓) or extreme (🔥)
- IB Delta confirms direction
### For GOD MODE (Score 8.5+):
All above PLUS:
- Multiple structure confluence (FVG + OB)
- Absorption or sweep present
- IB Momentum strong (🔥)
- **FULL SIZE - DON'T HESITATE**
---
# ⛔ DO NOT TRADE
1. **Score below threshold** - No signal shown = no trade
2. **Outside session** - Unless you've disabled session filter
3. **Delta conflicts** - Bearish candle but buy dominant delta
4. **No intrabar data** - Shows "0 bars" in IB Data
5. **CVD strongly opposite** - 🔥 BEAR on a long signal
6. **After major news** - Wait for dust to settle
7. **Low volume overall** - Market too quiet
---
# 🏆 GOLDEN RULES v8
> **"The score doesn't lie. Trust the math."**
> **"GOD MODE = Don't think, just execute."**
> **"Filtered visuals = Quality over quantity."**
> **"If intrabar conflicts, trust intrabar."**
> **"Session matters - trade when institutions trade."**
> **"Stack confluence - score higher = win more."**
> **"Leave every trade with money. Next setup is coming."**
---
# 📝 TRADE JOURNAL v8
```
DATE: ___________
SESSION: ☐ LDN ☐ NY ☐ PWR
INSTRUMENT: YM / NQ / ES / GC / BTC
TRADE:
├── Time: _______
├── Signal: ⚡GOD / S🎯 / A🎯 / B🎯 / Z
├── Direction: LONG / SHORT
├── SCORE: ___/10
├── Classification: GOD MODE / EXCELLENT / MEDIUM / WEAK
│
├── Entry: _______
├── Stop: _______
├── Target: _______
│
├── In FVG Zone: ☐ Yes ☐ No
├── In Order Block: ☐ Yes ☐ No
├── Liquidity Sweep: ☐ Yes ☐ No
├── Absorption: ☐ Yes ☐ No
│
├── IB Delta: ____% (BULL / BEAR / NEUTRAL)
├── IB Momentum: ____% (BULL / BEAR / MIXED)
├── CVD: 🔥 / ↑↓ / neutral
│
├── Result: +/- ___ pts ($_____)
└── Notes: _______________________
DAILY SUMMARY:
├── Total Trades: ___
├── GOD MODE signals: ___
├── EXCELLENT signals: ___
├── Win Rate: ___%
├── Net P/L: $_____
└── Best score today: ___
```
---
# 🔧 TROUBLESHOOTING
| Issue | Solution |
|-------|----------|
| **Yellow "INVALID TF" warning** | Your intrabar TF is >= chart TF. Select LOWER! |
| **IB Data shows "⚠️ INVALID TF"** | Same as above - pick 1T, 1S, or 1 for most charts |
| No signals appearing | Lower Min Score threshold |
| Too many signals | Raise Min Score threshold |
| Score always 0 | Check if candle is tiered (meets point threshold) |
| Sweeps not showing | Check quality filter settings or lower threshold |
| Table transparent | ❌ Fixed in v8 - table is now solid |
| CVD not making sense | Now resets at session open - cleaner readings |
| Wrong tier thresholds | Adjust for your instrument (see setup guide) |
| Tick TF not available | Requires TradingView Premium+ subscription |
---
# 📚 VERSION HISTORY
## v8 - WIN AT ALL COST EDITION
- ✅ REBUILT scoring system (100% additive, no gating)
- ✅ SOLID table (no transparency)
- ✅ ALL TradingView timeframes for intrabar (1S to Monthly)
- ✅ FILTERED sweeps/absorption (quality-based)
- ✅ FIXED CVD (session reset, proper slope)
- ✅ GOD MODE classification (8.5+ score)
- ✅ Instrument-specific documentation
## v7 - Intrabar Edition
- Added intrabar analysis engine
- Added absorption detection
- Added internal sweep detection
## Previous Versions
- GRA v5 SNIPER + DeepFlow Zones SNIPER merged
---
*© Alexandro Disla - YM Ultimate SNIPER v8*
*WIN AT ALL COST Edition | Trust The Score*
s (strong momentum)
└── B-Tier: 12 points (quick scalp)
INTRABAR: 1-minute (most precise)
SESSIONS: NY Window (0930-1130) ← Primary focus
```
### Step 3: Look for These Signals
```
⚡GOD = GOD MODE (9.0+ score) → TAKE IT NOW, full size
S🎯 = S-Tier HOLD → 2.5-3.5 R:R target
A🎯 = A-Tier SWING → 2.0-2.5 R:R target
B🎯 = B-Tier SCALP → 1.5-2.0 R:R target
Z = Zone entry (no tier but quality zone)
LS↑/↓ = Liquidity Sweep (filtered for quality)
✕ = Absorption (filtered for quality)
```
---
# 🔥 THE SCORE SYSTEM (v8 REBUILT)
## How It Works Now
The score is **100% ADDITIVE** - no more gating. Every factor adds points:
| Category | Factor | Points |
|----------|--------|--------|
| **TIER** | S-Tier | +3.0 |
| | A-Tier | +2.0 |
| | B-Tier | +1.0 |
| **ZONES** | In FVG Zone | +1.5 |
| | In Order Block | +1.5 |
| | In IFVG | +1.0 |
| **VOLUME** | Meets minimum (1.5x) | +0.5 |
| | Strong (2.0x) | +0.75 |
| | Extreme (2.5x) | +0.75 |
| **DELTA** | Buy/Sell dominant (60%+) | +1.0 |
| | Strong (70%+) | +0.5 |
| | Extreme (78%+) | +0.5 |
| **CVD** | Bullish/Bearish | +0.5 |
| | Strong momentum | +0.5 |
| | Extreme momentum | +0.5 |
| **CANDLE** | Strong body (60%+) | +0.5 |
| | Significant range (1.2x avg) | +0.5 |
| | Clean wicks | +0.5 |
| **SWEEP** | Recent sweep (within 3 bars) | +1.5 |
| | Current bar sweep | +0.5 |
| **SESSION** | In key session | +1.0 |
| **INTRABAR** | IB Delta dominant | +1.0 |
| | IB Delta strong | +0.5 |
| | IB Delta extreme | +0.5 |
| | IB Momentum confirmed | +0.5 |
| | IB Momentum strong | +0.5 |
| | Absorption detected | +1.0 |
| | Internal sweep | +0.5 |
| | Volume cluster (favorable) | +0.5 |
**Max Raw Score: ~22 points → Normalized to 10**
## Score Classifications
| Score | Classification | Action | Size |
|-------|---------------|--------|------|
| **9.0-10** | ⚡ GOD MODE | TAKE IT NOW | Full position |
| **8.0-8.9** | ⭐ EXCELLENT | High priority | 75-100% size |
| **5.0-7.9** | 🟡 MEDIUM | Standard setup | 50-75% size |
| **<5.0** | ❌ NO SIGNAL | No trade | — |
---
# 📊 INSTRUMENT-SPECIFIC SETUP
## YM (Dow Jones Mini) - DEFAULT
```
TIER THRESHOLDS:
├── S-Tier: 50 points
├── A-Tier: 25 points
└── B-Tier: 12 points
TICK VALUE: 1.00 (1 tick = 1 point)
CONTRACT VALUE: $5 per point
RECOMMENDED:
├── Chart: 5-minute
├── Intrabar TF: 1 (1-minute) OR 100T (tick for Premium+)
├── Sessions: NY Open (9:30-11:30)
└── Stop: 2 ticks below signal candle low
PRO TIP: Use 100T or 250T tick intrabar for true order flow
```
## NQ (Nasdaq Mini)
```
TIER THRESHOLDS:
├── S-Tier: 100 points
├── A-Tier: 50 points
└── B-Tier: 25 points
TICK VALUE: 0.25 (4 ticks = 1 point)
CONTRACT VALUE: $5 per point ($20 per tick)
RECOMMENDED:
├── Chart: 5-minute
├── Intrabar TF: 1 (1-minute)
├── Min Volume Ratio: 1.8 (more volatile)
├── Delta Threshold: 0.62 (stricter)
└── Sessions: NY Open + Power Hour
```
## GC (Gold)
```
TIER THRESHOLDS:
├── S-Tier: 20 points (=$200)
├── A-Tier: 10 points (=$100)
└── B-Tier: 5 points (=$50)
TICK VALUE: 0.10 (10 ticks = 1 point)
CONTRACT VALUE: $10 per point ($1 per tick)
RECOMMENDED:
├── Chart: 5-minute
├── Intrabar TF: 1 (1-minute)
├── Sessions: London + NY overlap
├── Min Volume Ratio: 1.5
└── Note: More responsive to geopolitical events
```
## BTC (Bitcoin Futures)
```
TIER THRESHOLDS:
├── S-Tier: 500 points
├── A-Tier: 250 points
└── B-Tier: 100 points
TICK VALUE: 5.00 (1 tick = 5 points)
CONTRACT VALUE: $5 per point
RECOMMENDED:
├── Chart: 15-minute (less noise)
├── Intrabar TF: 5 (5-minute)
├── Sessions: Consider 24/7 (disable session filter)
├── Min Volume Ratio: 2.0 (crypto is spiky)
├── Absorption Threshold: 0.70 (stricter)
└── Note: Higher volatility, use wider stops
```
## ES (S&P 500 Mini)
```
TIER THRESHOLDS:
├── S-Tier: 20 points
├── A-Tier: 10 points
└── B-Tier: 5 points
TICK VALUE: 0.25 (4 ticks = 1 point)
CONTRACT VALUE: $12.50 per point ($50 per tick)
RECOMMENDED:
├── Chart: 5-minute
├── Intrabar TF: 1 (1-minute)
├── Sessions: NY Open (primary)
├── Note: Most liquid, cleanest price action
└── Good for learning the system
```
---
# 🕐 INTRABAR TIMEFRAME GUIDE
## Available Timeframes (v8 COMPLETE!)
### TICK TIMEFRAMES (Premium+ Required)
| Timeframe | Code | Best For |
|-----------|------|----------|
| 1 Tick | 1T | **ULTIMATE PRECISION** - every single trade |
| 5 Ticks | 5T | Ultra-precise scalping |
| 10 Ticks | 10T | High-frequency analysis |
| 25 Ticks | 25T | Tick scalping |
| 50 Ticks | 50T | Short-term tick analysis |
| 100 Ticks | 100T | Standard tick analysis |
| 250 Ticks | 250T | Medium tick grouping |
| 500 Ticks | 500T | Larger tick grouping |
| 1000 Ticks | 1000T | High-level tick view |
### SECOND TIMEFRAMES
| Timeframe | Code | Best For |
|-----------|------|----------|
| 1 Second | 1S | Ultra-scalping |
| 5 Seconds | 5S | Scalping, high-frequency |
| 10 Seconds | 10S | Fast scalping |
| 15 Seconds | 15S | Quick scalps |
| 30 Seconds | 30S | Short-term scalps |
### MINUTE TIMEFRAMES
| Timeframe | Code | Best For |
|-----------|------|----------|
| 1 Minute | 1 | **RECOMMENDED** for 5m charts |
| 2 Minutes | 2 | 10m charts |
| 3 Minutes | 3 | 15m charts |
| 5 Minutes | 5 | 15-30m charts |
| 10 Minutes | 10 | 30m-1h charts |
| 15 Minutes | 15 | 1h charts |
| 30 Minutes | 30 | 1-2h charts |
| 45 Minutes | 45 | 2-4h charts |
| 1 Hour | 60 | 4h charts |
| 2 Hours | 120 | Daily charts |
| 3 Hours | 180 | Daily charts |
| 4 Hours | 240 | Weekly charts |
### HIGHER TIMEFRAMES
| Timeframe | Code | Best For |
|-----------|------|----------|
| Daily | D | Weekly/Monthly charts |
| Weekly | W | Monthly charts |
| Monthly | M | Long-term analysis |
## 🔥 TICK DATA ADVANTAGE
**Why Use Tick Data?**
- **True Order Flow**: See every single transaction
- **No Time Aggregation**: Pure price/volume action
- **Institutional Footprint**: Catch block trades instantly
- **Maximum IB Precision**: Most accurate delta/momentum
**Best Tick Settings by Instrument:**
| Instrument | Chart TF | Recommended Tick IB |
|------------|----------|---------------------|
| YM | 5 min | 100T or 250T |
| NQ | 5 min | 50T or 100T (more liquid) |
| ES | 5 min | 50T or 100T (most liquid) |
| GC | 5 min | 100T or 250T |
| BTC | 15 min | 250T or 500T |
## ⚠️ CRITICAL RULE
**Intrabar TF MUST be LOWER than your chart TF!**
### Automatic Validation (v8 NEW!)
The script now automatically detects invalid intrabar configurations:
**When Intrabar TF is INVALID:**
1. **Yellow warning label** appears on chart: "⚠️ INTRABAR TF INVALID"
2. **Table shows**: "IB Data: ⚠️ INVALID TF" with yellow background
3. **Alert available**: "⚠️ INTRABAR CONFIG ERROR"
4. **Score impact**: Intrabar points (up to 5) are NOT added
**Example - 2 Minute Chart:**
```
VALID selections: 1T, 5T, 10T, 25T, 50T, 100T (any tick)
1S, 5S, 10S, 15S, 30S (any second)
1 (1-minute only)
INVALID selections: 2, 3, 5, 10, 15... (2min or higher)
D, W, M (obviously)
```
| Your Chart | Valid Intrabar Options |
|------------|------------------------|
| **2 minute** | **1T-1000T, 1S-30S, 1 only** |
| 5 minute | 1T-1000T, 1S-30S, 1-4 min |
| 15 minute | 1T-1000T, 1S-30S, 1-10 min |
| 1 hour | 1T-1000T, 1S-30S, 1-45 min |
| 4 hour | 1T-1000T, 1S-30S, 1-180 min |
| Daily | All tick, seconds, minutes up to 240 |
---
# 🎨 VISUAL FILTERING (v8 NEW!)
## The Problem (v7)
Too many sweep and absorption markers cluttered the chart with low-quality signals.
## The Solution (v8)
**Quality filters** - only show sweeps/absorption that MATTER.
### Sweep Quality Score
A sweep needs confluence to display:
```
+1.5 = In FVG Zone
+1.5 = In Order Block
+1.0 = Strong volume
+0.5 = In session
+1.0 = Intrabar confirmation
───────────────────
MIN NEEDED: 2.0 to show
```
### Absorption Quality Score
```
+1.5 = In FVG Zone
+1.5 = In Order Block
+1.0 = Tier signal present
+0.5 = In session
+0.5 = CVD confirmation
───────────────────
MIN NEEDED: 2.0 to show
```
### Settings
```
VISUAL FILTERS:
├── Only Show Quality Sweeps: ON (default)
├── Only Show Quality Absorption: ON (default)
├── Min Sweep Quality Score: 2.0
└── Min Absorption Quality Score: 2.0
Turn OFF filters to see ALL signals (not recommended)
```
---
# 📈 CVD IMPLEMENTATION (v8 FIXED)
## What Changed
### v7 Issues:
- CVD accumulated forever (overflow risk)
- Short slope calculation (only 3 bars)
- No session reset
### v8 Fixes:
```
1. SESSION RESET: CVD resets at London/NY open
2. PROPER SLOPE: Calculated over 5 bars
3. STDEV COMPARISON: Strong/Extreme = slope > 1-2 stdev
```
## CVD Readings in Table
| Display | Meaning | Score Contribution |
|---------|---------|-------------------|
| 🔥 BULL | Extreme bullish momentum | +1.5 total |
| 🔥 BEAR | Extreme bearish momentum | +1.5 total |
| ↑ BULL | Strong bullish trend | +1.0 total |
| ↓ BEAR | Strong bearish trend | +1.0 total |
| bull | Bullish bias | +0.5 |
| bear | Bearish bias | +0.5 |
| — | Neutral/mixed | +0 |
---
# ✅ ENTRY CHECKLIST v8
## Quick Checklist (Print This!)
### For ANY Signal:
- Score ≥ 3.5 (signal shown)
- Session active (🟢 in table)
- Direction matches bias
### For MEDIUM+ Signal (Score 5.0+):
- Delta matches direction (✓ or better)
- CVD trending with signal
- Volume ≥ 1.5x average
### For EXCELLENT Signal (Score 7.0+):
All above PLUS:
- In FVG Zone OR Order Block
- Strong delta (✓✓) or extreme (🔥)
- IB Delta confirms direction
### For GOD MODE (Score 8.5+):
All above PLUS:
- Multiple structure confluence (FVG + OB)
- Absorption or sweep present
- IB Momentum strong (🔥)
- **FULL SIZE - DON'T HESITATE**
---
# ⛔ DO NOT TRADE
1. **Score below threshold** - No signal shown = no trade
2. **Outside session** - Unless you've disabled session filter
3. **Delta conflicts** - Bearish candle but buy dominant delta
4. **No intrabar data** - Shows "0 bars" in IB Data
5. **CVD strongly opposite** - 🔥 BEAR on a long signal
6. **After major news** - Wait for dust to settle
7. **Low volume overall** - Market too quiet
---
# 🏆 GOLDEN RULES v8
> **"The score doesn't lie. Trust the math."**
> **"GOD MODE = Don't think, just execute."**
> **"Filtered visuals = Quality over quantity."**
> **"If intrabar conflicts, trust intrabar."**
> **"Session matters - trade when institutions trade."**
> **"Stack confluence - score higher = win more."**
> **"Leave every trade with money. Next setup is coming."**
---
# 📝 TRADE JOURNAL v8
```
DATE: ___________
SESSION: ☐ LDN ☐ NY ☐ PWR
INSTRUMENT: YM / NQ / ES / GC / BTC
TRADE:
├── Time: _______
├── Signal: ⚡GOD / S🎯 / A🎯 / B🎯 / Z
├── Direction: LONG / SHORT
├── SCORE: ___/10
├── Classification: GOD MODE / EXCELLENT / MEDIUM / WEAK
│
├── Entry: _______
├── Stop: _______
├── Target: _______
│
├── In FVG Zone: ☐ Yes ☐ No
├── In Order Block: ☐ Yes ☐ No
├── Liquidity Sweep: ☐ Yes ☐ No
├── Absorption: ☐ Yes ☐ No
│
├── IB Delta: ____% (BULL / BEAR / NEUTRAL)
├── IB Momentum: ____% (BULL / BEAR / MIXED)
├── CVD: 🔥 / ↑↓ / neutral
│
├── Result: +/- ___ pts ($_____)
└── Notes: _______________________
DAILY SUMMARY:
├── Total Trades: ___
├── GOD MODE signals: ___
├── EXCELLENT signals: ___
├── Win Rate: ___%
├── Net P/L: $_____
└── Best score today: ___
```
---
# 🔧 TROUBLESHOOTING
| Issue | Solution |
|-------|----------|
| **Yellow "INVALID TF" warning** | Your intrabar TF is >= chart TF. Select LOWER! |
| **IB Data shows "⚠️ INVALID TF"** | Same as above - pick 1T, 1S, or 1 for most charts |
| No signals appearing | Lower Min Score threshold |
| Too many signals | Raise Min Score threshold |
| Score always 0 | Check if candle is tiered (meets point threshold) |
| Sweeps not showing | Check quality filter settings or lower threshold |
| Table transparent | ❌ Fixed in v8 - table is now solid |
| CVD not making sense | Now resets at session open - cleaner readings |
| Wrong tier thresholds | Adjust for your instrument (see setup guide) |
| Tick TF not available | Requires TradingView Premium+ subscription |
---
# 📚 VERSION HISTORY
## v8 - WIN AT ALL COST EDITION
- ✅ REBUILT scoring system (100% additive, no gating)
- ✅ SOLID table (no transparency)
- ✅ ALL TradingView timeframes for intrabar (1S to Monthly)
- ✅ FILTERED sweeps/absorption (quality-based)
- ✅ FIXED CVD (session reset, proper slope)
- ✅ GOD MODE classification (8.5+ score)
- ✅ Instrument-specific documentation
## v7 - Intrabar Edition
- Added intrabar analysis engine
- Added absorption detection
- Added internal sweep detection
## Previous Versions
- GRA v5 SNIPER + DeepFlow Zones SNIPER merged
---
*© Alexandro Disla - YM Ultimate SNIPER v8*
*WIN AT ALL COST Edition | Trust The Score*
Market Maker Position Bars (Position Size)**Market Maker Position Bars (Position Size) – Indicator Description for TradingView**
This indicator is a clean, professional visualization tool designed for traders who track suspected **market maker / institutional positioning** (especially popular in ICT/SMC communities) on indices like the SPX, NDX, ES, etc.
It draws up to **20 horizontal position bars** directly on the chart, anchored to the very last bar, representing hypothetical long and short positions at specific price levels with corresponding position sizes.
### Key Features & Visual Logic
- **Green bars (Boxes 1–10)** → Extend to the **right** of the last bar
Represent **long positions** (bullish interest)
Default translucent green fill
- **Red bars (Boxes 11–20)** → Extend to the **left** of the last bar
Represent **short positions** (bearish interest)
Default translucent red fill
- **Bar width = Position size**
The length of each box is automatically scaled based on the absolute value you enter in “Position Size”.
Larger position → wider (longer) bar
- Each box displays **Price / Position Size** text inside (e.g., `5720.50 / 1250`)
### Fully Customizable Settings
**Global Geometry**
- Total Box Height (default 10.0) – controls vertical thickness of all boxes
**Position Size Scaling**
- Base Box Width (bars)
- Width per Position Unit – fine-tune how aggressively width grows with size
- Minimum & Maximum Bar Width – prevents boxes from becoming too tiny or excessively long
**Global Text Settings**
- Text color, size (Tiny → Huge), and bold option
**Individual Box Controls (20 independent boxes)**
- Show/Hide toggle
- SPX Price (or any symbol price level)
- Position Size (any positive/negative number; absolute value determines width)
- Fill color (override default green/red if desired)
### How It Works Internally
- All boxes are drawn only on the **last confirmed bar** (`barstate.islast`)
- Width calculation:
`Width = BaseWidth + (|Position Size| × Width per Unit)`
Clamped between Min and Max Bar Width
- Green boxes start at the current bar and extend forward (right)
- Red boxes end at the current bar and extend backward (left)
- Uses Pine Script v6 `box.new()` with `xloc.bar_index` for perfect alignment and performance
### Ideal Use Cases
- Visualizing daily/weekly **order block** or **fair value gap** interest levels with estimated size
- Mapping **dealer positioning**, gamma exposure levels, or large options interest
- Quickly seeing where the “smart money” is theoretically stacked on both sides of the market
- Clean chart markup for screenshots, mentoring, or live trading journals
A minimalist yet powerful tool favored by ICT, SMC, and footprint-style traders who want to see **where the big players might be positioned** — all in one glance without cluttering the chart with hundreds of objects.
Clean. Visual. Size-aware. Perfect for high-level market profiling.
Stock Reference DataIndicator that paints a table with reference data such as Earnings Date, Avg Volume, ATR, ATR% etc.
ETH_LuxRelayAll good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good
Crypto Liquidation Zones & Order Clusters This PineScript v6 indicator was specifically designed for crypto traders and displays estimated liquidation zones as well as probable order clusters on the chart. Since TradingView has no direct access to real order book data, stop-loss positions, or internal exchange liquidation levels, the indicator works with intelligent estimations based on historical volume data and market behavior.
The indicator identifies three main types of critical price zones: First, it marks psychological levels – round numbers like $100,000 or $50,000, where limit orders typically accumulate. Second, it highlights high-volume zones, areas with unusually high trading volume that indicate many traders have opened positions there. Third, the indicator calculates estimated liquidation zones for long and short positions by assuming typical leverage levels (default 10x) and projecting the probable liquidation prices.
The mechanism is based on analyzing volume spikes combined with volatility: When a strong price increase occurs with high volume, the indicator stores this level as a probable long-entry point and calculates the corresponding liquidation zone below the current price. During price declines with high volume, short positions are tracked and their liquidation zones are drawn above the price. Red zones mark long liquidations, green zones mark short liquidations, blue boxes show high-volume areas, and yellow dashed lines indicate psychological levels.
All settings are fully customizable: You can adjust the lookback period (default 100 bars), sensitivity for volume spikes, assumed average leverage, and toggle individual display elements. An info panel in the top-right corner shows you live how many long and short entry levels are currently being tracked and how current volume compares to the average. It's important to understand that all displayed zones are estimates – the indicator cannot see actual orders from other traders, but it provides valuable insights into areas where many positions are likely at risk and liquidation cascades could occur.
CCI TIME COUNT//@version=6
indicator("CCI Multi‑TF", overlay=true)
// === Inputs ===
// CCI Inputs
cciLength = input.int(20, "CCI Length", minval=1)
src = input.source(hlc3, "Source")
// Timeframes
timeframes = array.from("1", "3", "5", "10", "15", "30", "60", "1D", "1W")
labels = array.from("1m", "3m", "5m", "10m", "15m", "30m", "60m", "Daily", "Weekly")
// === Table Settings ===
tblPos = input.string('Top Right', 'Table Position', options = , group = 'Table Settings')
i_textSize = input.string('Small', 'Text Size', options = , group = 'Table Settings')
textSize = i_textSize == 'Small' ? size.small : i_textSize == 'Normal' ? size.normal : i_textSize == 'Large' ? size.large : size.tiny
textColor = color.white
// Resolve table position
var pos = switch tblPos
'Top Left' => position.top_left
'Top Right' => position.top_right
'Bottom Left' => position.bottom_left
'Bottom Right' => position.bottom_right
'Middle Left' => position.middle_left
'Middle Right' => position.middle_right
=> position.top_right
// === Custom CCI Function ===
customCCI(source, length) =>
sma = ta.sma(source, length)
dev = ta.dev(source, length)
(source - sma) / (0.015 * dev)
// === CCI Values for All Timeframes ===
var float cciVals = array.new_float(array.size(timeframes))
for i = 0 to array.size(timeframes) - 1
tf = array.get(timeframes, i)
cciVal = request.security(syminfo.tickerid, tf, customCCI(src, cciLength))
array.set(cciVals, i, cciVal)
// === Countdown Timers ===
var string countdowns = array.new_string(array.size(timeframes))
for i = 0 to array.size(timeframes) - 1
tf = array.get(timeframes, i)
closeTime = request.security(syminfo.tickerid, tf, time_close)
sec_left = barstate.isrealtime and not na(closeTime) ? math.max(0, (closeTime - timenow) / 1000) : na
min_left = sec_left >= 0 ? math.floor(sec_left / 60) : na
sec_mod = sec_left >= 0 ? math.floor(sec_left % 60) : na
timer_text = barstate.isrealtime and not na(sec_left) ? str.format("{0,number,00}:{1,number,00}", min_left, sec_mod) : "–"
array.set(countdowns, i, timer_text)
// === Build Table ===
if barstate.islast
rows = array.size(timeframes) + 1
var table t = table.new(pos, 3, rows, frame_color=color.rgb(252, 250, 250), border_color=color.rgb(243, 243, 243))
// Headers
table.cell(t, 0, 0, "Timeframe", text_color=textColor, bgcolor=color.rgb(238, 240, 242), text_size=textSize)
table.cell(t, 1, 0, "CCI (" + str.tostring(cciLength) + ")", text_color=textColor, bgcolor=color.rgb(239, 243, 246), text_size=textSize)
table.cell(t, 2, 0, "Time to Close", text_color=textColor, bgcolor=color.rgb(239, 244, 248), text_size=textSize)
// Data Rows
for i = 0 to array.size(timeframes) - 1
row = i + 1
label = array.get(labels, i)
cciVal = array.get(cciVals, i)
countdown = array.get(countdowns, i)
// Color CCI: Green if < -100, Red if > 100
cciColor = cciVal < -100 ? color.green : cciVal > 100 ? color.red : color.rgb(236, 237, 240)
// Background warning if <60 seconds to close
tf = array.get(timeframes, i)
closeTime = request.security(syminfo.tickerid, tf, time_close)
sec_left = barstate.isrealtime and not na(closeTime) ? math.max(0, (closeTime - timenow) / 1000) : na
countdownBg = sec_left < 60 ? color.rgb(255, 220, 220, 90) : na
// Table cells
table.cell(t, 0, row, label, text_color=color.rgb(239, 240, 244), text_size=textSize)
table.cell(t, 1, row, str.tostring(cciVal, "#.##"), text_color=cciColor, text_size=textSize)
table.cell(t, 2, row, countdown, text_color=color.rgb(232, 235, 243), bgcolor=countdownBg, text_size=textSize)
Ultimate RSI [captainua]Ultimate RSI
Overview
This indicator combines multiple RSI calculations with volume analysis, divergence detection, and trend filtering to provide a comprehensive RSI-based trading system. The script calculates RSI using three different periods (6, 14, 24) and applies various smoothing methods to reduce noise while maintaining responsiveness. The combination of these features creates a multi-layered confirmation system that reduces false signals by requiring alignment across multiple indicators and timeframes.
The script includes optimized configuration presets for instant setup: Scalping, Day Trading, Swing Trading, and Position Trading. Simply select a preset to instantly configure all settings for your trading style, or use Custom mode for full manual control. All settings include automatic input validation to prevent configuration errors and ensure optimal performance.
Configuration Presets
The script includes preset configurations optimized for different trading styles, allowing you to instantly configure the indicator for your preferred trading approach. Simply select a preset from the "Configuration Preset" dropdown menu:
- Scalping: Optimized for fast-paced trading with shorter RSI periods (4, 7, 9) and minimal smoothing. Noise reduction is automatically disabled, and momentum confirmation is disabled to allow faster signal generation. Designed for quick entries and exits in volatile markets.
- Day Trading: Balanced configuration for intraday trading with moderate RSI periods (6, 9, 14) and light smoothing. Momentum confirmation is enabled for better signal quality. Ideal for day trading strategies requiring timely but accurate signals.
- Swing Trading: Configured for medium-term positions with standard RSI periods (14, 14, 21) and moderate smoothing. Provides smoother signals suitable for swing trading timeframes. All noise reduction features remain active.
- Position Trading: Optimized for longer-term trades with extended RSI periods (24, 21, 28) and heavier smoothing. Filters are configured for highest-quality signals. Best for position traders holding trades over multiple days or weeks.
- Custom: Full manual control over all settings. All input parameters are available for complete customization. This is the default mode and maintains full backward compatibility with previous versions.
When a preset is selected, it automatically adjusts RSI periods, smoothing lengths, and filter settings to match the trading style. The preset configurations ensure optimal settings are applied instantly, eliminating the need for manual configuration. All settings can still be manually overridden if needed, providing flexibility while maintaining ease of use.
Input Validation and Error Prevention
The script includes comprehensive input validation to prevent configuration errors:
- Cross-Input Validation: Smoothing lengths are automatically validated to ensure they are always less than their corresponding RSI period length. If you set a smoothing length greater than or equal to the RSI length, the script automatically adjusts it to (RSI Length - 1). This prevents logical errors and ensures valid configurations.
- Input Range Validation: All numeric inputs have minimum and maximum value constraints enforced by TradingView's input system, preventing invalid parameter values.
- Smart Defaults: Preset configurations use validated default values that are tested and optimized for each trading style. When switching between presets, all related settings are automatically updated to maintain consistency.
Core Calculations
Multi-Period RSI:
The script calculates RSI using the standard Wilder's RSI formula: RSI = 100 - (100 / (1 + RS)), where RS = Average Gain / Average Loss over the specified period. Three separate RSI calculations run simultaneously:
- RSI(6): Uses 6-period lookback for high sensitivity to recent price changes, useful for scalping and early signal detection
- RSI(14): Standard 14-period RSI for balanced analysis, the most commonly used RSI period
- RSI(24): Longer 24-period RSI for trend confirmation, provides smoother signals with less noise
Each RSI can be smoothed using EMA, SMA, RMA (Wilder's smoothing), WMA, or Zero-Lag smoothing. Zero-Lag smoothing uses the formula: ZL-RSI = RSI + (RSI - RSI ) to reduce lag while maintaining signal quality. You can apply individual smoothing lengths to each RSI period, or use global smoothing where all three RSIs share the same smoothing length.
Dynamic Overbought/Oversold Thresholds:
Static thresholds (default 70/30) are adjusted based on market volatility using ATR. The formula: Dynamic OB = Base OB + (ATR × Volatility Multiplier × Base Percentage / 100), Dynamic OS = Base OS - (ATR × Volatility Multiplier × Base Percentage / 100). This adapts to volatile markets where traditional 70/30 levels may be too restrictive. During high volatility, the dynamic thresholds widen, and during low volatility, they narrow. The thresholds are clamped between 0-100 to remain within RSI bounds. The ATR is cached for performance optimization, updating on confirmed bars and real-time bars.
Adaptive RSI Calculation:
An adaptive RSI adjusts the standard RSI(14) based on current volatility relative to average volatility. The calculation: Adaptive Factor = (Current ATR / SMA of ATR over 20 periods) × Volatility Multiplier. If SMA of ATR is zero (edge case), the adaptive factor defaults to 0. The adaptive RSI = Base RSI × (1 + Adaptive Factor), clamped to 0-100. This makes the indicator more responsive during high volatility periods when traditional RSI may lag. The adaptive RSI is used for signal generation (buy/sell signals) but is not plotted on the chart.
Overbought/Oversold Fill Zones:
The script provides visual fill zones between the RSI line and the threshold lines when RSI is in overbought or oversold territory. The fill logic uses inclusive conditions: fills are shown when RSI is currently in the zone OR was in the zone on the previous bar. This ensures complete coverage of entry and exit boundaries. A minimum gap of 0.1 RSI points is maintained between the RSI plot and threshold line to ensure reliable polygon rendering in TradingView. The fill uses invisible plots at the threshold levels and the RSI value, with the fill color applied between them. You can select which RSI (6, 14, or 24) to use for the fill zones.
Divergence Detection
Regular Divergence:
Bullish divergence: Price makes a lower low (current low < lowest low from previous lookback period) while RSI makes a higher low (current RSI > lowest RSI from previous lookback period). Bearish divergence: Price makes a higher high (current high > highest high from previous lookback period) while RSI makes a lower high (current RSI < highest RSI from previous lookback period). The script compares current price/RSI values to the lowest/highest values from the previous lookback period using ta.lowest() and ta.highest() functions with index to reference the previous period's extreme.
Pivot-Based Divergence:
An enhanced divergence detection method that uses actual pivot points instead of simple lowest/highest comparisons. This provides more accurate divergence detection by identifying significant pivot lows/highs in both price and RSI. The pivot-based method uses a tolerance-based approach with configurable constants: 1% tolerance for price comparisons (priceTolerancePercent = 0.01) and 1.0 RSI point absolute tolerance for RSI comparisons (pivotTolerance = 1.0). Minimum divergence threshold is 1.0 RSI point (minDivergenceThreshold = 1.0). It looks for two recent pivot points and compares them: for bullish divergence, price makes a lower low (at least 1% lower) while RSI makes a higher low (at least 1.0 point higher). This method reduces false divergences by requiring actual pivot points rather than just any low/high within a period. When enabled, pivot-based divergence replaces the traditional method for more accurate signal generation.
Strong Divergence:
Regular divergence is confirmed by an engulfing candle pattern. Bullish engulfing requires: (1) Previous candle is bearish (close < open ), (2) Current candle is bullish (close > open), (3) Current close > previous open, (4) Current open < previous close. Bearish engulfing is the inverse: previous bullish, current bearish, current close < previous open, current open > previous close. Strong divergence signals are marked with visual indicators (🐂 for bullish, 🐻 for bearish) and have separate alert conditions.
Hidden Divergence:
Continuation patterns that signal trend continuation rather than reversal. Bullish hidden divergence: Price makes a higher low (current low > lowest low from previous period) but RSI makes a lower low (current RSI < lowest RSI from previous period). Bearish hidden divergence: Price makes a lower high (current high < highest high from previous period) but RSI makes a higher high (current RSI > highest RSI from previous period). These patterns indicate the trend is likely to continue in the current direction.
Volume Confirmation System
Volume threshold filtering requires current volume to exceed the volume SMA multiplied by the threshold factor. The formula: Volume Confirmed = Volume > (Volume SMA × Threshold). If the threshold is set to 0.1 or lower, volume confirmation is effectively disabled (always returns true). This allows you to use the indicator without volume filtering if desired.
Volume Climax is detected when volume exceeds: Volume SMA + (Volume StdDev × Multiplier). This indicates potential capitulation moments where extreme volume accompanies price movements. Volume Dry-Up is detected when volume falls below: Volume SMA - (Volume StdDev × Multiplier), indicating low participation periods that may produce unreliable signals. The volume SMA is cached for performance, updating on confirmed and real-time bars.
Multi-RSI Synergy
The script generates signals when multiple RSI periods align in overbought or oversold zones. This creates a confirmation system that reduces false signals. In "ALL" mode, all three RSIs (6, 14, 24) must be simultaneously above the overbought threshold OR all three must be below the oversold threshold. In "2-of-3" mode, any two of the three RSIs must align in the same direction. The script counts how many RSIs are in each zone: twoOfThreeOB = ((rsi6OB ? 1 : 0) + (rsi14OB ? 1 : 0) + (rsi24OB ? 1 : 0)) >= 2.
Synergy signals require: (1) Multi-RSI alignment (ALL or 2-of-3), (2) Volume confirmation, (3) Reset condition satisfied (enough bars since last synergy signal), (4) Additional filters passed (RSI50, Trend, ADX, Volume Dry-Up avoidance). Separate reset conditions track buy and sell signals independently. The reset condition uses ta.barssince() to count bars since the last trigger, returning true if the condition never occurred (allowing first signal) or if enough bars have passed.
Regression Forecasting
The script uses historical RSI values to forecast future RSI direction using four methods. The forecast horizon is configurable (1-50 bars ahead). Historical data is collected into an array, and regression coefficients are calculated based on the selected method.
Linear Regression: Calculates the least-squares fit line (y = mx + b) through the last N RSI values. The calculation: meanX = sumX / horizon, meanY = sumY / horizon, denominator = sumX² - horizon × meanX², m = (sumXY - horizon × meanX × meanY) / denominator, b = meanY - m × meanX. The forecast projects this line forward: forecast = b + m × i for i = 1 to horizon.
Polynomial Regression: Fits a quadratic curve (y = ax² + bx + c) to capture non-linear trends. The system of equations is solved using Cramer's rule with a 3×3 determinant. If the determinant is too small (< 0.0001), the system falls back to linear regression. Coefficients are calculated by solving: n×c + sumX×b + sumX²×a = sumY, sumX×c + sumX²×b + sumX³×a = sumXY, sumX²×c + sumX³×b + sumX⁴×a = sumX²Y. Note: Due to the O(n³) computational complexity of polynomial regression, the forecast horizon is automatically limited to a maximum of 20 bars when using polynomial regression to maintain optimal performance. If you set a horizon greater than 20 bars with polynomial regression, it will be automatically capped at 20 bars.
Exponential Smoothing: Applies exponential smoothing with adaptive alpha = 2/(horizon+1). The smoothing iterates from oldest to newest value: smoothed = alpha × series + (1 - alpha) × smoothed. Trend is calculated by comparing current smoothed value to an earlier smoothed value (at 60% of horizon): trend = (smoothed - earlierSmoothed) / (horizon - earlierIdx). Forecast: forecast = base + trend × i.
Moving Average: Uses the difference between short MA (horizon/2) and long MA (horizon) to estimate trend direction. Trend = (maShort - maLong) / (longLen - shortLen). Forecast: forecast = maShort + trend × i.
Confidence bands are calculated using RMSE (Root Mean Squared Error) of historical forecast accuracy. The error calculation compares historical values with forecast values: RMSE = sqrt(sumSquaredError / count). If insufficient data exists, it falls back to calculating standard deviation of recent RSI values. Confidence bands = forecast ± (RMSE × confidenceLevel). All forecast values and confidence bands are clamped to 0-100 to remain within RSI bounds. The regression functions include comprehensive safety checks: horizon validation (must not exceed array size), empty array handling, edge case handling for horizon=1 scenarios, division-by-zero protection, and bounds checking for all array access operations to prevent runtime errors.
Strong Top/Bottom Detection
Strong buy signals require three conditions: (1) RSI is at its lowest point within the bottom period: rsiVal <= ta.lowest(rsiVal, bottomPeriod), (2) RSI is below the oversold threshold minus a buffer: rsiVal < (oversoldThreshold - rsiTopBottomBuffer), where rsiTopBottomBuffer = 2.0 RSI points, (3) The absolute difference between current RSI and the lowest RSI exceeds the threshold value: abs(rsiVal - ta.lowest(rsiVal, bottomPeriod)) > threshold. This indicates a bounce from extreme levels with sufficient distance from the absolute low.
Strong sell signals use the inverse logic: RSI at highest point, above overbought threshold + rsiTopBottomBuffer (2.0 RSI points), and difference from highest exceeds threshold. Both signals also require: volume confirmation, reset condition satisfied (separate reset for buy vs sell), and all additional filters passed (RSI50, Trend, ADX, Volume Dry-Up avoidance).
The reset condition uses separate logic for buy and sell: resetCondBuy checks bars since isRSIAtBottom, resetCondSell checks bars since isRSIAtTop. This ensures buy signals reset based on bottom conditions and sell signals reset based on top conditions, preventing incorrect signal blocking.
Filtering System
RSI(50) Filter: Only allows buy signals when RSI(14) > 50 (bullish momentum) and sell signals when RSI(14) < 50 (bearish momentum). This filter ensures you're buying in uptrends and selling in downtrends from a momentum perspective. The filter is optional and can be disabled. Recommended to enable for noise reduction.
Trend Filter: Uses a long-term EMA (default 200) to determine trend direction. Buy signals require price above EMA, sell signals require price below EMA. The EMA slope is calculated as: emaSlope = ema - ema . Optional EMA slope filter additionally requires the EMA to be rising (slope > 0) for buy signals or falling (slope < 0) for sell signals. This provides stronger trend confirmation by requiring both price position and EMA direction.
ADX Filter: Uses the Directional Movement Index (calculated via ta.dmi()) to measure trend strength. Signals only fire when ADX exceeds the threshold (default 20), indicating a strong trend rather than choppy markets. The ADX calculation uses separate length and smoothing parameters. This filter helps avoid signals during sideways/consolidation periods.
Volume Dry-Up Avoidance: Prevents signals during periods of extremely low volume relative to average. If volume dry-up is detected and the filter is enabled, signals are blocked. This helps avoid unreliable signals that occur during low participation periods.
RSI Momentum Confirmation: Requires RSI to be accelerating in the signal direction before confirming signals. For buy signals, RSI must be consistently rising (recovering from oversold) over the lookback period. For sell signals, RSI must be consistently falling (declining from overbought) over the lookback period. The momentum check verifies that all consecutive changes are in the correct direction AND the cumulative change is significant. This filter ensures signals only fire when RSI momentum aligns with the signal direction, reducing false signals from weak momentum.
Multi-Timeframe Confirmation: Requires higher timeframe RSI to align with the signal direction. For buy signals, current RSI must be below the higher timeframe RSI by at least the confirmation threshold. For sell signals, current RSI must be above the higher timeframe RSI by at least the confirmation threshold. This ensures signals align with the larger trend context, reducing counter-trend trades. The higher timeframe RSI is fetched using request.security() from the selected timeframe.
All filters use the pattern: filterResult = not filterEnabled OR conditionMet. This means if a filter is disabled, it always passes (returns true). Filters can be combined, and all must pass for a signal to fire.
RSI Centerline and Period Crossovers
RSI(50) Centerline Crossovers: Detects when the selected RSI source crosses above or below the 50 centerline. Bullish crossover: ta.crossover(rsiSource, 50), bearish crossover: ta.crossunder(rsiSource, 50). You can select which RSI (6, 14, or 24) to use for these crossovers. These signals indicate momentum shifts from bearish to bullish (above 50) or bullish to bearish (below 50).
RSI Period Crossovers: Detects when different RSI periods cross each other. Available pairs: RSI(6) × RSI(14), RSI(14) × RSI(24), or RSI(6) × RSI(24). Bullish crossover: fast RSI crosses above slow RSI (ta.crossover(rsiFast, rsiSlow)), indicating momentum acceleration. Bearish crossover: fast RSI crosses below slow RSI (ta.crossunder(rsiFast, rsiSlow)), indicating momentum deceleration. These crossovers can signal shifts in momentum before price moves.
StochRSI Calculation
Stochastic RSI applies the Stochastic oscillator formula to RSI values instead of price. The calculation: %K = ((RSI - Lowest RSI) / (Highest RSI - Lowest RSI)) × 100, where the lookback is the StochRSI length. If the range is zero, %K defaults to 50.0. %K is then smoothed using SMA with the %K smoothing length. %D is calculated as SMA of smoothed %K with the %D smoothing length. All values are clamped to 0-100. You can select which RSI (6, 14, or 24) to use as the source for StochRSI calculation.
RSI Bollinger Bands
Bollinger Bands are applied to RSI(14) instead of price. The calculation: Basis = SMA(RSI(14), BB Period), StdDev = stdev(RSI(14), BB Period), Upper = Basis + (StdDev × Deviation Multiplier), Lower = Basis - (StdDev × Deviation Multiplier). This creates dynamic zones around RSI that adapt to RSI volatility. When RSI touches or exceeds the bands, it indicates extreme conditions relative to recent RSI behavior.
Noise Reduction System
The script includes a comprehensive noise reduction system to filter false signals and improve accuracy. When enabled, signals must pass multiple quality checks:
Signal Strength Requirement: RSI must be at least X points away from the centerline (50). For buy signals, RSI must be at least X points below 50. For sell signals, RSI must be at least X points above 50. This ensures signals only trigger when RSI is significantly in oversold/overbought territory, not just near neutral.
Extreme Zone Requirement: RSI must be deep in the OB/OS zone. For buy signals, RSI must be at least X points below the oversold threshold. For sell signals, RSI must be at least X points above the overbought threshold. This ensures signals only fire in extreme conditions where reversals are more likely.
Consecutive Bar Confirmation: The signal condition must persist for N consecutive bars before triggering. This reduces false signals from single-bar spikes or noise. The confirmation checks that the signal condition was true for all bars in the lookback period.
Zone Persistence (Optional): Requires RSI to remain in the OB/OS zone for N consecutive bars, not just touch it. This ensures RSI is truly in an extreme state rather than just briefly touching the threshold. When enabled, this provides stricter filtering for higher-quality signals.
RSI Slope Confirmation (Optional): Requires RSI to be moving in the expected signal direction. For buy signals, RSI should be rising (recovering from oversold). For sell signals, RSI should be falling (declining from overbought). This ensures momentum is aligned with the signal direction. The slope is calculated by comparing current RSI to RSI N bars ago.
All noise reduction filters can be enabled/disabled independently, allowing you to customize the balance between signal frequency and accuracy. The default settings provide a good balance, but you can adjust them based on your trading style and market conditions.
Alert System
The script includes separate alert conditions for each signal type: buy/sell (adaptive RSI crossovers), divergence (regular, strong, hidden), crossovers (RSI50 centerline, RSI period crossovers), synergy signals, and trend breaks. Each alert type has its own alertcondition() declaration with a unique title and message.
An optional cooldown system prevents alert spam by requiring a minimum number of bars between alerts of the same type. The cooldown check: canAlert = na(lastAlertBar) OR (bar_index - lastAlertBar >= cooldownBars). If the last alert bar is na (first alert), it always allows the alert. Each alert type maintains its own lastAlertBar variable, so cooldowns are independent per signal type. The default cooldown is 10 bars, which is recommended for noise reduction.
Higher Timeframe RSI
The script can display RSI from a higher timeframe using request.security(). This allows you to see the RSI context from a larger timeframe (e.g., daily RSI on an hourly chart). The higher timeframe RSI uses RSI(14) calculation from the selected timeframe. This provides context for the current timeframe's RSI position relative to the larger trend.
RSI Pivot Trendlines
The script can draw trendlines connecting pivot highs and lows on RSI(6). This feature helps visualize RSI trends and identify potential trend breaks.
Pivot Detection: Pivots are detected using a configurable period. The script can require pivots to have minimum strength (RSI points difference from surrounding bars) to filter out weak pivots. Lower minPivotStrength values detect more pivots (more trendlines), while higher values detect only stronger pivots (fewer but more significant trendlines). Pivot confirmation is optional: when enabled, the script waits N bars to confirm the pivot remains the extreme, reducing repainting. Pivot confirmation functions (f_confirmPivotLow and f_confirmPivotHigh) are always called on every bar for consistency, as recommended by TradingView. When pivot bars are not available (na), safe default values are used, and the results are then used conditionally based on confirmation settings. This ensures consistent calculations and prevents calculation inconsistencies.
Trendline Drawing: Uptrend lines connect confirmed pivot lows (green), and downtrend lines connect confirmed pivot highs (red). By default, only the most recent trendline is shown (old trendlines are deleted when new pivots are confirmed). This keeps the chart clean and uncluttered. If "Keep Historical Trendlines" is enabled, the script preserves up to N historical trendlines (configurable via "Max Trendlines to Keep", default 5). When historical trendlines are enabled, old trendlines are saved to arrays instead of being deleted, allowing you to see multiple trendlines simultaneously for better trend analysis. The arrays are automatically limited to prevent memory accumulation.
Trend Break Detection: Signals are generated when RSI breaks above or below trendlines. Uptrend breaks (RSI crosses below uptrend line) generate buy signals. Downtrend breaks (RSI crosses above downtrend line) generate sell signals. Optional trend break confirmation requires the break to persist for N bars and optionally include volume confirmation. Trendline angle filtering can exclude flat/weak trendlines from generating signals (minTrendlineAngle > 0 filters out weak/flat trendlines).
How Components Work Together
The combination of multiple RSI periods provides confirmation across different timeframes, reducing false signals. RSI(6) catches early moves, RSI(14) provides balanced signals, and RSI(24) confirms longer-term trends. When all three align (synergy), it indicates strong consensus across timeframes.
Volume confirmation ensures signals occur with sufficient market participation, filtering out low-volume false breakouts. Volume climax detection identifies potential reversal points, while volume dry-up avoidance prevents signals during unreliable low-volume periods.
Trend filters align signals with the overall market direction. The EMA filter ensures you're trading with the trend, and the EMA slope filter adds an additional layer by requiring the trend to be strengthening (rising EMA for buys, falling EMA for sells).
ADX filter ensures signals only fire during strong trends, avoiding choppy/consolidation periods. RSI(50) filter ensures momentum alignment with the trade direction.
Momentum confirmation requires RSI to be accelerating in the signal direction, ensuring signals only fire when momentum is aligned. Multi-timeframe confirmation ensures signals align with higher timeframe trends, reducing counter-trend trades.
Divergence detection identifies potential reversals before they occur, providing early warning signals. Pivot-based divergence provides more accurate detection by using actual pivot points. Hidden divergence identifies continuation patterns, useful for trend-following strategies.
The noise reduction system combines multiple filters (signal strength, extreme zone, consecutive bars, zone persistence, RSI slope) to significantly reduce false signals. These filters work together to ensure only high-quality signals are generated.
The synergy system requires alignment across all RSI periods for highest-quality signals, significantly reducing false positives. Regression forecasting provides forward-looking context, helping anticipate potential RSI direction changes.
Pivot trendlines provide visual trend analysis and can generate signals when RSI breaks trendlines, indicating potential reversals or continuations.
Reset conditions prevent signal spam by requiring a minimum number of bars between signals. Separate reset conditions for buy and sell signals ensure proper signal management.
Usage Instructions
Configuration Presets (Recommended): The script includes optimized preset configurations for instant setup. Simply select your trading style from the "Configuration Preset" dropdown:
- Scalping Preset: RSI(4, 7, 9) with minimal smoothing. Noise reduction disabled, momentum confirmation disabled for fastest signals.
- Day Trading Preset: RSI(6, 9, 14) with light smoothing. Momentum confirmation enabled for better signal quality.
- Swing Trading Preset: RSI(14, 14, 21) with moderate smoothing. Balanced configuration for medium-term trades.
- Position Trading Preset: RSI(24, 21, 28) with heavier smoothing. Optimized for longer-term positions with all filters active.
- Custom Mode: Full manual control over all settings. Default behavior matches previous script versions.
Presets automatically configure RSI periods, smoothing lengths, and filter settings. You can still manually adjust any setting after selecting a preset if needed.
Getting Started: The easiest way to get started is to select a configuration preset matching your trading style (Scalping, Day Trading, Swing Trading, or Position Trading) from the "Configuration Preset" dropdown. This instantly configures all settings for optimal performance. Alternatively, use "Custom" mode for full manual control. The default configuration (Custom mode) shows RSI(6), RSI(14), and RSI(24) with their default smoothing. Overbought/oversold fill zones are enabled by default.
Customizing RSI Periods: Adjust the RSI lengths (6, 14, 24) based on your trading timeframe. Shorter periods (6) for scalping, standard (14) for day trading, longer (24) for swing trading. You can disable any RSI period you don't need.
Smoothing Selection: Choose smoothing method based on your needs. EMA provides balanced smoothing, RMA (Wilder's) is traditional, Zero-Lag reduces lag but may increase noise. Adjust smoothing lengths individually or use global smoothing for consistency. Note: Smoothing lengths are automatically validated to ensure they are always less than the corresponding RSI period length. If you set smoothing >= RSI length, it will be auto-adjusted to prevent invalid configurations.
Dynamic OB/OS: The dynamic thresholds automatically adapt to volatility. Adjust the volatility multiplier and base percentage to fine-tune sensitivity. Higher values create wider thresholds in volatile markets.
Volume Confirmation: Set volume threshold to 1.2 (default) for standard confirmation, higher for stricter filtering, or 0.1 to disable volume filtering entirely.
Multi-RSI Synergy: Use "ALL" mode for highest-quality signals (all 3 RSIs must align), or "2-of-3" mode for more frequent signals. Adjust the reset period to control signal frequency.
Filters: Enable filters gradually to find your preferred balance. Start with volume confirmation, then add trend filter, then ADX for strongest confirmation. RSI(50) filter is useful for momentum-based strategies and is recommended for noise reduction. Momentum confirmation and multi-timeframe confirmation add additional layers of accuracy but may reduce signal frequency.
Noise Reduction: The noise reduction system is enabled by default with balanced settings. Adjust minSignalStrength (default 3.0) to control how far RSI must be from centerline. Increase requireConsecutiveBars (default 1) to require signals to persist longer. Enable requireZonePersistence and requireRsiSlope for stricter filtering (higher quality but fewer signals). Start with defaults and adjust based on your needs.
Divergence: Enable divergence detection and adjust lookback periods. Strong divergence (with engulfing confirmation) provides higher-quality signals. Hidden divergence is useful for trend-following strategies. Enable pivot-based divergence for more accurate detection using actual pivot points instead of simple lowest/highest comparisons. Pivot-based divergence uses tolerance-based matching (1% for price, 1.0 RSI point for RSI) for better accuracy.
Forecasting: Enable regression forecasting to see potential RSI direction. Linear regression is simplest, polynomial captures curves, exponential smoothing adapts to trends. Adjust horizon based on your trading timeframe. Confidence bands show forecast uncertainty - wider bands indicate less reliable forecasts.
Pivot Trendlines: Enable pivot trendlines to visualize RSI trends and identify trend breaks. Adjust pivot detection period (default 5) - higher values detect fewer but stronger pivots. Enable pivot confirmation (default ON) to reduce repainting. Set minPivotStrength (default 1.0) to filter weak pivots - lower values detect more pivots (more trendlines), higher values detect only stronger pivots (fewer trendlines). Enable "Keep Historical Trendlines" to preserve multiple trendlines instead of just the most recent one. Set "Max Trendlines to Keep" (default 5) to control how many historical trendlines are preserved. Enable trend break confirmation for more reliable break signals. Adjust minTrendlineAngle (default 0.0) to filter flat trendlines - set to 0.1-0.5 to exclude weak trendlines.
Alerts: Set up alerts for your preferred signal types. Enable cooldown to prevent alert spam. Each signal type has its own alert condition, so you can be selective about which signals trigger alerts.
Visual Elements and Signal Markers
The script uses various visual markers to indicate signals and conditions:
- "sBottom" label (green): Strong bottom signal - RSI at extreme low with strong buy conditions
- "sTop" label (red): Strong top signal - RSI at extreme high with strong sell conditions
- "SyBuy" label (lime): Multi-RSI synergy buy signal - all RSIs aligned oversold
- "SySell" label (red): Multi-RSI synergy sell signal - all RSIs aligned overbought
- 🐂 emoji (green): Strong bullish divergence detected
- 🐻 emoji (red): Strong bearish divergence detected
- 🔆 emoji: Weak divergence signals (if enabled)
- "H-Bull" label: Hidden bullish divergence
- "H-Bear" label: Hidden bearish divergence
- ⚡ marker (top of pane): Volume climax detected (extreme volume) - positioned at top for visibility
- 💧 marker (top of pane): Volume dry-up detected (very low volume) - positioned at top for visibility
- ↑ triangle (lime): Uptrend break signal - RSI breaks below uptrend line
- ↓ triangle (red): Downtrend break signal - RSI breaks above downtrend line
- Triangle up (lime): RSI(50) bullish crossover
- Triangle down (red): RSI(50) bearish crossover
- Circle markers: RSI period crossovers
All markers are positioned at the RSI value where the signal occurs, using location.absolute for precise placement.
Signal Priority and Interpretation
Signals are generated independently and can occur simultaneously. Higher-priority signals generally indicate stronger setups:
1. Multi-RSI Synergy signals (SyBuy/SySell) - Highest priority: Requires alignment across all RSI periods plus volume and filter confirmation. These are the most reliable signals.
2. Strong Top/Bottom signals (sTop/sBottom) - High priority: Indicates extreme RSI levels with strong bounce conditions. Requires volume confirmation and all filters.
3. Divergence signals - Medium-High priority: Strong divergence (with engulfing) is more reliable than regular divergence. Hidden divergence indicates continuation rather than reversal.
4. Adaptive RSI crossovers - Medium priority: Buy when adaptive RSI crosses below dynamic oversold, sell when it crosses above dynamic overbought. These use volatility-adjusted RSI for more accurate signals.
5. RSI(50) centerline crossovers - Medium priority: Momentum shift signals. Less reliable alone but useful when combined with other confirmations.
6. RSI period crossovers - Lower priority: Early momentum shift indicators. Can provide early warning but may produce false signals in choppy markets.
Best practice: Wait for multiple confirmations. For example, a synergy signal combined with divergence and volume climax provides the strongest setup.
Chart Requirements
For proper script functionality and compliance with TradingView requirements, ensure your chart displays:
- Symbol name: The trading pair or instrument name should be visible
- Timeframe: The chart timeframe should be clearly displayed
- Script name: "Ultimate RSI " should be visible in the indicator title
These elements help traders understand what they're viewing and ensure proper script identification. The script automatically includes this information in the indicator title and chart labels.
Performance Considerations
The script is optimized for performance:
- ATR and Volume SMA are cached using var variables, updating only on confirmed and real-time bars to reduce redundant calculations
- Forecast line arrays are dynamically managed: lines are reused when possible, and unused lines are deleted to prevent memory accumulation
- Calculations use efficient Pine Script functions (ta.rsi, ta.ema, etc.) which are optimized by TradingView
- Array operations are minimized where possible, with direct calculations preferred
- Polynomial regression automatically caps the forecast horizon at 20 bars (POLYNOMIAL_MAX_HORIZON constant) to prevent performance degradation, as polynomial regression has O(n³) complexity. This safeguard ensures optimal performance even with large horizon settings
- Pivot detection includes edge case handling to ensure reliable calculations even on early bars with limited historical data. Regression forecasting functions include comprehensive safety checks: horizon validation (must not exceed array size), empty array handling, edge case handling for horizon=1 scenarios, and division-by-zero protection in all mathematical operations
The script should perform well on all timeframes. On very long historical data, forecast lines may accumulate if the horizon is large; consider reducing the forecast horizon if you experience performance issues. The polynomial regression performance safeguard automatically prevents performance issues for that specific regression type.
Known Limitations and Considerations
- Forecast lines are forward-looking projections and should not be used as definitive predictions. They provide context but are not guaranteed to be accurate.
- Dynamic OB/OS thresholds can exceed 100 or go below 0 in extreme volatility scenarios, but are clamped to 0-100 range. This means in very volatile markets, the dynamic thresholds may not widen as much as the raw calculation suggests.
- Volume confirmation requires sufficient historical volume data. On new instruments or very short timeframes, volume calculations may be less reliable.
- Higher timeframe RSI uses request.security() which may have slight delays on some data feeds.
- Regression forecasting requires at least N bars of history (where N = forecast horizon) before it can generate forecasts. Early bars will not show forecast lines.
- StochRSI calculation requires the selected RSI source to have sufficient history. Very short RSI periods on new charts may produce less reliable StochRSI values initially.
Practical Use Cases
The indicator can be configured for different trading styles and timeframes:
Swing Trading: Select the "Swing Trading" preset for instant optimal configuration. This preset uses RSI periods (14, 14, 21) with moderate smoothing. Alternatively, manually configure: Use RSI(24) with Multi-RSI Synergy in "ALL" mode, combined with trend filter (EMA 200) and ADX filter. This configuration provides high-probability setups with strong confirmation across multiple RSI periods.
Day Trading: Select the "Day Trading" preset for instant optimal configuration. This preset uses RSI periods (6, 9, 14) with light smoothing and momentum confirmation enabled. Alternatively, manually configure: Use RSI(6) with Zero-Lag smoothing for fast signal detection. Enable volume confirmation with threshold 1.2-1.5 for reliable entries. Combine with RSI(50) filter to ensure momentum alignment. Strong top/bottom signals work well for day trading reversals.
Trend Following: Enable trend filter (EMA) and EMA slope filter for strong trend confirmation. Use RSI(14) or RSI(24) with ADX filter to avoid choppy markets. Hidden divergence signals are useful for trend continuation entries.
Reversal Trading: Focus on divergence detection (regular and strong) combined with strong top/bottom signals. Enable volume climax detection to identify capitulation moments. Use RSI(6) for early reversal signals, confirmed by RSI(14) and RSI(24).
Forecasting and Planning: Enable regression forecasting with polynomial or exponential smoothing methods. Use forecast horizon of 10-20 bars for swing trading, 5-10 bars for day trading. Confidence bands help assess forecast reliability.
Multi-Timeframe Analysis: Enable higher timeframe RSI to see context from larger timeframes. For example, use daily RSI on hourly charts to understand the larger trend context. This helps avoid counter-trend trades.
Scalping: Select the "Scalping" preset for instant optimal configuration. This preset uses RSI periods (4, 7, 9) with minimal smoothing, disables noise reduction, and disables momentum confirmation for faster signals. Alternatively, manually configure: Use RSI(6) with minimal smoothing (or Zero-Lag) for ultra-fast signals. Disable most filters except volume confirmation. Use RSI period crossovers (RSI(6) × RSI(14)) for early momentum shifts. Set volume threshold to 1.0-1.2 for less restrictive filtering.
Position Trading: Select the "Position Trading" preset for instant optimal configuration. This preset uses extended RSI periods (24, 21, 28) with heavier smoothing, optimized for longer-term trades. Alternatively, manually configure: Use RSI(24) with all filters enabled (Trend, ADX, RSI(50), Volume Dry-Up avoidance). Multi-RSI Synergy in "ALL" mode provides highest-quality signals.
Practical Tips and Best Practices
Getting Started: The fastest way to get started is to select a configuration preset that matches your trading style. Simply choose "Scalping", "Day Trading", "Swing Trading", or "Position Trading" from the "Configuration Preset" dropdown to instantly configure all settings optimally. For advanced users, use "Custom" mode for full manual control. The default configuration (Custom mode) is balanced and works well across different markets. After observing behavior, customize settings to match your trading style.
Reducing Repainting: All signals are based on confirmed bars, minimizing repainting. The script uses confirmed bar data for all calculations to ensure backtesting accuracy.
Signal Quality: Multi-RSI Synergy signals in "ALL" mode provide the highest-quality signals because they require alignment across all three RSI periods. These signals have lower frequency but higher reliability. For more frequent signals, use "2-of-3" mode. The noise reduction system further improves signal quality by requiring multiple confirmations (signal strength, extreme zone, consecutive bars, optional zone persistence and RSI slope). Adjust noise reduction settings to balance signal frequency vs. accuracy.
Filter Combinations: Start with volume confirmation, then add trend filter for trend alignment, then ADX filter for trend strength. Combining all three filters significantly reduces false signals but also reduces signal frequency. Find your balance based on your risk tolerance.
Volume Filtering: Set volume threshold to 0.1 or lower to effectively disable volume filtering if you trade instruments with unreliable volume data or want to test without volume confirmation. Standard confirmation uses 1.2-1.5 threshold.
RSI Period Selection: RSI(6) is most sensitive and best for scalping or early signal detection. RSI(14) provides balanced signals suitable for day trading. RSI(24) is smoother and better for swing trading and trend confirmation. You can disable any RSI period you don't need to reduce visual clutter.
Smoothing Methods: EMA provides balanced smoothing with moderate lag. RMA (Wilder's smoothing) is traditional and works well for RSI. Zero-Lag reduces lag but may increase noise. WMA gives more weight to recent values. Choose based on your preference for responsiveness vs. smoothness.
Forecasting: Linear regression is simplest and works well for trending markets. Polynomial regression captures curves and works better in ranging markets. Exponential smoothing adapts to trends. Moving average method is most conservative. Use confidence bands to assess forecast reliability.
Divergence: Strong divergence (with engulfing confirmation) is more reliable than regular divergence. Hidden divergence indicates continuation rather than reversal, useful for trend-following strategies. Pivot-based divergence provides more accurate detection by using actual pivot points instead of simple lowest/highest comparisons. Adjust lookback periods based on your timeframe: shorter for day trading, longer for swing trading. Pivot divergence period (default 5) controls the sensitivity of pivot detection.
Dynamic Thresholds: Dynamic OB/OS thresholds automatically adapt to volatility. In volatile markets, thresholds widen; in calm markets, they narrow. Adjust the volatility multiplier and base percentage to fine-tune sensitivity. Higher values create wider thresholds in volatile markets.
Alert Management: Enable alert cooldown (default 10 bars, recommended) to prevent alert spam. Each alert type has its own cooldown, so you can set different cooldowns for different signal types. For example, use shorter cooldown for synergy signals (high quality) and longer cooldown for crossovers (more frequent). The cooldown system works independently for each signal type, preventing spam while allowing different signal types to fire when appropriate.
Technical Specifications
- Pine Script Version: v6
- Indicator Type: Non-overlay (displays in separate panel below price chart)
- Repainting Behavior: Minimal - all signals are based on confirmed bars, ensuring accurate backtesting results
- Performance: Optimized with caching for ATR and volume calculations. Forecast arrays are dynamically managed to prevent memory accumulation.
- Compatibility: Works on all timeframes (1 minute to 1 month) and all instruments (stocks, forex, crypto, futures, etc.)
- Edge Case Handling: All calculations include safety checks for division by zero, NA values, and boundary conditions. Reset conditions and alert cooldowns handle edge cases where conditions never occurred or values are NA.
- Reset Logic: Separate reset conditions for buy signals (based on bottom conditions) and sell signals (based on top conditions) ensure logical correctness.
- Input Parameters: 60+ customizable parameters organized into logical groups for easy configuration. Configuration presets available for instant setup (Scalping, Day Trading, Swing Trading, Position Trading, Custom).
- Noise Reduction: Comprehensive noise reduction system with multiple filters (signal strength, extreme zone, consecutive bars, zone persistence, RSI slope) to reduce false signals.
- Pivot-Based Divergence: Enhanced divergence detection using actual pivot points for improved accuracy.
- Momentum Confirmation: RSI momentum filter ensures signals only fire when RSI is accelerating in the signal direction.
- Multi-Timeframe Confirmation: Optional higher timeframe RSI alignment for trend confirmation.
- Enhanced Pivot Trendlines: Trendline drawing with strength requirements, confirmation, and trend break detection.
Technical Notes
- All RSI values are clamped to 0-100 range to ensure valid oscillator values
- ATR and Volume SMA are cached for performance, updating on confirmed and real-time bars
- Reset conditions handle edge cases: if a condition never occurred, reset returns true (allows first signal)
- Alert cooldown handles na values: if no previous alert, cooldown allows the alert
- Forecast arrays are dynamically sized based on horizon, with unused lines cleaned up
- Fill logic uses a minimum gap (0.1) to ensure reliable polygon rendering in TradingView
- All calculations include safety checks for division by zero and boundary conditions. Regression functions validate that horizon doesn't exceed array size, and all array access operations include bounds checking to prevent out-of-bounds errors
- The script uses separate reset conditions for buy signals (based on bottom conditions) and sell signals (based on top conditions) for logical correctness
- Background coloring uses a fallback system: dynamic color takes priority, then RSI(6) heatmap, then monotone if both are disabled
- Noise reduction filters are applied after accuracy filters, providing multiple layers of signal quality control
- Pivot trendlines use strength requirements to filter weak pivots, reducing noise in trendline drawing. Historical trendlines are stored in arrays and automatically limited to prevent memory accumulation when "Keep Historical Trendlines" is enabled
- Volume climax and dry-up markers are positioned at the top of the pane for better visibility
- All calculations are optimized with conditional execution - features only calculate when enabled (performance optimization)
- Input Validation: Automatic cross-input validation ensures smoothing lengths are always less than RSI period lengths, preventing configuration errors
- Configuration Presets: Four optimized preset configurations (Scalping, Day Trading, Swing Trading, Position Trading) for instant setup, plus Custom mode for full manual control
- Constants Management: Magic numbers extracted to documented constants for improved maintainability and easier tuning (pivot tolerance, divergence thresholds, fill gap, etc.)
- TradingView Function Consistency: All TradingView functions (ta.crossover, ta.crossunder, ta.atr, ta.lowest, ta.highest, ta.lowestbars, ta.highestbars, etc.) and custom functions that depend on historical results (f_consecutiveBarConfirmation, f_rsiSlopeConfirmation, f_rsiZonePersistence, f_applyAllFilters, f_rsiMomentum, f_forecast, f_confirmPivotLow, f_confirmPivotHigh) are called on every bar for consistency, as recommended by TradingView. Results are then used conditionally when needed. This ensures consistent calculations and prevents calculation inconsistencies.
YM Ultimate SNIPER v6# YM Ultimate SNIPER v6 - Documentation & Trading Guide
## 🎯 ORDERFLOW EDITION | Order Blocks + Liquidity Sweeps + IFVG
**TARGET: 3-7 High-Confluence Trades per Day**
**Philosophy: "Zones That Matter"**
---
## ⚡ WHAT'S NEW IN v6
### Major Additions
| Feature | Description | Orderflow Purpose |
|---------|-------------|-------------------|
| **Order Blocks** | Last opposing candle before significant move | Shows where institutions absorbed orders |
| **Liquidity Sweeps** | Sweep of swing H/L with rejection | Identifies stop hunts / trap reversals |
| **IFVG** | Inverse FVG when price reclaims a gap | Failed institutional move = reversal signal |
| **Zone Quality Score** | 0-10 rating for each zone | Only "zones that matter" display |
| **3-Tier Scoring** | Weak/Medium/Excellent classification | Better trade selection |
| **Enhanced Table** | Larger, categorized, color-coded | Instant situation awareness |
### Orderflow Mindset
This version is built around **institutional order flow concepts**:
1. **Institutions leave footprints** → Order Blocks mark where they filled orders
2. **Retail gets trapped** → Liquidity Sweeps show the trap before reversal
3. **Failed moves reverse hard** → IFVG marks failed institutional attempts
4. **Not all zones are equal** → Quality scoring filters noise
---
## 🎯 QUICK REFERENCE
```
┌─────────────────────────────────────────────────────────────────────────┐
│ YM ULTIMATE SNIPER v6 │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ SIGNALS: │
│ S🎯 = S-Tier (50+ pts) → HOLD position │
│ A🎯 = A-Tier (25-49 pts) → SWING trade │
│ B🎯 = B-Tier (12-24 pts) → SCALP quick │
│ Z = Zone entry (quality FVG/OB zone) │
│ LS↑ = Bullish Liquidity Sweep (lows swept + rejection) │
│ LS↓ = Bearish Liquidity Sweep (highs swept + rejection) │
│ │
│ ZONES: │
│ 🟦 Blue boxes = Bullish Order Block (buy zone) │
│ 🟪 Pink boxes = Bearish Order Block (sell zone) │
│ 🟩 Green boxes = Bullish FVG (buy zone) │
│ 🟥 Red boxes = Bearish FVG (sell zone) │
│ 🟣 Purple dashed = IFVG (inverse - strong reversal zone) │
│ │
│ SCORE CLASSIFICATION: │
│ EXCELLENT (7.0+) = Full size, high confidence │
│ MEDIUM (4.5-6.9) = Standard size, good setup │
│ WEAK (<4.5) = No signal shown │
│ │
│ SESSIONS (ET): │
│ LDN = 3:00-5:00 AM (London) │
│ NY = 9:30-11:30 AM (New York Open) │
│ PWR = 3:00-4:00 PM (Power Hour) │
│ │
└─────────────────────────────────────────────────────────────────────────┘
```
---
## 📦 ORDER BLOCKS (OB)
### What Are Order Blocks?
Order blocks mark the **last opposing candle before a significant move**. This is where institutional traders absorbed retail orders before moving price in their intended direction.
### Detection Logic (Breaker Style)
```
BULLISH OB:
├── Last BEARISH candle before strong bullish move
├── Move after must be ≥ 1.5x ATR
├── Shows where institutions absorbed selling
└── Expect support when price returns
BEARISH OB:
├── Last BULLISH candle before strong bearish move
├── Move after must be ≥ 1.5x ATR
├── Shows where institutions absorbed buying
└── Expect resistance when price returns
```
### OB Quality Scoring
Each Order Block gets a strength score (0-10) based on:
- **Move strength** after the OB (ATR multiple)
- **Volume** on the OB candle
- **Body ratio** of the OB candle
Only OBs with strength ≥ 4 are displayed.
### Trading Order Blocks
| Scenario | Action |
|----------|--------|
| Price returns to Bull OB + buy delta | Look for LONG |
| Price returns to Bear OB + sell delta | Look for SHORT |
| OB + FVG overlap (thick border) | HIGH PROBABILITY |
| OB tested once (gray) | Still valid, often best entry |
| OB broken (closes through) | Invalidated, removed |
---
## 💎 LIQUIDITY SWEEPS
### What Are Liquidity Sweeps?
A liquidity sweep occurs when price **hunts stop losses** by briefly breaking a swing high/low, then **immediately reverses** back. This is the classic "stop hunt" or "liquidity grab."
### Detection Logic
```
BULLISH SWEEP (LS↑):
├── Price sweeps BELOW a recent swing low
├── Closes BACK ABOVE the swing level
├── Shows lower wick (rejection)
├── Buy delta dominance on the candle
└── SIGNAL: Lows swept, shorts trapped → GO LONG
BEARISH SWEEP (LS↓):
├── Price sweeps ABOVE a recent swing high
├── Closes BACK BELOW the swing level
├── Shows upper wick (rejection)
├── Sell delta dominance on the candle
└── SIGNAL: Highs swept, longs trapped → GO SHORT
```
### Why Sweeps Matter for Orderflow
1. **Retail stops get hit** → Liquidity provided to institutions
2. **Institutions fill orders** → At better prices thanks to the sweep
3. **Price reverses** → Move in intended direction begins
4. **You enter with institutions** → Not against them
### Sweep + Zone = High Probability
When a liquidity sweep happens AT or NEAR an Order Block or FVG zone, the probability increases significantly.
---
## 🔄 IFVG (INVERSE FVG)
### What Is an IFVG?
An Inverse FVG forms when price **fills an FVG and then reclaims it** in the opposite direction. This signals a **failed institutional move**.
### Detection Logic
```
BULLISH IFVG:
├── Bearish FVG was created (gap down)
├── Price fills the gap (tests zone)
├── Price CLOSES ABOVE the gap with buy delta
└── SIGNAL: Bears failed → Strong reversal UP
BEARISH IFVG:
├── Bullish FVG was created (gap up)
├── Price fills the gap (tests zone)
├── Price CLOSES BELOW the gap with sell delta
└── SIGNAL: Bulls failed → Strong reversal DOWN
```
### Why IFVG Is Powerful
- Shows institutional failure → Other side takes control
- Pre-assigned quality score of 8.0 (high priority)
- Often marks significant reversals
- Purple dashed boxes for easy identification
---
## 📊 ZONE QUALITY SCORING
### The "Zones That Matter" Filter
Not all FVGs and OBs are created equal. v6 implements a **Zone Quality Score** (0-10) that filters out low-quality zones.
### Quality Calculation
| Factor | Max Points | How Measured |
|--------|------------|--------------|
| Gap Size | 2.5 | Larger gap = more points |
| Impulse Strength | 2.5 | Stronger move = more points |
| Volume | 2.0 | Higher volume = more points |
| OB Alignment | 2.0 | FVG overlaps with OB = bonus |
| Session | 1.0 | Created in active session = bonus |
### Min Quality Threshold (Default: 6.0)
Zones scoring below this threshold **are not displayed**. Adjust in settings:
- **Conservative**: Set to 7.0+ (fewer, better zones)
- **Standard**: 6.0 (balanced)
- **Aggressive**: 4.0-5.0 (more zones, more noise)
### Visual Quality Indicators
- **Thick border**: Zone aligns with Order Block (high quality)
- **Bright color**: Fresh zone
- **Gray color**: Tested zone (still valid)
- **Removed**: Broken zone (invalidated)
---
## 📊 CONFLUENCE SCORING SYSTEM
### Score Components (Max ~12, normalized to 10)
| Factor | Points | Condition |
|--------|--------|-----------|
| **Tier** | 1-3 | B=1, A=2, S=3 |
| **FVG Zone** | +1.5 | Price in quality FVG |
| **Order Block** | +1.5 | Price in OB |
| **IFVG** | +1.0 | Price in Inverse FVG |
| **Strong Volume** | +1.0 | Volume ≥ 2x average |
| **Extreme Volume** | +0.5 | Volume ≥ 2.5x average |
| **Strong Delta** | +1.0 | Delta ≥ 70% |
| **Extreme Delta** | +0.5 | Delta ≥ 78% |
| **CVD Momentum** | +0.5-1.0 | CVD trending with signal |
| **Liquidity Sweep** | +1.5 | Recent sweep confirms direction |
### Score Classification
| Score | Class | Confidence | Position Size |
|-------|-------|------------|---------------|
| **7.0+** | EXCELLENT | Very High | Full size (100%) |
| **4.5-6.9** | MEDIUM | Good | Standard (75%) |
| **< 4.5** | WEAK | Low | No signal shown |
### Score Displayed in Table
The table shows both the numeric score and classification:
- Green background + "EXCELLENT" = Top tier setup
- Orange background + "MEDIUM" = Decent setup
- Gray + "WEAK" = Below threshold
---
## 📊 ENHANCED TABLE REFERENCE
The v6 table is organized into **4 sections**:
### CANDLE Section
| Row | What It Shows |
|-----|---------------|
| Points | Candle range in points + Tier (S/A/B/X) |
| Volume | Volume ratio + grade (🔥/✓✓/✓/✗) |
### ORDERFLOW Section
| Row | What It Shows |
|-----|---------------|
| Delta | Buy/Sell % + grade (🔥/✓✓/✓/—) |
| CVD | Direction + strength (▲▲ STRONG, ▲ UP, etc.) |
### STRUCTURE Section
| Row | What It Shows |
|-----|---------------|
| FVG Zone | Current zone status + quality score |
| Order Block | OB status (BULL OB / BEAR OB / —) |
| Liq Sweep | Recent sweep status + 🎯 indicator |
### SIGNAL Section
| Row | What It Shows |
|-----|---------------|
| Session | Current session (NY/LDN/PWR/OFF) + 🟢/🔴 |
| SCORE | Numeric score /10 + classification |
### Color Coding
- **🟢 Green/Lime**: Good, meets threshold, bullish
- **🟠 Orange/Amber**: Caution, borderline, medium
- **🔴 Red**: Bad, below threshold, bearish
- **⚪ Gray**: Inactive/neutral
- **🔥**: Extreme/exceptional reading
---
## ✅ ENTRY CHECKLIST v6
Before entering any trade:
### Basic Requirements
- Signal present (S🎯/A🎯/B🎯 or Z)
- Score ≥ 4.5 (MEDIUM or better)
- Session active (LDN/NY/PWR shows 🟢)
### Orderflow Confirmation
- Delta colored (not gray)
- CVD arrow matches direction
- Volume shows ✓ or better
### Structure Bonus (Any = Better)
- In FVG Zone
- In Order Block
- Recent Liquidity Sweep
- IFVG present
### Execute
- Enter at signal candle close
- Stop below/above candle (shown on chart)
- Target at calculated R:R level
---
## 🎯 IDEAL SETUPS (HIGH WIN RATE)
### Setup 1: Sweep + Zone + Tier
```
Conditions:
├── Liquidity Sweep just occurred (LS↑ or LS↓)
├── Price is at Order Block or FVG
├── Tier signal fires (S/A/B)
├── Score: 7+ EXCELLENT
└── Win Rate: ~75-85%
```
### Setup 2: IFVG + Delta Confirmation
```
Conditions:
├── IFVG just formed (purple zone)
├── Strong delta (70%+) in IFVG direction
├── CVD confirming
├── Score: 7+ EXCELLENT
└── Win Rate: ~70-80%
```
### Setup 3: OB + FVG Overlap
```
Conditions:
├── Order Block present
├── FVG zone overlaps with OB (thick border)
├── Price returns to overlap zone
├── Delta confirms direction
└── Win Rate: ~70-78%
```
### Setup 4: Clean Zone Entry
```
Conditions:
├── Quality zone (score 6+)
├── No tier signal but Z entry shows
├── Delta matches zone direction
├── In active session
└── Win Rate: ~65-72%
```
---
## ⛔ DO NOT TRADE
- Session shows "OFF" or 🔴
- Score < 4.5 (WEAK)
- Delta shows "—" (no dominance)
- CVD conflicts with signal direction
- Multiple conflicting zones
- Zone quality < 6
- Major news imminent (FOMC, NFP, CPI)
- Price chopping between zones
---
## 🔧 SETTINGS GUIDE
### Recommended Configurations
**Conservative (2-4 trades/day):**
```
Min Score Medium: 5.5
Min Score Excellent: 7.5
Min Zone Quality: 7.0
Min Volume Ratio: 2.0
Delta Threshold: 65%
```
**Standard (4-6 trades/day):**
```
Min Score Medium: 4.5
Min Score Excellent: 7.0
Min Zone Quality: 6.0
Min Volume Ratio: 1.8
Delta Threshold: 62%
```
**Aggressive (6-8 trades/day):**
```
Min Score Medium: 4.0
Min Score Excellent: 6.5
Min Zone Quality: 5.0
Min Volume Ratio: 1.5
Delta Threshold: 60%
```
---
## 🚨 ALERTS PRIORITY
### Must-Have Alerts
| Alert | Priority | Action |
|-------|----------|--------|
| ⭐ EXCELLENT LONG/SHORT | 🔴 CRITICAL | Drop everything, check NOW |
| 🎯 S-TIER | 🟠 HIGH | Evaluate within 10 seconds |
| 💎 LIQUIDITY SWEEP | 🟠 HIGH | Check for zone confluence |
| 🔄 IFVG | 🟡 MEDIUM | Note reversal potential |
### Useful Context Alerts
| Alert | Purpose |
|-------|---------|
| 📦 NEW OB | Mark institutional zone |
| 📦 NEW FVG | Mark gap zone |
| SESSION OPEN | Prepare to trade |
---
## 📈 TRADE JOURNAL v6
```
DATE: ___________
SESSION: ☐ LDN ☐ NY ☐ PWR
SETUP TYPE:
☐ Sweep + Zone ☐ IFVG ☐ OB+FVG ☐ Zone Entry
TRADE:
├── Time: _______
├── Signal: S🎯 / A🎯 / B🎯 / Z / LS
├── Direction: LONG / SHORT
├── Score: ___/10 (EXCELLENT / MEDIUM)
├── Entry: _______
├── Stop: _______
├── Target: _______
│
├── In FVG Zone: ☐ Yes ☐ No
├── In Order Block: ☐ Yes ☐ No
├── Liquidity Sweep: ☐ Yes ☐ No
├── IFVG Present: ☐ Yes ☐ No
│
├── Result: +/- ___ pts ($_____)
└── Notes: _______________________
DAILY SUMMARY:
├── Trades: ___
├── EXCELLENT setups: ___
├── MEDIUM setups: ___
├── Wins: ___ | Losses: ___
├── Net P/L: $_____
└── Best setup type: _______________________
```
---
## 🏆 GOLDEN RULES v6
> **"Institutions sweep, then move. Wait for the sweep."**
> **"Order Blocks show where they filled. Trade there."**
> **"IFVG = They failed. Take the other side."**
> **"Zone Quality 6+ or walk away."**
> **"EXCELLENT score = Green light. MEDIUM = Yellow light. WEAK = Red light."**
> **"Confluence beats conviction. Stack the factors."**
> **"Leave every trade with money. The next setup is coming."**
---
## 🔧 TROUBLESHOOTING
| Issue | Solution |
|-------|----------|
| No signals | Lower Min Score Medium to 4.0 |
| Too many signals | Raise Min Score Medium to 5.5+ |
| Too many zones | Raise Min Zone Quality to 7.0+ |
| Zones cluttering | Reduce Max Zones to 6-8 |
| OBs everywhere | Raise OB Min Strength to 1.8+ |
| Missing sweeps | Lower Sweep Lookback, reduce Min Wick Ratio |
| Table too small | Change Table Size to "large" |
| Wrong timezone | Check Session Timezone setting |
---
## 📝 TECHNICAL NOTES
- **Pine Script v6** (latest syntax)
- **Works on**: YM, MYM, NQ, MNQ, ES, MES, GC, MGC
- **Auto-detects** instrument for proper point calculation
- **Recommended TF**: 1-5 minute for day trading
- **Min TradingView Plan**: Free (no premium features required)
- **Max visual elements**: 500 labels, 500 boxes, 500 lines
---
*© Alexandro Disla - YM Ultimate SNIPER v6*
*Orderflow Edition | Zones That Matter*
Z-score RegimeThis indicator compares equity behaviour and credit behaviour by converting both into z-scores. It calculates the z-score of SPX and the z-score of a credit proxy based on the HYG divided by LQD ratio.
SPX z-score shows how far the S&P 500 is from its rolling average.
Credit z-score shows how risk-seeking or risk-averse credit markets are by comparing high-yield bonds to investment-grade bonds.
When both z-scores move together, the market is aligned in either risk-on or risk-off conditions.
When SPX z-score is strong but credit z-score is weak, this may signal equity strength that is not supported by credit markets.
When credit z-score is stronger than SPX z-score, credit markets may be leading risk appetite.
The indicator plots the two z-scores as simple lines for clear regime comparison.
Composite Market Momentum Indicator//@version=5
indicator("Composite Market Momentum Indicator", shorttitle="CMMI", overlay=false)
// Define Inputs
lenRSI = input.int(14, title="RSI Length")
lenMom = input.int(9, title="Momentum Length")
lenShortRSI = input.int(3, title="Short RSI Length")
lenShortRSISma = input.int(3, title="Short RSI SMA Length")
lenSMA1 = input.int(9, title="Composite SMA 1 Length")
lenSMA2 = input.int(34, title="Composite SMA 2 Length")
// Step 1: Create a 9-period momentum indicator of the 14-period RSI
rsiValue = ta.rsi(close, lenRSI)
momRSI = ta.mom(rsiValue, lenMom)
// Step 2: Create a 3-period RSI and a 3-period SMA of that RSI
shortRSI = ta.rsi(close, lenShortRSI)
shortRSISmoothed = ta.sma(shortRSI, lenShortRSISma)
// Step 3: Add Step 1 and Step 2 together to create the Composite Index
compositeIndex = momRSI + shortRSISmoothed
// Step 4: Create two simple moving averages of the Composite Index
sma1 = ta.sma(compositeIndex, lenSMA1)
sma2 = ta.sma(compositeIndex, lenSMA2)
// Step 5: Plot the composite index and its two simple moving averages
plot(compositeIndex, title="Composite Index", color=color.new(#f7cf05, 0), linewidth=2)
plot(sma1, title="SMA 13", color=color.new(#f32121, 0), linewidth=1, style=plot.style_line)
plot(sma2, title="SMA 33", color=color.new(#105eef, 0), linewidth=1, style=plot.style_line)
// Add horizontal lines for reference
hline(0, "Zero Line", color.new(color.gray, 50))






















