Liquidity Sweep & Reversal MapLiquidity Sweep & Reversal Map (LSRM) is a visual tool designed to help traders study how price interacts with key liquidity areas such as daily highs, daily lows, previous-day levels, and potential sweep zones. Its purpose is to map structure, highlight volatility around major reference points, and visualize how price behaves after taking liquidity.
This indicator does not attempt to predict market direction. It simply identifies conditions where price has interacted with a known reference level and marks that interaction for user analysis.
🔍 What This Indicator Shows
1. Key Liquidity Reference Levels
The script automatically draws and updates the following levels:
TH — Today’s High
TL — Today’s Low
PDH — Previous Day High
PDL — Previous Day Low
These levels are widely monitored by many traders and can be helpful when studying liquidity behavior and intraday volatility.
2. Liquidity Sweeps
A liquidity sweep occurs when:
Price briefly moves beyond a major high or low
And then closes back within the prior range
The indicator marks detected sweep interactions with:
BS (Bullish Sweep) when liquidity is taken below a low
SS (Bearish Sweep) when liquidity is taken above a high
A sweep only appears after the bar has closed, helping users analyze completed price structure.
3. Optional Sweep Zones
When enabled, the tool draws a shaded zone between:
The swept wick
The reference level
This can help highlight areas where liquidity was taken.
4. Volume & Candle Filters
The indicator includes optional filters such as:
Relative volume spikes
Strong candle body requirement
These filters are provided only to refine the visual highlight of sweeps; they do not constitute trading signals.
🎛 Customization
Users can configure:
Instrument presets
Sweep buffers
Volume sensitivity
Line visibility and thickness
Label display
Zone visibility
All settings are optional and intended for chart annotation only.
⚠️ Important Notes
This tool is not a trading system, signal generator, or strategy.
It does not provide buy/sell advice or predict future price movement.
All markings are visual aids for chart study and structural analysis only.
Users should rely on their own judgment and independent analysis when making trading decisions.
지표 및 전략
XAUUSD Sniper Setup (Pre-Arrows + SL/TP)//@version=5
indicator("XAUUSD Sniper Setup (Pre-Arrows + SL/TP)", overlay=true)
// === Inputs ===
rangePeriod = input.int(20, "Lookback Bars for Zone", minval=5)
maxRangePercent = input.float(0.08, "Max Range % for Consolidation", step=0.01)
tpMultiplier = input.float(1.5, "TP Multiplier")
slMultiplier = input.float(1.0, "SL Multiplier")
// === Consolidation Detection ===
highestPrice = ta.highest(high, rangePeriod)
lowestPrice = ta.lowest(low, rangePeriod)
priceRange = highestPrice - lowestPrice
percentRange = (priceRange / close) * 100
isConsolidation = percentRange < maxRangePercent
// === Zones ===
demandZone = lowestPrice
supplyZone = highestPrice
// === Plot Consolidation Zone Background ===
bgcolor(isConsolidation ? color.new(color.gray, 85) : na)
// === Plot Potential Buy/Sell Levels ===
plot(isConsolidation ? demandZone : na, color=color.green, title="Potential Buy Level", linewidth=2)
plot(isConsolidation ? supplyZone : na, color=color.red, title="Potential Sell Level", linewidth=2)
// === Liquidity Sweep ===
liquidityTakenBelow = low < demandZone
liquidityTakenAbove = high > supplyZone
// === Engulfing Candles ===
bullishEngulfing = close > open and close < open and close > open
bearishEngulfing = close < open and close > open and close < open
// === Break of Structure ===
bosUp = high > ta.highest(high , 5)
bosDown = low < ta.lowest(low , 5)
// === Sniper Entry Conditions ===
buySignal = isConsolidation and liquidityTakenBelow and bullishEngulfing and bosUp
sellSignal = isConsolidation and liquidityTakenAbove and bearishEngulfing and bosDown
// === SL & TP Levels ===
slBuy = demandZone - (priceRange * slMultiplier)
tpBuy = close + (priceRange * tpMultiplier)
slSell = supplyZone + (priceRange * slMultiplier)
tpSell = close - (priceRange * tpMultiplier)
// === PRE-ARROWS (Show Before Breakout) ===
preBuyArrow = isConsolidation ? 1 : na
preSellArrow = isConsolidation ? -1 : na
plotarrow(preBuyArrow, colorup=color.new(color.green, 50), maxheight=20, minheight=20, title="Pre-Buy Arrow")
plotarrow(preSellArrow, colordown=color.new(color.red, 50), maxheight=20, minheight=20, title="Pre-Sell Arrow")
// === SNIPER CONFIRMATION ARROWS ===
buyArrow = buySignal ? 1 : na
sellArrow = sellSignal ? -1 : na
plotarrow(buyArrow, colorup=color.green, maxheight=60, minheight=60, title="Sniper BUY Arrow")
plotarrow(sellArrow, colordown=color.red, maxheight=60, minheight=60, title="Sniper SELL Arrow")
// === BUY SIGNAL ===
if buySignal
label.new(bar_index, low, "BUY SL/TP Added", style=label.style_label_up, color=color.green, textcolor=color.white)
line.new(bar_index, slBuy, bar_index + 5, slBuy, color=color.red, style=line.style_dotted)
line.new(bar_index, tpBuy, bar_index + 5, tpBuy, color=color.green, style=line.style_dotted)
label.new(bar_index, slBuy, "SL", color=color.red, style=label.style_label_down)
label.new(bar_index, tpBuy, "TP", color=color.green, style=label.style_label_up)
// === SELL SIGNAL ===
if sellSignal
label.new(bar_index, high, "SELL SL/TP Added", style=label.style_label_down, color=color.red, textcolor=color.white)
line.new(bar_index, slSell, bar_index + 5, slSell, color=color.red, style=line.style_dotted)
line.new(bar_index, tpSell, bar_index + 5, tpSell, color=color.green, style=line.style_dotted)
label.new(bar_index, slSell, "SL", color=color.red, style=label.style_label_up)
label.new(bar_index, tpSell, "TP", color=color.green, style=label.style_label_down)
// === Alerts ===
alertcondition(buySignal, title="Sniper BUY", message="Sniper BUY setup on XAUUSD")
alertcondition(sellSignal, title="Sniper SELL", message="Sniper SELL setup on XAUUSD")
OANDA:XAUUSD
INTRADAY [VIET NAM PREMIUM]⯁ OVERVIEW
The Breakout Boxes indicator identifies key structural levels by detecting and aligning two consecutive pivots — forming confirmation zones where potential breakouts are most likely to occur. Once two pivots align within a defined ATR range, the indicator constructs a Breakout Box around that area, tracking volume distribution and breakout strength. When price breaks above or below these boxes, breakout labels (⯁ BreakUp / BreakDn) are displayed to confirm trend continuation.
⯁ KEY FEATURES
Pivot-Based Detection: Uses a customizable pivot length to identify market swing highs and lows.
Two-Pivot Alignment Logic: A breakout box is only created when two pivot highs or lows form near the same level, confirming structural alignment and increasing breakout reliability.
ảnh chụp nhanh
ảnh chụp nhanh
Dynamic Box Generation: Builds upper and lower boxes once pivot alignment is confirmed, adapting automatically to new structures.
Volume Distribution Analysis: Each box measures total traded volume and separates it into bullish and bearish components, showing buy/sell percentages inside the range.
ảnh chụp nhanh
The volume data is calculated in real time as long as the box remains active and unbroken, allowing traders to monitor live accumulation or distribution before a breakout occurs.
Breakout Confirmation Signals: Labels appear when price decisively breaks above the upper box (⯁ BreakUp) or below the lower one (⯁ BreakDn).
ảnh chụp nhanh
Adaptive ATR Scaling: Box size dynamically adjusts to volatility, maintaining consistent proportions across assets and timeframes.
ảnh chụp nhanh
Color-Coded Visualization: Upper (bearish) boxes use pink tones; lower (bullish) boxes use green, both with transparent fill for volume clarity.
Automatic Box Resetting: Previous boxes close when a new pivot pair forms, ensuring only the most relevant structure is active.
⯁ USAGE
Watch for Two Pivot Alignments — the indicator only activates when structural confluence exists, reducing false breakout signals.
Upper Boxes represent resistance formed by two aligned swing highs; a breakout above indicates potential bullish continuation.
Lower Boxes represent support formed by two aligned swing lows; a breakdown below indicates bearish continuation.
Analyze the Volume Ratio inside each box — higher buy volume in upper boxes supports bullish breakouts, while higher sell volume in lower boxes supports bearish moves.
Use this tool alongside trend indicators or higher timeframe context to confirm the direction of breakouts.
⯁ CONCLUSION
The Breakout Boxes indicator refines breakout analysis by requiring two aligned pivots to validate structural zones. By combining pivot confluence with volume distribution and adaptive ATR scaling, it provides a precise, data-backed visualization of breakout strength and direction — a powerful tool for structure-based trading confirmation.
ITM EMA Scalper (9/15) + Dual Index ConfirmationITM EMA Scalper (9/15) + Dual Index Confirmation is a precision scalping tool designed for traders who want high-probability entries, tight risk, and clean momentum trades using ITM options on NIFTY & BANKNIFTY.
This indicator combines price action, EMA trend filters, momentum candle logic, and a dual-index confirmation system to eliminate fake signals and catch only high-quality moves.
🔥 Core Logic
This indicator uses:
9 EMA & 15 EMA for trend direction
EMA angle filter (≥30°) to ensure strong directional momentum
Momentum candle detection (Pin Bar, Big Body, Rejection Candle)
EMA touch/rejection logic for precision entries
Dual index alignment (NIFTY + BANKNIFTY) for institutional-level confirmation
Trades occur only when both indices agree, dramatically reducing false setups.
🎯 Entry Conditions
A BUY signal appears when:
9 EMA > 15 EMA
Both EMAs have strong upward slope
Momentum candle forms while touching/near EMAs
Candle closes bullish
Confirmation index (e.g., BankNifty) also bullish
A SELL signal is the exact opposite.
🛡 Risk Management Built-In
For every valid setup, the indicator automatically plots:
Entry level (break of candle high/low)
Stop-loss level (low/high of signal candle)
1:2 Risk–Reward Target
These lines extend until target or SL is hit (or are cleared automatically after N bars).
🧠 Why ITM Options?
Using ITM options gives:
Higher delta
Faster momentum capture
Lower time decay impact
Cleaner correlation with spot movement
Perfect for scalping.
📈 Ideal Timeframe
Designed for 5-minute charts
Works for both NIFTY and BANKNIFTY
⚡ Alerts Included
BUY Alert
SELL Alert
These alerts trigger exactly when the strategy identifies a high-probability setup.
🚫 Avoid False Signals
This indicator prevents trades if:
Trend is flat
EMAs lose angle
Opposite index contradicts the setup
Candle lacks momentum
Market is choppy or sideways
💡 Perfect For
Scalpers
Index option traders
ITM directional traders
Algo traders needing clean signal logic
Momentum strategy users
Wyckoff Wave Auto Pro (Scalping BTC 1/5/15m)Halsky Scalp do scalipnu na btc 1/5/15 min miks pipsignal
SMI ATR (Merged OB/OS Modes)This is a merged code from both Potter scripts using better overbought underbought criteria values when using ATR 14 on Bitcoin
Advanced Linear Regression Pro [PointAlgo]Advanced Linear Regression Pro is an open-source tool designed to visualize market structure using linear regression, volatility bands, and optional volume-weighted calculations.
The indicator expands the concept of regression channels by adding higher-timeframe confluence, slope analysis, imbalance detection, and breakout highlighting.
Key Features
• Volume-Weighted Regression
Weights the regression curve based on volume to highlight periods of strong participation.
• Dynamic Standard-Deviation Bands
Upper and lower bands are derived from volatility to help visualize potential expansion or contraction zones.
• Multi-Timeframe (MTF) Regression
Plots higher-timeframe regression lines and bands for additional trend context.
• Slope Strength Analysis
Helps identify whether the current regression slope is trending upward, downward, or in a neutral range.
• Order Flow Imbalance Detection
Highlights bars where price and volume move unusually fast, which may indicate liquidity voids or imbalance zones.
• Breakout Markers
Shows simple visual markers when the price closes beyond volatility bands with volume confirmation.
These are visual signals only, not trading signals.
How to Use
This indicator is meant for visual market analysis, such as:
Observing trend direction through regression slope
Spotting volatility expansions
Comparing price against higher-timeframe regression structure
Identifying areas where price moves rapidly with volume
It can be used on any market or timeframe.
No part of this script is intended as financial advice or a complete trading system.
MAGS ETF – Daily Chart Breakdown & Price Forecast📈 MAGS ETF – Daily Chart Breakdown & Price Forecast
Timeframe: 1D
MAGS is currently trading at $63.54, down -1.87% on the day. The chart shows a potential distribution structure forming after a strong prior uptrend.
🔍 Technical Highlights:
RSI Divergence (14 Close):
The RSI is at 40.14, trending lower after multiple bearish divergences. These signals typically warn of a momentum breakdown after an extended uptrend.
Structure Overview:
After a sharp move up, price action entered a ranging zone, marked by multiple lower highs and support retests. The current projection shows a possible head and shoulders or complex corrective structure forming.
Support Zone:
Critical support rests around $60.00–$61.00, marked by horizontal and dynamic levels. A breakdown from here could send prices lower toward the mid-$50s.
Bullish Reversal Zone:
If support holds, the projected wave count shows a potential rebound leg that may revisit previous resistance levels in the $68–$70 range.
🧠 Market Interpretation:
This chart suggests MAGS may be transitioning from an impulsive bullish phase to a corrective consolidation. While short-term bearish pressure is visible, a confirmed bounce from support could spark a recovery rally. Keep an eye on RSI behavior near the 40 level a sharp bullish divergence could flip the short-term outlook.
📉 Current bias: Neutral to Bearish (watch support)
📈 Upside target on reversal: $68–$70
⚠️ Breakdown trigger: Below $60 support zone
⚠️ Disclaimer: This is general information only and not financial advice. Always do your own research or consult a licensed professional before making any trading decisions.
Guppy of SMA of RSIIn this script:
The rsiLengths input allows you to input a comma-separated list of RSI lengths for which you want to calculate the SMAs. For example, "30,60,90" will calculate SMAs for RSI with variable lengths .
The smaLength input determines the length of the EMA that will be applied to the RSI values.
The rsiValues variable calculates the RSI values for the selected lengths using the daily timeframe data.
The script then iterates through each RSI length, calculates the SMA of the RSI, and plots the EMA values on the chart with the specified color.
This script will help you visualize and analyze the SMAs of the RSI for different lengths on the price chart. You can customize the RSI lengths and EMA length according to your preferences.
DANGHIEU EMA 34/89/200 Ribbon (Scaled HTF)📘 Indicator Description – EMA 34/89/200 Ribbon (Scaled HTF)
The EMA 34/89/200 Ribbon (Scaled HTF) indicator is designed to replicate higher-timeframe EMAs directly on your current chart without switching timeframes.
Using a precise HTF Scaling Algorithm, the script converts EMAs from 1H, 2H, 4H, 6H, 12H, 1D, and even 1W into equivalent lengths on lower timeframes—allowing traders to perform true multi-timeframe trend analysis on a single chart.
The 34-EMA and 89-EMA form a dynamic trend ribbon that changes color based on the relationship between the two moving averages. This helps traders quickly identify trend direction, momentum strength, and potential market reversals. The indicator also includes optional crossover markers (X symbols) to highlight bullish and bearish crossovers for cleaner signal recognition. EMA200 is included as the long-term trend anchor.
This tool is ideal for scalpers, day traders, and swing traders who require higher-timeframe context while trading lower-timeframe entries.
🟦 How to Use the Indicator
1. Choose the Higher Timeframe to Simulate
Use the “HTF to Simulate” dropdown to select the timeframe you want to emulate (e.g., 4H, 2H, 1D, 1W).
The script automatically scales the EMA lengths so they match the selected HTF.
2. Read the Ribbon for Trend Direction
Green Ribbon → EMA34 above EMA89 → Bullish momentum
Red Ribbon → EMA34 below EMA89 → Bearish momentum
The ribbon expands when momentum strengthens and contracts during consolidation.
3. Use EMA Crossovers as Signal Zones
Optional X markers highlight crossover points:
Bullish Crossover → EMA34 crosses above EMA89
Bearish Crossover → EMA34 crosses below EMA89
These crossovers often align with trend shifts or early momentum changes.
4. EMA200 as Trend Filter
The EMA200 acts as the macro trend filter:
Price above EMA200 → only consider long setups
Price below EMA200 → only consider short setups
Combining ribbon trend + EMA200 alignment improves signal accuracy.
5. Multi-Timeframe Trading Strategy
This indicator is powerful for:
Scalping with HTF bias
Pullback entry on lower timeframe during HTF trend
Identifying trend exhaustion when the ribbon flips
Confirming wave structure (Elliott Wave, Dow Theory)
Spotting strong momentum phases and squeeze zones
Example workflow:
Select 4H as HTF simulation.
Trade on 15m or 5m chart.
Enter only when price aligns with the HTF ribbon + EMA200 trend.
Use EMA crossovers as confirmation signals.
Cjack COT IndexHere's the updated description with the formula and additional context:
---
**Cjack COT Index - Commitment of Traders Positioning Indicator**
This indicator transforms raw Commitment of Traders (COT) data into normalized 0-100 index values, making it easy to identify extreme positioning across different trader categories.
**How It Works:**
The indicator calculates a min-max normalized index for three trader groups over your chosen lookback period (default 26 weeks):
- **Large Speculators** (Non-commercial positions) - typically trend followers
- **Small Speculators** (Non-reportable positions) - retail traders
- **Commercial Hedgers** - producers and consumers hedging business risk
The normalization formula is: **Index = (Current Position - Minimum Position) / (Maximum Position - Minimum Position) × 100**
This calculation shows where current net positioning sits between the minimum and maximum levels observed in the lookback window. A reading of 100 means current positioning equals the maximum net long over that period, 0 equals the minimum (most net short), and 50 is the midpoint of the range.
**Important:** The lookback period critically affects index readings - shorter lookbacks (13-26 weeks) make the index more sensitive to recent extremes, while longer lookbacks (52-78 weeks) provide broader historical context and identify truly exceptional positioning. Min-max normalization is essential because it makes positioning comparable across different contracts and time periods, regardless of the absolute size of positions.
**What It's Good For:**
The indicator excels at identifying **crowded trades** and potential reversals by tracking contrarian setups where commercials (smart money) position opposite to speculators. Background highlighting automatically flags:
- **Long setups** (green): Commercials heavily long while speculators are heavily short
- **Short setups** (red): Commercials heavily short while speculators are heavily long
The "Shift Index" option (enabled by default) displays last week's tradeable COT data aligned with current price action, ensuring you're working with actionable information since COT reports publish with a delay.
Works on weekly timeframes and below for commodities and futures with available COT data.
Volume % + OBV intensity + histogram (v6)1) Volume % (logic that already existed)
• Average volume at the last 20 days =
• Average level → 50%
• More than double the average → **100%**
• Mapping between 0 and 100%
2) OBV % (newly added)
• Look at the OBV change compared to the previous bar
• obvChange = obv - obv
• Compare the absolute value of this change (the magnitude of the force) to the average change in the last 20 bars
• Average level → 50%
• More than double the average → 100%
• Use the value from 0 to 100% as obvPercent
3) Long/Short Section Judgment (OBV basis)
• obvChange > 0 이고 obvPercent >= 60 →
👉 Good section to enter long (buying energy is strong) → Green number
• obvChange < 0 이고 obvPercent >= 60 →
👉 Short entry decent section (sell energy strong) → Red number
ATR STRUCTURE
So I can produce this
🟡 START = 662.63 ✳️ ATR ≈ 8.30 pts (0.5 ATR ≈ 4.15 • 1 ATR ≈ 8.30) 🙂📏
ATR bands (numeric)
🔼 START + 0.5 ATR = 662.63 + 4.15 = 666.78 (upper buffer / shelf)
🔼 START + 1 ATR = 662.63 + 8.30 = 670.93 (breakout band)
🔽 START − 0.5 ATR = 662.63 − 4.15 = 658.48 (near support)
🔽 START − 1 ATR = 662.63 − 8.30 = 654.33 (deeper stop zone)
— Priority level ladder (footprint‑first & ATR alignment) — (emoji = confidence • 🔥 = high • ✅ = footprint confirmed • 🟡 = medium)
🔥🟢 PM_LOW / D1 — ~659.95 → 660.50 ✅ (FOOTPRINT CONFIRMED)
Why: repeated 30m+1h absorption (sold‑into then bought up). DEEP confidence. 🧯🔁
🔥🔴 ORBH / U2 cluster — ~663.98 → 665.87 ✅ (FOOTPRINT SUPPLY)
Why: repeated rejections / sell MaxDelta rows on 30m & 1h. Treat as overhead supply / shelf. 🪓📉
🔥🟦 D3 / ORBL corridor — ~658.64 ✅ (TF confluence: 1h+4h MaxDelta)
Why: single‑row institutional sells map here; structural LVN / open‑range low. 🛡️📌
🟡⭐ START / U1 pivot zone — ~662.63 – 662.70 ✅ (session pivot, 1h absorption)
Why: session magnet—use for intraday bias pivot / quick confirms. 👀⚖️
🟡🔥 U4 / U5 upper HVN band — ~666.7 → 669.3 (ATR UPPER)
Why: strong HVN / stop‑run evidence on higher TFs — needs large buy MaxDelta to flip. 🚧🚀
⚪ D5 lower expansion support — ~654.3–656.7 (deeper target if sellers run)
Why: longer‑TF expansion area; lower immediate probability but high impact if hit. ⚠️📉
Vince/Williams Extreme Volatility VulnerabilityDescription: This indicator implements the "Period of Extreme Vulnerability" concept developed by Ralph Vince and Larry Williams. The theory posits that a healthy market must regularly see the number of New Lows "dry up" (drop to near zero). When the percentage of New Lows fails to drop below a minimal threshold (default 0.15%) for a prolonged period (default 65 days), it indicates that internal market structure is rotting even if prices are rising, leaving the market fragile and prone to sudden volatility shocks.
I have programmed this script to track that exact condition—the extended absence of a "low" New Lows reading. It applies a 50-day Moving Average filter to contextually categorize the signal:
Red Dot (Crash Warning): Triggers when the vulnerability period begins while the price is above the 50 SMA. This is the classic warning signal, indicating that an uptrend is unsupported by market internals and a sharp correction may be imminent.
Green Dot (Contrarian Buy): Triggers when the vulnerability period begins while the price is below the 50 SMA. The script identifies this as a potential capitulation or value point where the persistent internal weakness is likely already priced in.
Note: This indicator requires exchange-wide data (New Lows, Advancers, Decliners) to function. It is best used on daily timeframes.
Prev Day High/Low/CloseAt the beginning of the session previous day High, Low and Close lines are drawn for the whole day session instead of bar by bar.
Simple VP Shape DetectorSimple VP Shape Detector is a lightweight Pine Script tool designed to help traders quickly identify the four major Volume Profile shapes commonly used in orderflow and auction-market theory:
D-Shape (Balanced Profile)
P-Shape (Short-Covering / Buyer-Dominant)
B-Shape (Long-Liquidation / Seller-Dominant)
Thin Profile (Trend Profile)
This indicator uses candle statistics (range, body size, volume distribution approximation, and directional movement) to estimate the underlying shape of the volume profile when the full Volume Profile tool is not available.
✔️ What this indicator does
Analyzes recent bars to estimate volume concentration vs. price movement
Flags possible VP shapes using simple logic
Displays labels above/below candles showing:
“D” → Balanced
“P” → Buyer-heavy
“B” → Seller-heavy
“T” → Trending / Thin profile
Helps traders quickly identify auction conditions
✔️ Why this is useful
Volume Profile tools require premium data or heavy visual processing.
This script provides a simple, fast, CPU-light alternative that still captures the essential behavior of profile shapes.
✔️ How shapes are detected
D-Shape: small directional movement + larger body clustering
P-Shape: strong upward move + volume weighted to upper half
B-Shape: strong downward move + volume weighted to lower half
Thin: long range candles with little internal consolidation
⚠️ Disclaimer
This script is an approximation. It does NOT replace full Volume Profile tools.
It is designed as an educational / supplemental tool for market structure analysis.
5m EMA + CCI + MACD + RSI + 1H/4H + Exhaustion (Clean)This Strategy Proves Profitable on the Back Test uses 5 Minute Chart Only Any asset Plots Buy sell and Exhaustion on chart uses 3 ema 50 110 and 260 CCI and MACD do not blindly follow the signals confirm fist
Sniper Strategy [Short Only]//@version=6
strategy("Sniper Strategy ", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10, currency=currency.NONE)
// --- 参数设置 ---
atrPeriod = input.int(10, "ATR")
factor = input.float(3.0, "Factor")
sl_buffer = input.float(0.0, "SL Buffer", tooltip="在Supertrend上方增加一点缓冲")
// --- 核心计算 ---
= ta.supertrend(factor, atrPeriod)
// direction > 0 代表空头(红), < 0 代表多头(绿)
short_signal = ta.change(direction) > 0
exit_signal = ta.change(direction) < 0
// --- 变量记录 ---
var float entry_price = na
var float sl_price = na
var float tp_price = na
var bool tp_hit = false
// --- 1. 进场逻辑 (Entry) ---
if short_signal
// 做空止损放在 Supertrend 价格上方
float initial_sl = supertrend + sl_buffer
entry_price := close
sl_price := initial_sl
// 计算风险值 (价格差)
float risk_val = sl_price - entry_price
// 1R 止盈目标 (做空是向下减)
tp_price := entry_price - risk_val
tp_hit := false
strategy.entry("S", strategy.short)
// 标签:显示具体止损价格 + 亏损百分比
float risk_pct = (risk_val / entry_price) * 100
label_txt = "SL: " + str.tostring(sl_price, "#.##") + " Risk: " + str.tostring(risk_pct, "#.2") + "%"
// 做空标签显示在K线上方
label.new(bar_index, high, text=label_txt, style=label.style_label_down, color=color.new(color.red, 40), textcolor=color.white, size=size.small)
// --- 2. 持仓管理 (Management) ---
if strategy.position_size < 0
// 1R 目标达成:平仓 50%
strategy.exit("1R", "S", stop=sl_price, qty_percent=50, limit=tp_price)
// 剩余仓位止损
strategy.exit("End", "S", stop=sl_price)
// 1R 视觉提示 (只提示一次)
if not tp_hit and low <= tp_price
tp_hit := true
label.new(bar_index, low, text="1R 💰", style=label.style_label_up, color=color.new(color.yellow, 20), textcolor=color.black, size=size.small)
// --- 3. 趋势反转离场 (Exit) ---
if exit_signal
strategy.close_all()
entry_price := na
sl_price := na
tp_price := na
Vortex Pro with Moving average [point algo]Vortex Pro with MA Dropdown is an enhanced version of the classic Vortex Indicator (VI), designed to help visualize directional strength by comparing positive and negative trend movement.
This version includes a smoothed “Vortex Pro” line, adjustable moving-average filtering, and dynamic zone coloring for improved readability.
How It Works:
The script calculates VI+ and VI− using directional movement and true range.
“Vortex Pro” is derived from the difference between VI+ and VI−, scaled for clarity.
A customizable moving average (EMA, SMA, HMA, WMA) is applied to help smooth volatility and highlight shifts in momentum.
Features :
• Vortex Pro Line
A scaled trend-strength line showing when positive movement is dominating or weakening.
• MA Type Dropdown
Choose between EMA, SMA, HMA, or WMA to smooth the Vortex Pro line.
• Zero-Line Structure
A plotted zero line is used to compare positive vs. negative strength visually.
• Dynamic Fill Zones
Green shading when the Vortex Pro line is above zero, red when below.
Usage:
This tool is designed for visual analysis of trend direction and momentum strength.
It does not generate buy/sell signals and should be used as part of a broader analysis approach.
Suitable for all timeframes and markets.
Ata✨SMAThis Pine Script v6 indicator performs three main functions on a trading chart:
Multiple Moving Averages (MA)
Displays 7 moving averages with fixed lengths (5, 10, 20, 30, 50, 100, 200).
Allows the user to select the MA type: SMA, EMA, WMA, or HMA.
Each MA has a distinct color and line width for clear visual differentiation.
Support and Resistance (S/R) Levels
Identifies key price levels based on pivot points (local highs/lows) within a user‑defined lookback period.
Filters levels by:
Minimum strength (number of touches).
Maximum zone width (as a percentage of price range).
Timeframe (user‑selectable: 5m to monthly).
Visualizes levels as horizontal zones (boxes) colored by type:
Red (res_col) for resistance.
Green (sup_col) for support.
Blue (inch_col) for indecision zones.
Optionally shows a table with level prices, types, and strength percentages.
Includes alert triggers for breakouts (price closing above resistance or below support).
Volume Profile (Side Volumes)
Builds a horizontal volume histogram to the right of the last bar, showing buy/sell volume distribution across price levels.
Highlights the Point of Control (POC) — the price with the highest total volume.
Colors:
Light blue for buy volume.
Light red for sell volume.
Yellow for POC line.
Allows customization of:
Number of bars used for calculation.
Rightward shift of the volume profile.
POC line extension leftward.
Includes tooltips explaining POC and trading scenarios.
Summary:
The script combines trend-following MAs, dynamic S/R zones with alerts, and volume profile analysis into a single indicator for multi‑faceted market structure assessment.
Pro AI Trading - Monthly Weekly Daily open w/ Calendar viewCaptures 1st hour of the trading day (initial balance) and draws the boxes marking the range and the line marking the precise open price .
Uses month , week and day openings. Quarterly and yearly/half a year opens have a different color to signal the weight.
Contains D/W/M vertical separators as well, so it can be used as a "calendar" for easier chart organization and overview.
Lots of customization options for everyone.
If you notice any bugs or have some suggestions and/or feature requests, reach out. Don't be shy.
Trade well :)
- KamenskyPapp
PRESTIJLO ULTIMATE CHART — V2 PRO (Stable)It is a non-repaint scalp & trend indicator that includes Trend + Momentum + Reversal + FVG + EQH/EQL + TP/SL. It works most reliably on the 5-minute chart.
Liquidity Void Zone Detector [PhenLabs]📊 Liquidity Void Zone Detector
Version: PineScript™v6
📌 Description
The Liquidity Void Zone Detector is a sophisticated technical indicator designed to identify and visualize areas where price moved with abnormally low volume or rapid momentum, creating "voids" in market liquidity. These zones represent areas where insufficient trading activity occurred during price movement, often acting as magnets for future price action as the market seeks to fill these gaps.
Built on PineScript v6, this indicator employs a dual-detection methodology that analyzes both volume depletion patterns and price movement intensity relative to ATR. The revolutionary 3D visualization system uses three-layer polyline rendering with adaptive transparency and vertical offsets, creating genuine depth perception where low liquidity zones visually recede and high liquidity zones protrude forward. This makes critical market structure immediately apparent without cluttering your chart.
🚀 Points of Innovation
Dual detection algorithm combining volume threshold analysis and ATR-normalized price movement sensitivity for comprehensive void identification
Three-layer 3D visualization system with progressive transparency gradients (85%, 78%, 70%) and calculated vertical offsets for authentic depth perception
Intelligent state machine logic that tracks consecutive void bars and only renders zones meeting minimum qualification requirements
Dynamic strength scoring system (0-100 scale) that combines inverted volume ratios with movement intensity for accurate void characterization
Adaptive ATR-based spacing calculation that automatically adjusts 3D layering depth to match instrument volatility
Efficient memory management system supporting up to 100 simultaneous void visualizations with automatic array-based cleanup
🔧 Core Components
Volume Analysis Engine: Calculates rolling volume averages and compares current bar volume against dynamic thresholds to detect abnormally thin trading conditions
Price Movement Analyzer: Normalizes bar range against ATR to identify rapid price movements that indicate liquidity exhaustion regardless of instrument or timeframe
Void Tracking State Machine: Maintains persistent tracking of void start bars, price boundaries, consecutive bar counts, and cumulative strength across multiple bars
3D Polyline Renderer: Generates three-layer rectangular polylines with precise timestamp-to-bar index conversion and progressive offset calculations
Strength Calculation System: Combines volume component (inverted ratio capped at 100) with movement component (ATR intensity × 30) for comprehensive void scoring
🔥 Key Features
Automatic Void Detection: Continuously scans price action for low volume conditions or rapid movements, triggering void tracking when thresholds are exceeded
Real-Time Visualization: Creates 3D rectangular zones spanning from void initiation to termination, with color-coded depth indicating liquidity type
Adjustable Sensitivity: Configure volume threshold multiplier (0.1-2.0x), price movement sensitivity (0.5-5.0x), and minimum qualifying bars (1-10) for customized detection
Dual Color Coding: Separate visual treatment for low liquidity voids (receding red) and high liquidity zones (protruding green) based on 50-point strength threshold
Optional Compact Labels: Toggle LV (Low Volume) or HV (High Volume) circular labels at void centers for quick identification without visual clutter
Lookback Period Control: Adjust analysis window from 5 to 100 bars to match your trading timeframe and market volatility characteristics
Memory-Efficient Design: Automatically manages polyline and label arrays, deleting oldest elements when user-defined maximum is reached
Data Window Integration: Plots void detection binary, current strength score, and average volume for detailed analysis in TradingView's data window
🎨 Visualization
Three-Layer Depth System: Each void is rendered as three stacked polylines with progressive transparency (85%, 78%, 70%) and calculated vertical offsets creating authentic 3D appearance
Directional Depth Perception: Low liquidity zones recede with back layer most transparent; high liquidity zones protrude with front layer most transparent for instant visual differentiation
Adaptive Offset Spacing: Vertical separation between layers calculated as ATR(14) × 0.001, ensuring consistent 3D effect across different instruments and volatility regimes
Color Customization: Fully configurable base colors for both low liquidity zones (default: red with 80 transparency) and high liquidity zones (default: green with 80 transparency)
Minimal Chart Clutter: Closed polylines with matching line and fill colors create clean rectangular zones without unnecessary borders or visual noise
Background Highlight: Subtle yellow background (96% transparency) marks bars where void conditions are actively detected in real-time
Compact Labeling: Optional tiny circular labels with 60% transparent backgrounds positioned at void center points for quick reference
📖 Usage Guidelines
Detection Settings
Lookback Period: Default: 10 | Range: 5-100 | Number of bars analyzed for volume averaging and void detection. Lower values increase sensitivity to recent changes; higher values smooth detection across longer timeframes. Adjust based on your trading timeframe: short-term traders use 5-15, swing traders use 20-50, position traders use 50-100.
Volume Threshold: Default: 1.0 | Range: 0.1-2.0 (step 0.1) | Multiplier applied to average volume. Bars with volume below (average × threshold) trigger void conditions. Lower values detect only extreme volume depletion; higher values capture more moderate low-volume situations. Start with 1.0 and decrease to 0.5-0.7 for stricter detection.
Price Movement Sensitivity: Default: 1.5 | Range: 0.5-5.0 (step 0.1) | Multiplier for ATR-normalized price movement detection. Values above this threshold indicate rapid price changes suggesting liquidity voids. Increase to 2.0-3.0 for volatile instruments; decrease to 0.8-1.2 for ranging or low-volatility conditions.
Minimum Void Bars: Default: 10 | Range: 1-10 | Minimum consecutive bars exhibiting void conditions required before visualization is created. Filters out brief anomalies and ensures only sustained voids are displayed. Use 1-3 for scalping, 5-10 for intraday trading, 10+ for swing trading to match your time horizon.
Visual Settings
Low Liquidity Color: Default: Red (80% transparent) | Base color for zones where volume depletion or rapid movement indicates thin liquidity. These zones recede visually (back layer most transparent). Choose colors that contrast with your chart theme for optimal visibility.
High Liquidity Color: Default: Green (80% transparent) | Base color for zones with relatively higher liquidity compared to void threshold. These zones protrude visually (front layer most transparent). Ensure clear differentiation from low liquidity color.
Show Void Labels: Default: True | Toggle display of compact LV/HV labels at void centers. Disable for cleaner charts when trading; enable for analysis and review to quickly identify void types across your chart.
Max Visible Voids: Default: 50 | Range: 10-100 | Maximum number of void visualizations kept on chart. Each void uses 3 polylines, so setting of 50 maintains 150 total polylines. Higher values preserve more history but may impact performance on lower-end systems.
✅ Best Use Cases
Gap Fill Trading: Identify unfilled liquidity voids that price frequently returns to, providing high-probability retest and reversal opportunities when price approaches these zones
Breakout Validation: Distinguish genuine breakouts through established liquidity from false breaks into void zones that lack sustainable volume support
Support/Resistance Confluence: Layer void detection over key horizontal levels to validate structural integrity—levels within high liquidity zones are stronger than those in voids
Trend Continuation: Monitor for new void formation in trend direction as potential continuation zones where price may accelerate due to reduced resistance
Range Trading: Identify void zones within consolidation ranges that price tends to traverse quickly, helping to avoid getting caught in rapid moves through thin areas
Entry Timing: Wait for price to reach void boundaries rather than entering mid-void, as voids tend to be traversed quickly with limited profit-taking opportunities
⚠️ Limitations
Historical Pattern Indicator: Identifies past liquidity voids but cannot predict whether price will return to fill them or when filling might occur
No Volume on Forex: Indicator uses tick volume for forex pairs, which approximates but doesn't represent true trading volume, potentially affecting detection accuracy
Lagging Confirmation: Requires minimum consecutive bars (default 10) before void is visualized, meaning detection occurs after void formation begins
Trending Market Behavior: Strong trends driven by fundamental catalysts may create voids that remain unfilled for extended periods or permanently
Timeframe Dependency: Detection sensitivity varies significantly across timeframes; settings optimized for one timeframe may not perform well on others
No Directional Bias: Indicator identifies liquidity characteristics but provides no predictive signal for price direction after void detection
Performance Considerations: Higher max visible void settings combined with small minimum void bars can generate numerous visualizations impacting chart rendering speed
💡 What Makes This Unique
Industry-First 3D Visualization: Unlike flat volume or liquidity indicators, the three-layer rendering with directional depth perception provides instant visual hierarchy of liquidity quality
Dual-Mode Detection: Combines both volume-based and movement-based detection methodologies, capturing voids that single-approach indicators miss
Intelligent Qualification System: State machine logic prevents premature visualization by requiring sustained void conditions, reducing false signals and chart clutter
ATR-Normalized Analysis: All detection thresholds adapt to instrument volatility, ensuring consistent performance across stocks, forex, crypto, and futures without constant recalibration
Transparency-Based Depth: Uses progressive transparency gradients rather than colors or patterns to create depth, maintaining visual clarity while conveying information hierarchy
Comprehensive Strength Metrics: 0-100 void strength calculation considers both the degree of volume depletion and the magnitude of price movement for nuanced zone characterization
🔬 How It Works
Phase 1: Real-Time Detection
On each bar close, the indicator calculates average volume over the lookback period and compares current bar volume against the volume threshold multiplier
Simultaneously measures current bar's high-low range and normalizes it against ATR, comparing the result to price movement sensitivity parameter
If either volume falls below threshold OR movement exceeds sensitivity threshold, the bar is flagged as exhibiting void characteristics
Phase 2: Void Tracking & Qualification
When void conditions first appear, state machine initializes tracking variables: start bar index, initial top/bottom prices, consecutive bar counter, and cumulative strength accumulator
Each subsequent bar with void conditions extends the tracking, updating price boundaries to envelope all bars and accumulating strength scores
When void conditions cease, system checks if consecutive bar count meets minimum threshold; if yes, proceeds to visualization; if no, discards the tracking and resets
Phase 3: 3D Visualization Construction
Calculates average void strength by dividing cumulative strength by number of bars, then determines if void is low liquidity (>50 strength) or high liquidity (≤50 strength)
Generates three polyline layers spanning from start bar to end bar and from top price to bottom price, each with calculated vertical offset based on ATR
Applies progressive transparency (85%, 78%, 70%) with layer ordering creating recession effect for low liquidity zones and protrusion effect for high liquidity zones
Creates optional center label and pushes all visual elements into arrays for memory management
Phase 4: Memory Management & Display
Continuously monitors polyline array size (each void creates 3 polylines); when total exceeds max visible voids × 3, deletes oldest polylines via array.shift()
Similarly manages label array, removing oldest labels when count exceeds maximum to prevent memory accumulation over extended chart history
Plots diagnostic data to TradingView’s data window (void detection binary, current strength, average volume) for detailed analysis without cluttering main chart
💡 Note:
This indicator is designed to enhance your market structure analysis by revealing liquidity characteristics that aren’t visible through standard price and volume displays. For best results, combine void detection with your existing support/resistance analysis, trend identification, and risk management framework. Liquidity voids are descriptive of past market behavior and should inform positioning decisions rather than serve as standalone entry/exit signals. Experiment with detection parameters across different timeframes to find settings that align with your trading style and instrument characteristics.






















