Change in State of Delivery CISD [AlgoAlpha]🟠 OVERVIEW
This script tracks how price “changes delivery” after failed attempts to push in one direction. It builds swing levels from pivots, watches for those levels to be wicked, and then checks if price delivers cleanly in the opposite direction. When the pattern meets the script’s tolerance rules, it marks a Change in State of Delivery (CISD). These CISD levels are drawn as origin lines and are used to spot shifts in intent, failed pushes, and continuation attempts. A CISD becomes stronger when it forms after opposing liquidity is swept within a defined lookback.
🟠 CONCEPTS
The script first defines structure using swing highs/lows. These levels act as potential liquidity points. When price wicks through a swing, the script registers a mitigation event. After this, it looks for a reversal-style candle sequence: a failed push, followed by a counter-move strong enough to pass a tolerance ratio. This ratio compares how far price expanded away from the failed attempt versus the counter-move that followed. If the ratio is high enough, this becomes a CISD. The idea is simple: liquidity interaction sets context , and the tolerance logic identifies actual intent . CISD levels and sweep markers combine these two ideas into a clean map of where delivery flipped.
🟠 FEATURES
Liquidity tracking: marks swing highs/lows and updates them until expiry
Liquidity sweep confirmation when CISD aligns with recent mitigations
Alert conditions for all key events: mitigations, CISDs, and strong CISDs
🟠 USAGE
Setup : Add the script to your chart. Use it on any timeframe where swing behavior matters. Set the Swing Period for how wide a pivot must be. Set Noise Filter to control how strict the CISD detection is. Liquidity Lookback defines how recent a wick must be to confirm a sweep.
Read the chart : Origin lines mark where the CISD began. A green line signals bullish intent; a red line signals bearish intent. ▲ and ▼ shapes show CISDs that form after liquidity is swept, these mark strong signals for potential entry. Swing dots show recent swing highs/lows. Candle colors follow the latest CISD trend.
Settings that matter : Increasing Swing Period produces fewer but stronger swings. Raising Noise Filter requires cleaner counter-moves and reduces false CISDs. Liquidity Lookback controls how strict the sweep confirmation is. Expiry Bars decides how long swing levels remain active.
枢轴点和水平
Time-Decay Liquidity Zones [BackQuant]Time-Decay Liquidity Zones
A dynamic liquidity map that turns single-bar exhaustion events into fading, color-graded zones, so you can see where trapped traders and unfinished business still matter, and when those areas have finally stopped pulling price.
What this is
This indicator detects unusually strong impulsive moves into wicks, converts them into supply or demand “zones,” then lets those zones decay over time. Each zone carries a strength score that fades bar by bar. Zones that stop attracting or rejecting price are gradually de-emphasized and eventually removed, while the most relevant areas stay bright and obvious.
Instead of static rectangles that live forever, you get a living liquidity map where:
Zones are born from objective criteria: volatility, wick size, and optional volume spikes.
Zones “age” using a configurable decay factor and maximum lifetime.
Zone color and opacity reflect current relative strength on a unified clear → green → red gradient.
Zones freeze when broken, so you can distinguish “active reaction areas” from “historical levels that have already given way”.
Conceptual idea
Large wicks with strong volatility often mark areas where aggressive orders met hidden liquidity and got absorbed. Price may revisit these areas to test leftover interest or to relieve trapped positions. However, not every wick matters for long. As time passes and more bars print, the market “forgets” some areas.
Time-Decay Liquidity Zones turns that idea into a rule-based system:
Find bars that likely reflect strong aggressive flows into liquidity.
Mark a zone around the wick using ATR-based thickness.
Assign a strength score of 1.0 at birth.
Each bar, reduce that score by a decay factor and remove zones that fall below a threshold or live too long.
Color all surviving zones from weak to strong using a single gradient scale and a visual legend.
How events are detected
Detection lives in the Event Detection group. The script combines range, wick size, and optional volume filters into simple rules.
Volatility filter
ATR Length — computes a rolling ATR over your chosen window. This is the volatility baseline.
Min range in ATRs — bar range (High–Low) must exceed this multiple of ATR for an event to be considered. This avoids tiny bars triggering zones.
Wick filters
For each bar, the script splits the candle into body and wicks:
Upper wick = High minus the max(Open, Close).
Lower wick = min(Open, Close) minus Low.
Then it tests:
Upper wick condition — upper wick must be larger than Min wick size in ATRs × ATR.
Lower wick condition — lower wick must be larger than Min wick size in ATRs × ATR.
Only bars with a sufficiently long wick relative to volatility qualify as candidate “liquidity events”.
Volume filter
Optionally, the script requires a volume spike:
Use volume filter — if enabled, volume must exceed a rolling volume SMA by a configurable multiplier.
Volume SMA length — period for the volume average.
Volume spike multiplier — how many times above the SMA current volume needs to be.
This lets you focus only on “heavy” tests of liquidity and ignore quiet bars.
Event types
Putting it together:
Upper event (potential supply / long liquidation, etc.)
Occurs when:
Upper wick is large in ATR terms.
Full bar range is large in ATR terms.
Volume is above the spike threshold (if enabled).
Lower event (potential demand / short liquidation, etc.)
Symmetric conditions using the lower wick.
How zones are constructed
Zone geometry lives in Zone Geometry .
When an event is detected, the script builds a rectangular box that anchors to the wick and extends in the appropriate direction by an ATR-based thickness.
For upper (supply-type) zones
Bottom of the zone = event bar high.
Top of the zone = event bar high + Zone thickness in ATRs × ATR.
The zone initially spans only the event bar on the x-axis, but is extended to the right as new bars appear while the zone is active.
For lower (demand-type) zones
Top of the zone = event bar low.
Bottom of the zone = event bar low − Zone thickness in ATRs × ATR.
Same extension logic: box starts on the event bar and grows rightward while alive.
The result is a band around the wick that scales with volatility. On high-ATR charts, zones are thicker. On calm charts, they are narrower and more precise.
Zone lifecycle, decay, and removal
All lifecycle logic is controlled by the Decay & Lifetime group.
Each zone carries:
Score — a floating-point “importance” measure, starting at 1.0 when created.
Direction — +1 for upper zones, −1 for lower zones.
Birth index — bar index at creation time.
Active flag — whether the zone is still considered unbroken and extendable.
1) Active vs broken
Each confirmed bar, the script checks:
For an upper zone , the zone is counted as “broken” when the close moves above the top of the zone.
For a lower zone , the zone is counted as “broken” when the close moves below the bottom of the zone.
When a zone breaks:
Its right edge is frozen at the previous bar (no further extension).
The zone remains on the chart, but is no longer updated by price interaction. It still decays in score until removal.
This lets you see where a major level was overrun, while naturally fading its influence over time.
2) Time decay
At each confirmed bar:
Score := Score × Score decay per bar .
A decay value close to 1.0 means very slow decay and long-lived zones.
Lower values (closer to 0.9) mean faster forgetting and more current-focused zones.
You are controlling how quickly the market “forgets” past events.
3) Age and score-based removal
Zones are removed when either:
Age in bars exceeds Max bars a zone can live .
This is a hard lifetime cap.
Score falls below Minimum score before removal .
This trims zones that have decayed into irrelevance even if their age is still within bounds.
When a zone is removed, its box is deleted and all associated state is freed to keep performance and visuals clean.
Unified gradient and color logic
Color control lives in Gradient & Color . The indicator uses a single continuous gradient for all zones, above and below price, so you can read strength at a glance without guessing what palette means what.
Base colors
You set:
Mid strength color (green) — used for mid-level strength zones and as the “anchor” in the gradient.
High strength color (red) — used for the strongest zones.
Max opacity — the maximum visual opacity for the solid part of the gradient. Lower values here mean more solid; higher values mean more transparent.
The script then defines three internal points:
Clear end — same as mid color, but with a high alpha (close to transparent).
Mid end — mid color at the strongest allowed opacity.
High end — high color at the strongest allowed opacity.
Strength normalization
Within each update:
The script finds the maximum score among all existing zones.
Each zone’s strength is computed as its score divided by this maximum.
Strength is clamped into .
This means a zone with strength 1.0 is currently the strongest zone on the chart. Other zones are colored relative to that.
Piecewise gradient
Color is assigned in two stages:
For strength between 0.0 and 0.5: interpolate from “clear” green to solid green.
Weak zones are barely visible, mid-strength zones appear as solid green.
For strength between 0.5 and 1.0: interpolate from solid green to solid red.
The strongest zones shift toward the red anchor, clearly separating them from everything else.
Strength scale legend
To make the gradient readable, the indicator draws a vertical legend on the right side of the chart:
About 15 cells from top (Strong) to bottom (Weak).
Each cell uses the same gradient function as the zones themselves.
Top cell is labeled “Strong”; bottom cell is labeled “Weak”.
This legend acts as a fixed reference so you can instantly map a zone’s color to its approximate strength rank.
What it plots
At a glance, the indicator produces:
Upper liquidity zones above price, built from large upper wick events.
Lower liquidity zones below price, built from large lower wick events.
All zones colored by relative strength using the same gradient.
Zones that freeze when price breaks them, then fade out via decay and removal.
A strength scale legend on the right to interpret the gradient.
There are no extra lines, labels, or clutter. The focus is the evolving structure of liquidity zones and their visual strength.
How to read the zones
Bright red / bright green zones
These are your current “major” liquidity areas. They have high scores relative to other zones and have not yet decayed. Expect meaningful reactions, absorption attempts, or spillover moves when price interacts with them.
Faded zones
Pale, nearly transparent zones are either old, decayed, or minor. They can still matter, but priority is lower. If these are in the middle of a long consolidation, they often become background noise.
Broken but still visible zones
Zones whose extension has stopped have been overrun by closing price. They show where a key level gave way. You can use them as context for regime shifts or failed attempts.
Absence of zones
A chart with few or no zones means that, under your current thresholds, there have not been strong enough liquidity events recently. Either tighten the filters or accept that recent price action has been relatively balanced.
Use cases
1) Intraday liquidity hunting
Run the indicator on lower timeframes (e.g., 1–15 minute) with moderately fast decay.
Use the upper zones as potential sell reaction areas, the lower zones as potential buy reaction areas.
Combine with order flow, CVD, or footprint tools to see whether price is absorbing or rejecting at each zone.
2) Swing trading context
Increase ATR length and range/wick multipliers to focus only on major spikes.
Set slower decay and higher max lifetime so zones persist across multiple sessions.
Use these zones as swing inflection areas for larger setups, for example anticipating re-tests after breakouts.
3) Stop placement and invalidation
For longs, place invalidation beyond a decaying lower zone rather than in the middle of noise.
For shorts, place invalidation beyond strong upper zones.
If price closes through a strong zone and it freezes, treat that as additional evidence your prior bias may be wrong.
4) Identifying trapped flows
Upper zones formed after violent spikes up that quickly fail can mark trapped longs.
Lower zones formed after violent spikes down that quickly reverse can mark trapped shorts.
Watching how price behaves on the next touch of those zones can hint at whether those participants are being rescued or squeezed.
Settings overview
Event Detection
Use volume filter — enable or disable the volume spike requirement.
Volume SMA length — rolling window for average volume.
Volume spike multiplier — how aggressive the volume spike filter is.
ATR length — period for ATR, used in all size comparisons.
Min wick size in ATRs — minimum wick size threshold.
Min range in ATRs — minimum bar range threshold.
Zone Geometry
Zone thickness in ATRs — vertical size of each liquidity zone, scaled by ATR.
Decay & Lifetime
Score decay per bar — multiplicative decay factor for each zone score per bar.
Max bars a zone can live — hard cap on lifetime.
Minimum score before removal — score cut-off at which zones are deleted.
Gradient & Color
Mid strength color (green) — base color for mid-level zones and the lower half of the gradient.
High strength color (red) — target color for the strongest zones.
Max opacity — controls the most solid end of the gradient (0 = fully solid, 100 = fully invisible).
Tuning guidance
Fast, session-only liquidity
Shorter ATR length (e.g., 20–50).
Higher wick and range multipliers to focus only on extreme events.
Decay per bar closer to 0.95–0.98 and moderate max lifetime.
Volume filter enabled with a decent multiplier (e.g., 1.5–2.0).
Slow, structural zones
Longer ATR length (e.g., 100+).
Moderate wick and range thresholds.
Decay per bar very close to 1.0 for slow fading.
Higher max lifetime and slightly higher min score threshold so only very weak zones disappear.
Noisy, high-volatility instruments
Increase wick and range ATR multipliers to avoid over-triggering.
Consider enabling the volume filter with stronger settings.
Keep decay moderate to avoid the chart getting overloaded with old zones.
Notes
This is a structural and contextual tool, not a complete trading system. It does not account for transaction costs, execution slippage, or your specific strategy rules. Use it to:
Highlight where liquidity has recently been tested hard.
Rank these areas by decaying strength.
Guide your attention when layering in separate entry signals, risk management, and higher-timeframe context.
Time-Decay Liquidity Zones is designed to keep your chart focused on where the market has most recently “cared” about price, and to gradually forget what no longer matters. Adjust the detection, geometry, decay, and gradient to fit your product and timeframe, and let the zones show you which parts of the tape still have unfinished business.
H1 Regression Channel + Levels + RSI Divergence (NEON UI)This indicator combines multiple tools for H1 trading analysis:
Features:
Regression Channel: Automatically plots the upper, middle, and lower regression lines based on H1 data.
Strong Levels: Detects pivot highs and lows with a liquidity filter (volume and candle body size) to highlight significant support and resistance levels.
RSI + Divergence: Calculates RSI and detects bullish/bearish divergences, displayed in a bright neon table.
Neon Table UI: Shows RSI value, Bullish Divergence, and Bearish Divergence clearly and brightly.
Liquidity Filter: Only considers pivots with high volume or large candle bodies to improve signal quality.
How to Use:
Watch the regression channel for trend direction.
Use strong levels as potential support/resistance.
Check the neon table for RSI readings and divergences.
Bullish divergence (YES) indicates potential upward reversal; Bearish divergence (YES) indicates potential downward reversal.
Note:
The table updates automatically based on pivot formation and RSI divergence detection.
Works best on H1 timeframe.
Basic Support and Resistance LinesAs the title says. These are some extremely basic support and resistance lines.
ITC Market Structure ProWith this tool you can see market structure, set session, daylow, dayhigh, multiple moving avg., fvg...
Every feature can by witched off or on to have more clarity watching price action - and everything is in one indicator, so you don't need to have stack off them!
Detailed description will try to provide later...
PS Thanks for LuxAlgo - I have use some of their fine work to combine all-in-one! Hoping it's not against the rules - if so, I will remove my tool.
PS Everything is rewritten to pine6
Hidden Zone Detector AI - Crypto/Forex/StockHidden Zone Detector AI - Crypto Forex Stock
Hidden Zone Detector AI is a professional TradingView indicator designed to find hidden supply and demand zones across markets — crypto, forex and stocks — and surface high-probability areas earlier than classical pivot-only methods. It combines price structure analysis, volatility/ATR sizing, volume profiling and multi-mode AI heuristics (Fast / Balanced / Accurate) to generate prediction zones, highlight tested areas, and visually mark zone breakouts. Built with practical trader workflow in mind: configurable anti-repaint options, adaptable Light/Dark UI, clear labels, and candle-coloring for immediate visual context.
How it works
• Detects hidden zones by scanning pivot formations and finding internal “hidden” bars that represent real institutional activity (not just visible swing points).
• Scores zones by size (ATR-relative), volume, and touch characteristics to produce a strength percentage (Weak/Medium/Strong).
• AI heuristics aggregate price, momentum, moving averages, RSI/MACD signals and volume patterns to propose prediction zones — adjustable for speed vs. accuracy.
• Zones are drawn as persistent boxes with optional midlines, labels, and tailored styling when broken or tested.
Main advantages
• Early edge: finds hidden zones that often act before obvious pivots.
• Actionable visuals: labeled zones, color-coded candles, and breakout styling speed decision-making.
• Flexible AI modes: choose Fast for responsiveness, Balanced for day-to-day use, or Accurate for stricter signals.
• Anti-repaint controls: require confirmed bars for predictions to improve signal reliability.
• Multi-market ready: tuned for crypto, forex and stock chart behavior.
• Light/Dark friendly: UI color handling ensures labels remain readable on any chart background.
• Open & reusable: released under Mozilla Public License 2.0 (MPL-2.0) — use and adapt freely with attribution.
Best practices & tips
• Start with Balanced mode and sensitivity ~5; increase sensitivity for earlier but noisier predictions.
• Use prediction confirmation (Require AI Prediction Confirmation) for lower repaint risk.
• Combine zone reads with higher-timeframe context and orderflow/volume tools for stronger entries.
• Adjust max active zones and opacity to keep charts clean on lower timeframes.
License & author
Mozilla Public License 2.0 (MPL-2.0).
Author: a_jabbaroff — created with care for the TradingView community and fellow traders.
15m ORB + FVG Strategy (ChadAnt)Core Logic
The indicator's logic revolves around three main phases:
1. Defining the 15-Minute Opening Range (ORB)
The script calculates the highest high (rangeHigh) and lowest low (rangeLow) that occurred during the first 15 minutes of the trading day.
This time window is defined by the sessionStr input, which defaults to 0930-0945 (exchange time).
The high and low of this range are plotted as small gray dots once the session ends (rangeSet = true).
2. Identifying a Fair Value Gap (FVG) Setup
After the 15-minute range is set, the indicator waits for a breakout of either the range high or range low.
A "Strict FVG breakout" requires two conditions on the first candle that closes beyond the range:
The candle before the breakout candle ( bars ago) must have been inside the range.
The breakout candle ( bar ago) must have closed outside the range.
A Fair Value Gap (FVG) must form on the most recent three candles (the current bar and the two previous bars).
Bullish FVG (Long Setup): The low of the current bar (low) is greater than the high of the bar two periods prior (high ). This FVG represents a price inefficiency that the trade expects to fill.
Bearish FVG (Short Setup): The high of the current bar (high) is less than the low of the bar two periods prior (low ).
If a valid FVG setup occurs, the indicator marks a pending setup and draws a colored box to highlight the FVG area (Green for Bullish FVG, Red for Bearish FVG).
3. Trade Entry and Management
If a pending setup is identified, the trade is structured as a re-entry trade into the FVG zone:
Entry Price: Set at the outer boundary of the FVG, which is the low of the current bar for a Long setup, or the high of the current bar for a Short setup.
Stop Loss (SL): Set at the opposite boundary of the FVG, which is the low for a Long setup, or the high for a Short setup.
The trade is triggered (tradeActive = true) once the price retraces to the pendingEntry level.
Risk/Reward (RR) Targets: Three Take Profit (TP) levels are calculated based on the distance between the Entry and Stop Loss:
$$\text{Risk} = | \text{Entry} - \text{SL} |$$
$$\text{TP}n = \text{Entry} \pm (\text{Risk} \times \text{RR}n)$$
where $n$ is 1, 2, or 3, corresponding to the input $\text{RR}1$, $\text{RR}2$, and $\text{RR}3$ values (defaults: 1.0, 1.5, and 2.0).
Trade Lines: Upon triggering, lines for the Entry, Stop Loss, and three Take Profit levels are drawn on the chart for a specified length (lineLength).
A crucial feature is the directional lock (highBroken / lowBroken):
If the price breaks a range level (e.g., simpleBrokeHigh) but without a valid FVG setup, the corresponding directional flag (e.g., highBroken) is set to true permanently for the day.
This prevents the indicator from looking for any subsequent trade setups in that direction for the rest of the day, suggesting that the initial move, without an FVG, exhausted the opportunity.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
ChadAnt
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied
Noufer XAUUSD noufer,
Noufer XAUUSD Base - v6
This is a clean, publish-ready TradingView indicator designed mainly for XAUUSD session awareness and trend guidance.
🔹 1. Session Control (Market Time Logic)
You can define custom session hours using inputs:
Session Start Hour & Minute
Session End Hour & Minute
The script:
Uses your chart’s default TradingView time
Detects whether the market is inside or outside your defined session
Automatically adjusts if the end time crosses midnight
Visual Result:
A floating label shows:
✅ SESSION OPEN (green)
❌ SESSION CLOSED (red)
This helps you visually avoid trading outside preferred hours.
🔹 2. Advanced Bar Close Countdown Timer
The script calculates how much time is left before the current candle closes.
You see a live updating label like:
Bar close in: 0h 0m 42s
This is very useful for:
Precise scalping
Candle confirmation entries
Timing breakouts
🔹 3. Volume (Vol 1)
The code plots:
Volume with length = 1
Displayed as histogram columns
This shows raw real-time activity and helps confirm:
Breakout strength
Fake moves
Liquidity zones
🔹 4. Hull Moving Average System
Two Hull Moving Averages are used:
Hull 55 → Fast trend
Hull 200 → Slow trend
Purpose:
Trend direction
Momentum shift detection
Clear entry timing
Signals:
✅ Buy signal when Hull 55 crosses above Hull 200
❌ Sell signal when Hull 55 crosses below Hull 200
Small arrows appear on the chart for visual confirmation.
🔹 5. Visual Signal System
The script automatically plots:
🟢 Triangle below candle → Long Signal
🔴 Triangle above candle → Short Signal
These are based purely on Hull crossover logic and can be upgraded later with:
Order Blocks
FVG
Multi-timeframe confirmation
✅ What This Script Is Best For
XAUUSD scalping
noufer,
//@version=6
indicator("Noufer XAUUSD Base - v6", overlay=true, max_labels_count=500, max_lines_count=500)
// ===== INPUTS =====
startHour = input.int(1, "Session Start Hour")
startMin = input.int(0, "Session Start Minute")
endHour = input.int(23, "Session End Hour")
endMin = input.int(0, "Session End Minute")
volLen = input.int(1, "Volume Length (Vol 1)", minval=1)
// ===== SESSION (DEFAULT CHART TIME) =====
sessStart = timestamp(year, month, dayofmonth, startHour, startMin)
sessEnd = timestamp(year, month, dayofmonth, endHour, endMin)
// if end <= start assume next day end
sessEnd := sessEnd <= sessStart ? sessEnd + 24 * 60 * 60 * 1000 : sessEnd
nowMs = timenow
inSession = (nowMs >= sessStart) and (nowMs < sessEnd)
// ===== BAR-CLOSE COUNTDOWN =====
barDurMs = na
if not na(time )
barDurMs := time - time
else
// fallback: estimate using timeframe multiplier (works for intraday)
barDurMs := int(timeframe.multiplier) * 60 * 1000
secsLeftBar = math.max(0, ((time + barDurMs) - nowMs) / 1000)
hrsB = math.floor(secsLeftBar / 3600)
minsB = math.floor((secsLeftBar % 3600) / 60)
secsB = math.floor(secsLeftBar % 60)
barCountdown = str.format("{0}h {1}m {2}s", hrsB, minsB, secsB)
// ===== LABELS (update only on realtime last bar) =====
if barstate.islast
var label sessLabel = na
sessTxt = inSession ? "SESSION OPEN" : "SESSION CLOSED"
if na(sessLabel)
sessLabel := label.new(bar_index, high * 1.002, sessTxt, xloc.bar_index, yloc.abovebar, style=label.style_label_left, color=inSession ? color.green : color.red, textcolor=color.white, size=size.small)
else
label.set_xy(sessLabel, bar_index, high * 1.002)
label.set_text(sessLabel, sessTxt)
label.set_color(sessLabel, inSession ? color.green : color.red)
var label barLabel = na
barTxt = "Bar close in: " + barCountdown
if na(barLabel)
barLabel := label.new(bar_index, low * 0.998, barTxt, xloc.bar_index, yloc.belowbar, style=label.style_label_right, color=color.new(color.blue, 0), textcolor=color.white, size=size.small)
else
label.set_xy(barLabel, bar_index, low * 0.998)
label.set_text(barLabel, barTxt)
// ===== VOLUME (Vol 1) =====
volPlot = ta.sma(volume, volLen)
plot(volPlot, title="Volume 1 (SMA)", style=plot.style_columns)
// ===== HULL MOVING AVERAGE =====
hull(src, len) =>
wma_half = ta.wma(src, len / 2)
wma_full = ta.wma(src, len)
diff = 2 * wma_half - wma_full
ta.wma(diff, math.round(math.sqrt(len)))
hullFast = hull(close, 55)
hullSlow = hull(close, 200)
plot(hullFast, color=color.orange, linewidth=2, title="Hull 55")
plot(hullSlow, color=color.blue, linewidth=2, title="Hull 200")
// ===== SIMPLE SIGNALS (example) =====
longSignal = ta.crossover(hullSlow, hullFast)
shortSignal = ta.crossunder(hullSlow, hullFast)
plotshape(longSignal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.tiny, title="Long")
plotshape(shortSignal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.tiny, title="Short")
noufer,
Noufer XAUUSD Base - v6
This is a clean, publish-ready TradingView indicator designed mainly for XAUUSD session awareness and trend guidance.
🔹 1. Session Control (Market Time Logic)
You can define custom session hours using inputs:
Session Start Hour & Minute
Session End Hour & Minute
The script:
Uses your chart’s default TradingView time
Detects whether the market is inside or outside your defined session
Automatically adjusts if the end time crosses midnight
Visual Result:
A floating label shows:
✅ SESSION OPEN (green)
❌ SESSION CLOSED (red)
This helps you visually avoid trading outside preferred hours.
🔹 2. Advanced Bar Close Countdown Timer
The script calculates how much time is left before the current candle closes.
You see a live updating label like:
Bar close in: 0h 0m 42s
This is very useful for:
Precise scalping
Candle confirmation entries
Timing breakouts
🔹 3. Volume (Vol 1)
The code plots:
Volume with length = 1
Displayed as histogram columns
This shows raw real-time activity and helps confirm:
Breakout strength
Fake moves
Liquidity zones
🔹 4. Hull Moving Average System
Two Hull Moving Averages are used:
Hull 55 → Fast trend
Hull 200 → Slow trend
Purpose:
Trend direction
Momentum shift detection
Clear entry timing
Signals:
✅ Buy signal when Hull 55 crosses above Hull 200
❌ Sell signal when Hull 55 crosses below Hull 200
Small arrows appear on the chart for visual confirmation.
🔹 5. Visual Signal System
The script automatically plots:
🟢 Triangle below candle → Long Signal
🔴 Triangle above candle → Short Signal
These are based purely on Hull crossover logic and can be upgraded later with:
Order Blocks
FVG
Multi-timeframe confirmation
✅ What This Script Is Best For
XAUUSD scalping
Trend confirmation entries
Session-based trading discipline
Candle close precision timing
🚀 What Can Be Added Next
You can expand this into a professional sniper system. Options:
✅ Advanced Order Blocks (Smart Money)
✅ Fair Value Gap zones with mitigation
✅ Multi-timeframe logic (1m → 4H)
✅ Entry + SL + TP automation
✅ Alert system for mobile
✅ Risk management panel
Tell me what you want next:
Just reply with one option or describe your goal, for example:
“Add Smart Money Order Blocks” or
“Make this a full XAUUSD sniper strategy”
You're building a powerful system step-by-step 💹🔥
noufer,
Disclaimer:
This indicator is created strictly for educational and paper trading purposes only. It is not intended as financial advice or a guaranteed trading system. Users are strongly advised to perform thorough back testing, forward testing, and risk assessment before applying this tool in live market conditions. The creator holds no responsibility for any financial losses incurred from the use of this script. Trade at your own risk.
15m ORB + FVG (ChadAnt)Core Logic
The indicator's logic revolves around three main phases:
1. Defining the 15-Minute Opening Range (ORB)
The script calculates the highest high (rangeHigh) and lowest low (rangeLow) that occurred during the first 15 minutes of the trading day.
This time window is defined by the sessionStr input, which defaults to 0930-0945 (exchange time).
The high and low of this range are plotted as small gray dots once the session ends (rangeSet = true).
2. Identifying a Fair Value Gap (FVG) Setup
After the 15-minute range is set, the indicator waits for a breakout of either the range high or range low.
A "Strict FVG breakout" requires two conditions on the first candle that closes beyond the range:
The candle before the breakout candle ( bars ago) must have been inside the range.
The breakout candle ( bar ago) must have closed outside the range.
A Fair Value Gap (FVG) must form on the most recent three candles (the current bar and the two previous bars).
Bullish FVG (Long Setup): The low of the current bar (low) is greater than the high of the bar two periods prior (high ). This FVG represents a price inefficiency that the trade expects to fill.
Bearish FVG (Short Setup): The high of the current bar (high) is less than the low of the bar two periods prior (low ).
If a valid FVG setup occurs, the indicator marks a pending setup and draws a colored box to highlight the FVG area (Green for Bullish FVG, Red for Bearish FVG).
3. Trade Entry and Management
If a pending setup is identified, the trade is structured as a re-entry trade into the FVG zone:
Entry Price: Set at the outer boundary of the FVG, which is the low of the current bar for a Long setup, or the high of the current bar for a Short setup.
Stop Loss (SL): Set at the opposite boundary of the FVG, which is the low for a Long setup, or the high for a Short setup.
The trade is triggered (tradeActive = true) once the price retraces to the pendingEntry level.
Risk/Reward (RR) Targets: Three Take Profit (TP) levels are calculated based on the distance between the Entry and Stop Loss:
$$\text{Risk} = | \text{Entry} - \text{SL} |$$
$$\text{TP}n = \text{Entry} \pm (\text{Risk} \times \text{RR}n)$$
where $n$ is 1, 2, or 3, corresponding to the input $\text{RR}1$, $\text{RR}2$, and $\text{RR}3$ values (defaults: 1.0, 1.5, and 2.0).
Trade Lines: Upon triggering, lines for the Entry, Stop Loss, and three Take Profit levels are drawn on the chart for a specified length (lineLength).
A crucial feature is the directional lock (highBroken / lowBroken):
If the price breaks a range level (e.g., simpleBrokeHigh) but without a valid FVG setup, the corresponding directional flag (e.g., highBroken) is set to true permanently for the day.
This prevents the indicator from looking for any subsequent trade setups in that direction for the rest of the day, suggesting that the initial move, without an FVG, exhausted the opportunity.
Custom Daily Close Line Ver2Plots a line for the Daily closing price for Futures intraday charts.
Default closing price is 16:15 Eastern time.
Plot Line can be customized for different times based on the market.
MOMO Exhaustion Short Signal Strategy v6 alexh1166Prints Short Signals for Exhausted Momentum stocks primed for reversals
1H & 15M Swing Liquidity BSL / SSL (Projected to Lower TFs)I created this script to plot 1H intermediate and 15m short term liquidity on the lower timeframe charts. Works best when used with high timeframe keylevels as a catalyst to move price to these liquidity zones.
Yesterday's OHLC → O | H | L | C WITH LabelsORIGNAL INDICATOR Yesterday's open, high, low and close BY EduardoMattje AND FULL CREDIT TO HIM
I have only modified with 2 changes
1.Now yesterdays levels are visible from very first candle of any small time frame
2/Labels are also visible of OHLC so it removes confusion for trders
What it does:
Plots yesterday’s Open, High, Low, and Close as horizontal lines on any timeframe (1min, 5min, hourly, daily, etc.).
Lines automatically extend to the right edge of the chart (until the current day ends).
Shows permanent labels on the far right with short prefixes:
O = Yesterday’s Open
H = Yesterday’s High
L = Yesterday’s Low
C = Yesterday’s Close
Key features:
Works perfectly in regular and extended (pre/post-market) sessions
Option to hide the levels on previous days (keeps chart clean)
Very lightweight and fast
No compilation errors
Perfect for day traders who want yesterday’s key levels always visible with clear O/H/L/C labels on the right side of the screen. Just add it once and forget – it updates automatically every day
Mancini Levels (with alerts, majors only option)This indicator displays Support and Resistance levels on ES or MES (E-mini and Micro E-mini S&P 500 Index Futures) charts by parsing text copied and pasted by the user.
(The levels displayed on the chart above are not valid, they are for illustration only)
Features
Option to display only the major levels
The chart on the left displays both major and minor levels, distinguished by color and line style. The chart on the right shows only the major levels; minor levels are disabled:
Alert function for when the price approaches a major level or zone (within a customizable distance).
The script provides a trigger for alerts. When creating an alert, you can then choose your desired frequency (Only once/Once per bar/Once per bar close/Once per minute) from the TradingView alert pop-up.
The alert message contains the current price and the approached major level price.
Customizable Lookback Period
Set how many days into the past the lines should appear (Subject to a maximum of 5000 bars).
To display lines for the current day only, set this value to 1.
Functions only on ES or MES (E-mini and Micro E-mini S&P 500 Index Futures) charts, as the text format is intended for these instruments.
How to Use
Copy and paste the support and resistance levels into the indicator's "Supports" and "Resistances" input fields.
Format Example:
For the "Supports" input: 6772-6770 (major), 6764 (major), 6757, 6751-54
For the "Resistances" input: 6799 (major), 6814, 6828-30, 6839-40 (major)
The indicator supports the display of zone levels in multiple formats
(e.g., 6235-45 and 6235-6245 and 6245-6235 are all valid).
For hundred- or thousand-point rollovers, please use only the full number format: 5995-6005.
The indicator includes an error-checking system to help you troubleshoot common setup issues.
An on-chart error label will be displayed on the chart if:
The chart instrument is not ES or MES.
The "Supports" and "Resistances" fields are both empty.
A data formatting error is detected (e.g., non-numeric characters, incomplete zones, etc.).
How It Works
For optimal resource efficiency and performance, the script executes all computationally intensive tasks only once, on the very first bar when the chart loads (if barstate.isfirst).
One-time Parsing: The parsing, splitting, and conversion of the text (string) formatted levels, which are provided in the settings, occurs only once.
Persistent Objects: The lines (line.new), fills (linefill.new), and price labels (label.new) that mark the levels are all persistent graphical objects. The script creates these on the first bar and stores their references in arrays declared with the var keyword.
No Redrawing: On subsequent bars, the indicator does not delete and redraw these objects. It merely updates the x-axis position of the existing lines and labels (line.set_x1, line.set_x2, label.set_x) on the last bar (if barstate.islast), ensuring they always remain on the right edge of the chart, following the formation of new bars.
By default, TradingView charts have a limit of 50 lines and 50 labels. Given that the number of levels often exceeds this, the script's drawing logic is as follows:
The number of displayable lines and labels has been increased (to 500) in the indicator's declaration line.
The script applies a prioritized order when drawing levels and labels. Major levels have priority over minor levels during drawing.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice.
Trading involves substantial risk of loss and is not suitable for every investor. Past performance shown in examples is not indicative of future results.
The indicator provides signals and calculations, but trading decisions are solely your responsibility. Always:
Test strategies on paper before using real money
Never risk more than you can afford to lose
Understand that all trading involves risk
Consider seeking advice from a licensed financial advisor
The publisher makes no guarantees regarding accuracy, profitability, or performance. Use at your own risk.
Futures Custom Daily Close Line Plots closing price at 4:15pm ET for futures on an intraday chart.
Closing price can be adjusted to any time you want.
PP_Day_OHLC[Dallas]OHLC from both 1 day ago and 2 days ago. For previous day, the line is weighted #2 and Plots Blue dashed line for Open, Lime dashed line for High, Red dashed line for Low and Purple dashed line for Close. For two days previous, the line is weighted #1 and Plots Blue dashed line for Open, Lime dashed line for High, Red dashed line for Low and Purple dashed line for Close. This makes it very distinguishable to identify the two sets of levels on the chart.
XAUUSD Scalper — VolEx + Imbalance (Cleaned)this scalping technique is only applicable for Gold Scalp Trading.
Footprint Safe FinalThis script is made for guide purpose only. It has some few important functions that can help you with your trading strategy.
BOS/CHOCH Demand & SupplyThis indicator automatically identifies and plots Supply and Demand zones based on Smart Money Concepts (SMC) methodology. It detects structural breaks in price action and marks the origin zones that initiated these moves.
How It Works (Technical Methodology)
1. Swing Point Detection
The indicator uses Pine Script's ta.pivothigh() and ta.pivotlow() functions to identify swing highs and lows. Users can input multiple lookback periods (e.g., 1, 2, 3, 5, 11, 15, 20) to detect structure across different timeframe perspectives simultaneously.
2. Break of Structure (BOS) Detection
A Bullish BOS is confirmed when:
Current candle closes above the last swing high
Previous candle's high was still below that swing high
The current swing high is higher than the previous swing high (trend continuation)
A Bearish BOS is confirmed when:
Current candle closes below the last swing low
Previous candle's low was still above that swing low
The current swing low is lower than the previous swing low (trend continuation)
3. Change of Character (CHOCH) Detection
A Bullish CHOCH is confirmed when:
Price breaks above the last swing high
But that swing high was lower than the previous swing high (potential reversal signal)
A Bearish CHOCH is confirmed when:
Price breaks below the last swing low
But that swing low was higher than the previous swing low (potential reversal signal)
4. Inducement / Liquidity Grab Filter (Optional)
When enabled, zones are only drawn if the swing point that created them first grabbed liquidity from the previous swing:
For Demand zones: The swing low must have traded below the previous swing low before the bullish break
For Supply zones: The swing high must have traded above the previous swing high before the bearish break
This filter helps identify higher-probability zones where stop-losses were likely triggered before the move.
5. Zone Construction
Demand Zone (Bullish):
Top boundary: max(open, close) of the swing low candle
Bottom boundary: low of the swing low candle
Supply Zone (Bearish):
Top boundary: high of the swing high candle
Bottom boundary: min(open, close) of the swing high candle
This captures the candle body-to-wick range where institutional orders likely reside.
6. Zone Lifecycle Management
Active Zone: Displayed in green (demand) or red (supply)
Mitigated Zone: When price touches the zone but doesn't break it, the zone turns gray (indicating partial fill)
Broken Zone: When price fully breaks through the zone, it is automatically deleted from the chart
How to Use
Demand Zones (Green): Look for long entries when price returns to these zones. The zone represents where buying pressure previously overcame selling.
Supply Zones (Red): Look for short entries when price returns to these zones. The zone represents where selling pressure previously overcame buying.
BOS Zones: Indicate trend continuation - trade in the direction of the break.
CHOCH Zones: Indicate potential reversal - these are early warning signals of trend change.
Enable "Require Inducement" for higher-quality setups where liquidity was grabbed before the structural break.
Multi-Lookback Periods: Using multiple values helps identify zones across different structural levels. Smaller values catch minor structure; larger values catch major structure.
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
3 day look backThis script is designed to help traders visually compare daily liquidity behavior between two correlated assets — for example, the Nasdaq (NQ) and the S&P500 (ES).
It plots each day’s High and Low, aligned from Midnight to Midnight, with a clean session structure. This makes it easier to identify:
SMT (Smart Money Technique) divergences
liquidity grabs
daily highs/lows sweeps
relative strength/weakness between assets
intraday bias shifts based on daily structure
What the script does
Reconstructs each trading day from 00:00 to 00:00, regardless of session irregularities.
Plots the High and Low of every completed day.
Allows users to display as many past days as they want (custom “look-back” parameter).
Automatically merges the weekend with Friday for assets where Saturday/Sunday sessions are fragmented.
Includes a manual midnight offset (–12h to +12h) to fix timezone inconsistencies on TradingView charts (common on futures).
Optional real-time lines for the current day.
No excessive right-side extensions for clean intraday reading.
Why this is useful
When comparing paired assets (e.g., NQ vs ES), liquidity behavior is often different.
This script makes it easy to spot:
when one asset makes a new daily high while the other doesn’t
asymmetrical liquidity sweeps
SMT-based divergence setups
liquidity grabs at daily levels
intraday directional bias shifts
About the other indicators shown on the chart
In the example chart, two additional indicators are used only for clarity and structure:
Day of the Week — displays the weekday on each session for easier orientation.
Vertical Line Timeline — draws a clean separator line between days.
These indicators are not required for this High/Low script to work.
They simply help visually organize sessions and make daily structure easier to read when comparing two assets side by side.
How to use
Open two assets (e.g., NQ1! and ES1!) side by side.
Apply this script on both charts.
Set the same timeframe.
Choose how many days back you want to visualize (look-back parameter).
Observe how each asset interacts with its daily High/Low.
Look for SMT divergences and liquidity-based setups.
Main features
Midnight-to-Midnight alignment
Weekend fusion
Manual offset for perfect timing
Adjustable daily look-back
Clean daily liquidity
Optional dynamic daily levels
Ideal for SMT/liquidity-based intraday trading
Liquidity ThermometerThis is a universal indicator that assesses market liquidity based on five key market parameters: volume, volatility, candlestick range, body size, and price momentum.
The indicator does not use open interest data and is suitable for all markets, including spot, futures, and Forex.
This indicator normalizes each metric historically and creates a composite index between 0 and 1, where higher values correspond to a stable and calm market environment, and lower values indicate periods of increased risk and potential liquidity stress.
LT generates an integral liquidity index in the range based on five normalized components:
-nVol — normalized volume, reflecting trading density and activity.
-nATR — the volatility component (ATR), inverted, as high volatility is typically associated with declining liquidity.
-nRange — the normalized candlestick range, also inverted to assess the structural narrowness of the price movement.
-nBody — the normalized candlestick body size (|close − open|), inverted to assess the balance of supply and demand.
-nMove — the normalized value of the price impulse movement (|Δclose|), reflecting short-term price spikes.
Each metric is linearly normalized over a sliding window (200 bars) using the formula:
norm(x) = (x − min) / (max − min),
where at max = min, the value is fixed at 0.5 to ensure stability.
The ALT index is calculated as a weighted combination:
ALT = 0.35 nVol + 0.20 (1 − nATR) + 0.20 (1 − nRange) + 0.15 (1 − nBody) + 0.10 (1 − nMove)
The result is further smoothed using EMA(3) to reduce micronoise.
Red Zone (MLI < 0.25) — Risk, Thin Liquidity
When the indicator falls into the red zone, it means the market is extremely volatile:
Characteristics:
Low volume — small trades have a strong impact on the price.
High volatility — candlesticks rise or fall sharply.
Wide candlestick range — the market is "breathing heavily," easily breaking price extremes.
Impulsive movements — small market shocks lead to sharp spikes.
Thin liquidity — few orders in the order book, large orders "eat up" the market.
What this means for a trader:
🔥 High risk of spikes and false breakouts.
⚠ Possible series of liquidations on leverage.
❌ It is not recommended to enter long or short positions without a filter or protection.
✅ Can be used for short scalping strategies if you know the entry point, but very carefully.
Green Zone (MLI > 0.75) — High Liquidity, Safe Zone
When the indicator rises into the green zone, it means the market is stable and balanced:
Characteristics:
High volume — the market is deep, orders are executed without a strong impact on the price.
Low volatility — candlesticks are stable, no sharp spikes.
Narrow candlestick range — price moves calmly.
Weak impulse movements — no sharp surges.
Sufficient liquidity — the market can handle large orders.
What this means for a trader:
✅ Safe zone for opening positions.
🔄 Easier to set stop-loss and take-profit orders.
💡 You can trade both up and down, the risk of sharp movements is minimal.
⚡ Under these conditions, there is a lower risk of spikes and accidental liquidations.
It does not predict price movements or guarantee results. It is an analytical tool intended for additional research into market structure.
darshakssc SMC Infinity Enginedarshakssc SMC Infinity Engine is an advanced Smart Money Concepts–based tool designed to help traders visually understand institutional price behavior such as liquidity sweeps, displacement moves, and structure breaks — all without repainting.
This script does not predict the future or guarantee outcomes.
Instead, it provides a structured price-action framework to help traders study how markets move during key intraday phases.
🔍 Core Concepts Used
This indicator highlights:
Liquidity Sweeps (equal highs/lows taken out)
Displacement Candles (strong institutional momentum bars)
Break of Structure (BOS) confirmations
Kill Zone Sessions (optional smart-money timing filter)
Higher Time Frame Trend Alignment
Dynamic Entry, Stop Loss, and Target Levels
Internal trade outcome tagging (TP1/TP2/TP3/SL)
These components are widely used in institutional price-action models and can help users understand how liquidity and structure interact throughout the trading day.
📊 What the Indicator Displays
LONG / SHORT signals after confirmed BOS
Entry, SL, TP1, TP2, TP3 mapped directly on the chart
Background highlighting for liquidity sweep zones
A clean dashboard showing:
Current symbol
Current price
Number of setups recognized
TP1/TP2/TP3 stats
SL count
Live win-rate calculation
Last outcome recorded
All visuals are provided for study purposes to help users review how price reacts during key structure shifts.
🧠 How to Use It (Educational Purpose)
This tool is designed as a market research & educational study aid.
You can use it to:
Observe how liquidity sweeps often precede directional moves
Study how displacement confirms institutional intent
Analyze BOS-based structure shifts
Compare HTF trend alignment with LTF execution
Review trade outcomes historically for self-improvement
It can assist in building discipline and consistency when learning SMC-style concepts — without any automation or strategy execution.
⚠️ Important Notes
This script does not repaint.
This is not a trading system, signal generator, or financial advice.
All information is for educational and informational purposes only.
Past performance does not guarantee future results.
Users should always perform their own analysis and risk management.
🛡️ Compliance Disclaimer
This script is provided for educational purposes only.
It does not constitute investment advice, does not guarantee results, and should not be used as the sole basis for any trading decision.
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.






















