Pine Script®指标
Candlestick analysis
Snail Sequence + SnailST Levels + CVD/OI Div by TheActualSnail Snail Sequence + SnailST Levels + Order Flow (CVD/OI) by TheActualSnail
Overview
This indicator combines Snail Sequence price exhaustion logic with SnailST Levels (structure) and an order-flow proxy (CVD) plus optional Open Interest confirmation to build a multi-layer confluence model.
Instead of relying on a single signal, it looks for agreement between:
• Exhaustion signals (Setup 8/9 and the 13-step Exhaustion Run)
• Structural context (SnailST Support/Resistance levels)
• Order-flow behavior (CVD divergences and CVD slope)
• Participation context (optional Open Interest filters/confirmation)
The goal is not to call exact tops or bottoms. It’s to highlight zones where probability shifts because multiple independent factors align.
________________________________________
How This Can Be Used As Confluence
This tool is built to answer one question:
“Is there enough evidence that momentum or positioning is changing?”
Typical high-quality situations
Bullish Confluence
• Buy Setup 8/9 or Exhaustion Run 13 appears
• Price holds/reclaims SnailST Support (or breaks above resistance depending on regime)
• CVD prints bullish divergence or CVD slope turns positive
• (Optional) Open Interest conditions align (trend/squeeze logic)
Bearish Confluence
• Sell Setup 8/9 or Exhaustion Run 13 appears
• Price rejects SnailST Resistance (or loses support depending on regime)
• CVD prints bearish divergence or CVD slope turns negative
• (Optional) Open Interest conditions align (trend/squeeze logic)
The Bias Engine aggregates these conditions and prints a BULLISH or BEARISH label only when enough factors agree. This helps reduce random signals and focuses attention on high-participation turning points or continuation zones.
________________________________________
Settings Explained
1) UI & Label Controls
Label Size
Adjusts visibility of numbers and signal labels.
Limit labels to last N bars
Prevents clutter by showing only recent labels.
N bars
How far back labels are allowed to appear.
________________________________________
UI — Number Offsets
(Visual only: moves the printed numbers away from candles.)
Number offset mode (Ticks / ATR)
• Ticks: fixed spacing
• ATR: spacing scales with volatility
ATR length
ATR period used when ATR mode is selected.
Numbers offset (ticks / ATR mult)
Moves number labels up/down to avoid overlapping price candles.
________________________________________
UI — Big Label Placement
(Controls where divergence and bias labels print.)
Bias/Div placement (Auto / Force Above / Force Below)
• Auto = bearish above / bullish below
• Force options override direction
Bias/Div offset (price)
Pushes big labels away from price (useful on BTC/high-vol pairs).
________________________________________
2) Snail Sequence Settings
Setup (1–9)
Require Price Flip to start Setup
Stricter logic. Helps avoid counting setups in messy transitions.
Buy Setup / Sell Setup
Enable or disable either side.
Show only 8/9 (hide 1–7)
Cleaner chart for traders who only care about exhaustion zones.
________________________________________
Exhaustion Run (1–13)
Show Exhaustion Run
Displays the 13-step exhaustion sequence.
Cancel Run on Opposite Setup 9
Stops the run if a full opposite setup completes.
Require 13 qualified vs 8
Stricter “completion” requirement. Helps filter weaker 13s.
Show Run 8 Marker
Highlights the key intermediate step.
________________________________________
Perfected Signals
Mark Perfected 8/9
Highlights higher-quality 8/9 conditions.
Show Perfected Later Arrows
Marks when a setup becomes “perfected” later after completion.
________________________________________
SnailST Levels (Structure)
SnailST Downside (Support) / SnailST Upside (Resistance)
Plots structure levels derived from completed setups.
These often act as:
• Reaction / liquidity zones
• Breakout confirmation levels
• Invalidation context
________________________________________
Recycling (Advanced)
Enable Recycling Markers (R/S)
Optional markers for extended cycles/reset logic.
Recycle Marker (R)
Triggers when the run drags on too long without resolving.
Recycle Marker (S) + multiplier
Compares setup range expansion vs prior setup to flag “size-based recycling.”
________________________________________
Sequence Colors
Visual customization for setups, perfected marks, run values, SnailST levels, and recycling markers.
________________________________________
3) Order Flow (CVD) Settings
This module estimates buy vs sell pressure using intrabar volume and builds a running CVD.
Calculation
Lower TF for intrabars
Smaller timeframe = more precise, but heavier to compute.
Delta mode (Delta / Delta %)
• Delta: raw difference
• Delta %: normalized by total volume
CVD reset
Controls when CVD restarts (daily/weekly/monthly/session/fixed time).
________________________________________
Open Interest (Optional)
Enable Open Interest / OI symbol
Pulls OI from your selected symbol.
Use OI MA (internal) + MA length
Smoothing helper (used internally).
OI trend length
Defines “rising/falling” detection window.
Filter divergence labels by OI
Only show divergences when OI direction matches your selected rule.
________________________________________
Divergences
Enable divergence labels
Turns divergence labels on/off.
Pivot length
Sensitivity for swing detection (bigger = fewer, stronger signals).
Use wicks for pivots
More aggressive pivot detection.
Min CVD difference (filter)
Filters weak divergences.
Also show hidden divergences
Adds continuation-style divergences.
________________________________________
4) Bias Engine (Signal Aggregator)
This is the confluence core. It scores:
• Sequence events (Setup 8/9 or Run 13)
• CVD divergences (regular/hidden)
• CVD slope filter
• SnailST context (buffered)
• Optional OI confirmation (if enabled)
Then prints BULLISH or BEARISH only if enough factors align.
Mode (Aggressive / Balanced / Conservative)
Controls how many confirmations are required.
SnailST buffer (ticks)
Adds a buffer around SnailST levels to reduce “noise touches.”
Bias label cooldown (bars)
Prevents repeated labels in tight ranges.
________________________________________
5) Alerts
Alerts are available for:
• Buy Setup 9 / Sell Setup 9
• Buy Run 13 / Sell Run 13
• Bullish/Bearish CVD Divergence
• Bullish/Bearish Bias (Sequence + OF)
________________________________________
Best Practices
• Use it as confirmation, not a standalone entry button.
• Higher timeframes usually produce cleaner signals.
• Combine with structure tools (key levels, VWAP, liquidity zones).
• Treat Setup 8/9 and Run 13 as potential exhaustion, not guaranteed reversals.
________________________________________
Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
Markets are probabilistic and no indicator can guarantee outcomes.
Always manage risk and make independent decisions based on your own analysis and circumstances.
Pine Script®指标
Relevant Order Blocks Detector (BOS + Displacement)This indicator is designed to identify only the most relevant Order Blocks, filtering out market noise and low-quality zones.
It detects Order Blocks based on real Break of Structure (BOS) combined with strong displacement, ensuring that each marked zone represents institutional activity rather than random price movement.
A Bullish Order Block is formed when the last bearish candle before a strong bullish impulse breaks the previous structure high.
A Bearish Order Block is formed when the last bullish candle before a strong bearish impulse breaks the previous structure low.
Only Order Blocks that meet strict strength and structure conditions are displayed, making the indicator ideal for scalping, intraday trading, and CRT-based strategies.
Key Features:
Break of Structure (BOS) confirmation
Strong impulse (displacement) filter
Noise reduction (high-quality OBs only)
Clean and minimal chart visualization
Suitable for 5m, 15m, and 1H timeframes
This tool is best used in confluence with liquidity sweeps, FVGs, and session timing rather than as a standalone signal.
Pine Script®指标
MTF Fractal Model Its open source so you can make it better and message me for necessary update to use it better.
Pine Script®指标
HTRHere is the step-by-step process:
Copy the Code: Scroll up to the last block of code I provided (the "Final: Sessions + Days + Loopbacks (Replay Fixed)" version) and click the "Copy" button in the top right corner of the code block.
Open Pine Editor:
Go to your TradingView chart.
Look at the very bottom of the screen. You will see a tab labeled "Pine Editor". Click it to open the panel.
Paste the Code:
If there is already code in there (like a default script), delete everything so the editor is completely blank.
Paste the code you just copied (Ctrl+V or Cmd+V).
Save the Script:
Click the "Save" button (or "Untitled Script") in the top right of the Pine Editor panel.
Give it a name, for example: My Custom Session & Days.
Click Save.
Add to Chart:
Click the "Add to Chart" button (next to the Save button
Pine Script®指标
Dollar Ladder RulerDollar Ladder Ruler — Intraday Price Levels
A clean, automatic price ladder overlay that draws consistent horizontal dollar-based levels around the current price to help visualize psychological support/resistance zones and intraday reaction areas.
Designed specifically for SPY, QQQ, large-cap stocks, and options scalping.
Levels drawn
• $0.50 → thin white dashed
• $1.00 → thin white solid
• $2.50 → medium bold
• $5.00 → thick bold
• $10.00 → thick gold (major levels)
Why this is useful
• Highlights psychological whole/half dollar magnets
• Makes bounces/rejections obvious
• Great for scalping, 0DTE, and day trading
• Automatically recenters around current price
• No manual drawing required
• Lightweight + updates in real time
Best used on
• 1m–5m charts
• SPY / QQQ / high-liquidity tickers
• Intraday trading
Adjust Range Above/Below Price ($) to control how many levels are shown.
Pine Script®指标
MACD SMI PNR Pro Ver.2 [dDy879]
1. Core Oscillators
MACD: Serves as the primary trend bias and momentum indicator. A crossover signifies the potential start of a new price cycle.
SMI (Stochastic Momentum Index): This is more stable than a standard Stochastic. It helps identify "optimal" entry points (buying dips in an uptrend / selling rallies in a downtrend) using double smoothing to eliminate market noise.
2. Precision Filters
PNR (Percentile Near Range): A statistical tool that calculates the median price range over the last 21 bars. If the price is above the PNR line, the system focuses exclusively on BUY setups.
DMI (DI+ / DI-): Used to verify whether "Buyers" or "Sellers" are truly in control. The signal arrow only appears if the dominant force's strength is above 20 (DMI/ADX threshold).
3. Visuals & Signals
Dots: Represent a "Warning" signal when a basic MACD crossover occurs.
Triangles (Filtered Arrows): These are "Confirmation" signals. They only appear when MACD, SMI, PNR, and DMI conditions are all aligned simultaneously.
Dashboard: Provides a Multi-Timeframe (MTF) summary, ensuring that the current trade direction is supported by the trend in higher timeframes.
Summary: This code doesn't just look at price crossovers; it ensures that Trend, Momentum, Statistical Value, and Volume Strength are all pointing in the same direction before suggesting a trade.
Pine Script®指标
Intraday Levels ProIntraday Levels (IDLevels) — View‑Safe Session Levels (v6)
Intraday Levels is a lightweight, view‑safe session levels indicator that plots the most important intraday reference prices without spamming labels or cluttering your chart. Every level is drawn as one persistent line + one persistent label, updated in real time as the session develops.
What it plots
Intraday Sessions
Premarket High / Low (PMH / PML)
Regular Session (RTH) Day High / Low (DH / DL)
Afterhours High / Low (AHH / AHL)
Prior Day Levels (Optional)
Previous Day High / Low (PDH / PDL)
Previous Day Close (PDC)
2 Days Ago High / Low (PDH2 / PDL2)
Weekly Levels
Week High / Low (WH / WL)
Previous Week High / Low (PWH / PWL)
Built for “View‑Safe” charts (no label spam)
This script updates the same objects instead of creating new ones every bar:
✅ One label per level (updated in place)
✅ One line per level (updated in place)
✅ No repeated labels stacking on the right side of the chart
Display Modes
Choose how levels behave across the chart:
1) Today only
Levels extend to the right, anchored to the current day/session
2) Most recent across chart
Levels extend across the full chart (great for quick context)
Labels & Styling
Toggle lines on/off
Toggle labels on/off
Toggle price on labels (e.g., PMH 7027.25)
Choose Short names (PMH/PDH/etc.) or Full names (Premarket High/Prev Day High/etc.)
Adjustable label size + label offset
Style controls for intraday/prior/weekly lines (solid/dashed/dotted)
Optional Force Dotted mode to make everything dotted quickly
Premarket data handling (QQQ / SPY / Futures friendly)
If your symbol doesn’t provide reliable Premarket data (or you are on a feed/session without PM candles), there’s an optional fallback:
PM Proxy Toggle
If no Premarket session exists, the script can use the first X minutes of RTH as a Premarket proxy range.
Notes
Session times are exchange‑time based using TradingView session inputs.
Intended for intraday traders who want clean, high-signal levels without chart compression or label clutter.
Pine Script®指标
ICT Midnight Cross Strategy Choose the number of times price crosses over the midnight price before taking a position or use it to create alerts for crossing the midnight price. Adjust your timeframe for exiting the position. You can confirm momentum with consecutive candle closes and you can add a trailing stop or a break even profit strategy. No signals generated from this script should be considered advice for investment or trading. Created with Gemini.
Pine Script®策略
GreenPen 1.2GreenPen MTF Confirmation
Multi-timeframe price action indicator for M1 scalping (XAUUSD)
How It Works
Draws a range box based on 7AM (GMT+7) candle open ± offset
Detects Bullish/Bearish Engulfing with wick rejection at range edges
Optional Higher TF trend filter (EMA on H2/H4)
Optional M5 confirmation — requires both M1 and M5 PA to align
Signals
🟢🔴 Circle — Raw Engulf + Wick (unfiltered, for reference)
🔺 B / S Triangle — Filtered entry at range edge
🚀 Rocket — MTF BUY Confirmed (M1 + M5 bullish PA aligned)
🔨 Hammer — MTF SELL Confirmed (M1 + M5 bearish PA aligned)
SL / TP
SL placed beyond range edge + ATR buffer
TP calculated using Risk:Reward ratio (default 1:2)
Settings
Range offset — distance from 7AM open to draw upper/lower box
Edge zone % — how much of the range counts as "edge" for entries
Trend filter — toggle higher TF EMA trend filter on/off
MTF confirm — toggle M5 confirmation on/off
Lookback — how many M1 bars to check for M5 PA alignment
Recommended
Timeframe: M1
Symbol: XAUUSD
Trend TF: H2 or H4
Pine Script®指标
ATR SCALERThis allows you to manually input the ATR STRUCTURE the ORB and PM levels manually on the fly. This has no real mathematical value since its all manual entrys this is primarily for tracking purposes.
Pine Script®指标
Silver Future Trap Hunter (4H Structure + 30mins EXE)Why This Strategy is Popular
In the current market (SMC/ICT era), "Liquidity Sweeps" are the gold standard. Most retail traders get stopped out because they trade 30m patterns without looking at where the "Big Money" is resting. This script bridges that gap by:
Visualizing 4H Ranges: It shows you exactly where the big players are looking to trap retail traders.
Noise Filtering: It grays out "useless" candles, keeping your mind clear for the high-probability setups.
Safety HUD: It uses a multi-timeframe RSI filter to ensure you aren't buying the top of a Daily trend.
Unlock the Power of 4H Institutional Structure on your 30m Chart! ⚔️
Are you tired of getting "wicked out" on lower timeframes? The 30m Trap Hunter is a professional-grade indicator designed to help you trade in harmony with high-timeframe (HTF) institutional order flow while executing on the 30-minute chart.
This isn't just a signal generator; it’s a full Trading HUD and Structure Visualizer.
Key Features:
Dynamic 4H Box Structure: Automatically draws the current 4-hour range and Equilibrium (50% EQ) level. Stay on the right side of the "Premium vs. Discount" zones.
Liquidity Sweep Alerts: Detects when the price "sweeps" a 4H High or Low and closes back inside—signaling a classic "Trap" and potential reversal.
Momentum Breakouts: Identifies high-velocity closes beyond structural levels for trend followers.
Smart Noise Filter: Automatically grays out candles that don't align with the 4H trend, reducing overtrading and psychological fatigue.
Integrated Safety HUD: A bottom-right dashboard that scans Daily and 4H RSI. It tells you instantly if a trade is "SAFE" or "RISKY" based on higher-timeframe overextension.
How to Trade with It:
The Trap: Wait for a "SWEEP" label at the 4H High/Low. Ensure the HUD shows "SAFE" for the direction you want to trade.
The Trend: If the 4H box is teal (Bullish) and candles are colored (not gray), look for long entries at the EQ line or the 4H Low.
The Filter: If the HUD says "RISKY," tighten your stops or wait for a better HTF alignment.
Technical Settings:
Interval: Optimized for 30m (4H Structure), but fully customizable.
Visuals: Clean, aesthetic borders and "Ghost Lines" to track previous liquidity zones.
Stop trading the noise. Start hunting the traps. 🎯
Pine Script®指标
European market strategy analysisProduct: XAUUSD(UTC+8)
Analysis time zone: The opening high and low closing demand marks of the third H4 of the day
Operation entry time zone: M5
Necessary condition: the entity is greater than the line (the line is greater than the side of the entity to cancel the opening or closing mark)
Operation strategy one: callback FIBO (0.382-0.618)~0 and 1 are opening and closing respectively
Stop loss and find effective support from the K bar of FIBO (0.382-0)
Take profit is 1.5 times or 1 times of stop loss
Operation strategy 2: False breakthrough in reverse direction ~ break through FIBO (0 or 1) but not exceed FIBO (1.15 or -0.15)
Stop loss is FIBO (1.15 or -0.15)
Take profit is FIBO (0 or 1)
商品:XAUUSD(UTC+8)
分析時區:當日第三根H4的開高低收需標記
操作進場時區:M5
必要條件:實體大於線(線大於實體的一邊取消開或收標記)
操作策略一:回調FIBO(0.382-0.618)~0和1分別為開和收
止損找FIBO(0.382-0)的K棒具有效支撐
止盈為止損的1.5倍或1倍
操作策略二:假突破反向~突破FIBO(0或1)但不超過FIBO(1.15或-0.15)
止損為FIBO(1.15或-0.15)
止盈為FIBO(0或1)
Pine Script®指标
Oliver Velez System Visual Helper [CocoChoco]Not endorsed by or related to Oliver Velez himself.
🐘 Oliver Velez System Visual Helper
🎯 Overview
Unlock the power of Institutional Trading with this precision tool designed for followers of the Oliver Velez (OV) methodology. This indicator specializes in identifying the "Narrow State"—the coiled spring of the market—and highlighting the high-probability entry candles that signal institutional participation.
Unlike standard indicators that lag, this helper focuses on the transition from low to high volatility, giving you a front-row seat to the moves that matter.
🧩 The Core Philosophy: The Narrow State
According to Oliver Velez, the most explosive moves in the market occur when the 20 SMA and the 200 SMA converge into a Narrow State. This represents a moment of equilibrium where both short-term and long-term traders are in agreement, and the next move is likely to be a significant expansion.
This indicator automates that discovery by:
Measuring Distance: It calculates the exact percentage gap between the SMAs to find the "coil."
Verifying Parallelism: It ensures the SMAs are moving "somewhat horizontal" and parallel, filtering out chaotic crossovers.
Multi-Timeframe Confirmation: It checks your higher timeframe (e.g., 15m) to ensure the big players are aligned before you take a trade on the smaller timeframe.
⚡ Power Entry Highlights
Once a Narrow State is confirmed, the indicator "paints" the chart with specific Velez-style entry patterns. These bars only highlight when Price > 20 SMA > 200 SMA (Bullish) or Price < 20 SMA < 200 SMA (Bearish), ensuring you never trade against the trend.
EB (Elephant Bar): The "Institutional Footprint." Large, solid-bodied bars that represent massive buying or selling.
TB (Tail Bar): Bottoming and Topping tails that show clear rejection of the SMAs, signaling a reversal into the main trend.
180 (Bull/Bear 180): A two-bar reversal pattern where the current bar completely engulfs the body of the previous bar, effectively "flipping" the momentum.
🛠️ Key Features
Dynamic Cloud Ribbon: A solid visual zone between the 20 and 200 SMAs that appears only when the Narrow State and MTF alignment are perfect.
Smart Bar Coloring: Only the specific institutional breakout bars change color, keeping your chart clean and professional.
Dual Alert System:
Narrow State Start: Get notified the second the market begins to coil.
Entry Candle Close: Get a ping exactly when a valid EB, TB, or 180 closes.
Consolidated Style: A clean UI that allows you to manage all pattern colors with a single picker.
🚀 How to Use
Wait for the Cloud: When the ribbon appears between the SMAs, the market is in a Narrow State.
Look for the Color: Watch for an Aqua (default) candle to form.
Check the Label: Verify the entry type (EB, TB, or 180).
Execute: Per OV's rules, enter on the break of the entry bar’s high/low with a stop at the tail/low of the bar.
Disclaimer: Trading involves significant risk. This tool is a visual aid, and may be significantly different from Oliver Velez system, and does not constitute financial advice. Always practice proper risk management.
Pine Script®指标
ETH 5MIn Forex trading on the 1M chart, the key is to “snip” – enter quickly, take a small profit (1%) and exit. Here is an updated description that combines your financial management with field tactics:
“The 1% Sniper” Strategy: Fast Forex Trading (1M Chart)
This is a strategy for disciplined traders looking for short, sharp moves in the market. The goal is to achieve a daily/weekly target of a single 1%, which will accumulate to the $1,000 pullback target.
1. Technical Setup
Timeframe: 1 Minute Chart (
1M
).
Recommended Assets: Major Forex Pairs with Low Spreads (like
EUR/USD
or
GBP/USD
).
Supporting Indicators:
EMA 20/50
for short-term trend identification, and Supply\ &\ Demand zones.
2. Execution
Entry: Identify strong momentum on the 1-minute chart. Enter only when there is a built-in confirmation (e.g. a "hammer" candle on a support level or a breakout of a market structure).
Risk Management:
Risk Per Trade
is fixed. Since the target is 1% per portfolio, we are looking for a risk-reward ratio (
R:R
) of at least
1:2
.
The Goal: Once the portfolio has made a 1% profit that day – close the screen. This discipline is what will get you to $1,000 faster without "returning" money to the market.
3. Map The Financial Roadmap
In this strategy, we are not looking for a single "hit", but consistency:
Base capital: $2,250.
Daily target: 1% (
≈22.5
).
The road to withdrawal: After about 45 successful trading days (or less, if you increase the lot carefully), you reach the $1,000 withdrawal target.
Why does it work for you?
Short screen time: A 1-minute chart allows you to find opportunities quickly, take your percentage and go about your business.
Clear goal: Instead of dreaming of millions, you are focused on the next 1%. This makes the path to the next portfolio much more tangible.
Protection of the capital: Working on a few percentages protects your $2,250 from too sharp fluctuations.
Important to remember: On a 1-minute chart, the "noise" in the market is high. Make sure you work with a broker who has low commissions to That they won't eat up your 1% profit.
Pine Script®策略
5m, 10m, 60m 200 SMA - Black Optimized200SMA for 5 minute, 10 minute, and 60 minute charts mapped on any timeframe. Useful for local supports and resistance on day and swing trades, or pinpointing entries and exits.
Pine Script®指标
Daily & Weekly Closing Range % (Screener Compatible)Overview
This indicator calculates the Daily Closing Range (DCR) and Weekly Closing Range (WCR) as a percentage. It measures where the price finishes relative to the session's high and low.
This is a staple metric for trend followers and "CANSLIM" style traders (popularized by platforms like Deepvue and MarketSmith) to identify institutional support.
A high closing range (e.g., >80%) indicates that despite intraday volatility, buyers were aggressive enough to hold price near the highs.
Key Features
Screener Integration : Designed specifically to work with the TradingView Stock Screener (Beta). You can now filter your universe for stocks closing in the top 10% or 25% of their range.
Clean Visuals : Includes a histogram at the bottom of your chart for quick visual confirmation of price "tightness."
How to use for Screening:
Add this script to your chart.
Open the Stock Screener (Beta).
Add a filter and search for "Closing Range Tracker".
Select Daily Closing Range and set the value to Greater than 90 to find stocks finishing at the dead-highs.
Pine Script®指标
Liquidity Sweeps + MSS (Valid / Ignored)//@version=5
indicator("Liquidity Sweeps + MSS (Valid / Ignored)", overlay=true, max_labels_count=200, max_lines_count=200)
//──────────────────────────────────────────────────────────────
// Inputs
structureLookback = input.int(20, "Structure Lookback (recent highs/lows)", minval=10)
rangeLookback = input.int(80, "Range Lookback (to define extremes)", minval=30)
extremeZonePct = input.float(0.25, "Extreme Zone % (0.25 = top/bottom 25%)", minval=0.05, maxval=0.45, step=0.05)
useCloseReentry = input.bool(true, "Require close back inside level (reentry)")
// MSS / Swings
pivotLeft = input.int(3, "Swing Pivot Left", minval=1)
pivotRight = input.int(3, "Swing Pivot Right", minval=1)
mssMode = input.string("Close", "MSS Break uses", options= ) // Close = stricter
useImpulseFilter = input.bool(true, "Filter strong impulse candles")
impulseATRmult = input.float(1.0, "Max body size (ATR multiple)", minval=0.3, maxval=3.0, step=0.1)
atrLen = input.int(14, "ATR Length", minval=5)
showOnlyValid = input.bool(true, "Show only VALID signals")
showPending = input.bool(true, "Show PENDING label")
plotStructureLvls = input.bool(false, "Plot recent structure levels")
plotMssLevel = input.bool(true, "Plot MSS level while pending")
//──────────────────────────────────────────────────────────────
// Helpers
atr = ta.atr(atrLen)
body = math.abs(close - open)
// Recent structure (dynamic)
recentHigh = ta.highest(high, structureLookback)
recentLow = ta.lowest(low, structureLookback)
// Bigger “range” to determine if we are at extremes vs middle
rngHigh = ta.highest(high, rangeLookback)
rngLow = ta.lowest(low, rangeLookback)
rng = math.max(rngHigh - rngLow, syminfo.mintick)
pos = (close - rngLow) / rng // 0..1
isTopExtreme = pos >= (1.0 - extremeZonePct)
isBotExtreme = pos <= extremeZonePct
impulseOk = not useImpulseFilter or (body <= atr * impulseATRmult)
//──────────────────────────────────────────────────────────────
// Swings for MSS (pivot-based)
ph = ta.pivothigh(high, pivotLeft, pivotRight)
pl = ta.pivotlow(low, pivotLeft, pivotRight)
var float lastSwingHigh = na
var float lastSwingLow = na
// Update latest confirmed swing points (they appear pivotRight bars late, that's fine)
if not na(ph)
lastSwingHigh := ph
if not na(pl)
lastSwingLow := pl
// Optional: plot structure levels
plot(plotStructureLvls ? recentHigh : na, "Recent High", color=color.new(color.red, 70), style=plot.style_linebr, linewidth=2)
plot(plotStructureLvls ? recentLow : na, "Recent Low", color=color.new(color.lime,70), style=plot.style_linebr, linewidth=2)
//──────────────────────────────────────────────────────────────
// Raw sweeps (wick through recent level + optional close reentry)
rawSweepHigh = high > recentHigh and (useCloseReentry ? close < recentHigh : true)
rawSweepLow = low < recentLow and (useCloseReentry ? close > recentLow : true)
// Location filter
preValidHigh = rawSweepHigh and isTopExtreme and impulseOk
preValidLow = rawSweepLow and isBotExtreme and impulseOk
//──────────────────────────────────────────────────────────────
// State machine: PENDING → VALID/IGNORED based on MSS break
var int pendingDir = 0 // 1 = high sweep pending, -1 = low sweep pending, 0 = none
var int pendingStartBar = na
var float pendingMssLevel = na
var label pendingLabel = na
// MSS break condition
breakDown = mssMode == "Close" ? close < pendingMssLevel : low < pendingMssLevel
breakUp = mssMode == "Close" ? close > pendingMssLevel : high > pendingMssLevel
confirmMSSHigh = pendingDir == 1 and not na(pendingMssLevel) and breakDown
confirmMSSLow = pendingDir == -1 and not na(pendingMssLevel) and breakUp
// If no MSS level exists at sweep time, we will ignore (strict = fewer signals)
noMssLevel = pendingDir != 0 and na(pendingMssLevel)
// Pending visualization of MSS level
plot(plotMssLevel and pendingDir != 0 ? pendingMssLevel : na, "Pending MSS Level", color=color.new(color.yellow, 0), style=plot.style_linebr, linewidth=2)
//──────────────────────────────────────────────────────────────
// Label helpers
makeIgnoredLabel(_isHigh, _reason) =>
if not showOnlyValid
float y = _isHigh ? high : low
labelStyle = _isHigh ? label.style_label_down : label.style_label_up
label.new(bar_index, y, "SWEEP IGNORED " + _reason, style=labelStyle, color=color.new(color.gray, 0), textcolor=color.white)
makePendingLabel(_isHigh, _mss) =>
if showPending
float y = _isHigh ? high : low
labelStyle = _isHigh ? label.style_label_down : label.style_label_up
string txt = "SWEEP PENDING MSS: " + (na(_mss) ? "na" : str.tostring(_mss, format.mintick))
label.new(bar_index, y, txt, style=labelStyle, color=color.new(color.orange, 0), textcolor=color.white)
else
na
setValidLabel(_lbl, _isHigh) =>
if not na(_lbl)
label.set_text(_lbl, "SWEEP VALID (MSS)")
label.set_color(_lbl, _isHigh ? color.new(color.red, 0) : color.new(color.lime, 0))
label.set_textcolor(_lbl, color.white)
//──────────────────────────────────────────────────────────────
// Main flow
if pendingDir == 0
// New HIGH sweep candidate
if rawSweepHigh
if preValidHigh
pendingDir := 1
pendingStartBar := bar_index
// MSS level for HIGH sweep = lastSwingLow (the low we want to break)
pendingMssLevel := lastSwingLow
pendingLabel := makePendingLabel(true, pendingMssLevel)
// If we cannot define MSS level => ignore (strict)
if na(pendingMssLevel)
makeIgnoredLabel(true, "no swing low (MSS) yet")
if not na(pendingLabel)
label.delete(pendingLabel)
pendingDir := 0
pendingStartBar := na
pendingMssLevel := na
pendingLabel := na
else
makeIgnoredLabel(true, "filters (location/impulse/reentry)")
// New LOW sweep candidate (only if no pending created above)
if rawSweepLow and pendingDir == 0
if preValidLow
pendingDir := -1
pendingStartBar := bar_index
// MSS level for LOW sweep = lastSwingHigh (the high we want to break)
pendingMssLevel := lastSwingHigh
pendingLabel := makePendingLabel(false, pendingMssLevel)
if na(pendingMssLevel)
makeIgnoredLabel(false, "no swing high (MSS) yet")
if not na(pendingLabel)
label.delete(pendingLabel)
pendingDir := 0
pendingStartBar := na
pendingMssLevel := na
pendingLabel := na
else
makeIgnoredLabel(false, "filters (location/impulse/reentry)")
else
// Pending: confirm with MSS
if confirmMSSHigh
setValidLabel(pendingLabel, true)
// Reset
pendingDir := 0
pendingStartBar := na
pendingMssLevel := na
pendingLabel := na
else if confirmMSSLow
setValidLabel(pendingLabel, false)
// Reset
pendingDir := 0
pendingStartBar := na
pendingMssLevel := na
pendingLabel := na
// Alerts only on VALID MSS
alertcondition(confirmMSSHigh, "Sweep VALID High (MSS)", "VALID liquidity sweep HIGH confirmed by MSS")
alertcondition(confirmMSSLow, "Sweep VALID Low (MSS)", "VALID liquidity sweep LOW confirmed by MSS")
Pine Script®指标
Silver Bullet: ATR Sniper & Volatility EngineProfessional Execution & Risk Manager for SIL
Strike with Precision in the World's Most Volatile Metal
Silver is known as "The Devil's Metal" for a reason—it hunts stops and moves faster than almost any other commodity. Silver Bullet V26 is not just an indicator; it is a complete trade management system built to survive and thrive in high-volatility environments.
By combining Liquidity Sweep detection with ATR-calculated risk, this script identifies high-probability "Sniper" entries and manages the trade until the target is hit.
Key Features
Dual-Mode Entry Engine:
Sniper Mode: Detects "Deep Sweeps"—when Silver wicks below support to grab liquidity before a massive reversal.
Trend Mode: Identifies momentum breakouts when Silver is riding the EMA with strength.
Institutional Trend Filtering: A built-in 30-minute EMA filter ensures you are never "swimming against the tide." It only looks for long setups when the higher timeframe bias is confirmed bullish.
Silver-Optimized ATR Stops: Standard stop losses get hunted. Silver Bullet uses Average True Range (ATR) multipliers to set "breathable" stop losses that account for Silver's natural volatility.
Automated Trade Management: Once a signal triggers, the script draws your Stop Loss (SL) and Take Profit (TP) levels directly on the chart. It tracks the trade in real-time and labels the exact moment of exit (SIL TP ✔ or SIL EXIT ✘).
Volatility Dashboard: A real-time HUD tracks current ATR values and Trend Filter status, giving you a "pre-flight" check before every candle close.
Anti-Signal Spam: Built-in "Cooldown" logic prevents multiple entries on the same move, keeping your overtrading habits in check.
Why This Is Different
Most indicators fail on Silver because they are too "stiff." Silver Bullet is adaptive. By using the ta.lowest lookback for sweeps and ta.atr for exits, it breathes with the market. It treats Silver like the wild horse it is, giving it room to move while still locking in a 2.5:1 Reward-to-Risk ratio.
Best Used For:
Asset: Silver (/SIL, XAGUSD, PSLV).
Timeframe: 5-Minute or 15-Minute.
Style: Aggressive Scalping and Day-Swing Trading.
Pine Script®指标
ES / NQ Delta + Absorption (Tuned)free pine script v5 es/nq tuned delta + absorption . order flow approximation but its optimized for futures volatility,liquidity,and session behavior.
Pine Script®指标
ScalpFlow: Dynamic Range & Structure Engine"Intraday S/R + Fractal Liquidity Mapper"
Navigate the Noise with Precision Structure Mapping
In the world of 5-minute scalping, the biggest challenge is identifying true trend shifts versus minor noise. ScalpFlow transforms your chart into a structural map, grouping price action into time-based "Blocks" that automatically label market highs and lows.
Stop guessing where the next support level is—ScalpFlow draws it for you based on realized market volatility.
Key Features
Automated Block Structure: Groups price action into clear visual boxes. Each box is color-coded (Bullish/Bearish) and automatically identifies HH (Higher Highs), LH (Lower Highs), LL (Lower Lows), and HL (Higher Lows).
Instant S/R Projection: The script identifies the High and Low of the previous completed block and projects them forward as dashed Support & Resistance lines. This gives you immediate targets for breakouts or mean-reversion trades.
Fractal HH/LL Labels: High-speed "Mini-Pivots" (Fractals) are labeled on the candles themselves, allowing you to spot micro-reversals before the larger block even closes.
Dynamic Trend-Line Midpoints: A blue trend line connects the midpoints of every block, providing a smoothed visual representation of the overall price trajectory.
Scalper’s HUD: A clean dashboard in the bottom-right corner that tells you exactly where price is relative to the range: "BREAKOUT UP," "INSIDE RANGE," or "BREAKDOWN DOWN."
Integrated VWAP: Standardized institutional volume weighting to ensure you are trading with the "Value" of the day.
The Scalper's Edge
This tool is designed for "Structure Traders." By seeing the market as a series of boxes rather than just lines, you can easily identify "Equality Highs" (EQH) or "Equality Lows" (EQL)—common areas where liquidity sits and where big moves often begin.
Best Used For:
Asset: Crypto (BTC/ETH), Forex (Major pairs), and Equities.
Timeframe: 1-Minute to 15-Minute (Optimized for 5m).
Style: Trend Following, Breakout Trading, and Range Scalping.
Pine Script®指标
Silver Strike: Elite Trap Hunter & Trend Guardian"The H1/M5 Liquidity Engine"
Master the Silver Markets with Precision Trap Detection
Trading Silver on the 5-minute timeframe requires more than just moving averages; it requires an understanding of Liquidity Traps and Session Structure. Silver Strike is an institutional-grade indicator designed to identify "Sweeps"—false breakouts of the previous hour’s highs and lows—giving you the edge to trade reversals where others get stopped out.
Key Features
H1 Structure Mapping: Automatically tracks the high, low, and midpoint of the previous hour. On a 5m chart, these are the "battleground" levels where institutional liquidity rests.
The "Sweep" Engine: Real-time visual alerts (⚔️ SWEEP) when price pierces an H1 level and immediately closes back within range. This is a classic "trap" signal for high-probability reversals.
Dual-Layer Trend Guard: Includes a built-in HUD (Heads-Up Display) that tracks the 4H Macro Trend and 1H Session Trend using EMA filters. It instantly tells you if a Long or Short is "SAFE" or "RISKY" based on higher timeframe alignment.
Smart Noise Filter: Custom candle coloring logic that "grays out" indecisive price action, highlighting only the bars that matter for your bias.
Integrated VWAP: Built-in VWAP tracking to ensure you are never trading "too far from the mean" during intraday sessions.
Why This Works
Silver is notorious for "stop hunts." By focusing on the Hourly High/Low as the primary trap zone, this script filters out the 5-minute noise and focuses on where the "smart money" is actually moving.
Best Used For:
Asset: Silver (XAGUSD / XAG), Gold (XAU), or volatile Indices.
Timeframe: 5-Minute Chart (Primary) with 1-Hour Structure.
Style: Scalping, Day Trading, and Mean Reversion.
Pine Script®指标
Unified Field: Clean FVG + Session POCTry it free. No guarantees. I find it useful for scalping. My ai wrote the code for it albeit, my idea. : )
Pine Script®指标






















