ES Balance Inventory Market ProfileES Balance Inventory Market Profile plots projected ES market-structure levels using a major historical balance zone as the anchor.
The script starts from a user-defined base balance range and projects that balance width upward in repeated increments. The purpose is to visualize how an important historical balance area can continue to act as a structural reference framework as price moves into higher regimes.
Psychology behind the indicator:
This indicator is inspired by inventory psychology, auction-market behavior, and balance-zone theory. The core idea is that markets often behave like inventory-driven businesses: price builds around a cost basis, then moves higher when inventory is marked up for distribution or lower when inventory has to be repriced.
A major balance zone can become a psychological anchor because traders, funds, and algorithms may continue to reference prior areas where meaningful business was done. The projected levels are meant to represent repeated inventory shelves above the original balance.
When price approaches one of these shelves, the key question is not whether the level will automatically hold. The useful information comes from how market participants behave around it: acceptance, rejection, failed breakdowns, failed breakouts, reclaim attempts, compression, expansion, volume response, and volatility response.
The psychology is also rooted in memory, positioning, and auction behavior. Large historical balance areas can leave a lasting footprint because traders remember them, systematic models may reference them, and price often rotates between structural zones when liquidity, positioning, or volatility changes.
Features:
• Uses a user-defined historical balance zone as the base range
• Projects repeated balance-width levels up to 10,000
• Plots clean horizontal structure levels directly on the chart
• Right-side labels make each level easy to read
• Current market zones from 5,000 to 8,000 are visible by default
• Users can enable or disable level ranges in 1,000-point increments
• Customizable colors, label spacing, and line extension settings
Suggested use:
Use these levels as structural reference zones, not as automatic buy or sell signals. The most useful information comes from how price behaves around a level: acceptance, rejection, reclaim, failure, compression, or expansion away from the zone.
This indicator can be used alongside price action, volume, VWAP, market profile, volatility, and broader market context to support discretionary analysis.
This script does not generate trade signals, does not predict future price movement, and does not provide financial advice. It is an educational and visual market-structure tool only. Trading involves risk, and users should make their own decisions based on their own analysis and risk tolerance. 指標

指標

AetherEdge - APEX Swing Engine🖊️ Overview
APEX is a swing-reversal engine that captures market tops (swing highs) and bottoms (swing lows), routing BUY and SELL into a strictly alternating sequence. At its core sits confirmed-pivot detection, so once a signal is printed it never moves — the indicator is fully non-repainting. Where many "perfect top-and-bottom" tools are illusions drawn by peeking at future data, APEX accepts an honest confirmation lag in exchange for signals that hold meaning in real time. A state machine structurally guarantees alternation, while an oscillator consensus gate filters out trivial swings.
🔶 Key Features
Strict alternation: a state machine enforces the BUY→SELL→BUY order, eliminating one-sided signal clustering
Fully non-repainting: only confirmed pivots (ta.pivothigh/low) are used; printed markers never shift
Transparent confirmation lag: the HUD shows how many bars after the true extreme the pivot confirmed
RSI consensus gate: accepts a top/bottom only when the oscillator was overbought/oversold at pivot formation, removing noise swings
Minimum-move filter: requires an ATR-based price displacement from the last signal to suppress over-dense output
Zig-zag visualization: glowing lines connect confirmed extremes, making the alternating capture structure instantly readable
Top/bottom zone shading: a translucent band around each extreme visualizes the high/low region
Live tracking rays: horizontal lines extend from the latest top and bottom as dynamic support/resistance
Refined data-science palettes: Quant Lab, Sumi Ink, and Aurora
Integrated HUD: current state, last top/bottom prices, RSI, confirmation lag, and the next permitted signal type
🧠 Technical Architecture
The source of APEX's honesty is confirmed-pivot detection. ta.pivothigh/ta.pivotlow resolve a value only after a set number of bars (pv_rightInput) have elapsed to the right of the pivot candidate. By the time confirmation occurs, the extreme is already a past bar, so its position can never change afterward — the essence of "a few bars of lag, but never repainting." The resulting delay, the honest price of refusing to peek at the future, is displayed explicitly in the HUD.
Alternation is enforced by a state machine. Its internal state holds +1 when the last signal was a bottom (BUY), −1 when it was a top (SELL), and 0 before any signal. Because this state locks which signal type is next permitted, same-type signals are structurally rejected and output necessarily alternates between BUY and SELL. In the rare case where a top and a bottom confirm on the same bar, an arbitration rule favors whichever carries the stronger oscillator extreme.
The consensus gate promotes a confirmed pivot into a top/bottom candidate. A pivot high qualifies as a top (SELL) candidate only if RSI exceeded the overbought threshold when it formed; a pivot low qualifies as a bottom (BUY) candidate only if RSI was below the oversold threshold. This leaves only "meaningful" swings accompanied by oscillator extremes rather than every minor wiggle. An ATR-based minimum-move filter further demands sufficient travel from the prior signal to prevent crowding. In the visual layer, accepted extremes are linked by a zig-zag line, each extreme receives a zone box, and rays extending from the latest top and bottom present dynamic battle lines.
⚙️ Recommended Settings & Tuning Guide
APEX is tuned with crypto in mind. For intraday trading on majors like BTC and ETH, Pivot Left/Right Bars near 8 is a balanced starting point between sensitivity and lag. On higher-volatility names such as SOL and XRP, widening Bars to 10–12 and tightening the RSI gate (overbought 65 / oversold 35) suppresses fakeout swings and stabilizes top/bottom precision.
Pivot Bars is the master sensitivity parameter. Larger values admit only larger, more significant swings and increase lag; smaller values are more responsive with less lag but more fakeouts. For swing trading (days-to-weeks holds), 15–20 is a guide; for short-term trading, 6–8. If signals are too frequent, tighten the RSI gate (overbought 70 / oversold 30) and set the minimum-move filter to 1–2 ATR to reduce density. If signals are too sparse, ease the RSI gate (overbought 55 / oversold 45) or disable it, driving alternation purely from pivot structure.
💡 How to Use in Practice
The most fundamental use is to read confirmed BUY/SELL markers as an objective fact that a swing pivot has formed. Because markers arrive with lag, treat them with care as direct counter-trend triggers; instead, the tracking rays extending from the latest top and bottom serve as powerful support/resistance for subsequent price action. Moments where price approaches and rejects these rays are strong entry-consideration points while awaiting the next alternating signal.
For multi-timeframe trading, pair APEX on a higher timeframe to grasp the major swing structure with APEX on a lower timeframe for finer timing. Since the zig-zag line maps directly to wave structure, overlaying it with Elliott Wave or Fibonacci retracements adds context to top/bottom placement. The HUD's "next permitted signal" makes clear which reversal to await, serving as a guide for position management.
⚠️ Important Notes
Because this indicator is based on confirmed pivots, signals always arrive in real time delayed by the confirmation lag. Historical charts appear to capture tops and bottoms perfectly, but that is because they are already confirmed — no marker appears on a not-yet-confirmed extreme near the latest bar. This is not a flaw but a necessary property of an honest, non-repainting design. Expecting instant reaction on the current bar without understanding this lag leads to misuse. Setting pivot width extremely small reduces lag but lowers confirmation reliability and increases fakeouts.
🚨 Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. No signal guarantees future profit, and past performance does not indicate future results. All trading decisions are made at your own risk; please use this tool with sound risk management and your own independent verification. 指標

Institutional Momentum & Liquidity Matrix
Institutional Momentum & Liquidity Matrix
■Overview
This tool is a quantitative analysis suite designed to bridge the gap between price momentum and market liquidity structure. Moving away from the traditional approach of monitoring "where the RSI is currently," it calculates the exact price required for the RSI to reach overbought/oversold levels on the next candle and visualizes it directly on the chart. This projection is overlaid with an RSI-Anomaly Volume Profile to highlight true structural exhaustion.
■1. Originality and Design Philosophy
While RSI and Volume Profile are widely used, they are typically viewed in isolation, leading to false signals. This script is original because it mathematically merges them:
1. It projects the theoretical elastic limits of momentum directly onto the price scale using algebraic reversal of Wilder's Smoothing.
// Algebraic Reversal of Wilder's Smoothing (RMA)
f_get_reverse_price(target_rsi) =>
float target_rs = target_rsi / (100.0 - target_rsi)
float req_up = (target_rs * prev_rma_d * (rsi_len - 1)) - (prev_rma_u * (rsi_len - 1))
float req_down = (prev_rma_u * (rsi_len - 1) / target_rs) - (prev_rma_d * (rsi_len - 1))
float rev_price = req_up > 0 ? prev_c + req_up : (req_down > 0 ? prev_c - req_down : prev_c)
rev_price
2. It filters a Lower Timeframe (LTF) Volume Profile using LTF RSI data, discarding neutral volume and coloring only the specific price nodes where momentum reached extreme anomalies.
// RSI Anomaly Matrix & Peak Retention Logic
bool is_significant = (intensity * 100.0) >= vol_threshold
color base_c = color_prof_neutral
if is_significant
if rsi_color_mode == "Peak Retention"
if max_rsi >= rsi_ob and min_rsi <= rsi_os
base_c := (max_rsi - 50.0) > (50.0 - min_rsi) ? color_ob : color_os
else if max_rsi >= rsi_ob
base_c := color_ob
else if min_rsi <= rsi_os
base_c := color_os
■2. Core Mechanism 1: Reverse RSI Projection (The Math)
Instead of tracking an oscillator bounded between 0 and 100, this script mathematically reverses J. Welles Wilder Jr.'s Smoothed Moving Average (RMA) formula.
To calculate the exact closing price required on the next bar to achieve a specific Target RSI (e.g., 70 or 30), the script uses the following logic:
RS = Target_RSI / (100 - Target_RSI)
Required_Up =
(RS * Prev_RMA_D * (Length - 1)) - (Prev_RMA_U * (Length - 1))
Required_Down =
(Prev_RMA_U * (Length - 1) / RS) - (Prev_RMA_D * (Length - 1))
It plots these calculated prices as horizontal projection lines, allowing traders to evaluate momentum limits directly on the price action.
■3. Core Mechanism 2: RSI Anomaly Liquidity Matrix
Momentum limits require structural backing to be reliable. This engine aggregates LTF data to generate a filtered Volume Profile.
・Dynamic Sessions: Generates profiles based on Daily, Weekly, Monthly, or Custom Market Sessions (Defaults are set to UTC for Oceania, Asia, London, and NY).
・RSI Anomaly Coloring: Instead of plotting standard volume, the script calculates the average LTF RSI for each price node. It only applies color to nodes where the average momentum reached extreme Overbought or Oversold levels, keeping the rest of the profile neutral. This eliminates visual noise and isolates true areas of structural exhaustion.
・Point of Control (POC): Automatically extracts and highlights the price level with the highest liquidity concentration.
■4. Configuration & Parameters
・Profile Generation Mode: Determines time boundaries. Day traders can use Custom Sessions (UTC), while swing traders benefit from Daily/Weekly structures.
・Liquidity Data Source: While 'Volume' is the standard input, 'Price Delta' is provided as a proxy to ensure the profile functions on assets lacking raw volume data (e.g., certain Forex feeds).
・Max LTF Samples per Bar: Limits how many LTF candles are processed per higher timeframe candle to optimize performance and prevent calculation limits.
・RSI Coloring Mode: Controls sensitivity. "Volume-Weighted Average" is mathematically strict but colors may neutralize over time. "Peak Retention" ensures that if a price node hits an RSI extreme at any point during the session, it permanently retains that warning color, preventing dilution.
・Significance Threshold & Hide Weak Nodes: Filters out price nodes that lack sufficient volume (e.g., under 30% of the POC volume). Graying out or hiding low-volume nodes removes noise.
・POC Proximity Filter: Fades the RSI projection lines if no historical POC is nearby, utilizing ATR to define a dynamic "safe zone." Momentum extremes without structural support are prone to false breakouts.
■5. Usage & Mindset
・Best Suited For: High-liquidity instruments (Major Forex, Indices, Large-cap Crypto) on 15M to 1H charts.
・Execution: Do not enter blindly when price hits the RSI projection line. Wait for confluence: "Is this momentum extreme backed by a colored, structural POC wall?" Use the confluence zone to define strict Stop Loss levels.
■Disclaimer
This script is a quantitative analysis tool designed for educational purposes to visualize mathematical momentum and liquidity data. It does not guarantee future profits and is not intended as a signal service. Always employ strict risk management and conduct comprehensive market analysis.
Institutional Momentum & Liquidity Matrix
概要
本ツールは、価格モメンタムと市場流動性の構造的差異を統合的に分析するための定量分析スイートです。「RSIの現在値」に依存するアプローチから脱却し、「特定のRSI水準に到達するために必要な要請価格」を逆算してチャート上に直接可視化します。さらに、RSI異常値を反映した流動性マトリックスを展開し、構造的な枯渇点を浮き彫りにします。
1. 独創性と設計思想
RSIと出来高プロファイルは広く普及していますが、単体での使用はダマシを誘発します。本スクリプトはこれらを数学的に統合した点に独創性があります。
1. Wilderの平滑化移動平均(RMA)を代数的に逆算し、モメンタムの限界値を価格スケール上に直接投影します。
2. 下位足(LTF)の出来高プロファイルをLTFのRSIデータでフィルタリングし、極端な異常値(過熱感)を記録した価格帯のみを色付けして視覚化します。
2. コア・メカニズム1: 逆算RSIプロジェクション(計算根拠)
オシレーターを監視するのではなく、RMAの計算式を逆算します。次期のローソク足で指定のRSI極値(例: 70または30)に到達するための終値を、以下のロジックで算出します。
RS = 目標RSI / (100 - 目標RSI)
必要な上昇幅 =
(RS * 前回のRMA下落幅 * (期間 - 1)) - (前回のRMA上昇幅 * (期間 - 1))
必要な下落幅 =
(前回のRMA上昇幅 * (期間 - 1) / RS) - (前回のRMA下落幅 * (期間 - 1))
算出された価格を水平線として描画し、価格アクション上でモメンタムの限界を評価可能にします。
3. コア・メカニズム2: RSI異常値・流動性マトリックス
LTFデータを集計し、高度なフィルターを備えた価格帯別出来高を生成します。
・動的セッション: 日次、週次、月次、または特定の市場セッションに対応(※セッション時間はすべてUTC基準です)。
・RSI異常値カラーリング: 各価格帯の平均LTF RSIを算出し、買われすぎ/売られすぎの極限領域に達した価格帯のみを色付けします。通常の価格帯をニュートラルカラーに保つことで視覚的ノイズを排除します。
・Point of Control (POC): 最大流動性が集中する価格帯を自動抽出し、強力なレジサポとしてハイライトします。
4. パラメーター設定
・Generation Mode (生成モード): デイトレーダーには特定の市場セッションが、スイングトレーダーには日次・週次の構造が適しています。
・Liquidity Data Source (流動性データ): 「出来高」を基本としますが、出来高データがない銘柄(一部のFX等)でも機能するよう、「価格変動幅(Price Delta)」を選択可能です。
・Max LTF Samples per Bar (最大LTF参照数): 上位足1本に対して参照する下位足の本数を制限し、計算処理を最適化します。
・RSI Coloring Mode (カラーリング感度・保持): プロファイルの色付け基準を選択します。「出来高加重平均 (Volume-Weighted)」は厳格ですが、その後の通常取引によって色が中和される性質があります。「ピーク保持 (Peak Retention)」を選択すると、セッション中に一度でもRSI異常値を記録した価格帯は、その極値カラーを履歴として保持し続けます(高感度モード)。
・Significance Threshold (有意性閾値): POCに対して一定割合に満たない価格帯をグレーアウトまたは非表示にし、真の壁のみを残します。
・POC Proximity Filter (近接フィルター): 過去のPOCが近くにない場合、プロジェクションラインをフェードアウトさせます。構造的な支持を持たない極値はダマシになりやすいため、ATRを利用したリスク管理レイヤーとして機能します。
5. 使い方と環境
・得意な環境: 流動性の高いメジャー通貨ペア、主要株価指数、大型暗号資産の15分足〜1時間足。
・思考プロセス: 価格がRSIプロジェクションに到達したからといって盲目的にエントリーせず、「その極値の背後に、色付けされたPOCの壁が存在するか」を確認してください。コンフルエンス領域を基準に、厳格な損切りを設定してください。
免責事項
本スクリプトは、数学的モメンタムおよび流動性データを可視化し、市場構造の理解を深めるための教育用ツールです。将来の利益を保証するものではなく、シグナル配信ツールではありません。常に適切なリスク管理と独自の市場分析を行ってください。
指標

EMA Edge - Multi-EMA Backtest Table with Golden/Death CrossEMA Edge — Multi-EMA Backtest Table with Golden/Death Cross
A clean, all-in-one performance dashboard that backtests 6 long-only strategies side-by-side against a Buy & Hold benchmark — 5 single-EMA crossover strategies plus a classic Golden Cross / Death Cross strategy — with on-chart cross markers and built-in alerts.
Instead of guessing which EMA length works best for a given stock or timeframe, this indicator runs the math for you and shows the answer in a single glance, ranked against simply holding the asset.
What It Does
For each of 5 user-defined EMA lengths, the indicator simulates a simple long-only strategy:
Buy when price closes above the EMA (when flat)
Sell when price closes below the EMA (when long)
Equity starts at 100 and compounds across trades using the close-to-close return of each trade
A 6th strategy row tests the classic Golden/Death Cross:
Buy when the fast EMA crosses above the slow EMA (Golden Cross)
Sell when the fast EMA crosses below the slow EMA (Death Cross)
Special first-bar handling: if the fast EMA is already above the slow EMA at the start of your backtest window (i.e., we're mid-trend with no fresh Golden Cross to wait for), the strategy enters immediately at that bar's opening price. This avoids the unrealistic outcome of sitting in cash for years waiting for a cross that already happened.
All strategies are compared against a Buy & Hold baseline that starts at the close of the first in-range bar. If a position is open at the last bar, its equity is marked-to-market so every strategy is compared on equal terms — fully invested vs. partially invested at the cutoff.
Features
5 configurable EMAs — defaults 9 / 21 / 50 / 100 / 200, fully editable
Golden/Death Cross strategy — uses independent fast/slow EMA inputs (default 50 / 200)
Performance table showing Return %, delta vs. Buy & Hold, and Outperform / Underperform status per strategy
Flexible backtest window — X weeks, X years, or full chart lifetime
On-chart GC / DC markers with optional subtle background tint on cross bars
Built-in alerts for both Golden Cross and Death Cross events
Fully customizable table — 9 position options, 6 text sizes, all colors exposed as inputs
Soft, light color palette designed not to dominate the chart
Optional EMA plotting (off by default to keep the chart clean)
How To Read The Table
ColumnMeaningStrategyThe rule being testedReturnTotal % return of the strategy over the chosen windowVs StockDifference between the strategy's return and Buy & HoldStatus▲ Outperform if the strategy beat Buy & Hold, ▼ Underperform if not
Green-tinted rows = strategy beat Buy & Hold
Red-tinted rows = strategy underperformed Buy & Hold
Cream row = the Buy & Hold baseline itself
How To Use
Add the indicator to any chart — works on stocks, ETFs, crypto, forex, any timeframe.
Choose your backtest window (e.g., 1 Year, 5 Years, or Lifetime).
Scan the table to see which strategy historically beat Buy & Hold on this asset.
Use the on-chart GC / DC labels to spot historical and live cross events. Right-click any marker → Add Alert to be notified on new crosses.
Tip: Test the same EMA lengths across daily and weekly timeframes and across different assets. You'll usually find that what works on a steady index like SPY does not work on a volatile single stock, and vice versa. That's the entire point of the table — to make those differences visible instead of assumed.
Key Inputs
EMA 1–5: Lengths for the 5 single-EMA strategies
Show EMAs: Plot EMAs on chart (off by default)
Use Lifetime Performance: Backtest from the very first bar instead of a fixed window
Performance Timeframe Type / Value: Weeks or Years lookback
Crosses group: Toggle GC/DC display, set fast/slow EMA lengths, customize colors
Table Style group: Position, text size, background and text colors
Notes & Limitations
All strategies are long-only — no shorts, no leverage, no stops, no commissions, no slippage. This is a clean rule-based comparison, not a turnkey trading system. Live results will differ.
Entries and exits use close prices, except for the GC/DC strategy's first-bar entry when already in a golden state, which uses open.
Open positions at the last bar are marked-to-market so the comparison vs. Buy & Hold is apples-to-apples.
Past performance is not indicative of future results. Use this as a research and screening tool.
The GC/DC strategy uses separate EMA lengths from the 5 table EMAs by design, so you can run 9/21/50/100/200 in the table while still testing the classic 50/200 cross.
Alerts Available
Golden Cross: Fast EMA crossed above Slow EMA
Death Cross: Fast EMA crossed below Slow EMA
If you find this useful, a boost is appreciated. Suggestions and feedback welcome in the comments.
Open-source — feel free to study, fork, and adapt. 指標

指標

Pvt Fibo S&R to Target 12Pvt Fibo S&R to Target 12 is an institutional-grade breakout and automated target management engine built completely on classical Daily/Weekly/Monthly Pivot Points and Fibonacci Support/Resistance (S/R) levels.
Instead of chasing lagging signals, this script monitors the heavy institutional liquidity pools yoked tightly to major horizontal key levels. By processing live price action through three selectable algorithmic breakout frameworks simultaneously, it provides non-repainting, highly optimized breakout signals coupled with an automated 2-tier take-profit sequence.
🎯 The 3 Multi-Mode Algorithmic Breakout Engines
To adapt to varying market environments, the script operates 3 distinct breakout styles (all active by default to maximize strategic flexibility):
Mode 1 (Volume & Candle Anatomy Expansion): Triggers only when the main pivot line is violated by a candle with significant volume (surpassing its 20-period SMA) and a tightly packed, dominant body ratio (Marubozu style). This mode filters out low-volume institutional retail traps (fakeouts).
Mode 2 (Direct Raw Momentum Breakout): Fires immediately upon a raw crossover/crossunder of the key horizontal line. It completely strips away filters to capitalize on sudden, news-driven, hyper-aggressive market expansions where speed is paramount.
Mode 3 (Safe-Zone Hold Confirmation): A strict trend-verification system designed for conservative execution. Rather than reacting to the initial breach, it tracks market absorption by requiring the price to successfully close and hold on the breakout side for X consecutive bars without slipping back across the line.
💰 Automated Target Lifecycle Management (Target 1-2)
The script is natively engineered with a stateful order sequence controller optimized for webhook routers like WunderTrading. It eliminates manual intervention by actively trailing the position's lifecycle:
The Entry: When any selected Mode condition is met, an entry signal (L1/L2/L3 or S1/S2/S3) prints visually on the chart and triggers the entry webhook message.
Target 1 (Partial Take-Profit): The exact moment the live price breaches the first major Fibonacci extension line (R1 for Longs, S1 for Shorts), a TARGET-1 alert fires. This allows automated bots to scale out partially or move stops to break-even.
Target 2 (Take-Profit & Position Liquidation): When the price strikes the primary institutional target line (R2 for Longs, S2 for Shorts), a TARGET-2 alert fires. Simultaneously, the internal position script state completely resets to zero, terminating the trade lifecycle securely without needing to wait for a lagging opposite signal.
🛠️ Key UI Parameters for Fine-Tuning
Pivot Calculation Period: Shift smoothly between D (Daily), W (Weekly), or M (Monthly) horizontal levels. Daily/Weekly lines are highly recommended for intraday timeframes.
Volume Multiplier: Increase this value (e.g., 1.8 or 2.0) to restrict Mode 1 signals only to massive, institutional-sized volume anomalies.
Min Candle Body Ratio (%): Filter out indecisive dojis or long-wick candles by demanding a solid, determined candle structure during breakout tests.
Safe-Zone Bar Count (X): Adjust the number of consecutive candle closes required for Mode 3 validation before entering.
⚡ Best Testing Environments & Timeframes
Top Performing Timeframes: * 15-Minute (15m) and 1-Hour (1h) charts provide the ultimate balance between asset noise reduction and massive intra-week trend capture.
5-Minute (5m) charts work excellent for scalpers, provided you raise the Volume Multiplier to counter micro-fakeouts.
Optimal Trading Assets: * Cryptocurrencies: High-momentum majors (BTC, ETH) that experience explosive expansion out of tight sideways consolidation ranges.
Indices & Commodities: NASDAQ (NAS100), S&P500, and GOLD (XAU/USD) due to their aggressive trend continuity when major daily key levels break.
Forex Major Pairs: EUR/USD, GBP/USD, and USD/JPY during high-liquidity New York and London session overlaps. 指標

Risk Manager [SkaleHub]Overview
The ultimate capital preservation tool. This indicator calculates mathematically secure stop-loss placements based on real-time market volatility (ATR) and features a dynamic dashboard that tells you the exact position size to take to protect your account.
The Edge
Amateurs blow accounts by guessing their lot sizes and placing arbitrary stop-losses. This tool professionalizes your risk. By adjusting your position size relative to the asset's current volatility, it ensures that whether you are trading a quiet forex pair or a volatile crypto asset, your monetary risk remains an exact, controlled percentage of your capital.
Key Features:
Volatility-Based Stops: Automatically calculates stop-loss levels using the Average True Range (ATR), ensuring your stop is safely tucked behind the market's natural "noise" to prevent early liquidations.
Auto-Position Sizing: Input your account balance and risk tolerance (e.g., 1%), and the built-in dashboard instantly outputs the exact number of shares or units you should buy.
On-Chart Visual Guardrails: Optionally plots dynamic crosshair lines on the chart so you can visually see exactly where your mathematically optimized stop-loss should be placed before entering a trade.
How to Use
Apply the indicator and open the settings menu. Enter your total account balance and your strict risk percentage (1-2% is highly recommended).
When your Level 3 Momentum Trigger fires an entry signal, look at the Risk Manager dashboard in the corner of your screen.
Execute the trade using the exact "Position Size (Units)" displayed on the dashboard, and immediately set your hard stop-loss at the "Stop Distance" mapped out on the chart.
Author's Note
This is a premium, Invite-Only script. It is Level 4 of the SkaleHub Training System. To gain access, your TradingView username must be explicitly authorized through the SkaleHub Academy. 指標

Swing Liquidity ZonesSwing Liquidity Zones is a chart overlay for marking confirmed swing highs and swing lows, then building wick-based liquidity zones from those swing candles.
The indicator focuses on price action structure. It highlights the upper wick of confirmed swing highs as buy-side liquidity areas and the lower wick of confirmed swing lows as sell-side liquidity areas. These zones help keep important historical wick areas visible on the chart without manually drawing them.
What it shows
Confirmed swing highs and swing lows;
Buy-side liquidity zones above swing high candle bodies;
Sell-side liquidity zones below swing low candle bodies;
Zones extended forward on the chart;
Filled and unfilled parts of each zone;
Optional estimated wick value based on OHLCV data;
Optional clean swing filter for a less crowded structure view.
How the zones are built
When a swing high is confirmed, the script uses the area between the pivot candle body top and the candle high to create an upper liquidity zone. When a swing low is confirmed, the script uses the area between the pivot candle body bottom and the candle low to create a lower liquidity zone.
The result is a visual map of swing wick areas that traders can review later when price returns to previous highs, previous lows, rejection areas, or important structure points.
Swing confirmation
The script uses pivot logic. A swing is confirmed only after the required number of candles has closed on the right side of the pivot.
Because of this, zones appear after confirmation and are plotted back on the pivot candle for visual clarity. This is normal behavior for pivot-based tools and helps avoid marking swings before they are confirmed.
Clean swing filter
The optional clean swing filter helps reduce noise by keeping a more structured sequence of swings.
If several swing highs appear before a swing low is confirmed, the script keeps the highest swing high. If several swing lows appear before a swing high is confirmed, the script keeps the lowest swing low.
The filter can also use minimum bar spacing and ATR-based distance, so very small structure changes are less likely to clutter the chart.
Zone tracking
After a zone is created, it extends to the right as new candles form. When price trades back into a zone, the script adjusts the zone to show which part has already been traded through and which part remains unfilled.
Filled areas can be hidden for a cleaner view or displayed separately, depending on the user settings.
Estimated wick value
The script can show an estimated wick value for each zone.
This estimate is calculated from candle volume, wick size relative to the candle range, and the approximate midpoint price of the wick. It is intended only as a relative comparison between zones.
A larger wick with higher candle volume may display a larger value than a smaller wick with lower volume. The value should not be treated as an exact measurement of real market liquidity or available orders.
How to use it
Swing Liquidity Zones is best used as a visual structure and planning tool.
Traders may compare the zones with higher timeframe direction, support and resistance, session highs and lows, VWAP, volume behavior, candle closes, market structure shifts, fair value gaps, order blocks, trend context, and invalidation levels.
A zone by itself is not a trade signal. It is an area of interest that should be reviewed together with a complete trading plan and independent confirmation.
Limitations and Disclaimer
Swing Liquidity Zones is intended for educational and analytical use only.
The indicator does not provide financial advice, investment advice, trade recommendations, entry signals, exit signals, stop loss levels, take profit levels, or guaranteed outcomes.
The zones are created from confirmed pivot candle wick areas and standard OHLCV chart data. They do not represent live exchange liquidity, order book depth, resting orders, liquidation levels, or the exact location of market participant orders.
Swing points are confirmed with delay because the script uses pivot logic. Estimated wick values depend on the quality of the symbol’s volume data and should only be used as a relative visual reference.
Trading and investing involve risk. Every trader is responsible for their own analysis, risk management, execution, and financial decisions.
指標

指標

Confluence S/R Engine - MTF Strength Map## Confluence S/R Engine - MTF Strength Map
An open-source, multi-method support and resistance zone engine that scores price areas by the agreement of independent structural, volumetric and timeframe-based signals.
---
### Why this script exists (mashup justification)
Most retail support and resistance tools use one method - pivots, or VWAP, or a volume profile POC, or Fibonacci bands. Each works in some conditions and fails in others. A pivot may have no volume behind it; a POC may sit in dead air with no structural confirmation; a Fibonacci band may coincide with nothing.
The premise of this engine is simple: a price level identified independently by several different methods, across several different timeframes, is more meaningful than the same price identified by only one method. This is the confluence principle, written formally.
To make that principle usable, this script does four things a simple mashup cannot:
1. Collects 12 different method types in one pass. Each method places a vote at a price level with an associated weight, method-type tag, and timeframe tag.
2. Clusters nearby votes within a configurable distance in ATR units, so a POC at 23,510, a swing low at 23,505 and an HTF pivot at 23,512 are treated as one zone, not three.
3. Scores each cluster on five dimensions (level quality, method diversity, timeframe diversity, recency, tightness) into a single 0-10 composite, with a small bonus when an absorption candle is also present.
4. Exports the resulting zones as numerical signals downstream Pine scripts can read as input sources, so this engine can act as a reference layer for any other strategy or visualisation you build.
The components are not just plotted side by side. They are fused. The cluster step is what justifies combining them, because clustering only adds value when you have multiple independent inputs to cluster. A single-method version of this script would not produce the same output, because the score is, by construction, a function of how many independent methods agree.
---
### What this version adds
A small set of additions tighten signal quality and make the engine more honest about its own behaviour:
- Multi-window volume consensus. The absorption-bonus (+0.5) and naked POC creation now require volume to exceed a percentile across three lookback windows using a majority-vote rule. This prevents a single-window volume spike during a regime transition from inflating a zone's score.
- Hawkes pre-kill warning. A self-exciting point process detects volatility clustering. Each bar whose absolute return exceeds about 2 standard deviations raises an intensity which decays each bar. When intensity exceeds the warning multiple of its baseline (default 3.0x), the engine flags the regime row to "DGR vol" and raises the show-threshold for new zones, so during volatility clusters the chart shows only top-tier confluence.
- Calibration tracker (descriptive only, optional panel off by default). Every qualifying zone is logged at formation. After a configurable horizon (default 10 bars), the engine checks whether price moved by at least 0.5 x ATR in the expected direction. Users who want to see the engine's measured hit-rate by score tier can turn the panel on; the tracker itself runs regardless, so EXP_* plots stay populated for downstream scripts. Past data, not a backtest, prediction, or advice.
- Compact 5-row snapshot panel. The on-chart panel shows only what a trader actually needs: top zone, bias, nearest levels (S below and R above with ATR distance), regime (zones + fortress count + health code combined), and asset. No statistics in the main panel.
---
### The 12 methods (organised by weight tier)
- Tier A (heaviest, weight 2.5): Anchored Volume Profile POC, naked (untested) historical POCs, Tier-1 anchor candle highs and lows, absorption candle highs/lows/closes, per-HTF volume-bucketed POCs.
- Tier B (weight 2.0): Value Area High and Low, recent native-timeframe swing pivots, Anchored VWAP, Fibonacci 0.618 bands.
- Tier C (weight 1.5, with HTF multiplier): Multi-timeframe pivots, so a Daily pivot weighs more than a 1-hour pivot.
- Tier D (weight 1.0): Anchored VWAP +/-1 sigma bands, Fibonacci 0.382 bands, prior swing levels.
- Tier E (lightest, weight 0.5): Anchored VWAP +/-2 sigma bands, Fibonacci 1.0 bands, HTF closes.
The anchor used by AVWAP, the volume profile and the Fibonacci bands is the most recent Tier-1 anchor candle - a candle that, by configurable percentile thresholds across three lookback windows, shows both unusually high volume and unusually wide range. This means the AVWAP and profile reset onto a new participation node rather than running indefinitely from a fixed session start.
---
### The 5-dimension scoring rubric
Each cluster scores as the sum of:
- Level quality (max 3.0) - based on the highest tier of any method in the cluster.
- Method diversity (max 2.5) - more independent method types in the cluster scores higher than the same type appearing multiple times.
- Timeframe diversity (max 2.0) - methods from more distinct timeframes (native + HTF1..HTF4) score higher.
- Recency (max 1.5) - recent methods score higher than ones from long ago.
- Tightness (max 1.0) - clusters whose constituent prices sit within a narrow ATR band score higher than wide, sloppy clusters.
Plus a +0.5 absorption bonus if an absorption candle (high volume, narrow range, mid-bar close) is part of the cluster. Total is capped at 10.
A "fortress" zone is simply a cluster whose composite score is at or above the user's fortress threshold (default 8.0). The word is a label for a high-score zone - it is not a claim about future price behaviour.
---
### How to read the chart
- Green band - support zone (cluster centre below current price).
- Red band - resistance zone (cluster centre above current price).
- Yellow-green band - support whose score is at or above the fortress threshold.
- Yellow-orange band - resistance whose score is at or above the fortress threshold.
- Bolder, more opaque band - higher composite score.
- Star glyph on the label - fortress-grade zone.
- Dot glyph on the label - cluster contains at least one absorption candle.
- Triangle up/down - currently acting as support / resistance.
- "S 8.6 (5m)" - score 8.6, built from 5 distinct method types.
The snapshot panel (top-right by default, position configurable) is a compact 5-row table showing only decision-grade information:
1. **Top Zone** - the single highest-scoring zone (price, score, direction, fortress flag).
2. **Bias** - POC imbalance state (bullish / bearish / neutral with the buy-volume percentage).
3. **Levels** - nearest support below + nearest resistance above, with distance in ATR units. Answers "what should I watch right now?" in one line.
4. **Regime** - zones count, fortress count, and data-health code in one row. Health reads "OK" if all sources are valid, "DGR" if degraded, "DGR vol" if the Hawkes warning is active, "CRIT" if no volume.
5. **Asset** - auto-detected class (Equity / Futures / Index / FX / CFD / Crypto) plus symbol.
An optional **calibration panel** can be turned on in the input group. When enabled, it shows in a separate small table the engine's measured hit-rate by score tier (4-star, 5-star, fortress, all zones) with sample size N, Wilson 95% confidence interval, and a live tracker status. Off by default to keep the chart clean. Past-only descriptive data - not a backtest, not a prediction.
---
### How to use it (intended use)
This is a decision-support and context layer. It is meant to be combined with your own entry and exit logic, your own risk management, and your own discretion.
Suggested workflows:
- As a context filter. Look at price relative to the nearest support and resistance zones before taking a setup from your usual system. Trades into a strong opposing zone are higher risk; trades away from one are lower risk.
- As a structural map. When price approaches a fortress-grade zone, expect a reaction is more likely than at a low-score zone. The reaction can be a bounce, a break, or a long consolidation - the engine does not predict which.
- As an input for other Pine scripts. Attach this engine to your chart, then in any downstream indicator or strategy you build, use input.source() to pick any of the visible plots (POC, VAH, VAL, AVWAP, sigma bands, Fib bands, HTF1-4 POCs) or any of the 28 hidden EXP_* data-window outputs as a real-time reference for your logic.
- For multi-timeframe alignment. Turn on multiple HTFs (default 60m, 4h, Daily, optionally Weekly). When zones cluster across HTF and native pivots, the score reflects that automatically.
---
### How not to use it
- Do not treat any zone as a buy or sell signal. A high-score zone is a likely reaction area; it does not tell you which direction price will go next.
- Do not use it as a standalone strategy. This engine has no entry rules, no stop rules, no position-sizing and no exit logic. It is a map, not a plan.
- Do not assume the score is a probability. It is a composite of structural evidence, not a calibrated statistical model.
- Do not rely on it alone on volumeless symbols (e.g. some spot indices). On instruments without true volume the engine auto-downgrades - the data-health row will tell you when this is the case. POC, VAH, VAL and AVWAP-based methods are weaker without volume.
- Do not back-test it as a strategy. It is an indicator and is published as such; the engine does not place trades.
---
### Key settings you might want to adjust
- Detection mode: "Percentile + Consensus" (default) is more robust; "Legacy" matches older volume x average rules if you prefer simple thresholds.
- Min strength to display: raise (e.g. 6.0) to see only the strongest zones; lower (e.g. 2.0) to see everything.
- Fortress threshold: controls when the special highlight colour appears (default 8.0).
- Auto-scale lookbacks: leave ON so the same defaults work from 1-minute intraday to 1-week swing charts. The reference timeframe is 15 minutes; everything scales from there.
- HTF1..HTF4: pick the higher timeframes meaningful to your style. Defaults are 1h, 4h, Daily and (optional) Weekly.
- Min directional ratio for bias: controls how lopsided LTF flow must be to flip the bias to bullish or bearish.
- Multi-window volume consensus: leave ON to gate the absorption bonus and naked POC creation on majority agreement across three lookback windows.
- Hawkes pre-kill: leave ON to suppress lower-score zones during volatility clusters. Default warning threshold is 3.0x baseline (less sensitive than v3.2 to avoid over-suppression on higher timeframes). Lower it for stricter behaviour, raise it to mute the filter further.
- Calibration tracker: ON by default for logging, but the panel itself is OFF by default to keep the chart clean. Turn on "Show calibration panel on chart" if you want to see the hit-rate breakdown. Horizon (default 10 bars) is how far forward each zone is followed; the minimum-move threshold (default 0.5 x ATR) is what counts as the zone being respected.
---
### Limitations you should know
- Volume dependency. Several methods (POC, VAH, VAL, AVWAP, absorption, naked POC, HTF POCs) require valid volume. On spot indices and some FX symbols there is no true volume; the data-health row will show "Degraded" or "Critical" and the engine will lean on range-based methods only.
- Anchor recency. The engine reuses the most recent Tier-1 anchor candle. If no anchor has formed in a long quiet period, the AVWAP/profile-based methods are stale and their contribution to the score falls off via the recency dimension.
- HTF latency. Higher-timeframe data only updates when each HTF closes. Until the first HTF close has occurred since chart load, HTF-based methods may show "off" in the data-health detail.
- Pivot lag is structural. Pivot detection requires pivotLen bars on each side, which means the most recent swing pivots can only be confirmed pivotLen bars after the actual high or low. This is structural, not a script bug.
- Last-bar drawing. Zone boxes redraw on the last bar each time. This is intentional - the engine shows the current zone map, not a historical map of past zones.
- Calibration is descriptive only. The optional panel reports past outcomes using a fixed rule (move of at least 0.5 x ATR within N bars). It is not a backtest, prediction, or strategy result, and does not include costs or slippage.
- Hawkes warning is a suppression layer, not a market call. When the engine enters the pre-kill state, it raises the show-threshold by 1.5 (capped at the fortress level) until volatility intensity returns to baseline. Risk control, not a "market is about to reverse" signal.
- Not a strategy. No trades, no equity curve, no backtest.
---
### Alerts (10 included)
01 Tier-1 anchor formed. 02 Absorption anchor formed. 03 Price crossed POC. 04 Price crossed VA edge. 05 Price entered top zone. 06 Price broke top zone. 07 Fortress zone interaction. 08 POC bias flipped. 09 Nearest S/R crossed. 10 Data health changed. All alerts use barstate.isconfirmed so they do not repaint.
---
### Outputs for downstream scripts
In addition to the visible chart plots, the engine exposes hidden EXP_* series (visible in the Data Window) so other Pine scripts can read its state. These cover the top zones (price, score, direction, fortress flag), the synthesised top-zone summary, POC bias and buy-ratio, nearest support and resistance prices and their ATR distances, fortress count, and event pulses (zone entered, zone broken, bias flipped, data-health changed, Tier-1 anchor formed).
To use them from another script of your own: attach this engine to the chart, then in your downstream script create an input.source(close, "S/R source") field and select any EXP_* series from the dropdown.
---
### Chart, symbol and timeframe (for clarity)
The publication chart shows this engine running on its own, with no other indicators or drawings present. The chart watermark shows the symbol and timeframe at the top of the chart. The engine's own snapshot table (top-right) additionally displays the detected asset class and the active ticker, so users can confirm what they are looking at.
---
### Disclaimer
This script is published for educational and informational purposes only. It is not investment advice, not a recommendation to buy, sell or hold any instrument, and not a solicitation to trade. Past behaviour of any pattern, level, signal or zone shown by this script does not guarantee future results. Trading involves substantial risk of loss and may not be suitable for every investor. You alone are responsible for your trading decisions, position sizing, risk management and capital. Before committing real money, please do your own research and consider speaking with a qualified, locally-licensed financial professional.
The optional calibration panel (off by default) is descriptive only. It reports past outcomes using a fixed rule. It is not a backtest, prediction, or probability, and does not account for transaction costs or slippage.
Open-source. Released under the Mozilla Public License 2.0 (TradingView default). Feedback and constructive comments are welcome.
指標

Confluence Zone Engine [CZE]# Confluence Zone Engine
A structural analysis indicator that identifies support and resistance zones by clustering Anchored VWAPs and Anchored Volume Profile levels across the chart timeframe and up to three higher timeframes. Each zone is rated 1 to 5 stars based on how many independent sources cluster at the level and how diverse those sources are.
This is a structural analysis tool. It marks where multiple independent technical references agree at a price. It does not place trades or suggest entries, exits, targets, stops, or position sizes.
---
## What this script does
The engine runs a six-stage pipeline on every confirmed bar:
**Stage 1 — Pivot detection.** Detects pivot highs and pivot lows at Fibonacci-spaced lengths (3, 5, 8, 13, 21, 34, 55, 89). Each pivot becomes an "anchor" point. Default enabled tiers are 8, 21, and 34 — selected to give fast / medium / slow coverage without redundancy. The full Fibonacci set is configurable.
**Stage 2 — Per-anchor calculations.** For every anchor, the engine maintains:
- An Anchored VWAP (volume-weighted average price since the anchor bar)
- An Anchored Volume Profile, which produces a Point of Control (POC = most-traded price since anchor) and a Value Area (VAH and VAL = upper and lower edges of the 70% volume zone)
So a single pivot generates up to 4 contributor levels: AVWAP, POC, VAH, VAL.
**Stage 3 — Higher-timeframe replication.** The same pipeline (stages 1 and 2) re-runs on up to three configurable higher timeframes via non-repainting `request.security` calls. This produces a multi-timeframe view of structural anchors — pivots and AVWAPs from a 1H chart inform what the 5m engine treats as a higher-timeframe reference.
**Stage 4 — Cluster building.** All contributor levels from all enabled timeframes are collected. The cluster builder walks them in price order, merging any that fall within a configurable tolerance (default 0.08% of current price; preset-adjusted per asset class). A cluster with at least the minimum-count threshold becomes a candidate zone.
**Stage 5 — Star rating.** Each zone is rated 1 to 5 stars based on:
- Total contributor count
- Source-type diversity (how many of the 4 source categories — PH-AVWAPs, PL-AVWAPs, POCs, VAH/VAL — are present)
- HTF agreement (whether contributors from multiple timeframes align)
A "Premium" tier flag fires when top stars combine with HTF agreement.
**Stage 6 — State machine.** Each zone is tracked through a lifecycle:
- **Active** (forming, amber): the zone is currently accumulating contributors
- **Pending** (blue): contributor activity has paused; waiting for price to resolve the level
- **Resolved Support** (green), **Resistance** (red), or **Chop** (gray): determined by whether price moved decisively up, decisively down, or stayed range-bound after the zone activated
- **Tested** (dashed border): price entered the resolved zone but has not closed past the defending edge
- **Broken** (dashed orange + "Broken" label): price has closed past the defending edge
- **Flipped**: if a Broken state confirms over multiple closes past a threshold, the zone repaints to the opposite role (broken Resistance becomes Support, broken Support becomes Resistance)
---
## Why this indicator is original (not a simple mashup)
This is not "AVWAP indicator + Volume Profile indicator + multi-timeframe wrapper." Three design choices distinguish it from existing public indicators:
**1. Anchored at every Fibonacci pivot, not at a single user-selected point.** Standard AVWAP indicators require the user to manually click an anchor point. Standard Volume Profile indicators use either a fixed session or a single anchor. This engine automatically detects pivots at multiple Fibonacci lengths and runs an AVWAP + Volume Profile from each one. The number of active anchors at any time is typically 6 to 20, generating 24 to 80 contributor levels — far more than a manually-anchored tool can produce.
**2. Cross-timeframe clustering, not separate per-timeframe overlays.** The engine does not draw 5 separate AVWAPs from a 1H chart, plus 5 from a 4H, plus 5 from a daily. Instead, levels from all timeframes are collected into one pool and clustered in price space. A 1H AVWAP at 23,720 and a daily POC at 23,718 merge into a single zone marked as "two contributors from two timeframes." This produces structural information neither timeframe shows alone.
**3. Compositional bias from the contributor mix.** The cluster builder records *which type* of contributor formed each zone — pivot-high AVWAPs (trapped sellers' breakevens), pivot-low AVWAPs (trapped buyers' breakevens), POCs (acceptance), VAH or VAL (fair-value edges). The directional implication of each type is summed into a "compositional bias" score. A zone built mostly from PL-AVWAPs and VAL contributions leans support; one built from PH-AVWAPs and VAH contributions leans resistance. This is an analytical lens not present in standard S/R indicators, which generally treat all levels as direction-agnostic.
---
## Mashup justification — how the components work together
The four classes of technical analysis used (pivots, AVWAP, Volume Profile, multi-timeframe analysis) are not chosen arbitrarily. Each contributes a dimension the others do not, and the value comes from how they interact:
**Pivots provide the anchors.** Without pivots, AVWAP needs a manual anchor and Volume Profile needs an arbitrary session. Pivots at multiple Fibonacci lengths give the engine *automatic structural anchors* spanning timescales — short-term swings, intraday swings, session-level swings. The Fibonacci spacing (3, 5, 8, 13, 21, 34, 55, 89) ensures the anchors are non-redundant: each tier has a different bar requirement and catches different swings.
**AVWAP measures participant breakeven from each anchor.** This is the "where might trapped participants defend" dimension. An AVWAP from a pivot high is the volume-weighted breakeven for everyone who entered after that high (mostly net-short positions). An AVWAP from a pivot low is the breakeven for everyone who entered after that low (mostly net-long). When price returns to one of these AVWAPs, structurally those participants are at breakeven and have incentive to act.
**Volume Profile measures acceptance from each anchor.** This is the "what price has been most-accepted by volume" dimension. POC is the most-traded price; VAH/VAL are the edges of the 70%-volume range. AVWAP and POC measure different things — average price vs most-accepted price — and frequently disagree. When they *do* agree at a level, that's two independent signals saying "this price matters."
**Multi-timeframe replication tests for structural agreement.** A zone that exists only on the chart timeframe is one-timeframe noise. A zone where chart-TF contributors *agree with* higher-TF contributors at the same price is structural — the same level shows up no matter which timescale you measure from. The engine treats HTF agreement as a primary input to the star rating: HTF-aligned zones can earn an extra star (capped to prevent inflation).
**The clustering is where the value emerges.** Individually, none of these components produce reliable levels. AVWAP gets broken constantly. POC migrates. Pivot levels get violated. But when the engine sees that the 21-pivot AVWAP, the 34-pivot POC, the 8-pivot VAL, and a 1H AVWAP all land within 0.08% of each other at the same price, that's a confluence of independent references measuring different things — and that *coincidence* is what produces structural significance. The star rating quantifies how much agreement is present.
This is the mashup's purpose: not to combine indicators for their own sake, but to use convergence as a filter that turns individually noisy components into a rated structural signal.
---
## How to use the indicator
**Step 1: Apply to any chart timeframe.** All settings have sensible defaults. The asset-class preset (NSE Index Futures, NSE Stock, US Future, US ETF, US Stock, Commodity, Crypto, or Custom) auto-adjusts cluster tolerance and pivot defaults. Auto-selected higher timeframes scale with the chart — a 5m chart defaults to 15m/60m/240m HTFs, while a daily chart defaults to weekly/monthly HTFs.
**Step 2: Read the status panel (bottom-right).** This is the actionable summary:
- "Sup" row: nearest resolved Support below current price, with point distance
- "Res" row: nearest resolved Resistance above current price, with point distance
- "Top zone": the highest-rated zone overall
- "Data": indicator health (OK / Degraded / Critical) — if the underlying volume data is sparse, ratings are capped
**Step 3: Scan the chart for "Broken" labels.** Any zone in dashed orange with a "Broken" label is currently being violated. Watch for either recovery (border returns solid) or polarity flip confirmation (zone repaints to opposite role).
**Step 4: Find the active amber zone.** This is the current forming confluence. Look at the triangle shape: ▲ means the composition leans support, ▼ means it leans resistance, ◆ means neutral. The number next to the triangle is the star rating. A premium "★" prefix means HTF agreement is present.
**Step 5: Use the Major S/R lines as forward references.** Bold horizontal lines mark the top 2 strongest support levels below current price and top 2 strongest resistance levels above. Labels show price, stars, and distance.
**Step 6: Use the Range band as context.** The translucent aqua band marks the recent trading envelope (default last 50 bars). A narrow band means consolidation; a wide band means trending.
**Step 7: Hover any element for the full breakdown.** Every box, triangle, and line has a tooltip showing total contributors, type counts, HTF alignment, state, and history.
---
## How NOT to use the indicator
- **Do not treat the bias arrow as a trade signal.** It is a compositional description of contributors, not a directional forecast. A zone with a ▲ bias can still resolve as resistance.
- **Do not treat a "Broken" label as a trade trigger.** It tells you a known level is failing — not that you should enter a position in either direction.
- **Do not assume higher stars mean higher profit probability.** Stars measure the diversity and density of contributors, not historical performance or expected return.
- **Do not rely on it for low-volume instruments.** If the data-health badge shows "Degraded" or "Critical," the engine has capped ratings and may suppress zones entirely. This is a feature; the indicator is most accurate on liquid, volume-rich instruments (index futures, large-cap stocks, major crypto).
---
## How to read the star rating
Stars are a descriptive summary of confluence quality. They are not a probability of profit.
- 1 to 2 stars: minimum cluster; one or two source types. Background context.
- 3 stars: at least 5 contributors with 2 or more source types. Recurring intraday levels.
- 4 stars: at least 7 contributors with 3 or more source types, OR 3-star with HTF agreement.
- 5 stars: at least 10 contributors with all 4 source types present. Often boosted by HTF alignment.
By default, only 4-star and 5-star zones get triangle markers and qualify for Top-N or Major S/R lines. This is adjustable.
---
## Visual primitives
- **Confluence zones** — colored boxes marking each cluster. Boxes recolor as zones resolve. Border style indicates compromised state.
- **Triangle markers** — ▲ ▼ ◆ at each formation bar. Shape encodes direction. Color encodes lifecycle state.
- **Top-N S/R lines** — top 4 resolved zones by strength and recency project forward.
- **HTF confluence bands** — semi-transparent bands per higher timeframe (cyan, purple, orange).
- **Major S/R lines** — bold lines for top 2 supports below and top 2 resistances above current price.
- **Range band** — translucent band marking recent trading range with HI / LO labels.
- **Current price line** — thin dotted line at current price.
- **Status panel** — bottom-right summary.
---
## Technical notes
- Pine Script v6
- Non-repainting: all `request.security` calls use `barmerge.lookahead_off`
- Asset-class presets adjust cluster tolerance and pivot defaults
- Built-in data-integrity layer caps ratings when volume data is sparse or stale
- Seven alert conditions: new zone formed, high-quality (4 to 5 star) zone, HTF aligned, price entered support, price entered resistance, data health degraded, polarity flip
---
## Important risk disclosure
This indicator is provided for educational and informational purposes only and is not financial advice. Trading and investing involve substantial risk of loss, including the possible loss of all invested capital. The zones, ratings, bias shapes, and lines are descriptive summaries of structural confluence — they are not predictions of future price movement, indications of profitability, win rate, or expected return.
No backtested or hypothetical performance is claimed or implied. Past zones identified by the indicator are not indicative of future results.
You are solely responsible for any decisions you make. Consult a qualified, licensed financial advisor before trading. Past performance does not guarantee future results.
指標

指標

指標

VWSR Zones By AcrofinsVWSR Zones — Acrofins Edition
A volume-weighted support/resistance engine with break/retest signals, a configurable risk-management overlay, and a session-aware money manager. Built to make discretionary price-action trading more structured and less reactive.
What this indicator does
Most "support and resistance" tools draw lines at every minor swing high or low and leave you to decide which ones matter. This indicator does the prioritization for you.
Every time price makes a pivot (a swing high or swing low), the indicator scores that pivot based on how much volume traded into it and how strongly price reacted after it formed. High-volume pivots with sharp reactions get high scores; thin-volume pivots with weak reactions get low scores. Nearby pivots get clustered into zones, and each re-touch of a zone strengthens it further. Zones decay in importance as they age, and the weakest ones get pruned so the chart stays clean.
The result is a small set of ranked, weighted S/R zones — typically 4–8 active at any time — instead of dozens of unprioritized lines. Zones are fully price-anchored and extend to the right of the chart so they move naturally with every scroll and pan.
On top of the zone engine sits a complete trade-management layer: break detection, retest detection, automatic SL/TP/break-even levels, a higher-timeframe trend filter, an intraday-only mode, a daily loss cap, and a real-time dashboard.
Key features at a glance
Zone engine
Volume-weighted pivot scoring (0–100 scale)
Adaptive zone clustering with ATR-padded merge
Touch counter (each retest reinforces the zone)
Age decay so old zones lose relevance gracefully
Auto-pruning when the active count exceeds your cap
Conviction scale displayed on each zone label (●●○○○ through ●●●●●)
Color intensity reflects conviction — bold solid fill for strong zones, soft transparent fill for weak zones
Signals
Break ▲ / Break ▼ detection with optional close-past-zone confirmation
Retest ▲ / Retest ▼ queue tracking up to 6 broken zones in parallel (most indicators only track the most recent)
Counter-trend tagging ⚠ when a signal fires against the higher-timeframe trend
Optional volume floor and volume cap filters (gap-day protection)
Optional momentum filter (×ATR candle range)
Risk management
Four built-in presets (Conservative, Balanced, Aggressive, Scalping) plus full Custom
ATR-based SL with optional zone-aware override
Three take-profit targets with R-multiple targeting
Break-even trail after TP1
Optional intraday-only mode that blocks late entries and force-closes positions
Money manager
Currency-symbol and number-notation configurable (works globally — Western K/M/B or Indian K/L/Cr)
Per-trade risk in your account currency
Daily loss cap that blocks new entries once hit
Lot-aware sizing for futures/options (configurable lot size)
Session and lifetime P&L tracking
Higher-timeframe context
Configurable HTF (default 1H) with fast/slow EMA classification
Trend direction (Bullish / Bearish / Neutral) shown in dashboard
Counter-trend signals flagged with ⚠ symbol
Optional hard-block of counter-trend entries
Operational
Instrument-type auto-detect (Index vs Single Stock) with adaptive filter defaults
Session filter with configurable timezone
Optional weekly expiry-day filter for derivatives traders (useful for NSE, CBOE)
Persistent statistics across input changes (W/L, Win Rate, Avg R, BE saves)
Theme-adaptive colors (light & dark) with WCAG AA contrast
JSON webhook format for alerts (for automation pipelines)
How it works under the hood
1. Pivot scoring
When a swing high (resistance pivot) or swing low (support pivot) confirms, three score components are computed:
Base score (10 points) — every pivot starts with a baseline
Volume score (0–40 points) — ratio of pivot-bar volume to recent average volume
Reaction score (0–30 points) — how far price moved away from the pivot in the next N bars, measured in ATR
Total raw score is capped at 100. Conviction is shown on each zone label as a dot scale:
Scale
Tier
Score range
●●○○○
Weak
< 30
●●●○○
Medium
30–60
●●●●○
Strong
60–85
●●●●●
Elite
85+
Zone fill color intensity matches the conviction tier — Elite zones are bold and opaque; Weak zones are soft and transparent. This lets you read zone importance at a glance without needing to check labels.
2. Zone clustering
If a new pivot is within Zone Merge Distance × ATR of an existing zone of the same type, it merges into that zone instead of creating a new one. The merge expands the zone bounds (with ATR padding maintained), increments the touch counter, and adds a fraction of the new pivot's score plus a touch bonus.
If no nearby zone exists, a new zone is created with ATR-padded bounds (±0.15 × ATR).
3. Decay and cleanup
Every confirmed bar, all zone scores decay slightly (rate controlled by Age Decay Rate). Zones are removed when they get too old, too weak, or have been broken without retest for too long. If the active zone count exceeds Max Active Zones, the weakest one is pruned.
4. Break detection
A bullish break fires when price closes above a resistance zone's top (optionally requiring close to exceed by X × ATR). A bearish break fires on the symmetric condition. Optional filters require minimum volume, maximum volume (gap protection), and minimum candle range.
When multiple zones break on the same bar, the higher-scored zone wins — so you get the most meaningful signal, not a random one.
5. Retest detection
After a break, the indicator watches for price to return and test the broken zone (which has flipped role — broken resistance becomes support and vice versa). A valid retest requires:
Price touched the zone within the configured retest window
Price bounced off the zone by at least Min Retest Reaction × ATR
Bounce close is on the right side of the zone
A queue tracks up to 6 broken zones in parallel — so retests of zones broken several signals ago aren't lost.
6. Trade lifecycle
When risk management is enabled and a signal fires (and no position is currently active), an entry is taken at the close of the signal bar. SL is placed using your configured preset (ATR-based or zone-aware). Three TPs are spaced at R-multiples of the SL distance.
The trade is tracked bar-by-bar:
Each TP fires once (first-touch latching)
After TP1, SL trails to break-even (configurable)
Trade closes when SL is hit, TP3 is hit, or (in intraday mode) the force-close time is reached
A 1/3 + 1/3 + 1/3 partition model computes realized R-multiple at close
Abbreviations explained
Abbrev
Meaning
S/R
Support / Resistance
VWSR
Volume-Weighted Support / Resistance
ATR
Average True Range — a volatility measure
EMA
Exponential Moving Average
HTF
Higher Timeframe (e.g., when chart is 5m, HTF might be 1H)
SL
Stop Loss — the price at which you accept the trade is wrong
TP
Take Profit (TP1, TP2, TP3 = three profit targets)
BE
Break-Even — SL moved to entry price after TP1
R
Risk unit — distance from entry to original SL
R:R
Risk-to-Reward ratio
W/L
Wins / Losses
CT
Counter-Trend (signal direction conflicts with HTF trend)
F&O
Futures & Options
CE / PE
Call / Put (Indian markets terminology)
OHLC
Open, High, Low, Close
Settings groups walkthrough
⚙️ Main Settings — Pivot Lookback, Max Active Zones, Zone Merge Distance, Min Score to Display.
🎯 Instrument Preset — Auto-detect (recommended) identifies Index vs Single Stock from the ticker. Indices use looser volume filters; single stocks get tighter defaults with gap-day protection.
📈 HTF Trend Filter — Two-EMA trend classifier on a higher timeframe. Counter-trend signals get tagged ⚠. Can flag or hard-block counter-trend entries.
🕒 Session & Expiry — Configurable session window (timezone-aware). Optional weekly expiry-day filter for derivatives traders.
🌙 Intraday-Only Mode — Entry cutoff time and force-close time. Useful for strict day-traders who want an automatic guardrail.
📦 Zone Detection — ATR length, volume lookback, reaction window, age decay, max zone age.
🔍 Filters — Volume floor, volume cap (gap protection), momentum filter, mitigation filter, close-past-zone filter.
🎯 Signals — Toggle Break/Retest signals, configure retest window, set minimum retest reaction.
🛡️ Risk Management — Choose preset or Custom. Presets:
Conservative: SL 2.5×ATR, TP 1R/2R/4R
Balanced (default): SL 1.5×ATR, TP 1R/2R/3R
Aggressive: SL 1.0×ATR, TP 1.5R/2.5R/4R
Scalping: SL 0.8×ATR, TP 0.8R/1.5R/2R
💰 Money Manager — Account capital, per-trade risk %, daily loss cap %, currency symbol, number notation, lot-aware sizing.
🎨 Visual — Theme, zone visibility, label visibility, watermark, font sizes.
📊 Dashboard — Toggle, position, stats display, reset counter.
🔔 Alerts — Toggle per-event alerts. JSON webhook format available for automation.
Visual elements on the chart
Zones — Price-anchored colored boxes extending to the right edge of the chart. Resistance zones in the bear color, support zones in the bull color. Fill opacity reflects conviction tier — ●●●●● Elite zones are bold and solid; ●●○○○ Weak zones are faint and transparent. Zones move naturally with the chart in all directions.
Zone labels — Dot-scale conviction badge, numeric score, touch count, and broken flag. Examples:
●●●○○ 45 — medium zone, score 45
●●●●● 91 ×3 — elite zone with 3 touches
●●●●○ 67 ✕ — strong zone that has been broken
Break ▲ / Break ▼ markers — Labels at the signal candle. Bullish breaks appear below the bar pointing up; bearish breaks above the bar pointing down. Counter-trend breaks tinted amber with ⚠.
Retest ▲ / Retest ▼ markers — Same style as breaks but for retest signals.
Force-close markers — ⏰ FORCE CLOSE on the bar where the intraday cutoff fired.
SL/TP/Entry lines — Five lines from the entry bar: Entry (dotted blue), SL (solid red, dims to translucent when BE active), TP1/TP2/TP3 (dashed green, turns solid cyan with ✓ on hit). Labels show price, % distance from entry, and optional money risk.
Dashboard — Live state table including zone trend, HTF trend, signal, score, active zone count, session status, live trade levels, risk metrics, daily P&L, and lifetime stats.
Recommended usage
Day-trading (5m–15m chart): Lookback 5–10, HTF 60 or 240, Intraday-only ON, Balanced or Scalping preset.
Swing trading (1H–4H chart): Lookback 10–15, HTF D, Intraday-only OFF, Conservative or Balanced preset.
Position trading (D chart): Lookback 15–25, HTF W, Intraday-only OFF, Conservative preset.
Indices (NIFTY, BankNIFTY, SPX, NDX etc.): Use Auto-detect or Index preset. Volume filters auto-relax. HTF filter is especially useful — indices respect macro trends more consistently than individual stocks.
Single stocks: Use Auto-detect or Single Stock preset. Gap-day protection on. Volume cap prevents false breaks on news spikes.
Alerts
All alerts are bar-close based (no intra-bar firing). Available events:
🟢 Break ▲ / 🔴 Break ▼
🟢 Retest ▲ / 🔴 Retest ▼
🛑 SL Hit / 🛡️ Break-Even Stop-Out
🎯 TP1 Hit / TP2 Hit / TP3 Hit
🛡️ Break-Even Activated
⏰ Intraday Force-Close
🚫 Daily Loss Cap Hit
⚠ Counter-Trend Signal
Toggle JSON webhook format for automation pipelines. Each break/retest alert includes ticker, price, score, SL, TP1/TP2/TP3, R:R, and counter-trend flag.
Notes on data assumptions
No repaint — signals confirm on bar close. HTF trend uses lookahead_off so the HTF reference never includes future data.
No backtest engine — the W/L stats are based on the indicator's own simulated entries. Useful for sanity-checking parameters, not for performance verification. Run a proper strategy backtest before sizing real money.
Money tracking is theoretical — P&L is computed as R-multiple × per-trade money risk. It does not model slippage, commissions, taxes, or option premium decay.
Disclaimer
This is a technical analysis tool, not financial advice. The signals and risk levels generated are based on historical price action and the indicator's own logic; they do not predict future results. Past performance of any signal pattern does not guarantee future performance. Trading involves substantial risk of loss. Use this tool to structure your own decisions, not to replace them. Always size positions according to your risk tolerance and verify levels independently before acting.
VWSR Zones — Acrofins Edition · v2.0.0 · Acrofins (Kiva Financial Services Pvt. Ltd.) 指標

指標

Pullback Sniper Method [trade_w_samet]🎯 Pullback Sniper Method
Pullback Sniper Method is a free open-source pullback, breakout, and trade-visualization indicator designed to help traders analyze structured trend-continuation setups directly on the price chart.
This script combines:
📈 EMA-based trend context
🚀 breakout detection
🎯 pullback confirmation logic
✅ Fast / Balanced / Strict confirmation modes
🧠 optional McGinley and RSI filters
📦 ATR-based TP/SL projection boxes
🎯 TP1 / TP2 / TP3 tracking
🛑 SL tracking
🏷️ result labels
⭐ signal quality tooltip information
📊 statistics table
💎 premium-style dashboard
🎨 multiple visual themes
🚨 alert conditions
The goal of Pullback Sniper Method is not to predict the future or provide guaranteed buy/sell instructions.
Its purpose is to help users visually study:
⚡ trend continuation behavior
🎯 pullback quality
📈 breakout-following structure
🧠 confirmation strength
📦 projected risk/reward zones
📊 historical visual outcomes
💎 dashboard-based system feedback
🚨 alert-based monitoring
Pullback Sniper Method should be treated as a structured chart-analysis and educational decision-support tool, not as financial advice, not as an automated trading system, and not as a guarantee of profitable results.
━━━━━━━━━━━━━━━━━━━━━━
🔓 OPEN-SOURCE PUBLICATION NOTE
━━━━━━━━━━━━━━━━━━━━━━
This script is published as an open-source educational and visual market-analysis tool.
The source code is visible so users can inspect, review, understand, and learn from the logic.
The description is intentionally detailed because many users do not inspect every part of the Pine Script code line by line.
The purpose of this page is to explain:
✅ what the script does
✅ how the main logic works
✅ how signals are created
✅ what the trend engine checks
✅ how pullbacks are validated
✅ how confirmation modes differ
✅ how TP/SL projections are drawn
✅ how historical trade visuals are managed
✅ what the statistics table means
✅ what the premium dashboard means
✅ what the quality score tooltip represents
✅ what the limitations are
✅ how the indicator should and should not be used
Pullback Sniper Method is designed to support structured analysis.
It does not promise profitable results.
It does not remove market risk.
It does not execute trades.
It does not place broker orders.
It should not be used as a blind buy/sell system.
It is best used as a visual framework for reviewing trend, breakout, pullback, confirmation, and projected risk/reward behavior.
━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━
At a high level, Pullback Sniper Method does the following:
📈 Calculates a trend engine using Fast EMA, Slow EMA, and EMA slope.
🚀 Detects breakout conditions after trend alignment.
🎯 Waits for price to pull back toward the Pullback EMA.
✅ Confirms entries using Fast, Balanced, or Strict confirmation logic.
🧠 Applies optional McGinley Dynamic distance filtering.
📊 Applies optional RSI directional filtering.
🧊 Uses a cooldown system to reduce signal clustering.
📦 Draws ATR-based TP/SL projection boxes.
🎯 Tracks TP1, TP2, TP3, and SL visually.
🏷️ Displays active TP labels and final result labels.
🗂️ Keeps historical TP/SL visuals on the chart.
⭐ Displays a Quality Score only inside the STRONG label tooltip.
📊 Builds a statistics table for TP1, TP2, TP3, SL, Total, and Win Rate.
💎 Builds a premium dashboard with deeper internal performance metrics.
🎨 Includes three visual themes.
🚨 Includes alert conditions for strong signals and trade outcomes.
This makes the script more than a simple signal label tool.
It is a complete pullback-analysis framework built around trend context, breakout confirmation, pullback behavior, ATR-based visual planning, and historical result review.
━━━━━━━━━━━━━━━━━━━━━━
🧠 CORE IDEA
━━━━━━━━━━━━━━━━━━━━━━
The core idea behind Pullback Sniper Method is simple:
A trend continuation setup should not be judged from one isolated candle.
A single breakout, one EMA touch, one candle close, or one label is usually not enough by itself.
Market context matters.
For that reason, Pullback Sniper Method combines several layers:
📈 trend alignment
🚀 breakout structure
🎯 pullback location
✅ confirmation candle behavior
📏 ATR-based distance filtering
🧠 optional McGinley distance filtering
📊 optional RSI direction filtering
📦 projected TP/SL structure
📊 visual statistics
💎 dashboard feedback
The indicator does not attempt to mark every possible move.
Instead, it attempts to make pullback-based trend continuation conditions easier to read, compare, and review.
The purpose is not to create more signals.
The purpose is to make signal conditions more structured and understandable.
━━━━━━━━━━━━━━━━━━━━━━
🧩 WHY THIS SCRIPT IS NOT A SIMPLE BUY/SELL INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method is not intended to behave like a simple “buy here / sell here” script.
It is built as a structured workflow:
Trend Engine
→ Breakout Detection
→ Pullback Wait
→ Confirmation Mode
→ Optional Filters
→ STRONG Signal Label
→ Quality Tooltip
→ TP/SL Projection
→ Active Trade Visualization
→ Result Tracking
→ Statistics Review
→ Dashboard Review
→ Alerts
Each part has a specific role.
📈 The Trend Engine defines directional context.
🚀 The Breakout Engine identifies fresh movement beyond recent highs or lows.
🎯 The Pullback Engine waits for price to return toward the pullback EMA.
✅ The Confirmation Engine decides whether the reaction is strong enough.
🧠 The optional filters reduce signals that do not meet additional conditions.
⭐ The Quality Score tooltip gives extra signal context without changing the signal.
📦 The TP/SL boxes provide projected visual structure.
📊 The statistics table summarizes historical visual outcomes.
💎 The dashboard gives a broader state and performance-style overview.
🚨 The alert system helps monitor the script without constantly watching the chart.
This makes the script a full review environment, not a one-condition signal tool.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW THE SCRIPT WORKS
━━━━━━━━━━━━━━━━━━━━━━
📈 TREND ENGINE
The Trend Engine is based on three key components:
⚡ Fast EMA
🐢 Slow EMA
📐 Fast EMA slope
The default structure uses:
Fast EMA = 50
Slow EMA = 200
Pullback EMA = 21
Slope Lookback = 5
For bullish context, the script checks whether:
🟢 Fast EMA is above Slow EMA
🟢 Price is above Slow EMA
🟢 Fast EMA is rising compared to previous bars
For bearish context, the script checks whether:
🔴 Fast EMA is below Slow EMA
🔴 Price is below Slow EMA
🔴 Fast EMA is falling compared to previous bars
This helps the script avoid treating every price move as a valid pullback opportunity.
The trend engine creates the directional foundation for the rest of the logic.
━━━━━━━━━━━━━━━━━━━━━━
🚀 BREAKOUT ENGINE
━━━━━━━━━━━━━━━━━━━━━━
After trend alignment is detected, the script looks for a breakout.
For bullish setups, price must close above the recent breakout high.
For bearish setups, price must close below the recent breakout low.
The breakout engine uses:
🚀 Breakout Lookback
🛑 Invalidation Lookback
🔥 Minimum Breakout Body / ATR
The breakout candle must also have enough body size relative to ATR.
This is important because very small breakouts can create low-quality setup conditions.
The breakout does not immediately create a STRONG label.
Instead, it activates a setup state.
After that, the script waits for a pullback.
━━━━━━━━━━━━━━━━━━━━━━
🎯 PULLBACK SETUP ENGINE
━━━━━━━━━━━━━━━━━━━━━━
Once a breakout setup is active, the script waits for price to return toward the Pullback EMA.
For a bullish setup:
🟢 Price must pull back toward the Pullback EMA.
🟢 The setup must not be invalidated.
🟢 Enough bars must have passed after breakout.
For a bearish setup:
🔴 Price must pull back toward the Pullback EMA from the opposite direction.
🔴 The setup must not be invalidated.
🔴 Enough bars must have passed after breakout.
The script also includes a maximum number of bars to find the pullback.
If no valid pullback appears within that window, the setup expires.
This prevents old breakout conditions from staying active forever.
━━━━━━━━━━━━━━━━━━━━━━
✅ CONFIRMATION ENGINE
━━━━━━━━━━━━━━━━━━━━━━
After a valid pullback touch, the script waits for confirmation.
There are three confirmation modes:
⚡ Fast
⚖️ Balanced
🛡️ Strict
⚡ Fast Mode
Fast mode is the earliest and simplest confirmation style.
It checks whether price closes back in the expected direction relative to the Pullback EMA.
This mode can react faster but may produce more noise.
Useful for:
• faster review
• active chart monitoring
• lower-timeframe analysis
• users who prefer earlier signals
⚖️ Balanced Mode
Balanced mode is the default middle-ground profile.
It requires directional candle behavior and also considers either a break of the previous candle level or wick/rejection behavior.
This helps the signal feel more structured than a basic close-based trigger.
Useful for:
• general chart review
• balanced signal frequency
• intraday analysis
• users who want neither too many nor too few signals
🛡️ Strict Mode
Strict mode is the most selective confirmation profile.
It requires stronger candle body behavior and a more decisive close.
This can reduce signal frequency.
Useful for:
• cleaner setups
• fewer signals
• higher selectivity
• users who prefer stricter confirmation
Important note:
A stricter mode does not guarantee better future outcomes.
It only applies stricter internal confirmation logic.
━━━━━━━━━━━━━━━━━━━━━━
📏 ATR-BASED DISTANCE FILTERING
━━━━━━━━━━━━━━━━━━━━━━
ATR is used in several areas of the script.
The script uses ATR to evaluate:
📌 breakout body strength
📌 confirmation candle body strength
📌 entry distance from Pullback EMA
📌 stop-loss projection distance
📌 TP/SL visual structure
The Max Entry Distance / ATR setting helps block entries that are too far away from the Pullback EMA.
This is important because a pullback system generally works best when the signal appears close enough to the pullback reference area.
If price runs too far away before confirmation, the setup may become less efficient from a risk/reward perspective.
━━━━━━━━━━━━━━━━━━━━━━
🧠 MCGINLEY DYNAMIC FILTER
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes an optional McGinley Dynamic filter.
The purpose of this filter is to avoid signals that appear too close to the McGinley Dynamic line.
This distance is measured using ATR.
When enabled, the script checks whether price has enough distance from the McGinley line.
This can help reduce low-quality signals in crowded or compressed areas.
The McGinley filter is optional.
Users can turn it off if they prefer to use only the main trend/pullback logic.
━━━━━━━━━━━━━━━━━━━━━━
📊 RSI DIRECTION FILTER
━━━━━━━━━━━━━━━━━━━━━━
The script also includes an optional RSI direction filter.
When enabled:
🟢 Long signals require RSI to be above the selected long threshold.
🔴 Short signals require RSI to be below the selected short threshold.
By default, the RSI filter is turned off.
This keeps the base system cleaner and allows users to decide whether they want additional oscillator-style directional filtering.
The RSI filter should be treated as context, not as a guarantee.
━━━━━━━━━━━━━━━━━━━━━━
🧊 SIGNAL COOLDOWN SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes a cooldown system to prevent signals from appearing too close to each other.
After a signal appears, the script waits for the selected number of bars before allowing another signal.
This helps reduce visual clutter and prevents the chart from printing too many labels in a short period.
The cooldown system is especially useful on lower timeframes or volatile assets.
━━━━━━━━━━━━━━━━━━━━━━
💪 STRONG SIGNAL LABELS
━━━━━━━━━━━━━━━━━━━━━━
When all required conditions align, the script can display a STRONG label on the chart.
A STRONG label appears only after the script detects:
📈 valid trend context
🚀 valid breakout setup
🎯 valid pullback touch
✅ valid confirmation
🧠 optional filter approval
🧊 cooldown approval
📦 no active trade conflict
The STRONG label does not mean the future outcome is guaranteed.
It simply means the script’s internal conditions aligned at that point.
━━━━━━━━━━━━━━━━━━━━━━
⭐ QUALITY SCORE TOOLTIP
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes a Quality Score tooltip on the STRONG label.
This score does not filter signals.
It does not change entries.
It does not block or approve trades.
It is only informational.
To view it, hover your mouse over the STRONG label.
The tooltip can show:
⭐ Quality Score
🌟 Star rating
📌 Direction
📈 Trend alignment
🔥 Body / ATR ratio
📍 EMA Distance / ATR
Example tooltip:
Quality Score: 82/100 ⭐⭐⭐⭐ | Quality: HIGH | Direction: LONG | Trend: Bullish | Body/ATR: 0.48 | EMA Distance/ATR: 0.32
Star guide:
⭐⭐⭐⭐⭐ = very strong internal quality
⭐⭐⭐⭐ = high internal quality
⭐⭐⭐ = good internal quality
⭐⭐ = medium internal quality
⭐ = lower internal quality
Important note:
A score of 82 does not mean there is an 82% chance of winning.
The score only summarizes internal signal quality according to the script’s own visual model.
━━━━━━━━━━━━━━━━━━━━━━
📦 TP / SL PROJECTION SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes an ATR-based TP/SL projection system.
When a STRONG signal appears, the script can draw:
📦 TP box
📦 SL box
🎯 TP1 line
🎯 TP2 line
🎯 TP3 line
🏷️ TP price labels
🏁 final result label
The system uses ATR-based risk.
Default structure:
🛡️ SL ATR Multiplier = 2.0
🎯 TP3 Reward R = 2.0R
🥉 TP1 = 25% of TP3 distance
🥈 TP2 = 50% of TP3 distance
🏆 TP3 = final target distance
This creates a clean visual projection of the potential trade structure.
The boxes are not broker orders.
They are visual projections based on the script’s internal logic.
━━━━━━━━━━━━━━━━━━━━━━
🎯 TP1 / TP2 / TP3 / SL TRACKING
━━━━━━━━━━━━━━━━━━━━━━
The script tracks projected trade progress visually.
Possible outcome states include:
🥉 TP1 reached
🥈 TP2 reached
🏆 TP3 reached
🛑 SL reached
If price reaches TP3, the result is marked as TP3.
If price hits SL before reaching any TP level, the result is marked as SL.
If price reaches TP1 and later returns to SL, the result can be treated as a TP1-style protected outcome.
If price reaches TP2 and later returns to SL, the result can be treated as a TP2-style protected outcome.
This allows the visual projection to remember the best target reached before the trade closes.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ SAME-CANDLE TP/SL HANDLING
━━━━━━━━━━━━━━━━━━━━━━
If TP and SL are both touched on the same candle, there is ambiguity.
The script cannot know the true intrabar sequence from standard OHLC data.
For that reason, Pullback Sniper Method uses a conservative rule:
🔴 If TP and SL are both touched on the same candle, the script treats it as SL.
This avoids overly optimistic visual outcomes when the true intrabar order is unknown.
This conservative approach is useful when reviewing historical visual performance.
━━━━━━━━━━━━━━━━━━━━━━
🙈 EARLY SL HIDING LOGIC
━━━━━━━━━━━━━━━━━━━━━━
The script includes an early SL hiding feature.
If a projected trade hits SL within the first selected number of bars, the visual trade can be hidden and excluded from statistics.
Default:
🙈 Hide Early SL Bars = 3
This feature is designed to reduce extremely fast failed projections from cluttering the visual history.
Users should understand that this affects the visual/statistical display of the script.
It is not a broker-side execution rule.
━━━━━━━━━━━━━━━━━━━━━━
🗂️ HISTORICAL TRADE VISUALS
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method can keep historical TP/SL visuals on the chart.
This includes:
📦 previous TP boxes
📦 previous SL boxes
🎯 TP1 / TP2 / TP3 lines
🛑 SL lines
🏷️ result labels
🏷️ TP price labels
The script also includes a maximum historical trade limit.
Default:
🧮 Max Historical Trades = 40
This helps prevent TradingView object-limit issues while still allowing users to review past signals visually.
━━━━━━━━━━━━━━━━━━━━━━
📊 STATISTICS TABLE
━━━━━━━━━━━━━━━━━━━━━━
The statistics table summarizes visual trade outcomes.
It can display:
🥉 TP1 count
🥈 TP2 count
🏆 TP3 count
🛑 SL count
📊 Total closed trades
✅ Win Rate
The statistics are calculated internally using the script’s visual TP/SL logic.
They are not broker execution results.
They do not include real slippage, spread, commission, liquidity, partial fills, or order execution issues.
They should be used for visual review and educational analysis only.
━━━━━━━━━━━━━━━━━━━━━━
💎 PREMIUM DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes a premium-style dashboard.
The dashboard can display:
📈 Trend
📡 Current status
📊 Total trades
✅ Win rate
📈 Total R
📉 Average R
🧮 Profit Factor
🎯 Expectancy
🔥 Max win streak
❄️ Max loss streak
🔁 Current streak
⏱️ Average bars in trade
🏆 TP3 rate
🛑 SL rate
🧭 Best direction
🟢 Long win rate
🔴 Short win rate
📌 Active trade state
🧾 Last signal
🎯 Best TP reached
The dashboard is designed to give users a structured overview of the script’s internal visual results.
Important note:
These dashboard values are not official TradingView Strategy Tester results.
They are internally calculated visual-analysis metrics.
They should not be interpreted as guaranteed performance.
━━━━━━━━━━━━━━━━━━━━━━
🎨 VISUAL THEME SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes three visual themes:
🔵 Neon Pro
🧊 Ice Blue
🟡 Gold Black
The theme system affects:
🎨 STRONG label colors
📦 TP/SL box colors
🎯 TP/SL line colors
🏷️ TP price labels
📊 statistics table colors
💎 premium dashboard colors
🟢 long-side visuals
🟠 short-side visuals
Color settings are handled internally to keep the Inputs tab cleaner and more organized.
━━━━━━━━━━━━━━━━━━━━━━
🏷️ TP PRICE LABELS
━━━━━━━━━━━━━━━━━━━━━━
TP labels are displayed next to the TP levels rather than inside the boxes.
This helps keep the projection boxes cleaner.
The labels can show:
TP1 price
TP2 price
TP3 price
Example:
TP1 102450.5
TP2 103120.0
TP3 104300.0
This makes it easier to visually read the projected target levels without opening the settings or manually checking each line.
━━━━━━━━━━━━━━━━━━━━━━
🏁 RESULT LABELS
━━━━━━━━━━━━━━━━━━━━━━
When a projected trade closes, the script can display a result label.
Examples:
🏆 TP3 HIT WIN +2R
🥈 TP2 EXIT WIN +1R
🥉 TP1 EXIT WIN +0.5R
🛑 SL HIT LOSS -1R
The exact value depends on the selected TP/SL structure and the highest TP reached before closure.
These labels are visual summaries only.
They do not represent broker execution.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes alert conditions for:
🟢 Strong Long
🟠 Strong Short
🏆 TP3 Hit
🛑 SL Hit
🎯 Protected TP Exit
Users can create TradingView alerts from these alert conditions.
Alerts can help monitor the chart without constantly watching every candle.
Important note:
Alerts are based on the script’s conditions.
They are not trade execution instructions.
Users are responsible for validating alerts and applying their own risk management.
━━━━━━━━━━━━━━━━━━━━━━
🧪 HOW TO USE THE INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
A practical workflow:
Add Pullback Sniper Method to your chart.
Start with the default settings.
Review the overall trend direction.
Wait for a valid breakout setup.
Let the script wait for a pullback toward the Pullback EMA.
Watch for a STRONG label after confirmation.
Hover over the STRONG label to review the Quality Score tooltip.
Review the TP/SL projection box.
Check TP1, TP2, TP3, and SL levels.
Observe whether the projected trade reaches TP levels or SL.
Use the statistics table for visual outcome review.
Use the premium dashboard for deeper internal metrics.
Use alerts if you want automated signal notifications.
Validate the behavior on the exact symbols and timeframes you personally study.
This indicator is best used as a structured review tool.
It should not be used as a blind execution system.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━
📈 Trend Engine
⚡ Fast EMA Length
Controls the fast trend EMA. Lower values react faster, while higher values are smoother.
🐢 Slow EMA Length
Controls the broader trend EMA used for directional context.
🎯 Pullback EMA Length
Defines the EMA area where price is expected to pull back before confirmation.
📐 Trend Slope Lookback
Checks whether the fast EMA is sloping in the expected trend direction.
━━━━━━━━━━━━━━━━━━━━━━
🎯 Pullback Setup Engine
🚀 Breakout Lookback
Defines how many bars are used to detect a fresh breakout level.
🛑 Invalidation Lookback
Defines the invalidation level for the active pullback setup.
⏳ Min Bars After Breakout
Controls how many bars must pass after breakout before pullback detection begins.
⌛ Max Bars To Find Pullback
If no valid pullback appears within this range, the setup expires.
━━━━━━━━━━━━━━━━━━━━━━
✅ Confirmation Engine
✅ Confirmation Mode
Available modes:
⚡ Fast
⚖️ Balanced
🛡️ Strict
📏 ATR Length
ATR used for body-size and distance filters.
🔥 Min Breakout Body / ATR
Minimum breakout candle body size compared to ATR.
💪 Min Confirm Body / ATR
Minimum confirmation candle body size compared to ATR. Mainly used in Strict mode.
📍 Max Entry Distance / ATR
Blocks entries that are too far away from the Pullback EMA.
🧊 Use Signal Cooldown
Prevents too many signals from appearing too close to each other.
⏱️ Cooldown Bars
Number of bars to wait after a signal before allowing another one.
━━━━━━━━━━━━━━━━━━━━━━
🧠 Optional Filters
🧲 Block Signals Near McGinley
Avoids entries too close to the McGinley Dynamic line.
〽️ McGinley Length
Length used for the McGinley Dynamic filter.
📐 Min McGinley Distance / ATR
Minimum distance required between price and McGinley Dynamic.
📊 Use RSI Direction Filter
Filters long/short signals based on RSI direction.
📈 RSI Length
RSI length used for the optional direction filter.
🟢 RSI Long Minimum
Long signals are allowed only when RSI is above this value.
🔴 RSI Short Maximum
Short signals are allowed only when RSI is below this value.
━━━━━━━━━━━━━━━━━━━━━━
📦 Trade Visual Engine
📏 Show TP / SL Lines
Shows TP1, TP2, TP3, and SL lines.
📦 Show TP / SL Boxes
Shows TP and SL projection zones.
🏷️ Show Active TP Label
Shows the latest touched TP label while the projected trade is active.
🗂️ Show Historical TP / SL Trades
Keeps previous TP/SL boxes, lines, and labels on the chart.
🧮 Max Historical Trades
Limits historical visual trades to help avoid object-limit issues.
🛡️ SL ATR Length
ATR length used for stop-loss calculation.
🛑 SL ATR Multiplier
ATR multiplier used for stop-loss distance.
🎯 TP3 Reward R
Final TP target multiple based on the initial risk distance.
🥉 TP1 % Of TP3
TP1 distance as a percentage of final TP3 distance.
🥈 TP2 % Of TP3
TP2 distance as a percentage of final TP3 distance.
↔️ Initial TP / SL Length
Initial visual length of TP/SL lines and boxes.
🙈 Hide Early SL Bars
If SL is reached within this number of bars, the projection can be hidden and excluded from statistics.
📊 Show Statistics Table
Shows TP1, TP2, TP3, SL, total trades, and win rate.
💎 Show Premium Dashboard
Shows the extended dashboard with deeper internal metrics.
━━━━━━━━━━━━━━━━━━━━━━
🎨 Visual Settings
🎭 Color Theme
Available themes:
🔵 Neon Pro
🧊 Ice Blue
🟡 Gold Black
💪 Show STRONG Labels
Shows the main STRONG labels on the chart.
🔠 Signal Label Size
Controls the size of STRONG signal labels.
━━━━━━━━━━━━━━━━━━━━━━
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method uses familiar concepts such as:
📈 EMA trend context
🚀 breakout detection
🎯 pullback confirmation
🧠 optional technical filters
📦 ATR-based TP/SL projection
📊 dashboard metrics
🚨 alerts
These components are not unique by themselves.
The originality of the script lies in how these components are organized into one workflow:
Trend Engine
→ Breakout Detection
→ Pullback Validation
→ Confirmation Mode
→ Optional Filters
→ STRONG Label
→ Quality Tooltip
→ TP/SL Projection
→ Historical Trade Visualization
→ Statistics Table
→ Premium Dashboard
→ Alerts
This structure is intended to give users a cleaner way to review pullback-based trend continuation setups.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT PRACTICAL NOTES
━━━━━━━━━━━━━━━━━━━━━━
The script’s behavior depends heavily on settings.
Signal frequency and visual output may change based on:
🎛️ selected confirmation mode
📈 EMA lengths
🎯 pullback EMA length
🚀 breakout lookback
🛑 invalidation lookback
📏 ATR settings
🧠 McGinley filter
📊 RSI filter
🧊 cooldown setting
📦 TP/SL settings
📊 market
⏱️ timeframe
📉 symbol volatility
📚 available historical bars
A configuration that looks cleaner on one market may not behave the same way on another.
The TP/SL boxes are visual projections based on script rules.
They are not broker orders.
They do not account for real execution conditions.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ LIMITATIONS AND SHORTCOMINGS
━━━━━━━━━━━━━━━━━━━━━━
This script has important limitations:
❌ It does not guarantee profitable trades.
❌ It does not predict future price movement.
❌ It does not replace risk management.
❌ It does not execute trades.
❌ It does not place orders.
❌ It does not include broker slippage.
❌ It does not include commissions.
❌ It does not include spreads.
❌ It uses bar-based chart data.
❌ Same-candle TP/SL order cannot be known from standard OHLC data.
❌ Same-candle TP/SL is handled conservatively as SL.
❌ Quality Score is not a win-rate prediction.
❌ Dashboard statistics are internal visual metrics, not broker results.
❌ ATR-based TP/SL projections are visual analysis tools, not trade instructions.
❌ Strong labels can still fail in choppy or low-quality market conditions.
❌ Historical visual behavior does not ensure future behavior.
For these reasons, Pullback Sniper Method should be used as an educational decision-support tool, not as a standalone trading strategy.
━━━━━━━━━━━━━━━━━━━━━━
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
━━━━━━━━━━━━━━━━━━━━━━
This script may be useful for traders who:
✅ study pullback-based trend continuation
✅ want structured breakout/pullback confirmation
✅ want ATR-based TP/SL visualization
✅ want historical visual trade review
✅ want a clean statistics table
✅ want a premium-style dashboard
✅ want signal quality information without changing signal logic
✅ want configurable confirmation strictness
✅ want visual themes
✅ want alert-based monitoring
✅ prefer organized chart-based analysis
✅ want an open-source educational TradingView tool
It may be less suitable for users who:
❌ want guaranteed buy/sell signals
❌ want a fully automated trading bot
❌ do not use technical analysis
❌ do not want chart visuals
❌ expect one setting to work on every market
❌ want an indicator that replaces their own decision-making
❌ expect internal visual statistics to match broker execution results
━━━━━━━━━━━━━━━━━━━━━━
🧭 BEST PRACTICE SUGGESTIONS
━━━━━━━━━━━━━━━━━━━━━━
For cleaner review:
✅ Start with the default settings.
✅ Use Balanced confirmation first.
✅ Test Fast and Strict modes only after understanding the default behavior.
✅ Review STRONG labels together with market structure.
✅ Hover over labels to inspect Quality Score context.
✅ Use TP/SL boxes as visual planning tools, not automatic orders.
✅ Review dashboard metrics as internal script feedback only.
✅ Avoid treating every signal as a trade.
✅ Test the indicator on the symbols and timeframes you actually use.
✅ Combine the tool with independent analysis and risk management.
✅ Keep expectations realistic.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT USAGE
━━━━━━━━━━━━━━━━━━━━━━
The script includes alert conditions for important events.
Available alert types include:
🟢 Strong Long
🟠 Strong Short
🏆 TP3 Hit
🛑 SL Hit
🎯 Protected TP Exit
A practical alert workflow:
Add the indicator to your chart.
Open TradingView’s alert window.
Select Pullback Sniper Method as the condition.
Choose the alert condition you want.
Configure frequency according to your preference.
Use alerts as monitoring tools only.
Confirm all alerts manually with your own analysis.
Alerts do not execute trades.
Alerts are not financial advice.
━━━━━━━━━━━━━━━━━━━━━━
🔓 OPEN-SOURCE NOTE
━━━━━━━━━━━━━━━━━━━━━━
This script is published open-source for educational review, transparency, and community learning.
Users can inspect how the indicator works, study the logic, modify it for personal learning, and understand the internal conditions behind the visual output.
Please respect TradingView’s House Rules when reusing or republishing open-source code.
The purpose of open-source publication is to support learning and transparent script review.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
No indicator can guarantee future results.
Markets are uncertain, conditions change, and historical behavior does not ensure future performance.
Every user is responsible for their own analysis, validation, risk management, position sizing, and trading decisions.
The TP/SL boxes, labels, dashboard statistics, Quality Score, and alerts are visual analysis tools only.
Use this script as a structured decision-support and visual review framework, not as a promise of profitability. 指標

SwingRegress Volatility Analytics [MarkitTick]💡 A comprehensive, multi-dimensional charting tool designed to fuse structural market analysis, statistically derived linear regression pathways, and volatility compression mechanics into a single, cohesive interface. By dynamically adapting its calculations to the latest shifts in market structure—specifically Change of Character (CHoCH) events—this script offers an adaptive mapping of price action, trend trajectory, and potential breakout zones directly on the primary chart.
● ✨ Originality and Utility
Traditional linear regression tools often require manual anchoring or rely on fixed lookback periods that fail to adapt to rapidly unfolding price dynamics. The distinct utility of this script lies in its self-adjusting structural anchoring mechanism. By automatically locking the regression baseline to the most recent significant pivot high or pivot low immediately following a structural break, the channel remains mathematically and contextually relevant to the current market regime.
Furthermore, this tool eliminates the need for separate sub-chart oscillators by integrating a sophisticated Smart Volatility Squeeze engine. This engine compares price variance against true range to identify periods of extreme price compression, overlaying these signals directly within the active regression pathway. The result is a unified, chart-centric view of both directional trend geometry and kinetic energy build-up, allowing for a more focused and uncluttered analytical process.
● 🔬 Methodology and Concepts
The underlying logic of this script is driven by three core mathematical engines operating in tandem:
• Pivot Discovery and Market Structure
The script continuously scans incoming price data to identify localized extremes, defined as Pivot Highs and Pivot Lows. A candidate bar is confirmed as a pivot only if it remains unbroken for a user-defined number of bars both prior to and following its occurrence. Once confirmed, these pivots establish the market structure. If the closing price breaks beyond the most recent opposing pivot, a Change of Character (CHoCH) is triggered, officially shifting the trend state.
• Anchored Linear Regression
Upon the confirmation of a new CHoCH, the script calculates a fresh Linear Regression Channel (LRC). The anchoring point is the origin pivot of the newly established trend. The script uses the Ordinary Least Squares (OLS) method to compute the slope and intercept of the best-fit line through the closing prices of the current regime. It then calculates the standard error of the estimate (standard deviation of the residuals) to project upper and lower variance bands parallel to the mid-line.
• Volatility Squeeze Mechanics
To identify volatility compression, the script employs a comparative analysis between standard deviation and Average True Range (ATR). It calculates a Bollinger Band (representing standard deviation) and a Keltner Channel (representing ATR) around a moving average baseline. A "squeeze" is structurally confirmed when the outer limits of the Bollinger Bands contract entirely within the boundaries of the Keltner Channels. This signifies that historical variance has dropped substantially below the average true range, often preceding a dynamic expansion in price movement.
● 🎨 Visual Guide
The visual interface is highly detailed and structurally color-coded to provide immediate contextual awareness without cluttering the chart.
• Current Anchored LRC
Mid Line: A solid Neon Cyan line representing the true mean of the current trend regime.
Band 1: A dashed Soft Cyan line mapping the first standard deviation threshold.
Band 2: A dotted Deep Azure line mapping the secondary, outer standard deviation extreme.
• Previous Anchored LRC
Mid Line: A solid Magenta line representing the historical mean of the preceding trend.
Band 1: A dashed Soft Magenta line for the historical inner variance.
Band 2: A dotted Blue-Violet line for the historical outer variance.
• Swing Point Zones
Swing High Boxes: Translucent red zones originating from a confirmed pivot high, drawing forward to act as dynamic resistance until broken by price action.
Swing Low Boxes: Translucent green zones originating from a confirmed pivot low, acting as dynamic support until structurally invalidated.
• Volatility Squeeze Candles
Cyber Gold Candles: When the market enters a state of extreme volatility compression (Bollinger Bands inside Keltner Channels) and is actively trading within the current or previous LRC pathway, the candles are painted a vibrant gold to highlight imminent kinetic release.
• Heads-Up Dashboard Display
Located in the top right corner, this self-updating data matrix provides critical real-time telemetry:
Structure Regime: Displays the active directional bias (Bullish, Bearish, or Neutral).
Last CHoCH: Indicates the direction and age (in bars) of the most recent structural shift.
Squeeze Intensity: A visual block-bar measuring the depth of the volatility compression.
ATR (14): The current absolute value of the Average True Range.
Dist to Swings: The percentage distance between the current price and the nearest Swing High/Low.
Risk/Reward Quality: A dynamic measurement of potential risk versus structural reward.
LRC Window Age: The duration of the current regression channel in bars.
LRC Position: Indicates whether price is currently trading inside the active regression channel, the previous channel, or is entirely unanchored.
● 📖 How to Use
The primary application of this tool is identifying high-probability continuation or mean-reversion setups following structural confirmation.
When a CHoCH event occurs, wait for the new Linear Regression Channel to populate. This channel defines your trading parameters. A high-probability setup manifests when price pulls back to the inner or mid-line of the active LRC, accompanied by the appearance of Cyber Gold squeeze candles. This visual confluence suggests that price is compressing directly at the statistical mean of the new trend, building energy for a move in the direction of the underlying structural regime.
Conversely, if price approaches the outer standard deviation bands (Deep Azure) without structural confirmation of a breakout, it suggests the market is statistically overextended, offering a potential mean-reversion opportunity back toward the Neon Cyan mid-line.
Note on Mechanics: Because the pivot discovery process requires a defined number of bars to confirm a swing high or low, there is an inherent lookback period. The swing zones will only appear after the pivot has been structurally verified. Furthermore, the linear regression channel recalculates its slope dynamically as new price data is added to the active regime, meaning the exact angle of the channel adapts in real-time until a new CHoCH locks it into history as the "Previous LRC."
● ⚙️ Inputs and Settings
The configuration panel is logically divided into primary analytical modules to allow for precise user calibration.
• Current Anchored CHoCH LRC
Adjust the sensitivity of the pivot discovery engine by modifying the Left and Right Pivot Bars. You can also customize the multipliers for the primary and secondary standard deviation bands, as well as toggle their visibility and modify line weights.
• Previous Anchored CHoCH LRC
Allows for the toggling of the historical channel, providing context on how the previous trend failed. Color and visibility settings are fully adjustable here.
• Swing Points & Zones Settings
Toggle the structural resistance and support boxes on or off, and customize their respective color opacities for a cleaner chart overlay.
• Smart Volatility Squeeze (BB vs KC)
Tune the underlying volatility engine. You can adjust the lookback length for the variance baseline, as well as the specific deviation multipliers for both the Bollinger Band boundaries and the Keltner Channel limits.
• Webhook Execution Configuration
Input exact JSON payload action names for algorithmic execution routing (Long, Short, Close Long, Close Short).
• Dashboard Settings
Customize the background and text colors of the heads-up data matrix to match your specific chart theme.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The mathematical foundation of this script is anchored heavily in econometrics and statistical probability theory.
At its core, the linear regression calculation utilizes the Ordinary Least Squares (OLS) estimator. This formula determines the line of best fit through a sequence of time-series data points by minimizing the sum of the squared differences (residuals) between the observed closing prices and the values predicted by the linear model. The slope of this line represents the average rate of change per unit of time, mathematically quantifying the drift of the active regime.
The parallel bands wrapping the regression line are derived by calculating the standard error of the estimate. Assuming the residuals are normally distributed (Gaussian distribution), one standard deviation captures approximately 68 percent of the price variance, while two standard deviations capture roughly 95 percent. When price moves beyond these outer bands, it represents a statistically significant deviation from the mean, inherently increasing the probabilistic likelihood of mean reversion.
The volatility squeeze mechanic operates on the principle of variance compression. Bollinger Bands are a derivative of standard deviation, making them highly reactive to short-term variance. Keltner Channels utilize the Average True Range (ATR), which measures absolute periodic volatility independent of a central mean. When the standard deviation of price contracts to such a degree that the Bollinger Bands fall entirely within the ATR-based Keltner Channels, it statistically confirms a state of anomalous energy compression. In financial academia, periods of artificially suppressed variance are overwhelmingly followed by periods of geometric expansion, providing the theoretical basis for breakout execution.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. 指標

Round Number Magnet Levels═══════════════════════════════════════════
ROUND NUMBER MAGNET LEVELS
═══════════════════════════════════════════
OVERVIEW
Round Number Magnet Levels automatically plots the nearest psychological round-number price levels around the current price. Round numbers act as natural support and resistance because traders cluster their orders, stop-losses, and targets at these "round" prices. This tool is built specifically for Indian indices — Nifty, BankNifty, and Sensex — and keeps your chart clean by showing only the most relevant levels near price instead of cluttering it with every level.
───────────────────────────────────────────
DESIGNED FOR NIFTY, BANKNIFTY & SENSEX
───────────────────────────────────────────
The indicator auto-detects the instrument and applies the correct interval:
- Nifty → 100-point levels
- BankNifty → 500-point levels
- Sensex → 500-point levels
No manual setup needed — switch between the three indices and the levels adjust on their own. A manual interval option is also available for any other instrument.
───────────────────────────────────────────
HOW IT WORKS
───────────────────────────────────────────
The script draws a fixed number of round levels above and below the current price, split into two visual tiers:
- MAJOR levels (every Nth interval) — drawn as thicker, highlighted lines. These are the strongest psychological magnets (e.g. Nifty 24000, 24500).
- MINOR levels — drawn as thinner lines for secondary reference.
As price moves, the levels rebuild around the latest price, so the nearest zones are always in view. Clean labels show each level as a round number with no decimal clutter.
───────────────────────────────────────────
HOW TO USE
───────────────────────────────────────────
- Watch for price reactions (rejection or acceptance) at major levels for potential support/resistance.
- Use the levels as logical reference points for targets and stop placement.
- Combine with your own price-action or confirmation method — round levels mark where reactions are likely, not guaranteed.
- Works best on intraday timeframes (15m, 1H) for Nifty, BankNifty, and Sensex.
───────────────────────────────────────────
SETTINGS
───────────────────────────────────────────
- Auto-detect interval — picks the right round-number step per instrument; can be turned off for a manual interval.
- Major level frequency — defines how often a level is treated as "major."
- Levels above & below — controls how many levels are shown on each side of price.
- Visual controls — separate colors, line widths, and label settings for major and minor levels.
───────────────────────────────────────────
NOTES
───────────────────────────────────────────
This is a discretionary support/resistance tool, not a buy/sell signal generator. It does not repaint — levels are derived purely from current price and the chosen interval. Always do your own analysis and manage risk; past behavior at a level does not guarantee future reactions. 指標

指標

Support & Resistance Threesome [Zofesu]Support & Resistance Threesome is an overlay indicator that tracks up to twelve simultaneous liquidity zones across two structural levels — major and minor — and combines zone interaction data with an RSI-based smart entry filter to produce high-probability reversal signals directly at institutional price levels.
The three components work as a system: zones define where price is expected to react, touch counting measures how many times the level has been tested and held, and the entry filter ensures signals fire only when momentum conditions align with the zone interaction.
─────────────────────────────────────
01 — What is S/R Threesome?
─────────────────────────────────────
S/R Threesome detects pivot-based support and resistance zones and tracks them dynamically across the chart. Each zone is built around a confirmed swing high or low, padded by a configurable buffer, and updated in real time as price interacts with it.
The indicator tracks two structural levels simultaneously:
Major zones — built from wider swing lookback (default 20 bars). These represent significant structural levels where institutional activity is more likely.
Minor zones — built from shorter swing lookback (default 8 bars). These represent recent, lower-timeframe levels within the larger structure.
Up to three zones per type are tracked simultaneously — three major resistance, three major support, three minor resistance, three minor support — twelve zones total.
─────────────────────────────────────
02 — Zone Lifecycle
─────────────────────────────────────
Each zone passes through three states:
Active — zone is intact, price has not closed beyond it. The zone extends forward in real time and darkens with each confirmed touch.
Confirmed — zone has been tested at least twice (touch count ≥ 2). Border changes to yellow. A confirmed zone is a higher-probability level — it has held under pressure more than once.
Filled — price closed beyond the zone boundary. The box turns gray with a dashed border, marking the zone as invalidated. A filled resistance that price returns to often acts as new support, and vice versa.
─────────────────────────────────────
03 — Touch Count and Visual Intensity
─────────────────────────────────────
Every time a confirmed bar closes with price interacting with a zone boundary, the touch counter increments (maximum 5). The zone responds visually:
Touch 1 — lightest fill, thinnest border
Touch 2 — zone confirmed, yellow border
Touch 3 — medium fill intensity
Touch 4+ — darkest fill, thickest border
This system makes the most tested zones immediately visible — heavier zones have held under more pressure and carry more institutional weight.
─────────────────────────────────────
04 — Buffer System
─────────────────────────────────────
Zones are not single price lines — they are areas with a configurable half-width on both sides of the pivot price. Three buffer modes are available:
ATR — zone width adapts to current volatility. Default multiplier: 0.5. Recommended for most markets.
Percent — fixed percentage of current price. Default: 0.15%.
Fixed — absolute tick-based value. Default: 500 ticks. Use for specific instruments with known pip structures.
Duplicate filter: zones that form within 3× buffer distance of an existing major zone, or 2× for minor zones, are suppressed to prevent visual clutter from overlapping levels.
─────────────────────────────────────
05 — Smart Entry System
─────────────────────────────────────
Entry signals fire when two conditions align simultaneously:
1. Price interacted with a major support or resistance zone on the previous bar (low touched support zone / high touched resistance zone)
2. RSI confirms momentum exhaustion — oversold for long entries (default below 35), overbought for short entries (default above 65)
A stop loss line is drawn automatically at the time of entry — positioned below the support zone bottom for longs, above the resistance zone top for shorts, with an additional SL buffer applied.
The zone must also be older than the maximum of both swing lookback periods — this prevents entries on zones that were just created and not yet validated by subsequent price action.
─────────────────────────────────────
06 — Settings
─────────────────────────────────────
Liquidity Zones
Major Swing Lookback — pivot detection window for major zones. Default: 20.
Minor Swing Lookback — pivot detection window for minor zones. Default: 8.
ATR Length — ATR lookback for buffer calculation. Default: 14.
Max Zone Age (bars) — zones older than this are replaced. Default: 300.
Buffer
Buffer Mode — ATR / Percent / Fixed. Default: ATR.
ATR Multiplier — zone half-width as ATR multiple. Default: 0.5.
Percent Buffer % — zone half-width as % of price. Default: 0.15%.
Fixed Buffer — zone half-width in ticks. Default: 500.
Entry — RSI
RSI Length — default: 14.
RSI Overbought — short entry filter threshold. Default: 65.
RSI Oversold — long entry filter threshold. Default: 35.
Entry — SL
SL Mode — ATR / Percent / Fixed. Default: ATR.
SL ATR Multiplier — SL distance as ATR multiple. Default: 1.5.
SL Percent % — SL as % of price. Default: 0.5%.
SL Fixed (pips) — SL in ticks. Default: 800.
Entry — Visual
Show Entry Signals — enable/disable arrows and SL lines.
SL Line / Long Arrow / Short Arrow — color settings.
Colors
Major Resistance / Support — zone fill color for major levels.
Minor Resistance / Support — zone fill color for minor levels.
Filled Zone — border color for invalidated zones.
Resistance / Support Border — active zone border color.
Confirmed Border — border color when touch count ≥ 2. Default: yellow.
─────────────────────────────────────
07 — How To Use
─────────────────────────────────────
Step 1 — Identify the active zones
Major zones (darker, thicker border) are the primary levels. Minor zones provide secondary context within the structure.
Step 2 — Watch for confirmed zones
Yellow border = zone has been tested and held at least twice. These are the highest-priority levels to trade from.
Step 3 — Wait for the entry signal
A triangle arrow appears when price touches a major zone with RSI confirming exhaustion. The SL line shows the invalidation level automatically.
Step 4 — Read zone fill intensity
Darker fill = more touches = stronger institutional interest at that level. Lighter fill = fresh zone, treat with less conviction.
Step 5 — Monitor filled zones
Gray dashed zones that price returns to after being filled often flip polarity — former resistance becomes support and vice versa. Watch for interaction at these levels even after they are invalidated.
Step 6 — Alerts
Two alert conditions are pre-configured:
S/R-3: LONG — long entry at support zone with RSI oversold
S/R-3: SHORT — short entry at resistance zone with RSI overbought
Works on all asset classes: Indices, Forex, Gold, Oil, Crypto.
Best timeframes: H1, H4, D1. 指標

Multi-Line Resistance/Support Creator Rev0Overview:
Tired of manually drawing horizontal lines one by one every time you get a new list of key daily levels? The Multi-Line Support, Resistance & Control Creator is a utility script designed to instantly plot bulk price levels directly onto your chart.
Whether you copy your levels from a spreadsheet, a Discord chat, or an external volume profile tool, simply paste your raw text into the indicator settings, and the script will do the rest.
Key Features:
Bulk Data Pasting: No need to format your text perfectly. The script features an intelligent parsing engine that accepts clean vertical columns (Excel/Notepad), comma-separated lists, or space-separated lists.
Three Distinct Zones: Organize your chart cleanly with three dedicated input boxes for Resistance (defaults to Red), Support (defaults to Green), and Control/Pivot levels (defaults to Blue). Colors are fully customizable.
Fractional Grain Pricing Support: Built specifically to handle cross-asset quoting. You can paste standard decimal formats (e.g., 450.25) alongside traditional CBOT grain fractional eighths (e.g., 460'2 or 460'6 for Corn, Wheat, or Soybeans), and the script will accurately calculate and plot them.
Infinite Extension & Clean Margins: Lines automatically extend infinitely across the screen. Price labels are cleanly pushed into the right margin so they never clutter or obscure your live candlestick data.
Global Styling: Instantly toggle all your lines between Dashed, Dotted, or Solid, adjust the line thickness (1-5), and toggle price labels on or off with a single click.
How to Use:
Add the indicator to your chart and open the Settings menu.
Under the Resistance, Support, or Control sections, paste your raw price levels into the large text boxes.
Example inputs that work perfectly:
450.25, 455.00, 460.50 (Commas)
450.25 455.00 460.50 (Spaces)
Alternatively, just paste a straight vertical column of numbers directly from Excel.
Adjust your global line thickness and style at the bottom of the settings menu.
Who is this for?
This tool is perfect for day traders, supply/demand traders, and futures traders who rely on external levels (like daily pivots, standard deviations, or institutional order blocks) and want to load their charts in seconds before the market opens. 指標

指標
