Liquidity Entry Triggers (4-Model System) | WarRoomXYZLiquidity Entry Triggers is an open-source, price-action-based analytical framework designed to highlight recurring institutional liquidity behaviors that appear across all liquid markets.
The script focuses on how and where liquidity is taken, rather than attempting to predict direction using oscillators or lagging indicators.
It is optimized for XAUUSD, FX pairs, indices, and crypto , particularly on 1m–15m timeframes where session behavior and liquidity reactions are most visible.
This tool is not a buy/sell signal generator .
It provides contextual entry zones based on structural liquidity logic, allowing traders to apply their own execution rules.
Core Philosophy
Markets move because of:
•Trapped traders
•Forced liquidations
•Session-based liquidity cycles
•Reactions at prior institutional participation zones
This script visualizes four repeatable entry triggers that emerge from those mechanisms.
🔹 1. Failed Breakout / Trapped Trader Model
When price breaks a clearly defined range high or low, breakout traders often enter expecting continuation.
If price fails to hold outside the range and closes back inside, those traders become trapped.
The script detects:
•Breaks beyond recent highs/lows
•Immediate rejection back into the range
•Structural failure of momentum
These conditions frequently lead to mean reversion or reversal moves as trapped traders exit and fuel movement in the opposite direction.
Markers are plotted at the point of failure to highlight potential trap zones.
🔹 2. Liquidation Flush Detection
Sharp impulsive candles with abnormally large wicks often represent liquidation cascades rather than healthy trend continuation.
The script identifies liquidation behavior by measuring:
•Wick-to-body imbalance
•Sudden expansion followed by rejection
•Temporary price inefficiencies
These flushes commonly occur near:
•Session highs/lows
•Range extremes
•Trend exhaustion points
Such events often lead to rebalance moves , where price partially or fully fills the wick.
🔹 3. Orderblock Reaction Zones
Orderblocks represent areas where heavy participation occurred before a strong displacement move.
The script highlights:
•Clean bullish and bearish orderblock structures
•Zones formed during consolidation prior to expansion
•Areas likely to be defended when revisited
Orderblocks with minimal noise and clean departure are prioritized, as they often reflect institutional positioning rather than retail activity.
These zones are intended as reaction areas , not automatic entry signals.
🔹 4. London Session Liquidity Sweep Model
The London session frequently establishes the initial daily high or low.
Later in the session or during New York, price often:
•Sweeps internal liquidity around that level
•Rejects after the sweep
•Continues with the higher-timeframe bias
The script monitors London session behavior and marks:
•Liquidity runs above/below London highs and lows
•Rejections back inside the prior structure
This model is especially effective when combined with broader daily context.
🔹4. How the Components Work Together
The framework is designed as a context stack , not a checklist of signals:
Liquidity Event → Location → Timing → Trader Execution
Each model reinforces the others:
•Failed breakouts often occur after liquidity sweeps
•Liquidation wicks frequently form near orderblocks
•London sweeps often trigger failed momentum moves
•Confluence increases probability, not certainty
🔹 Practical Usage Guide
✔ Identify context
Determine whether price is approaching a range extreme, session level, or prior participation zone.
✔ Wait for a liquidity event
Look for a sweep, failed breakout, or liquidation wick.
✔ Observe reaction
Rejection, displacement, or reclaim behavior provides confirmation.
✔ Execute manually
Stops are commonly placed beyond the liquidity extreme.
Targets are typically internal liquidity, prior highs/lows, or imbalance zones.
The indicator does not manage trades or enforce rules.
Execution and risk management remain the trader’s responsibility.
🔹 5. Originality & Design Notes
This script does not replicate or bundle existing indicators.
It introduces:
•A multi-model liquidity entry framework
•Structural failed breakout detection
•Wick-based liquidation imbalance logic
•Session-aware liquidity sweep visualization
•A unified, minimal, non-lagging design
All concepts are based on observable market behavior and integrated into a single analytical tool.
🔹 6. Suitable Markets & Timeframes
Works best on:
•XAUUSD
•Major FX pairs
•Indices
•Liquid crypto markets
Recommended timeframes:
•1m
•5m
•15m
•30m
🔹7. Limitations & Notes
•This is an analytical framework , not a trading system
•All markings are confirmed at candle close (non-repainting)
•No open interest or order flow data is used
•Results depend on user interpretation and execution
•Best used alongside session bias and higher-timeframe structure
Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial advice, investment advice, or a recommendation to buy or sell any instrument.
Trading involves risk, and losses can exceed initial deposits.
The author assumes no responsibility for trading decisions made using this tool.
Users are strongly encouraged to test this script in demo or simulation environments and to apply proper risk management, position sizing, and personal discretion at all times.
By using this script, you acknowledge and accept all associated risks.
Indikator dan strategi
Bull-Bear VSA - By ThempBullish/Bearish Volume Analysis
- Analysis Volume of the candle with the MA
- Detector the High Volume Candle
- Display Bullish/Bearish Volume Direction
Volume + Candle Reversal Detector - By ThempCandle + Volume Analysis to Detect The
- Bullish/Bearish Engrufing
- CLIMAX SC/ BC
- Bullish/Bearish Pinbar
- Doji star Candle
Stochastic RSI with CrossesThis is the same Indicator on tradingview I just added a trigger for crosses for clarity. It has alerts and now you can clearly see who the STOCH/ RSI crosses.
XAUUSD Psychological Key Levels (v6)Unlock the key price levels of XAU/USD with precision! This indicator identifies critical support and resistance zones, helping traders spot high-probability entries and exits. Designed for both swing and intraday trading, it provides clear visual cues to navigate gold’s volatility.
VOLUME with DOUBLE MAA volume chart with dual moving averages. If you're looking for a volume chart with dual moving averages, this script is for you. By averaging the volume over two periods, you can discover more subtle relationships between price and volume.
Critical Advanced Multi-Divergence Dashboard
Complete Dashboard Interpretation Guide
Dashboard Metrics Explained
1. Timeframe
What it shows: Current chart timeframe (15m, 1H, 4H, 1D, etc.)
How to interpret:
The script auto-detects your chart timeframe
Higher timeframes (4H, 1D) = more reliable signals but fewer trades
Lower timeframes (5m, 15m) = more signals but higher noise
Best practice: Use multiple timeframes - get signal on 1H, confirm on 15m for entry
2. Signal Bias: BULLISH / BEARISH / NEUTRAL
What it shows: Overall market direction based on divergence consensus
Color coding:
🟢 BULLISH (Green) = Net strength > +10 → Expect upward move
🔴 BEARISH (Red) = Net strength < -10 → Expect downward move
⚪ NEUTRAL (Gray) = Net strength between -10 to +10 → No clear direction
How to interpret:
BULLISH: Multiple bullish divergences detected → Look for LONG entries
BEARISH: Multiple bearish divergences detected → Look for SHORT entries
NEUTRAL: Conflicting signals or weak divergences → WAIT, don't trade
Trading Action:
BULLISH + Strength > 60 = Strong BUY signal
BEARISH + Strength > 60 = Strong SELL signal
NEUTRAL = Stay out, wait for clarity
3. Signal Strength: 0-100
What it shows: Quantified power of the divergence signal
Strength Scale:
🔴 0-30 (Red): Weak signal → Don't trade
🟠 31-60 (Orange): Moderate signal → Trade with caution, reduce position size
🟢 61-100 (Green): Strong signal → High confidence trade
Calculation factors:
Number of divergences detected
Volume confirmation (1.3x multiplier if high volume)
Trend filter (ADX reduces counter-trend signals by 40%)
Weighted scoring (volume-based indicators get 1.5x weight)
How to use:
Strength > 70 + ADX < 20 = Best reversal trades
Strength > 60 + Volume HIGH = Excellent entry
Strength < 40 = Skip the trade
Example Scenarios:
Strength = 85 → Take full position size
Strength = 55 → Take 50% position, tight stop loss
Strength = 25 → No trade, wait for better setup
4. Quality Score: 0-100
What it shows: Overall reliability and confidence rating
Components (max 100 points):
Divergence count (40 points): More indicators confirming = higher quality
Volume confirmation (20 points): High volume adds 20, normal adds 10
Trend alignment (20 points): Signal aligning with trend = 20, against trend but weak ADX = 15
Detection timing (20 points): Confirmed signals = 20, early detection = 15
Quality Tiers:
80-100: Excellent - High probability setup
60-79: Good - Tradeable with proper risk management
40-59: Fair - Only for experienced traders
Below 40: Poor - Avoid trading
How to use:
Quality > 75 + Strength > 60 = Grade A setup
Quality > 60 + Strength > 50 = Grade B setup (reduce size)
Quality < 50 = Don't trade regardless of strength
5. Bullish Divs: 3R/2H (Example)
What it shows: Count of bullish divergences detected
R = Regular divergences (price LL, indicator HL)
H = Hidden divergences (price HL, indicator LL)
Interpretation:
Regular divergences = Reversal signals (more important)
Hidden divergences = Continuation signals (trend confirmation)
Examples:
4R/1H → Strong bullish reversal expected
1R/3H → Bullish trend continuation likely
5R/0H → Very strong reversal setup
Trading Logic:
High R count = Look for trend reversal
High H count = Trend is strong, look for pullback entries
R+H both high = Very strong signal, major move expected
6. Bearish Divs: 2R/1H (Example)
Same logic as Bullish Divs but for downside:
2R/1H → Moderate bearish reversal setup
0R/4H → Strong downtrend continuation
4R/3H → Extremely strong bearish signal
7. ADX (Trend): 35
What it shows: Average Directional Index - measures trend strength
ADX Scale:
0-20: Weak or no trend → Range-bound market
20-25: Emerging trend → Early trend formation
25-50: Strong trend → Trend is established
50-75: Very strong trend → Major directional move
75+: Extremely strong trend → Parabolic move, be cautious
Color Coding:
🟠 Orange (ADX > threshold): Strong trending market
⚪ Gray (ADX < threshold): Weak trend/ranging
How to interpret:
ADX < 20 + BULLISH Signal = Best for reversal trades (range breakout)
ADX > 25 + BEARISH Signal = Counter-trend, risky (signal strength reduced 40%)
ADX > 40 + Signal against trend = Dangerous, skip
ADX < 20 + High Strength = Perfect reversal setup
Trading Examples:
ADX = 15, BULLISH strength 75 → Perfect buy at bottom
ADX = 45, BEARISH strength 60 → Caution: Market in strong uptrend, bearish signal gets discounted
ADX = 50, BULLISH strength 80 → Trend continuation: Pullback in uptrend, good long entry
8. Volume: HIGH / Normal
What it shows: Current volume vs 20-period moving average
Volume Status:
🟡 HIGH (Yellow): Volume > 1.5x average → Signal multiplied by 1.3x
⚪ Normal (Gray): Volume ≤ 1.5x average → Signal multiplied by 0.8x
Why it matters:
High volume = More participation = More reliable signal
Normal/low volume = Weak conviction = Less reliable
Trading Rules:
HIGH volume + Strong signal = Take trade immediately
Normal volume + Strong signal = Wait for volume confirmation
HIGH volume + Weak signal = Still tradable (volume validates)
Normal volume + Weak signal = Definitely skip
Example:
Strength 50 + HIGH volume → Effective strength = 65 (tradable)
Strength 50 + Normal volume → Effective strength = 40 (skip)
9. Volatility: 2.35%
What it shows: ATR (Average True Range) as percentage of price
Volatility Scale:
< 1%: Very low volatility → Tight ranges, breakout coming
1-2%: Normal volatility → Standard market conditions
2-3%: Elevated volatility → Bigger moves expected
> 3%: High volatility → Large swings, wider stops needed
How to use:
Low volatility (< 1%) = Tighten stops, smaller targets
Normal (1-2%) = Standard position sizing
High (> 3%) = Reduce position size, wider stops
Impact on trading:
High volatility → Script auto-adjusts pivot periods (better divergence detection)
Stop loss placement: Use ATR × 2 for stop distance
Position sizing: Reduce size in high volatility
10. Detection: EARLY / Confirmed
What it shows: Whether signal detected before or after pivot confirmation
Detection Modes:
🟡 EARLY (Yellow): Signal detected before pivot confirms → Earlier entry but slightly less reliable
🟢 Confirmed (Green): Signal after pivot confirmation → More reliable but later entry
Trade-off:
EARLY mode:
+ Enter 2-5 bars earlier
+ Better risk/reward ratio
- 10-15% more false signals
Confirmed mode:
+ Higher reliability
+ Better for conservative traders
- May miss 10-20% of move
How to use:
Aggressive traders: Use EARLY mode + higher quality threshold (>70)
Conservative traders: Use Confirmed mode + moderate quality (>60)
🎯 Complete Trading Decision Matrix
STRONG BUY Signal ✅
Signal Bias: BULLISH
Signal Strength: > 70
Quality Score: > 75
Bullish Divs: ≥ 3 (preferably high R count)
ADX: < 25 (weak trend/reversal) OR > 30 with DI+ > DI-
Volume: HIGH
Action: Enter LONG with full position
STRONG SELL Signal ✅
Signal Bias: BEARISH
Signal Strength: > 70
Quality Score: > 75
Bearish Divs: ≥ 3 (preferably high R count)
ADX: < 25 (weak trend/reversal) OR > 30 with DI- > DI+
Volume: HIGH
Action: Enter SHORT with full position
Moderate Trade ⚠️
Signal Strength: 50-70
Quality Score: 60-75
Volume: Normal
Action: Enter with 50% position size, tight stop loss
NO TRADE ❌
Signal Bias: NEUTRAL
Signal Strength: < 50
Quality Score: < 60
ADX: > 40 (signal against strong trend)
Volume: Normal + Strength < 50
Action: Stay out, wait for better setup
📊 Real Trading Examples
Example 1: Perfect Bullish Setup
Timeframe: 1H
Signal Bias: BULLISH 🟢
Signal Strength: 82/100 🟢
Quality Score: 88/100
Bullish Divs: 5R/2H (excellent)
Bearish Divs: 0R/0H
ADX: 18 (weak trend, perfect for reversal)
Volume: HIGH 🟡
Volatility: 1.8%
Detection: EARLY 🟡
INTERPRETATION: Grade A+ setup
- Strong bullish consensus (5 regular divergences)
- Low ADX = perfect reversal condition
- High volume confirms the signal
- Quality 88 = highly reliable
ACTION:
✅ Enter LONG immediately with full position
✅ Stop loss: 2 × ATR below entry (3.6%)
✅ Target: Previous swing high or 2:1 R/R
Example 2: Risky Counter-Trend Signal
Timeframe: 15m
Signal Bias: BEARISH 🔴
Signal Strength: 55/100 🟠
Quality Score: 62/100
Bearish Divs: 2R/1H
ADX: 45 (very strong uptrend)
Volume: Normal
Detection: EARLY
INTERPRETATION: Dangerous setup
- ADX 45 = strong uptrend in place
- Bearish signal is counter-trend
- Script already reduced strength by 40%
- Moderate quality, normal volume
ACTION:
❌ SKIP this trade
⏸️ Wait for ADX to drop below 25
⏸️ Or wait for bearish strength > 70 with HIGH volume
Example 3: Wait and Watch
Signal Bias: NEUTRAL ⚪
Signal Strength: 35/100 🔴
Quality Score: 48/100
Bullish Divs: 1R/1H
Bearish Divs: 1R/0H
ADX: 22
Volume: Normal
INTERPRETATION: Conflicting signals
- Both bullish and bearish divergences present
- Low strength and quality
- No clear direction
ACTION:
⏸️ Don't trade - wait for clarity
👀 Watch for one side to dominate
📊 Check higher timeframe for context
🎓 Pro Tips for Dashboard Reading
Check Multiple Timeframes:
Signal on 4H + confirmation on 1H = Best trades
Higher TF gives direction, lower TF gives entry
Volume is King:
Never ignore HIGH volume signals (even if strength is moderate)
Be extra cautious with normal volume + weak signals
ADX Context Matters:
ADX < 20 + Divergence = Reversal opportunity
ADX > 40 + Counter-trend divergence = Dangerous
Quality Over Strength:
Quality 80 + Strength 60 > Quality 50 + Strength 80
High quality ensures the signal is real, not noise
Regular vs Hidden Divergences:
High R count = Reversal expected (more important)
High H count = Continuation (use for re-entries)
Early Detection Trade-off:
Use EARLY for swing trading (better R/R)
Use Confirmed for day trading (higher accuracy)
⚡ Quick Decision Flowchart
Step 1: Check Signal Bias
├─ NEUTRAL? → ❌ Don't trade
└─ BULLISH/BEARISH? → Continue
Step 2: Check Signal Strength
├─ < 50? → ❌ Don't trade
├─ 50-60? → Reduce position 50%
└─ > 60? → Continue
Step 3: Check Quality Score
├─ < 60? → ❌ Don't trade
└─ ≥ 60? → Continue
Step 4: Check ADX
├─ > 40 AND counter-trend? → ❌ Don't trade
└─ < 40 OR with-trend? → Continue
Step 5: Check Volume
├─ HIGH → ✅ Take trade (boost confidence)
└─ Normal → Check if strength > 60, then ✅ trade
Step 6: Position Sizing
├─ Strength > 70 + Quality > 75 → 100% position
├─ Strength 60-70 + Quality 60-75 → 75% position
└─ Strength 50-60 + Quality 60-70 → 50% position
This dashboard gives you a complete edge in divergence trading by quantifying what was previously subjective! 🚀
Only for Educational purpose
MAJOR PA Zones + Structure + Targets (Gray/Purple)This script highlights major price-action structure (HH/HL/LH/LL), marks BOS/CHOCH events, and draws key supply/demand zones to help visualize trend shifts and potential targets.
Scout Regiment - Signal📊 中文版
指标简介
Buy/Sell Signal 多维度交易信号指标
这是一个结合了EMA趋势过滤、CCI动量指标和RSI背景环境的多维度交易信号系统。通过三重过滤机制,帮助交易者在合适的市场环境中捕捉高质量的买卖信号。
核心特点
✅ 趋势过滤:使用233周期EMA确保顺势交易
✅ 动量确认:CCI(33)穿越信号作为入场触发
✅ 背景过滤:RSI(13)环境判断,避免同一背景重复信号
✅ 智能去重:每个RSI背景周期内只标记首次信号
✅ 清晰标识:三角形标记配合颜色区分买卖方向
使用说明
信号逻辑:
做多信号 (Buy):
收盘价 > EMA233(确认上升趋势)
CCI33向上穿越20(动量转强)
情况1:在RSI红色背景中首次出现
情况2:在RSI绿色背景中出现
做空信号 (Sell):
收盘价 < EMA233(确认下降趋势)
CCI33向下穿越80(动量转弱)
情况1:在RSI绿色背景中首次出现
情况2:在RSI红色背景中出现
参数设置
EMA过滤长度:默认233,用于判断主趋势方向
CCI长度:默认33,控制动量指标灵敏度
RSI长度:默认13,用于背景环境判断
重要提示
⚠️ 信号出现后不要立即下单!请务必检查:
CCI中期是否出现"浪子回头"形态
OBV成交量状态是否配合
RSI是否成功穿越50中线
结合其他技术分析工具综合判断
💡 建议配合使用:
支撑阻力位分析
成交量指标(如OBV)
更大周期的趋势确认
📈 English Version
Indicator Overview
Buy/Sell Signal - Multi-Dimensional Trading Signal System
This is a comprehensive trading signal system that combines EMA trend filtering, CCI momentum indicator, and RSI background environment. Through a triple-layer filtering mechanism, it helps traders capture high-quality buy and sell signals in appropriate market conditions.
Key Features
✅ Trend Filter: 233-period EMA ensures trend-following trades
✅ Momentum Confirmation: CCI(33) crossover signals as entry triggers
✅ Background Filter: RSI(13) environment detection to avoid duplicate signals
✅ Smart Deduplication: Only first signal per RSI background cycle
✅ Clear Visualization: Triangle markers with color-coded direction
How to Use
Signal Logic:
Buy Signal:
Close > EMA233 (confirms uptrend)
CCI33 crosses above 20 (momentum strengthens)
Case 1: First occurrence in RSI red background
Case 2: Occurs in RSI green background
Sell Signal:
Close < EMA233 (confirms downtrend)
CCI33 crosses below 80 (momentum weakens)
Case 1: First occurrence in RSI green background
Case 2: Occurs in RSI red background
Parameter Settings
EMA Filter Length: Default 233, for main trend direction
CCI Length: Default 33, controls momentum sensitivity
RSI Length: Default 13, for background environment detection
Important Notes
⚠️ DO NOT enter trades immediately after signal appears! Always check:
Whether CCI shows a "reversal" pattern in medium-term
OBV volume status confirmation
Whether RSI successfully crosses the 50 midline
Combine with other technical analysis tools
💡 Recommended to Use With:
Support/Resistance analysis
Volume indicators (such as OBV)
Higher timeframe trend confirmation
Risk Disclaimer
This indicator is for reference only and does not constitute investment advice. Trading involves risk. Please conduct thorough analysis and use proper risk management before making any trading decisions.
适合交易者类型 / Suitable For:
波段交易者 / Swing Traders
日内交易者 / Day Traders
趋势跟踪者 / Trend Followers
适用市场 / Applicable Markets:
股票 / Stocks
外汇 / Forex
加密货币 / Crypto
期货 / Futures
ORB + FVG A+ PRO (All-in-One) [QQQ]Configurable ORB + FVG + filters (VIX, ORB range, relative volume) + A+ PRO (retest at the FVG edge + rejection) + anti-fakeout + orange reminder “CONFIRM POC/HVN (Volume Profile)” right when the A+ signal appears
RTH & ETH VWAPs (Unified Style)AVWAP indicator showing only the current session. Shows ETH VWAP even when RTH is turned on. Has standard deviation and fills for settings.
Alertes Trading Manuel//@version=6
indicator("Signal simple +0.5% LONG", overlay = true)
// --- Paramètres ---
tpPctInput = input.float(0.5, "TP (%)", step = 0.1) // objectif pour toi : 0.5%
slPctInput = input.float(0.3, "SL (%)", step = 0.1) // SL indicatif : 0.3%
tpPct = tpPctInput / 100.0
slPct = slPctInput / 100.0
emaLenFast = input.int(50, "EMA rapide (intraday)", minval = 1)
emaLenSlow = input.int(200, "EMA lente (intraday)", minval = 1)
volLen = input.int(20, "Période moyenne Volume", minval = 1)
// --- Tendance daily : MA200 jours ---
ma200D = request.security(syminfo.tickerid, "D", ta.sma(close, 200))
above200D = close > ma200D
// --- Tendance intraday ---
emaFast = ta.ema(close, emaLenFast)
emaSlow = ta.ema(close, emaLenSlow)
upTrendIntraday = close > emaFast and emaFast > emaSlow
// --- MACD & RSI ---
= ta.macd(close, 12, 26, 9)
rsi = ta.rsi(close, 14)
macdOK = macdLine > macdSignal
rsiOK = rsi > 49 and rsi < 75
// --- Volume ---
volMa = ta.sma(volume, volLen)
volOK = volume > volume and volume > volMa
// --- Signal LONG simple ---
longSignal = above200D and upTrendIntraday and macdOK and rsiOK and volOK
// --- Affichage du signal ---
plotshape(
longSignal,
title = "Signal LONG",
location = location.belowbar,
style = shape.triangleup,
color = color.lime,
size = size.small,
text = "LONG"
)
// --- Lignes TP / SL indicatives basées sur le dernier signal ---
var float tpLine = na
var float slLine = na
if longSignal
tpLine := close * (1 + tpPct)
slLine := close * (1 - slPct)
// Les lignes restent jusqu'au prochain signal
plot(tpLine, "TP indicatif", color = color.new(color.green, 50), style = plot.style_linebr)
plot(slLine, "SL indicatif", color = color.new(color.red, 50), style = plot.style_linebr)
// --- Affichage des moyennes ---
plot(emaFast, "EMA rapide", color = color.new(color.blue, 40))
plot(emaSlow, "EMA lente", color = color.new(color.orange, 40))
plot(ma200D, "MA200 jours (daily)", color = color.new(color.fuchsia, 0), linewidth = 2)
SnR Key Level Detector by RWBTradeLabSnR Key Level Detector by RWBTradeLab
A clean, non-repainting key level detector built for price action traders who want clear, fixed Support/Resistance reference levels with breakout upgrades and alerts.
What this indicator does
This script automatically detects and draws 6 types of SnR key levels using CLOSED candles only (no running-candle logic):
1. Base Key Levels (from 2-candle sequences)
* A Level: Green → Red (Level = 1st Green candle Close)
* V Level: Red → Green (Level = 1st Red candle Close)
* Bullish Gap Level: Green → Green (Level = 1st Green candle Close)
* Bearish Gap Level: Red → Red (Level = 1st Red candle Close)
2. Breakout Upgrade Levels
* RBS (Resistance → Support): When a Green candle CLOSE breaks above an A Level or Bearish Gap Level
* SBR (Support → Resistance): When a Red candle CLOSE breaks below a V Level or Bullish Gap Level
Visuals on chart
* Each detected level is drawn as a horizontal Ray extended to the right.
* Optional text labels are placed above/below the level based on the level type.
* Adjustable “Label Offset (ticks)” to keep labels cleaner on the chart.
Alerts (bar-close only)
Built-in alerts trigger only when a candle is CONFIRMED:
* A Level
* V Level
* Bullish Gap
* Bearish Gap
* SBR
* RBS
Each alert includes price and time in the message.
Key settings
* Candle Length (closed candles): Scans last N closed candles (running candle excluded).
* On/Off toggles: Enable/disable each level type and text labels individually.
* Label Offset (ticks): Controls the label distance from the level line.
Non-repainting confirmation
All levels and alerts are calculated on confirmed bars only.
No repainting, no running-bar signals.
Best use
Works on any market and timeframe. For higher reliability, combine with:
* Higher timeframe structure
* Supply & Demand zones
* Trend context and liquidity sweeps
Disclaimer:
This indicator is a level-detection tool, not financial advice. Trading involves risk; always use proper risk management and confirm levels with your own analysis.
Creator: RWBTradeLab
If you find this useful, please leave a like ⭐ and share your feedback.
online Moment-Based Adaptive Detection🙏🏻 oMBAD (online Moment-Based Adaptive Detection): adaptive anomaly || outlier || novelty detection, higher-order standardized moments; at O(1) time complexity
For TradingView users: this entity would truly unleash its true potential for you ‘only’ if you work with tick-based & seconds-based resolutions, otherwise I recommend to keep using original non-online MBAD . Otherwise it may only help with a much faster backtesting & strategy development processes.
...
Main features :
O(1) time complexity: the whole method works @ O(1) time complexity, it’s lighting fast and cheap
HFT-ready: frequency, amount and magnitude of data points are irrelevant
Axiomatic: no need to optimize or to provide arbitrary hyperparameters, adaptive thresholds are completely data-driven and based on combination of higher-order central moments
Accepts weights: the method can gain additional information by accepting weights (e.g. volume weighting)
Example use cases for high-frequency trading:
Ordeflow analysis: can be applied on non-aggregated flow of market orders to gauge its imbalance and momentum
Liquidity provision: can be applied to high-resolution || tick data to place and dynamically adjust prices of limit orders
ML-based signals: online estimates of higher-order central moments can be used as features & in further feature engineering for trading signal generation
Operation & control: can be applied on PnL stream of your strategy for immediate returns analysis and equity control
Abstract:
This method is the online version of originally O(n) MBAD (Moment-Based Adaptive Detection) . It uses higher-order central & standardized moments to naturally estimate data’s extremums using all data while not touching order-statistics (i.e. current min and max) at all. By the same principles it also estimates “ever-possible” values given the data-generating process stays the same.
This online version achieves reduced time complexity to O(1) by using weighted exponential smoothing, and in particular is based on Pebay et al (2008) work, which provides mathematically correct results for the moments, and is numerically stable, unlike the raw sum-based estimates of moments.
Additionally, I provide adjustments for non-continuous lattice geometry of orderbooks, and correct re-quantization math, allowing to artificially increase the native tick size.
The guidelines of how to adjust alpha (smoothing parameter of exponential smoothing) in order to completely match certain types of moving averages, or to minimize errors with ones when it’s impossible to match; are also provided.
Mathematical correctness of the realization was verified experimentally by observing the exact match with the original non-recursive MBAD in expanding window mode, and confirmed by 2 AI agents independently. Both weighted and non-weighted versions were tested successfully.
...
^^ On micro level with moving window size 1
^^ With artificial tick size increase, moving window size 64
^^ Expanding window mode anchored to session start
^^ Demonstrates numerical stability even on very large inputs
...
∞
Filtered TEMA CrossoverFiltered Dual TEMA Crossover
This indicator is a trend-following tool based on the classic Dual Triple Exponential Moving Average (TEMA) Crossover strategy, enhanced with two robust filters: the Chop Index and the Average Directional Index (ADX).
The TEMA is known for its low lag and high responsiveness, making the crossover an effective signal for trend reversals. However, trading TEMA crossovers during sideways, choppy markets often leads to false signals. This is where the filters come in.
Key Features
▪️Dual TEMA Crossover: Plots two customizable TEMA lines (Fast and Slow) for clear visualization of the primary trend direction.
▪️Intelligent Signal Filtering: Buy and Sell signals are generated only when the market confirms it is in a trending state, thanks to two integrated filters:
➖Chop Index Filter: Blocks signals when the market is detected as sideways or consolidating (Chop Index reading above a user-defined threshold).
➖ADX Filter: Ensures signals are only taken when the trend strength is sufficient (ADX reading above a user-defined minimum threshold).
▪️Customizable Signals: Full control over the signal shapes (Arrows, Triangles, etc.), colors, text, and size.
How to Use It
Use the Filtered Dual TEMA Crossover to enter positions on trend continuation or reversal while dramatically reducing exposure to low-quality, whipsawing signals common in non-trending environments.
Before the filters:
After the filters:
Minimize Noise. Maximize Clarity. Trade the Trend.
Realtime Position CalculatorRisk management is the single most important factor in trading success. This indicator automates the process of position sizing in real-time based on your account risk and a dynamic technical Stop Loss. It eliminates the need for manual calculations and helps you execute trades faster while adhering to strict risk management rules.
How it Works
The indicator visually places a Stop Loss line based on recent market structure (Highs/Lows) and instantly calculates the required position size (Contracts/Lots) to match your defined monetary risk.
1. Dynamic Stop Loss : It identifies the highest high (for Shorts) or lowest low (for Longs) over a user-defined lookback period.
2. Position Calculation : It calculates the distance between the current price and the Stop Loss level.
3. Formula : Contract Size = Risk Amount / (Distance * Point Value)
4. Actual vs. Target Risk : Because of the rounding, the script calculates and displays the Actual Risk (e.g., $95) alongside your Target Risk (e.g., $100), so you know exactly what is at stake.
Key Features
Real-time Calculation : Updates instantly as price moves.
Copy Trading Support : Includes an "Account Multiplier" setting. If you trade 10 accounts via a copy trader, set the multiplier to 10. The indicator will show the total contract size needed across all accounts.
Point Value Support : Works for Stocks/Crypto (Point Value = 1) and Futures (e.g., ES = 50, NQ = 20).
Customizable UI : Toggle specific data on/off in the label (e.g., hide price, show only contracts). Adjustable label offset to keep the chart clean.
Settings Guide
Trade Direction : Toggle between Long and Short setups. Add the indicator two times and set another for Longs and another for Shorts so you can see both direction at the same time.
Risk Amount : Your max risk in currency (e.g., $100).
Lookback : How many bars back to look for the SL pivot (e.g., 10 bars).
Point Value : Crucial for Futures. Use 1.0 for Crypto/Stocks. Use tick value/point value for futures (e.g., 50 for ES).
Account Multiplier : Multiply the position size for multiple accounts.
Label Offset : Move the information label to the right to avoid overlapping with price action.
Disclaimer
This tool is for informational and educational purposes only. Always verify calculations manually before executing trades. Past performance is not indicative of future results.
Momentum Gamma StraddleExact definition of what that script does
1) Purpose
The script is a decision aid for intraday expiry-day ATM straddle trades. It detects intraday structure breakouts and signals candidate long straddle entries for Nifty or Sensex using price structure, volume, RSI momentum, and a user-supplied combined ATM premium value (CE + PE). It draws support/resistance, shows an info box, and raises alerts.
2) Inputs the user can change
Trading time window: startHour, startMin, endHour, endMin.
Structure lookback: res_lookback (how many candles to use to compute resistance/support).
Minimum candle body as fraction of candle range: min_body_pct.
Volume multiplier threshold: vol_mult (breakout candle volume must exceed vol_mult * sma5).
RSI length and thresholds: rsi_len, rsi_bull_thresh, rsi_bear_thresh.
Combined premium source: choose Manual or Symbol. If Manual, set manual_combined. If Symbol, provide a TradingView symbol that returns CE+PE combined ATM premium.
Combined premium acceptable band: min_combined_ok and max_combined_ok.
Profit target percent and SL percent (target_pct and sl_pct).
Misc pattern heuristics: min_res_hits (min tests of resistance inside lookback), low_slope_min (used to detect rising lows).
Micro-confirmation toggle, micro timeframe, nonrepaint option, show_entry_label toggle (in the later fixed versions some of these were added, but the earlier fixed script had basic combined_symbol options and a lookahead fallback).
3) Data calculated on each bar
Safety check hasEnough: true when bar_index >= res_lookback.
resistance: the highest high over res_lookback bars.
support: the lowest low over res_lookback bars.
res_hits: count of bars within lookback whose high is within a tolerance of resistance. Tolerance is 10 percent of the range between resistance and support.
low_slope: simple slope of lows over res_lookback bars.
body_pct: the candle body as a fraction of its high-low range. strong_body true when body_pct >= min_body_pct.
bull_breakout: true if hasEnough and current close > resistance and strong_body and res_hits >= min_res_hits.
bear_breakout: true if hasEnough and current close < support and strong_body and res_hits >= min_res_hits.
vol_sma5 and vol_ok: vol_ok true when current volume > vol_mult * vol_sma5.
rsi and rsi checks: rsi_bull_ok true if rsi >= rsi_bull_thresh; rsi_bear_ok true if rsi <= rsi_bear_thresh.
combined_premium: either the manual_combined input or the value read from combined_symbol via request.security. The script attempted a fallback to manual when the symbol was not valid.
combined_ok: true if combined_premium lies between min_combined_ok and max_combined_ok.
final signals: bull_signal when in_time_window and bull_breakout and vol_ok and rsi_bull_ok and combined_ok. bear_signal similar for bearish breakout.
4) Visual output and alerts
Plots resistance and support lines on the chart.
Plots a label shape "STRADDLE BUY" below the bar for bull_signal and above the bar for bear_signal.
Creates an info label (on last bar) that shows TimeOK, VolOK and vol ratio, RSI, Combined premium and whether it is OK, ResHits and LowSlope.
Sets two alertcondition events: "Bull Straddle BUY" and "Bear Straddle BUY" with a short candidate message. The alerts fire when the corresponding signal is true.
5) Execution assumptions you must follow manually
The script does not place any orders or compute option strike-level prices or greeks. It only flags candidate entry bars.
When combined_source is Manual you must type CE+PE yourself. The indicator will only accept the manual number and treat it as the combined premium.
When combined_source is Symbol the script uses request.security to read that symbol. For historical bars the indicator may repaint depending on lookahead settings. The earlier fixed script attempted to use request.security inside a conditional which leads to runtime or compile errors. You experienced that exact error.
6) Known implementation caveats and bugs you encountered
Pine typing issue with low_slope. The earlier version set low_slope = na without explicit type. That triggers the Pine error: "Value with NA type cannot be assigned to a variable that was defined without type keyword". This required changing to float low_slope = na.
The earlier version attempted to call request.security() inside an if block or conditional. Pine prohibits request.security in conditional blocks unless allowed patterns are followed. That produced the error you saw: "Cannot use request.* call within loops or conditional structures" or similar. The correct pattern is to call request.security at top-level and decide later which value to use.
If combined_symbol is invalid or not available on your TradingView subscription, request.security can return na and the script must fall back to manual value. The earlier fixed script attempted fallback but compiled errors prevented reliable behavior.
The earlier script did not include micro-confirmation or advanced nonrepaint controls. Those were added in later versions. Because of that, the earlier script may have given signals that appear to repaint on historical bars or may have thrown errors when using combined_symbol.
7) Decision logic summary (exact)
Only operate if current chart time is inside user set time window.
Only consider trade candidates when enough history exists for res_lookback.
Identify a resistance level as the highest high in the lookback. Count how many times that resistance was tested. Ensure the breakout candle has a strong body and volume spike. Ensure RSI is aligned with breakout direction.
Require combined ATM premium to be inside a user preferred band. If combined_symbol is used the script tries to read that value and use it; otherwise it uses manual_combined input.
If all the above conditions are true on a confirmed bar, the script plots a STRADDLE BUY label and triggers an alertcondition.
8) What the script does not do
It does not calculate CE and PE prices by strike. It only consumes or accepts combined premium number.
It does not compute greeks, IV, or OI. OI and IV checks must be done manually.
It does not manage positions. No SL management or automatic exits are executed by the script.
It does not simulate fills or account for bid/ask spreads or slippage.
It cannot detect off-exchange block trades or read exchange-level auction states beyond raw volume bars.
It may repaint historical labels if the combined_symbol was read with lookahead_on or the script used request.security in a way that repainted. The corrected final version uses nonrepaint options.
9) Manual checks you must always perform even when the script signals BUY
Confirm the live combined ATM premium and the bid/ask for CE and PE.
Check ATM IV and recent IV movement for a potential IV crush risk.
Check option OI distribution and recent OI changes for strike pinning or large player exposure.
Confirm CE and PE liquidity and depth. Wide spreads make fills unrealistic.
Confirm there is no scheduled news or auction within the next few minutes.
Confirm margin and position sizing fits your risk plan.
10) Quick testing checklist you can run now
Add the script to a 5-minute chart with combined_source = Manual.
Enter manual_combined equal to the real CE+PE at the moment you test.
Set startHour and endHour so the in_time_window is true for current time.
Look for STRADDLE BUY label on confirmed bars. Inspect the info box to see why it did or did not signal.
If you set combined_source = Symbol, verify the symbol exists and that TradingView returns values for it. If you previously saw the request.security error, that was caused by placing the request inside a conditional. The correct behavior is to call request.security unconditionally at top-level like in the final fixed version.
SMT Divergence - Time & Calendar CyclesOverview
This indicator is a tool designed to detect SMT Divergences across multiple market structures.
It operates on a Dual-Layer Logic, which filters, ranks, and renders divergences based on specific, adjustable Time Cycles (e.g., 90-minute, or 30-minute rolling windows) and Calendar Cycles (e.g., Daily, or Weekly structure).
1. Core Concept: Automated SMT Detection
SMT Divergences occur when correlated instruments fail to confirm each other's price action at key structural pivots. For example, if the Nasdaq (NQ) makes a higher high while the S&P 500 (ES) fails to do so, that can be considered a SMT Divergence , this discrepancy in correlation could indicate a potential shift in structural momentum and a weakening of the prevailing trend.
This indicator automates this analysis by comparing the Main Chart against up to three user-defined Comparison Symbols. It supports:
Direct Correlation: Identifies standard divergences between positively correlated assets where one fails to confirm the other's new high or low (e.g., NQ vs. ES).
Inverse Correlation: Accounts for negative correlation to detect failures in symmetry, such as when the Main Chart makes a Higher High but the Inverse Symbol fails to make the expected Lower Low (e.g., EURUSD vs. DXY).
Cross Symbol vs. Symbol: Logic that cross-verifies comparison symbols against each other to find internal market weakness, even if the main chart is currently neutral (e.g., Symbol 1 vs. Symbol 2).
2. How It Works: Technical Architecture
To accurately map market structure, the indicator uses a specific technical method to handle data synchronization and structure storage:
A. Data Synchronization
The tool utilizes 'request.security' targeting the current chart's resolution (native timeframe) to retrieve comparison data of the other symbol. This method enforces strict bar-by-bar alignment between the main symbol and the comparison symbol, preventing the access of future data (lookahead bias) and ensuring historical data integrity.
B. Pivot Arrays
The script identifies significant swing points and stores them in custom arrays. It iterates through these arrays to compare the current price structure against historical structures stored in memory.
The array storage and comparison logic operates in two distinct modes depending on the cycle type:
2.1 Time Cycles (Intraday Analysis)
Targeting specific, adjustable time windows like 90-minute or 30-minute cycles.
Session Bound: These cycles are strictly bound to a user-defined trading session (e.g., 09:30 - 16:00).
Continuous Roll: They repeat continuously throughout the window until the session ends.
Session Reset: At the start of every new session, calculation data resets to ensure signals reflect only the current session, while preserving all historical lines on the chart.
2.2 Calendar Cycles (Macro Analysis)
Targeting Higher Timeframe (HTF) structural analysis (Daily, Weekly, Monthly, Quarterly, and Yearly).
Persistent Data: Unlike Time Cycles, Calendar Cycles utilize persistent data arrays that survive session resets.
Calculation Mode: "Exchange Session" prevents ghost lines on Futures, while "Input Timezone" enforces strict midnight resets for Crypto/CFDs.
3. The Unified SMT Visualization
The indicator provides a Composite Visualization , unifying micro (Intraday) and macro (Calendar) analysis by simultaneously projecting divergence signals onto a single chart view.
Live vs. Historical Logic:
The Live Feed (Dynamic State): This is the only component where repainting occurs. Signals within the current active cycle are temporary and self-correcting:
Updates: If the price pushes to a new extreme within the open cycle, the SMT line automatically redraws to the new High/Low.
Invalidation: If the Comparison Symbol eventually breaks its structure ("catches up") before the cycle closes, the divergence is no longer valid, and the signal is removed.
Example: In a 90-minute Time Cycle, a signal might form at minute 30. If the Comparison Symbol confirms the move at minute 45, the signal is invalidated. If the divergence holds until minute 90, it becomes permanent.
The Historian (Permanent Record):
Once a cycle closes, the final state is locked. Validated signals are transferred to the historical array and will never change (non-repainting).
4. Key Features & Capabilities
4.1 Multi-Symbol & Correlation
Triple-Check Logic: Capable of comparing the Main Chart against Symbol 1, Symbol 2, and Symbol 3 simultaneously.
Cross-Symbol Check: The script can optionally validate Symbol 1 against Symbol 2 (e.g., checking ES vs. YM) and plot the result on your main chart, providing a broader market view.
4.2 Structural Range Validation
The script includes strict validation logic to ensure high-quality data. It automatically verifies that the detected highs and lows are the true extremes of the cycle range.
Lookback Cycles: Users define the exact number of preceding historical cycles the current structure must be compared against (e.g., comparing against the last 9 cycles), allowing for customization of structural depth.
4.3 Professional Drawing & Chart Management
Visual Collision Detection: The script uses Coordinate Tracking to store the start and end points of every rendered divergence. If a lower timeframe cycle attempts to draw over an existing higher-priority structure, the logic compares their coordinates and suppresses the lower-priority signal to prevent visual clutter.
Data Integrity: The script automatically validates cycle duration to ensure signals do not span across abnormal time gaps or missing data.
Memory Optimization: The script actively manages internal memory to prevent execution limits, allowing for deep backtesting history even on lower timeframes.
4.4 Structural Parameters
Furthest / Nearest Mode: Determines which specific pivot to target when multiple candidates exist within the same search window.
Furthest: Targets the extreme point furthest back in time within the cycle range (captures the widest possible structure).
Nearest: Targets the most recent valid pivot (captures the tightest, most immediate structure).
Anchor Mode: Controls exactly where the divergence line connects:
Structural: Always connects to the Main Chart's pivot High/Low.
Snap to Aggressor: The precision method. The line "snaps" to the exact candle where the structure was broken first, whether on the Main Chart or the Comparison Symbol.
Cycle Boundary Overlap: Controls how the transition candle is handled between time cycles (Overlap On vs. Clean Start).
4.5 Full Customization
Adaptive & Custom Coloring: Labels automatically adjust to background brightness for optimal readability. Includes a manual override for user-defined color preferences.
Visual Control: Fully customizable line styles, widths, and colors for every individual cycle.
5. How To Use This Tool
Configuration: Set your Timezone and Session Start/End times in the settings. This ensures "Time Cycles" align with your specific market.
Select Symbols: Input your comparison symbols (e.g., ES, YM, or inversely DXY). Crucial: Ensure the "Inverse" toggle is checked for negatively correlated assets.
Cycle Selection: Enable the specific cycles relevant to your strategy (e.g., Daily + 90-minutes).
Render History: Scroll the chart back to the beginning of your available price history after loading the indicator or changing timeframes to process maximum historical data.
Interpretation:
Bearish SMT: Price makes a Higher High, but the correlated asset makes a Lower High. This divergence could indicate a potential shift in structural momentum and a weakening of the prevailing uptrend.
Bullish SMT: Price makes a Lower Low, but the correlated asset makes a Higher Low. This divergence could indicate a potential shift in structural momentum and a weakening of the prevailing downtrend.
Disclaimer
This indicator is designed for educational purposes only. It does not constitute financial advice or a recommendation to trade. Trading involves risk, and past performance does not guarantee future results.
BVWY Stamp WatermarkOverview
This script creates a clean, compact watermark “stamp” for your charts — combining a custom title/subtitle with symbol info (ticker, timeframe, date) in one neat block. It’s designed for traders and educators who want their charts branded and professional without clutter.
Features
• 🖋️ Customizable title and subtitle (default: RICH BVYWY)
• 📊 Symbol info line with independent toggles for ticker, timeframe, and date
• 🎨 Full control over colors, sizes, alignment, and background opacity
• 📍 Position anywhere on the chart (top/middle/bottom, left/center/right)
• 🪶 Lightweight and efficient — no redundant tables or clearing logic
Use Cases
• Branding your shared charts with a signature watermark
• Teaching and documentation — stamp your visuals with context and identity
• Clean overlays for presentations, reports, or social media posts
Notes
This script is built with Pine Script v5 and follows TradingView’s style guide for clarity and efficiency. It’s streamlined to overwrite cells each bar, ensuring smooth performance without flicker or lag
Reaction CandlesThis is a very simple but effective indicator, turn it on and see for yourself.
Can be used on any timeframe, but tested on the 5 and 30 mins.
Developed for use on Gold and Indexes, but works well on any stock. Easy to visually back test.
Smart match finder🔍 Pattern Match Finder
What It Does:
This indicator finds historical price patterns that look similar to your current price action and projects what might happen next based on what happened after those past patterns.
How It Works:
📊 Captures Current Pattern - Takes the last 30 bars (configurable) of price movement as your "current pattern"
🔎 Searches History - Scans up to 2,500 bars back looking for price patterns that moved similarly
📈 Matches by Trend - When "Same Condition" is ON, it only finds patterns that moved in the same direction (bullish matches bullish, bearish matches bearish)
🎯 Quality Filter - Uses correlation (75%+ by default) to ensure matches are high quality, not random
🔮 Projects Future - Takes what happened AFTER those historical matches and draws a prediction (yellow dashed line) showing where price might go next
📊 Shows Best Match - Highlights the best matching pattern with cyan vertical lines and overlays it on your current chart
Key Features:
✅ Trend-aware matching - Finds patterns with same market direction
✅ Quality scoring - Shows correlation % and match quality (Excellent/Good/Fair)
✅ Visual projection - Yellow prediction line showing expected price movement
✅ Smart filtering - Adjustable correlation and distance thresholds
✅ No match alerts - Warns you when no similar patterns exist
Technical Strength:
This indicator employs advanced statistical correlation analysis combined with normalized pattern recognition algorithms, making it highly effective for identifying statistically significant price pattern repetitions with quantifiable confidence metrics.
⚠️ Important Disclaimer:
This tool is for educational and analytical purposes only. Pattern projections are based on historical data and should NOT be used as the sole basis for buy/sell decisions. Always combine with proper risk management, fundamental analysis, and other technical tools before making any trading decisions.






















