Liquidity Sweep Rider Institutional HFT Grabber Liquidity Sweep Rider Strategy (Swing Pivot + Volume Filter)
Publication Description:
This is an open-source Pine Script v6 strategy that identifies potential liquidity sweep patterns around confirmed swing highs and lows.
It uses:
Pivot points (ta.pivothigh / ta.pivotlow) to mark historical swing levels where orders (such as stops or pending entries) often cluster.
A volume filter requiring above-average volume (SMA-based with multiplier) on the sweep candle to highlight stronger moves.
Classic sweep logic: price wicks beyond the level but closes back inside, suggesting a possible reversal after liquidity is taken.
Entry rules:
Long: after a downside sweep below a recent swing low (with volume condition).
Short: after an upside sweep above a recent swing high (with volume condition).
Features include:
Optional toggles to enable/disable long/short directions.
ATR-based stop-loss and take-profit (configurable multipliers and risk-reward ratio).
Visual plots for liquidity levels, entry signals, background highlights, and an info table.
Alert conditions for long/short triggers.
Important notes:
This is an educational/example script for backtesting and learning.
Past performance does not indicate future results. Trading involves significant risk of loss — use proper risk management and never risk more than you can afford to lose.
No guarantees of profitability are made. Always test thoroughly on demo accounts before live use.
Customize parameters (pivot lengths, volume multiplier, ATR settings) based on the instrument and timeframe you trade. Works on various markets/timeframes but performs differently depending on liquidity and volatility.
Feel free to fork/modify the code. Feedback and improvements are welcome!
(≈ 3–4 paragraphs, clear, educational, includes risk disclaimer, explains logic + usage without hype.) กลยุทธ์

Malaysian SnR Levels [UAlgo]Malaysian SnR Levels is a structure based support and resistance overlay that automatically plots three level types on the chart:
A-Levels, which act as resistance
V-Levels, which act as support
Gap Levels, which mark qualifying candle to candle price gaps
The script is built for traders who want clean horizontal reference levels that stay active until price decisively crosses through them. Instead of drawing every pivot forever, the indicator manages each level as a stateful object with freshness and activity tracking. A newly created level begins as fresh , becomes unfresh after its first wick interaction, and remains active until price fully crosses through it. Once broken, the level stops extending and is archived on the chart.
A major strength of this implementation is its optional multi timeframe workflow. You can leave the timeframe input empty to detect levels on the current chart, or select a higher timeframe to project higher timeframe A, V, and Gap levels onto a lower timeframe execution chart. This makes the script useful for both local chart structure and top down level mapping.
The result is a practical support and resistance engine focused on:
Pivot based resistance and support
Gap based structural levels
Fresh versus unfresh state tracking
Automatic break detection
Optional MTF level projection
🔹 Features
🔸 1) Automatic A-Levels and V-Levels
The script detects pivot highs and pivot lows and converts them into horizontal support and resistance levels:
A-Levels come from confirmed pivot highs and behave as resistance
V-Levels come from confirmed pivot lows and behave as support
These are built from pivot calculations on close , not on raw high and low extremes, which gives the levels a close based structural character.
🔸 2) Automatic Gap Levels
In addition to pivots, the script detects directional gap style levels when two consecutive candles move in the same direction and the open to prior close gap exceeds a minimum tick distance.
Bullish gap logic creates a gap level at the previous close.
Bearish gap logic also creates a gap level at the previous close.
This gives the indicator a third structural layer beyond classic pivot based support and resistance.
🔸 3) Fresh and Unfresh State Tracking
Every new level starts as fresh . A fresh level is considered untouched. Once price interacts with the level by wick, it becomes unfresh :
The line style changes to dashed
The width becomes thinner
The color shifts to the unfresh color theme
This helps traders quickly distinguish untouched levels from levels that have already been tested.
🔸 4) Active Until Full Break
A level stays active until price crosses through it. Once broken, the level:
Stops extending
Fixes its endpoint at the break time
Keeps the historical line visible
Stops updating as an active level
This is useful because old levels remain visible for review, while current active levels continue projecting forward.
🔸 5) Multi Timeframe Detection (Optional)
The script supports a selectable detection timeframe:
Leave it empty to use the current chart timeframe
Set it to a higher timeframe to project higher timeframe levels onto the current chart
This is especially useful when traders want to execute on a lower timeframe while respecting higher timeframe structure.
🔸 6) Minimum Gap Filter in Ticks
Gap levels are filtered by a configurable minimum distance in ticks. This avoids plotting tiny micro gaps and helps keep only more meaningful dislocations.
🔸 7) Duplicate Level Protection
Before adding a new level, the script checks whether an active level already exists near the same price. If another active level is within a small tick range, the new one is skipped.
This reduces clutter and prevents nearly identical levels from stacking on top of each other.
🔸 8) Separate Visibility Controls
Users can independently choose whether to display:
A-Levels
V-Levels
Gap Levels
This makes the tool adaptable for different workflows, such as only plotting pivot levels or only monitoring gap structure.
🔸 9) Full Visual Customization
The script provides separate color controls for:
Fresh A-Levels
Unfresh A-Levels
Fresh V-Levels
Unfresh V-Levels
Fresh Gap Levels
Unfresh Gap Levels
It also allows customization of:
Fresh line width
Unfresh line width
Label size
This makes it easy to fit the indicator into different chart styles.
🔸 10) Label Projection to the Right
Each active level includes a compact label showing its type:
A
V
Gap
The label is automatically pushed several time steps to the right of current price so it stays readable and aligned with the level.
🔸 11) Automatic Level Count Management
The script keeps the number of stored levels under control using a maximum active limit. When capacity is exceeded, it tries to remove an older inactive level first.
This helps maintain chart cleanliness and stay within TradingView object limits.
🔹 Calculations
1) Pivot Based A-Level and V-Level Detection
The script calculates pivots using close, not high or low:
float ph = ta.pivothigh(close, pivotLength, pivotLength)
float pl = ta.pivotlow(close, pivotLength, pivotLength)
Interpretation:
A-Level = confirmed close based pivot high
V-Level = confirmed close based pivot low
Because pivot confirmation requires bars on both sides, the level time is aligned to the true pivot bar using:
int ph_t = not na(ph) ? time : na
int pl_t = not na(pl) ? time : na
2) Gap Level Detection Logic
The script defines bullish and bearish gap conditions using consecutive candles in the same direction plus a minimum gap size measured in ticks.
Bullish gap:
bool bullishGap = prevBullish and isBullish and (open - close ) >= syminfo.mintick * minGapTicks
Bearish gap:
bool bearishGap = prevBearish and isBearish and (close - open) >= syminfo.mintick * minGapTicks
If either condition is true, the gap level is set at:
gap_price := close
So the reference price for the gap level is the previous candle’s close.
3) Multi Timeframe Data Selection
The script computes levels in a helper function and can either use:
Local chart data directly
Or higher timeframe data through request.security
= request.security(...)
If the timeframe input is empty, local values are used. Otherwise, the security values are used:
float ph = tf == "" ? loc_ph : sec_ph
This gives flexible MTF projection while keeping one consistent logic engine.
4) New Level Event Detection
To prevent the same pivot or gap from being added multiple times, the script checks whether the timestamp of the detected event changed:
bool new_ph = not na(ph_t) and ph_t != nz(ph_t )
bool new_pl = not na(pl_t) and pl_t != nz(pl_t )
bool new_gap = not na(gap_t) and gap_t != nz(gap_t )
This is an important implementation detail because it avoids a common Pine issue where na != na can propagate as na and block reliable detection.
5) Level Creation and Duplicate Protection
Before a new level is added, the script checks existing active levels and rejects duplicates that are too close:
if lvl.isActive and math.abs(lvl.price - p) < syminfo.mintick * 10
exists := true
This means levels within 10 ticks of an existing active level are treated as duplicates and not added.
6) Level Initialization
When a level is created, it starts as:
Fresh = true
Active = true
A line is drawn from the source time and extended to the right:
line.new(st, p, st + timeStep, p, xloc=xloc.bar_time, color=c, width=lineWidthFresh, extend=extend.right)
A label is also created and placed several time steps to the right:
label.new(cur_time + timeStep * 5, p, t, ...)
This keeps the label visually separated from the current candle.
7) Fresh to Unfresh Transition Logic
A level becomes unfresh when price first touches it by wick while the level is still active.
For A-Levels:
touchedWick := h >= this.price
For V-Levels:
touchedWick := l <= this.price
For Gap levels:
touchedWick := h >= this.price and l <= this.price
Once touched:
The level remains active
isFresh becomes false
The line becomes dashed
The width changes to the unfresh width
The line and label colors switch to the unfresh palette
This means a wick touch weakens the level visually, but does not break it.
8) Break / Deactivation Logic
A level becomes inactive only when price crosses through it, not merely when it is touched.
Cross up condition:
bool crossedUp = (o <= this.price and c > this.price) or (c_prev < this.price and c > this.price)
Cross down condition:
bool crossedDown = (o >= this.price and c < this.price) or (c_prev > this.price and c < this.price)
If either is true:
this.isActive := false
this.lvlLine.set_x2(curTime)
this.lvlLine.set_extend(extend.none)
this.lvlLabel.set_x(curTime)
Interpretation:
The level stops projecting and is fixed at the break time.
9) Time Step Handling
The script uses the current bar’s time distance to position and extend labels:
int timeStep = bar_index > 0 ? time - time : 60000
This is important because the script uses xloc.bar_time , so horizontal positioning is time based rather than bar index based.
10) Maximum Level Management
When the array exceeds the user defined maximum, the script tries to remove an inactive level first:
if this.size() > maxLevels
int removeIdx = 0
for i = 0 to this.size() - 1
SnRLevel lvl = this.get(i)
if not lvl.isActive
removeIdx := i
break
Then it deletes that level’s line and label.
Important implementation note:
If no inactive level is found, removeIdx remains 0, so the oldest level in the array is removed.
11) A-Level, V-Level, and Gap Interpretation
In this script:
A-Levels are close based pivot highs and function like resistance
V-Levels are close based pivot lows and function like support
Gap Levels are prior close reference levels from qualifying directional gaps
All three share the same lifecycle framework:
Fresh
Unfresh after wick touch
Inactive after a full cross through อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

Quantum Main Chart Divergence v1Quantum Main Chart Divergence - The Confluence Scanner
Overview Looking back and forth between price action and multiple sub-chart oscillators can cause trader fatigue and delayed entries. The Quantum Main Chart Divergence acts as a heads-up display (HUD), bringing complex sub-chart analysis directly onto your candlesticks. This indicator runs a hidden, "under-the-hood" Adaptive Z-Score engine to scan for structural momentum shifts, printing clean, unobtrusive divergence labels exactly where the price pivots occur.
Key Highlights
• Invisible Adaptive Engine: It calculates an Efficiency Ratio-driven Adaptive Z-Score entirely in the background. You get the power of an advanced institutional oscillator without cluttering your screen with another pane.
• Instant Visual Confirmation: Prints crisp "R" (Regular) and "H" (Hidden) labels directly above or below the trigger candles the moment a structural pivot is confirmed.
• Plug-and-Play Themes: Features a built-in theme selector (Dark, Light, and High Contrast) so the divergence labels automatically match your chart's aesthetic without needing to manually tweak individual color hex codes.
• Failsafe Mathematics: Built with a mathematical safeguard to ensure the hidden oscillator remains stable and never throws division-by-zero errors during extremely low-volatility, flatline market conditions.
How to Trade It
1. Regular Divergence ("R"): Indicates exhaustion. If price makes a lower low but the hidden oscillator makes a higher low, a Bullish "R" label prints. Use this to anticipate major reversals, catch falling knives safely, or exit existing trend trades.
2. Hidden Divergence ("H"): Indicates trend continuation. If price makes a higher low but the oscillator dips to a lower low, a Bullish "H" label prints. This flags the exact moment a pullback has finished and the primary trend is ready to resume.
The Quantum Ecosystem Integration
This indicator serves as the ultimate "Trigger Confirmation" for the Quantum Trading System.
• Quantum Adaptive Session Profile (SVP): When price approaches your Adaptive POC, VAH, or VAL, wait for an "R" or "H" label to print. A divergence precisely at a structural level is a top-tier setup.
• Quantum Confluence : If you see a Bullish "R" on the main chart, look down at your Trendilo sub-chart. If Trendilo is glowing Neon Cyan and your BSP histogram is showing strong buying pressure, you have ultimate confluence. Execute the trade.
⚠️ DISCLAIMER: STRICTLY FOR EDUCATIONAL PURPOSES The information, scripts, and concepts provided in this publication are for educational and informational purposes only and do not constitute financial, investment, or trading advice. Trading in financial markets (including Forex, Crypto, Stocks, and Commodities) carries a high level of risk and may not be suitable for all investors. You could lose some or all of your initial investment. Past performance is not indicative of future results. Always conduct your own due diligence, backtest any strategy thoroughly, and consult with a certified financial advisor before making any trading decisions. By using this script, you acknowledge that you are solely responsible for your own trading actions and outcomes.
อินดิเคเตอร์

SMI Fractal Iron HMASMI FRACTAL IRON HMA
Professional Multi-Engine Trading Overlay
Version 7.0 • February 2026 • Pine Script™ v6 • Overlay Indicator
By NPR21
FIVE INTEGRATED ENGINES
Fractal Pivots │ SMI Filter │ HMA Forecast │ Risk Management │ Short Trend Dashboard
DESCRIPTION
SMI Fractal Iron HMA integrates five complementary analytical engines into a single overlay indicator, designed so that each component addresses a different dimension of trade analysis — structure, momentum, trend context, risk parameters, and real-time directional scoring — and the outputs of each engine reinforce or qualify the signals of the others.
▸ Fractal Pivot Detection
Identifies structural swing highs and lows using fractal pivot logic with a key innovation: the left-side structural lookback and the right-side confirmation delay are split into two independent inputs. This allows traders to maintain high structural selectivity (catching only significant swing points) while independently controlling how many bars of confirmation are required before a signal prints. Setting Right Bars to zero enables zero-delay mode where the label appears on the forming bar itself.
▸ Stochastic Momentum Index (SMI) Filter
A double-smoothed EMA of the price-to-midpoint relationship, scaled to a configurable range. When enabled as a filter, long signals only print when SMI is rising and short signals only print when SMI is falling. Signals opposing the current momentum direction are silently suppressed, reducing noise without adding visual clutter.
▸ HMA Trend Duration Forecast
Tracks the Hull Moving Average slope to determine trend state. Each completed trend’s duration is stored in a rolling sample. The historical average projects the probable length of the current trend. On the chart: a white arrow line shows the forecast window, a Trend ↑ Up Real or Trend ↓ Down Real label updates in real time with the current bar count, and a Prob: label shows the forecasted duration. HMA BUY and HMA SELL labels print at each trend change with optional price display.
▸ Risk Management System
Activates on each confirmed pivot signal and draws five horizontal levels: Entry, Stop Loss (configurable in points or percentage), and three Take Profit tiers calculated as Reward:Risk multiples. Features include:
•TP hit tracking — each level changes to dashed with a check-mark label when price reaches it.
•Trailing stop — moves to breakeven at a configurable threshold, then trails by a fixed offset.
•TP2+ reversal exit — after TP2 is hit, closes the trade if price reverses by a specified distance before TP3.
•P&L dashboard — real-time display of direction, entry, current P&L in the selected currency, R:R ratio, dollar risk/reward at each TP, bars in trade, HMA trend direction, and probable trend length.
•Auto-reset — clears all trade objects when a trade completes (SL, TP3, or TP2+ reversal), readying for the next signal.
▸ Short Trend Dashboard
A 5-component real-time scoring engine that votes on the current bar’s directional bias:
•Momentum (25 pts) — price change vs. ATR-scaled threshold.
•Candle Structure (25 pts) — body-to-range ratio and wick rejection analysis.
•Micro Trend (25 pts) — fast/slow EMA crossover with ATR-normalized gap scoring.
•Acceleration (25 pts) — bar-to-bar momentum change detecting speed gain or loss.
•Volume B/S (10 pts) — estimated buy vs. sell pressure from close position within bar range.
The composite score (0–100) produces a letter grade (A+, A, B, C) and a directional label (BULLISH, BEARISH, LEAN BULL/BEAR, or NEUTRAL). The TEMP Heat Gauge (0–100) blends seven sub-indicators (ROC, RSI, Stochastic, Volume Pressure, EMA Position, Candle, Acceleration) into a single temperature reading (HOT / WARM / NEUTRAL / COOL / COLD). Scalper Mode activates ultra-fast EMA and momentum presets optimized for 1–5 minute charts with Instant Flip detection for single-bar reversals.
▸ Why These Five Engines Together
Each engine answers a different question. The pivot engine identifies where structure turns. The SMI filter confirms whether momentum supports the signal. The HMA forecast provides how long the trend is likely to last. The risk management system defines how much is at stake. The Short Trend Dashboard gives a right now directional confidence score. Together they create a workflow: detect the turn, confirm direction, understand trend context, manage the trade, and monitor conviction — all from a single indicator.
HOW TO USE
▸ Getting Started
1.Add the indicator to your chart. Default settings (Left 5 / Right 1) provide a balanced starting point with strong structural selectivity and minimal delay.
2.BUY labels appear below swing lows. SELL labels appear above swing highs. In Confirmed + Preview mode, semi-transparent labels flicker during bar formation and lock solid at bar close.
3.Use the HMA colored line and trend forecast labels to understand the broader trend context. HMA BUY and HMA SELL labels mark each trend change.
4.Enable Risk Management to see SL/TP lines and the P&L dashboard on each confirmed signal.
5.Monitor the Short Trend Dashboard for real-time confirmation. CONSENSUS +4/5 or +5/5 indicates strong alignment across all components.
▸ Tuning the Pivot Detection
•Left 5 / Right 5: Maximum accuracy. Pivot must be highest/lowest of 11 bars. 5-bar confirmation delay. Best for identifying only major swing points.
•Left 5 / Right 1: Strong selectivity, minimal delay. Preview label flickers on the confirmation bar. Good balance for scalping and active trading.
•Left 5 / Right 0: Zero-delay mode. Label appears on the pivot bar during formation. Fastest possible signal. Useful for scalping when combined with the SMI filter.
•Left 8–10 / Right 0: Zero delay with larger left lookback to compensate for missing right-side confirmation.
▸ Configuring Risk Management
•Enable the Risk Management Overlay toggle. Set Stop Loss in points (e.g., MNQ: 3–5 pts) or as a percentage of entry price.
•Set TP1, TP2, TP3 as Reward:Risk multiples (defaults: 2:1, 3:1, 4:1). Adjust to your trading style.
•Set Point Value for your instrument: MNQ = 2, MES = 5, MYM = 0.5, MGC = 10, MCL = 10.
•The P&L dashboard updates every bar showing dollar P&L, R:R ratio, and TP hit status.
•Enable trailing stop for trades that run: set breakeven threshold, trail start, and trail offset distances.
▸ Reading the Short Trend Dashboard
•Direction + Score: BULLISH/BEARISH/LEAN with a score of 0–100. Grade A+ or A = high conviction.
•TEMP Heat Gauge: Above 70 = HOT (overbought). Below 30 = COLD (oversold). 45–55 = NEUTRAL.
•CONSENSUS: Total vote out of 5 components. +4/5 or +5/5 = strong directional alignment.
•Scalper Mode: Ultra-fast presets for 1–5 min charts. Instant Flip marks single-bar reversals with ** notation.
▸ Label Display Options
•Stack: Label sits directly on the high/low with offset ticks. Text stacks vertically with optional timestamp.
•Pointer: Label offset to the side with a pointer coming off the corner pointing at the exact high/low of the bar.
•Timestamp: Five formats: HH:mm, HH:mm:ss, h:mm a, MMM dd HH:mm, MMM dd. Uses the chart’s time zone.
▸ Suggested Starting Settings
•Scalping (1–5 min): Left 5, Right 1, HMA Length 9–14, Scalper Mode ON, SL 3–5 pts
•Day Trading (5–15 min): Left 5, Right 2–3, HMA Length 14–20, Scalper Mode OFF, SL 5–10 pts
•Swing Trading (1H–4H): Left 5, Right 5, HMA Length 20–50, Scalper Mode OFF, SL 10–25 pts
•Zero-Lag Mode: Left 7–10, Right 0, SMI Filter ON, HMA Length 14, Scalper Mode ON
DISCLAIMER
This indicator is a technical analysis tool designed to assist with identifying potential swing reversal points, trend direction, and trade risk parameters. It is not a standalone trading system and does not constitute financial advice. No indicator can predict future price movement. Past performance of any signal methodology does not guarantee future results. Always use proper risk management and consider multiple sources of analysis. The author assumes no responsibility for trading losses. Use at your own risk. อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

ROC(2) Pivot (Linda Raschke)A daily bias level based on Linda Bradford Raschke's adaptation of the Taylor Trading Technique. The indicator plots a single price level — the point where the 2-period rate of change flips sign — and colors it by the current bias direction.
Concept
George Douglas Taylor observed in the 1950s that markets tend to swing in 2–3 day cycles: a buy day, a sell day, a sell-short day. Raschke formalized this with a simple calculation that captures where short-term momentum shifts.
The pivot is known before the session opens because it uses only prior daily closes:
Pivot = (Yesterday's Close − Close 3 days ago) + Close 2 days ago
Price above the pivot → long bias. Price below → short bias. One number, one rule.
Features
- Pivot line with bias-colored shading (long/short fill between price and pivot)
- Info table showing current bias, pivot price, streak, and respect score
- Streak — how many consecutive days the bias has held the same direction.
- Respect score — over the last N completed sessions, how many times did price stay entirely on one side of the pivot vs. crossing through it? Higher respect = the pivot is acting as meaningful support/resistance
- Alerts for bias flips (price crossing the pivot)
- Configurable colors, line width, fill transparency, table position/size, dark/light theme
How to use it
Check the pivot before the session. If price is above, favor long setups. If below, favor short setups. Use your own entry signals — the pivot provides directional context, not entries.
The respect score helps gauge conviction: if the pivot has been respected 7+ out of 10 sessions, traders are treating that level seriously. If only 3–4, the market is chopping through it and the bias carries less weight.
Non-repainting behavior
The pivot line itself does not repaint — it is calculated entirely from prior daily closes and is fixed at the open. The streak and respect scores use only completed daily bars (no intraday repainting). The real-time bias (line color, fill, table) updates as price crosses the pivot during the session, which is intended behavior — it reflects the current state, not a prediction.
Credits
Based on the 2-Period Rate of Change concept from Linda Bradford Raschke (Street Smarts, Chapter 8) and George Douglas Taylor's Taylor Trading Technique (1950).
This indicator is a visualization and context tool — it does not generate buy/sell signals and is not a standalone trading system.
อินดิเคเตอร์

High/Low Price Tracker w/L20-Table by Deepsage V1This indicator/strategy was planned, designed, and coded with guidance from Deepsage AI Mentors, but reflects my own ideas and strategies. It identifies the highest and lowest price of each candle and includes a table showing high/low price information for up to 20 candles back, providing a clear overview for analysis.
It is connected to SageMaster for risk management and smart trade execution, including entering, exiting, starting, or closing positions based on TradingView alerts.
Deepsage AI Mentors provide guidance only and do not offer financial advice. They are trained on public trading data from major exchanges, insights from SageMaster users, and educational content from the World of Wisdom platform, providing support and insights for strategy development.
SageMaster is a trading ecosystem, not a broker or trading platform. Users retain full control of any automation, and we do not access or manage your funds.
Created by Andreas, a Deepsage and SageMaster user.
Disclaimer: This is not an official Deepsage, or SageMaster product.
Planned Upgrades
We are planning V2 and V3 of this indicator with Deepsage:
V2:
Adds a second table with more price-focused data points: OHLC, Range (high–low), Body Size (|close–open|), Price Change (%), Candle Type/Pattern, Volume, Relative Candle Size.
Practical uses include:
Trend Continuations (Potential Trade Idea): large body + above-average relative candle size + high volume + bullish/bearish pattern.
Potential Reversals (Potential Trade Idea): hammer, doji, engulfing patterns confirmed by volume and relative candle size.
Exhaustion Detection: long wicks, large range, small body candles.
Other strategies: Sudden volatility, volatility-based stops, pattern-based stops, volume confirmation, breakout trading, swing trading, scalping.
V3:
Focus on total price movement (sum of all price changes within the candle, not just high–low).
Provides advanced volatility analysis beyond traditional high–low measures.
Designed to give additional insights while remaining practical for retail traders. อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

Pivot Levels Real-Time Latest Bar (Skip Current, With Zones)ddPivot Levels Real-Time Indicator with Shaded Zones
Author: Ammar Hasan
Overview
The Pivot Levels Real-Time Indicator is a TradingView Pine Script (v5) indicator that plots classic pivot levels using the most recently confirmed bar while skipping the currently forming bar.
It enhances the chart with shaded zones between pivot levels to help visualize potential support, resistance, and price reaction areas.
Key Features
Uses the latest confirmed bar only (no repainting)
Plots Pivot, S1, S2, S3 and R1, R2, R3
Displays shaded zones between levels
Automatically removes old drawings to keep the chart clean
Lightweight and suitable for lower timeframes
No labels for a clean visual layout
Pivot Level Calculations
Pivot (P) = (High + Low + Close) / 3
Support Levels
S1 = 2 x Pivot - High
S2 = Pivot - (High - Low)
S3 = Low - 2 x (High - Pivot)
Resistance Levels
R1 = 2 x Pivot - Low
R2 = Pivot + (High - Low)
R3 = High + 2 x (Pivot - Low)
All values are calculated using the last confirmed candle to ensure stable, non-repainting levels.
Visual Components
Lines
The pivot line is drawn in yellow and slightly thicker for emphasis.
Support lines are drawn in red.
Resistance lines are drawn in green.
Shaded Zones
Resistance Zones
R3 to R2
R2 to R1
R1 to Pivot
Support Zones
Pivot to S1
S1 to S2
S2 to S3
These zones help visualize supply and demand areas and potential price reaction zones.
Use Cases
Intraday trading
Scalping
Support and resistance analysis
Price action confirmation
Notes and Limitations
Levels update once per confirmed candle
Zones are drawn only for a short forward range by default
This indicator is not intended to be used as a standalone trading system
Conclusion
The Pivot Levels Real-Time Indicator with Shaded Zones provides a clean and reliable visualization of key market levels while avoiding repainting. The shaded zones add depth and context, helping traders better understand price behavior around important levels.
Developed by Ammar Hasan อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

Smart Range ProfilerSmart Market Structure Viewer: Gaps, Swings & Dealing Ranges
Overview
This script is a comprehensive technical analysis viewer designed to provide a clear and objective visualization of market structure. By mapping liquidity gaps, multi-tier swing points, and dynamic dealing ranges, it helps traders identify key institutional levels and price action context without the clutter of predictive signals.
Key Features
1. Gap Analysis (FVG & Breakaway)
The tool identifies and tracks price imbalances to help visualize market inefficiency:
Fair Value Gaps (FVG): Highlights standard price imbalances.
Breakaway Gaps: Specifically marks gaps where the candle close remains outside the previous range, indicating strong directional commitment.
Sophisticated Mitigation: Users can choose how gaps are cleared from the chart (e.g., when price touches, leaves, or completely covers the gap), ensuring only relevant imbalances are displayed.
2. Hierarchical Swing Points
To help distinguish between minor fluctuations and major trend shifts, the viewer categorizes market structure into three hierarchical levels:
Short-Term (ST): Localized swing points identified in relation to gap formations.
Intermediate-Term (IT): Structural points derived from the relationship between short-term swings.
Long-Term (LT): High-level structural points that define the broader market framework.
3. Dynamic Dealing Range & Profiling
The script calculates and projects the current "Dealing Range" based on the selected structural hierarchy (ST, IT, or LT).
Range Geometry: Displays the Range Top, Range Bottom, and the Equilibrium (50%) level.
MTP (Most Traded Price): A volume-based profile indicating the price level with the highest trading activity within the current range.
MTS (Most Time Spent): A time-based profile highlighting the price level where the market spent the most duration.
How to use this Viewer
Structural Context: Use the multi-tier swings to identify the current market phase (Bullish/Bearish) and seniority of the trend.
Imbalance Tracking: Monitor how price interacts with Fair Value and Breakaway gaps to gauge the strength of a move.
Premium vs. Discount: Utilize the Dealing Range Equilibrium in conjunction with MTP/MTS levels to identify where price sits relative to its value distribution.
อินดิเคเตอร์

Reversal Detection with Dynamic Stops - Multi-EMA ZigzagReversal Detection with Dynamic Stops - Multi-EMA Zigzag System
Description
Overview
The Reversal Detection with Dynamic Stops indicator is a comprehensive technical analysis tool that combines multiple exponential moving averages (EMAs) with an adaptive zigzag algorithm to identify significant price reversals and trend changes. This indicator is designed for active traders who need precise entry and exit signals with clear visual feedback.
Key Features
Multi-EMA Trend Detection
Triple EMA system (9, 14, 21 periods) provides robust trend identification
Dynamic bar coloring (Green = Bullish, Red = Bearish, Purple = Neutral)
Automated signal generation based on EMA alignment and price position
Adaptive Zigzag Algorithm
Configurable reversal detection using percentage, absolute value, or ATR-based thresholds
Choice between high/low or EMA-smoothed price input
Eliminates market noise while capturing significant price swings
Visual Reversal Markers
Bright, easy-to-read labels showing exact reversal prices with comma formatting
Horizontal reference lines extending from pivot points
Customizable line extension length (default 6 bars)
Labels positioned precisely at pivot highs and lows
Supply and Demand Zones (Optional)
Automatic identification of key support and resistance levels
Visual zone highlighting with translucent boxes
Configurable number of zones to display
How It Works
The indicator employs a two-stage analysis system:
Trend Identification: Three EMAs work together to determine the current market trend. When the 9 EMA is above the 14 EMA, which is above the 21 EMA, and price is above the 9 EMA, a bullish signal is generated. The inverse creates a bearish signal.
Reversal Detection: The zigzag algorithm tracks price extremes and confirms a reversal when price moves against the trend by a threshold amount (configurable as percentage, absolute value, or ATR multiple). Once confirmed, the indicator marks the pivot point with a label and horizontal line.
Recommended Settings by Timeframe
Scalping (1-5 minute charts)
Percentage Reversal: 0.5% - 1.0%
ATR Reversal: 1.5 - 2.0
Line Extension: 4-6 bars
Day Trading (15-60 minute charts)
Percentage Reversal: 1.0% - 1.5%
ATR Reversal: 2.0 - 3.0
Line Extension: 6-10 bars
Swing Trading (4H-Daily charts)
Percentage Reversal: 1.5% - 3.0%
ATR Reversal: 2.5 - 4.0
Line Extension: 10-20 bars
Input Parameters
Zigzag Settings
Method: Choose between "high_low" (actual candle extremes) or "average" (EMA-smoothed)
Percentage Reversal: Minimum percentage move to confirm reversal (default 0.01 = 1%)
Absolute Reversal: Minimum point move to confirm reversal (default 0.05)
ATR Reversal: ATR multiplier for dynamic threshold (default 2.0)
ATR Length: Period for ATR calculation (default 5)
Average Length: EMA smoothing period when using "average" method (default 5)
Visual Settings
Line Extension Bars: Number of bars to extend horizontal lines forward (default 6)
Show Supply/Demand: Toggle and style for supply/demand zones
Show Supply Demand Cloud: Enable translucent zone highlighting
EMA Settings (Fixed)
Fast EMA: 9 periods
Medium EMA: 14 periods
Slow EMA: 21 periods
Trading Applications
Entry Signals
Green reversal labels at bottoms indicate potential long entry points
Red reversal labels at tops indicate potential short entry points
Confirm with bar color alignment and overall trend direction
Exit Signals
Opposite color reversal labels suggest profit-taking opportunities
Bar color changes from green to purple or red signal weakening bullish momentum
Bar color changes from red to purple or green signal weakening bearish momentum
Stop Loss Placement
Horizontal lines serve as dynamic stop loss levels
Place stops just beyond the reversal pivot points
Adjust stops as new reversals are confirmed
Risk Management
Use multiple timeframe analysis for confirmation
Wait for bar color confirmation before entry
Avoid trading during conflicting signals (purple bars)
Best Practices
Multi-Timeframe Confirmation: Check higher timeframe trend before taking signals
Volume Verification: Combine with volume analysis for stronger confirmation
Market Context: Consider overall market conditions and key support/resistance levels
False Signals: During choppy, low-volume periods, increase reversal thresholds
Trending Markets: The indicator performs best in markets with clear trends and reversals
Alerts Available
Reversal Up: Triggers when bullish reversal is confirmed
Reversal Down: Triggers when bearish reversal is confirmed
Momentum Up: Triggers when bearish momentum weakens
Momentum Down: Triggers when bullish momentum weakens
Important Notes
This indicator repaints by design as it confirms reversals after price movement
Labels and lines are placed at historical pivot points when confirmed
The indicator works on all timeframes and markets (stocks, forex, crypto, futures)
Bar coloring provides continuous trend feedback independent of reversals
Adjust sensitivity based on volatility and timeframe
Disclaimer
This indicator is a technical analysis tool and should not be used as the sole basis for trading decisions. Always conduct your own analysis, use proper risk management, and never risk more than you can afford to lose. Past performance does not guarantee future results. The indicator repaints by nature of its reversal detection algorithm - reversals are only confirmed after price has moved the threshold amount. อินดิเคเตอร์

Range Indicator Golden Pocket, Liquidity, FairValueGapOverview
This indicator is a comprehensive institutional market structure toolkit. It is designed to identify high-probability reversal zones by merging three powerful technical analysis concepts: Fibonacci Golden Pockets (61.8% - 65%), Liquidity Pool Analysis (Swing Failure Patterns), and Fair Value Gaps (FVG). By automating the detection of price inefficiencies and "stop runs," it helps traders navigate complex price action with objective, rule-based confirmation.
What the Script Does
The script continuously monitors a user-defined lookback period to define a trading range. Within this range, it dynamically plots:
Golden Pockets: High-confluence retracement zones (calculated as 0.35 - 0.382 internal range levels).
Liquidity Zones: Highlighted regions at the absolute high and low (Top/Bottom 5%) where institutional orders and retail stops are typically concentrated.
Swing Failure Patterns (SFP): Real-time detection of liquidity grabs where price breaches a range extreme but fails to close outside, signaling a potential trap.
Fair Value Gaps (FVG): Visualizes 3-candle price imbalances, showing areas of aggressive buying or selling that often act as future magnets or support/resistance.
2-Candle Confirmation: A momentum-based filter requiring a candle-close confirmation before a reversal signal is generated.
For Whom is it?
Smart Money Concepts (SMC) & ICT Students: Traders looking for automated liquidity sweeps and market inefficiencies.
Fibonacci & Mean Reversion Traders: Those seeking a clean, professional visualization of the Golden Pocket across multiple timeframes.
Systematic Day Traders: Who require strict price-action confirmation (SFP and 2-candle rules) to remove emotional bias from their entries.
Functions and Input Options
1. Market Structure & Visuals
Lookback Period (Default: 100): Defines the window for calculating the range extremes.
Box Offset Right (Default: 50): Extends all zones into the future for better anticipatory trading.
Show Price Lines & Labels: Displays the exact price for every zone boundary on the right axis for precise execution.
2. Fair Value Gap (FVG) Settings
Show Fair Value Gaps: A toggle to enable/disable the plotting of price imbalances.
FVG Extension (Default: 10): Determines how many bars into the future the FVG box remains visible.
Custom Colors: Separate color inputs for Bullish (Gap Up) and Bearish (Gap Down) inefficiencies.
3. Professional Alert System
The script includes five specific alert conditions:
GP Touch: Early warning when price enters a Golden Pocket.
2-Candle Pattern: Confirmed momentum shift within a Golden Pocket.
SFP Long/Short: Alerts when a Liquidity Grab (Swing Failure) is confirmed at the range high or low.
Transparency and Compliance (Moderator Info)
Non-Repainting Logic: All signals (SFP, 2-Candle, and FVG) are calculated and triggered based on confirmed candle closes. Drawings use barstate.islast purely for visual efficiency without altering historical data integrity.
Educational Context: The script visualizes well-known market principles (Fibonacci, SFPs, and FVGs) to aid traders in their analysis; it does not provide automated financial advice or "black-box" buy/sell signals.
Resource Management: Optimized for Pine Script v5, using efficient array and box handling to ensure smooth performance even on lower timeframes. อินดิเคเตอร์

อินดิเคเตอร์
