ahmdeew- gold scalpingbuy-sell golg scalping with take profit 1 and take profit 2 and take profit and stop loss
Candlestick analysis
Market Structure: The Money Leg Pattern - open sourceBased on this stragegy by Aaron
www.youtube.com
Open sourced it.
The AlchemistThe Alchemist — Gold (AURUM-5)
What it is:
A 5-minute, session-aware gold strategy that blends three complementary “engines” to catch the best intraday rotations on XAUUSD/GC:
Trend Pullback — trades with the prevailing move after shallow pullbacks.
VWAP Mean-Reversion — fades stretched moves back toward value when trend pressure is light.
EBP Sweep — a simple, fast “liquidity sweep & reclaim/reject” candle read that flips early inflection points.
It’s built for clean execution and risk discipline: dollar-based sizing, ATR-anchored stops, $2.5 grid rounding, session caps, and cooldowns to prevent over-trading.
HL ±Pips Zone## **Overview**
This indicator highlights the most critical danger zones for scalpers:
the **±2 pips area around the most recent High and Low**.
These zones often attract liquidity, cause fake breakouts, and lead to stop hunts—especially in USDJPY scalping.
Use this tool as a **dynamic “no-entry buffer”** to avoid low-probability trades.
---
## **Purpose**
* Prevent entries near recent highs/lows where reversals are common
* Filter out low-quality signals from your existing strategy
* Reduce consecutive losses during range conditions
* Improve win-rate by avoiding fake breakouts and wick-based stop-outs
---
## **How It Works**
* The indicator identifies the **recent highest high** and **recent lowest low** within a user-defined lookback period.
* It then draws:
* **Red Zone:** ±pips around the recent high
* **Blue Zone:** ±pips around the recent low
* These zones represent areas where liquidity traps and false breakouts frequently occur.
---
## **How to Use**
### **1. Avoid entering positions inside the colored zones**
Even if your strategy generates a signal, skip the trade when price is inside the ±pips buffer.
### **2. Enter only after a clean breakout**
Look for:
* A candle **body** closing outside the zone
* A small pullback
* Confluence with your existing entry criteria
### **3. Identify trend vs. range easily**
* Price sticking inside the zones → **range**
* Price staying outside → **trend**
### **4. Better stop-loss handling**
Using the **candle close** beyond the zone for stop-loss improves trade stability and prevents noise-based stop-outs.
---
## **Best For**
* USDJPY scalping (1m / 30s)
* Breakout & momentum strategies
* The H Alert–based setups
* Traders avoiding liquidity traps
---
## **Inputs**
* **Lookback Period:** Number of bars to define recent high/low
* **Pips Offset:** Distance above/below recent high/low
* **Pip Size:** Automatically calculated for FX pairs
---
## **Benefits**
* Avoids entries at the top/bottom of ranges
* Prevents fake breakout losses
* Provides clear visual “danger zones”
* Works perfectly as a filter for any entry strategy
---
## **Summary**
**Trade outside the colored zones.
Avoid entries inside them.**
This simple rule can dramatically improve consistency and reduce unnecessary losses—especially in fast scalping environments.
---
## **Notes**
* Optimized for USDJPY 1m/30s
* Works across all FX pairs with correct pip settings
* No repainting
---
Crypto Mobi FVG (Free)⭐ Crypto Mobi FVG Indicator (Free for Community)
This is a simple, clean and powerful Fair Value Gap (FVG) indicator created for traders who follow Smart Money Concepts (SMC). It automatically detects Bullish & Bearish FVGs, draws them on your chart, and extends them into the future so you can easily identify potential imbalance zones, liquidity grabs and high-probability entries.
This indicator is designed to be lightweight, fast and beginner-friendly. Whether you are trading Bitcoin, altcoins, forex, gold or indices, it helps you clearly visualize imbalance zones without needing any premium tools.
📌 Features
🔹 Automatic detection of Bullish FVGs
🔹 Automatic detection of Bearish FVGs
🔹 Smart extension of all gaps to the right
🔹 Clean visual zones with color-coded fills
🔹 Minimal lag and optimized performance
🔹 Works on all timeframes (1m to 1W)
🔹 Perfect for SMC / ICT-style trading
Smart Margin Zone
SMART MARGIN ZONE - CME-BASED SUPPORT & RESISTANCE INDICATOR
TITLE FOR PUBLICATION:
Smart Margin Zone - CME Margin-Based Support and Resistance
CATEGORY:
Support and Resistance
SHORT DESCRIPTION (for preview):
Automatically plots margin zones based on CME Group requirements. These zones represent critical price levels where leveraged traders face margin calls, creating natural support and resistance through forced liquidations.
═══════════════════════════════════════════════════════════════
FULL DESCRIPTION FOR TRADINGVIEW:
═══════════════════════════════════════════════════════════════
📊 Smart Margin Zone - Professional Trading Zones Based on CME Data
This indicator automatically calculates and displays margin zones derived from official CME Group margin requirements. These zones represent critical price levels where traders using leverage receive margin calls, triggering forced position closures that create natural support and resistance levels.
═══════════════════════════════════════════════════════════════
🎯 CORE CONCEPT
═══════════════════════════════════════════════════════════════
When price reaches calculated margin zones, traders using 2:1 or 4:1 leverage on CME futures receive margin calls. Brokers automatically liquidate these positions, creating waves of buying or selling pressure that form strong support and resistance levels.
This is not theoretical - it's based on actual margin requirements from CME Group, the world's largest derivatives marketplace.
═══════════════════════════════════════════════════════════════
📐 CALCULATION METHODOLOGY
═══════════════════════════════════════════════════════════════
The indicator uses the following formula to calculate zone sizes:
Zone Size = (Margin Requirement / Tick Value) × Tick Size × 1.10
Where:
• Margin Requirement = Official CME initial margin (updated November 2024)
• Tick Value = Dollar value of minimum price movement
• Tick Size = Minimum price increment
• 1.10 = 10% buffer for realistic zone width
SUPPORTED INSTRUMENTS WITH CME DATA:
Currency Pairs:
• EURUSD: $2,100 margin → 0.0168 zone size
• GBPUSD: $1,800 margin → 0.0144 zone size
• AUDUSD: $1,300 margin → 0.0065 zone size
• NZDUSD: $1,100 margin → 0.0055 zone size
• USDJPY: $3,200 margin → custom calculation
• USDCAD: $950 margin → calculated
• USDCHF: $1,650 margin → calculated
Commodities:
• Gold (XAUUSD): $8,000 margin → 80 points zone size
• Silver (XAGUSD): $6,500 margin → calculated
• WTI Crude Oil: $4,500 margin → calculated
═══════════════════════════════════════════════════════════════
🔍 HOW IT WORKS
═══════════════════════════════════════════════════════════════
1. SWING POINT DETECTION
The indicator automatically identifies swing highs and swing lows using a configurable lookback period (default 10 bars). These become anchor points for zone calculations.
2. FIVE ZONE LEVELS
From each swing point, five zone levels are calculated:
• Zone 1/4 (25%) - First correction level
• Zone 1/2 (50%) - KEY ZONE for trend determination
• Zone 3/4 (75%) - Intermediate level
• Zone 1/1 (100%) - Full margin zone (strongest level)
• Zone 5/4 (125%) - Extended zone
3. TREND IDENTIFICATION
• Close above Zone 1/2 resistance = Bullish trend
• Close below Zone 1/2 support = Bearish trend
• Between zones = Range/consolidation
4. HISTORICAL CONTEXT
Current zones are displayed prominently with fills and labels. Historical zones appear as thin, semi-transparent lines for context without cluttering the chart.
═══════════════════════════════════════════════════════════════
⚙️ FEATURES
═══════════════════════════════════════════════════════════════
AUTOMATED CALCULATION:
✅ Auto-detection of swing highs and lows
✅ Real-time zone updates as new swings form
✅ CME margin data built-in for major instruments
✅ Manual override option for custom calculations
VISUAL CLARITY:
✅ Color-coded zones (red=resistance, green=support)
✅ Adjustable transparency for fills and lines
✅ Current zones bold with fills and price labels
✅ Historical zones thin and transparent
✅ Swing point markers show calculation origins
CUSTOMIZATION:
✅ Show/hide individual zone levels (1/4, 1/2, 3/4, 1/1, 5/4)
✅ Toggle historical zones on/off
✅ Adjustable lookback period (5-50 bars)
✅ Customizable colors for all elements
✅ Line width and transparency controls
✅ Zone extension options (none/right/both)
TREND ANALYSIS:
✅ Optional trend background coloring
✅ Customizable trend colors and transparency
✅ Real-time trend identification display
STATISTICS:
✅ Live statistics table showing:
- Current instrument
- Active zone size
- Calculation mode
- Current trend direction
- Number of zones displayed
ALERTS:
✅ Zone 1/2 breakout (up/down)
✅ Full margin zone 1/1 reached
✅ Customizable alert messages
═══════════════════════════════════════════════════════════════
📈 TRADING APPLICATIONS
═══════════════════════════════════════════════════════════════
ENTRY SIGNALS:
• Bounces from zone levels = potential entry points
• Zone 1/2 breakouts = trend continuation entries
• Zone rejections = reversal opportunities
RISK MANAGEMENT:
• Zone levels = logical stop-loss placement
• Zone 1/1 = maximum risk level
• Zone spacing = position sizing guide
PROFIT TARGETS:
• Next zone level = first target
• Zone 1/1 = full profit target
• Zone breakouts = extended targets
TREND CONFIRMATION:
• Price above Zone 1/2 resistance = confirmed uptrend
• Price below Zone 1/2 support = confirmed downtrend
• Consolidation between zones = wait for breakout
═══════════════════════════════════════════════════════════════
📚 USAGE INSTRUCTIONS
═══════════════════════════════════════════════════════════════
GETTING STARTED:
1. Add indicator to chart of any supported instrument
2. Zones automatically calculate and display
3. Adjust swing detection period if needed (default 10 works well)
4. Customize colors and visibility to your preference
OPTIMAL SETTINGS:
• Best timeframes: H1, H4, Daily, Weekly
• Default swing length (10) suitable for most markets
• Show 2-3 historical zones for context
• Enable swing point markers to see calculation origins
INTERPRETATION:
• Watch for price reactions at zone boundaries
• Strong bounces = respect for margin level
• Clean breaks = momentum continuation
• Multiple touches = zone strength confirmation
SET ALERTS:
• Zone 1/2 breakouts for trend entries
• Zone 1/1 reaches for profit-taking
• Custom alerts for your specific strategy
═══════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
═══════════════════════════════════════════════════════════════
DATA ACCURACY:
• CME margin requirements updated November 2024
• Margins change periodically - check CME Group website
• Manual mode available for latest margin data
• Indicator provides analysis tool, not financial advice
STATISTICAL PERFORMANCE:
• Historical data shows >60% probability of continued movement after Zone 1/2 breakout
• Zone effectiveness varies by market conditions
• Best results in trending markets with clear swings
LIMITATIONS:
• Margin requirements change - monitor CME updates
• Works best on liquid instruments with clear swings
• Not a standalone trading system
• Should be combined with additional analysis
═══════════════════════════════════════════════════════════════
🔧 METHODOLOGY CREDIT
═══════════════════════════════════════════════════════════════
This indicator is based on the margin zones concept developed by Alexander Bazylev (BTrade indicator for MetaTrader platforms).
The TradingView implementation has been completely rewritten with original enhancements:
• Multiple zone levels instead of single level
• Automatic swing point detection algorithm
• Direct CME data integration
• Historical zone visualization
• Advanced customization options
• Comprehensive statistics and alerts
All code is original and specifically designed for TradingView's Pine Script v5 environment.
═══════════════════════════════════════════════════════════════
💡 BEST PRACTICES
═══════════════════════════════════════════════════════════════
COMBINE WITH:
• Volume analysis for confirmation
• Trend indicators for direction bias
• Price action patterns at zones
• Higher timeframe analysis
AVOID:
• Trading against strong trends at minor zones
• Over-leveraging based solely on zone placement
• Ignoring broader market context
• Expecting perfect bounces every time
OPTIMIZE:
• Adjust swing length for different timeframes
• Shorter period (5-7) for intraday trading
• Longer period (15-20) for swing trading
• Test historical effectiveness on your instruments
═══════════════════════════════════════════════════════════════
📖 EDUCATIONAL VALUE
═══════════════════════════════════════════════════════════════
This indicator helps traders understand:
• How institutional margin requirements affect price
• Where forced liquidations create pressure
• Natural support and resistance formation
• Relationship between leverage and price levels
• Market structure and key technical levels
═══════════════════════════════════════════════════════════════
🔄 VERSION HISTORY
═══════════════════════════════════════════════════════════════
Version 1.0 (Initial Release):
• CME-based zone calculation for 10 instruments
• Automatic swing high/low detection
• 5 zone levels with customizable display
• Historical zones with transparency control
• Swing point markers
• Trend background indicator
• Live statistics table
• Multiple alert conditions
• Fully customizable colors and styles
• English language interface
═══════════════════════════════════════════════════════════════
📞 SUPPORT & FEEDBACK
═══════════════════════════════════════════════════════════════
Questions or suggestions? Leave a comment below!
If you find this indicator useful:
⭐ Please leave a like
💬 Share your experience in comments
🔔 Follow for updates and new indicators
═══════════════════════════════════════════════════════════════
⚖️ DISCLAIMER
═══════════════════════════════════════════════════════════════
This indicator is provided for educational and analytical purposes only. It is not financial advice and should not be the sole basis for trading decisions.
• Past performance does not guarantee future results
• Trading involves substantial risk of loss
• CME margin requirements subject to change
• Always do your own research and risk management
• Consult a financial advisor for investment advice
The creator is not responsible for any trading losses incurred through use of this indicator.
EMA 21 & EMA 36 with Signals-RamanaReddyEMA 21 & EMA 36 with Signals avg
EMA crossover signals
Alerts on crossovers
Strategy backtest version
CRT / ORB Signals [Yosiet]What is the CRT Pattern?
The Counter-Retracement Pattern is a classic three-candle setup that reveals moments of market structure weakness and potential reversal. It occurs when a strong move is temporarily rejected, signaling a possible continuation.
Several names for the same candlestick pattern: CRT, ORB, Morning Star, Evening Star, and others, but I'm not going to talk about it.
Here’s the anatomy of a Bullish CRT:
Candle 1 (C1: The Signal Candle): A significant momentum candle in a downtrend.
Candle 2 (C2: The Retracement/Sweep Candle): This is the critical candle. It must sweep the low of C1 (liquidity grab / sweep) but then close with its body inside the range of C1 .
Candle 3 (C3: The Confirmation/Entry Candle): A bullish candle that closes above C2's close, confirming the pattern.
Here’s the anatomy of a Bearish CRT:
The bearish pattern is the exact inverse, sweeping the high of Candle 1.
Why This Indicator?
Clarity and Precision. This script is built for accuracy and minimalism.
No Repainting: The logic is calculated on the closed historical bars. The signal is only plotted on the entry candle (Candle 3) after it has closed.
Clean Visuals: Instead of cluttering every candle, it shows you only what you need:
Green Up Arrow: Signals a confirmed Bullish CRT, suggesting a Long entry.
Red Down Arrow: Signals a confirmed Bearish CRT, suggesting a Short entry.
Faint Circles: Subtle white circles mark the high/low of Candle 1 and Candle 2, helping you visually trace the pattern structure without obstruction.
AURUM-5 Gold Engine (Trend+VWAP MR+EBP, 5m)The Alchemist — Gold (AURUM-5)
What it is:
A 5-minute, session-aware gold strategy that blends three complementary “engines” to catch the best intraday rotations on XAUUSD/GC:
Trend Pullback — trades with the prevailing move after shallow pullbacks.
VWAP Mean-Reversion — fades stretched moves back toward value when trend pressure is light.
EBP Sweep — a simple, fast “liquidity sweep & reclaim/reject” candle read that flips early inflection points.
It’s built for clean execution and risk discipline: dollar-based sizing, ATR-anchored stops, $2.5 grid rounding, session caps, and cooldowns to prevent over-trading.
LIQUIDITY (TURNOVER)should calculate the price and volume = turnover in crores and place it on top of the daily candle
Let me know your thoughts
ITM EMA Scalper (9/15) + Dual Index ConfirmationITM EMA Scalper (9/15) + Dual Index Confirmation is a precision scalping tool designed for traders who want high-probability entries, tight risk, and clean momentum trades using ITM options on NIFTY & BANKNIFTY.
This indicator combines price action, EMA trend filters, momentum candle logic, and a dual-index confirmation system to eliminate fake signals and catch only high-quality moves.
🔥 Core Logic
This indicator uses:
9 EMA & 15 EMA for trend direction
EMA angle filter (≥30°) to ensure strong directional momentum
Momentum candle detection (Pin Bar, Big Body, Rejection Candle)
EMA touch/rejection logic for precision entries
Dual index alignment (NIFTY + BANKNIFTY) for institutional-level confirmation
Trades occur only when both indices agree, dramatically reducing false setups.
🎯 Entry Conditions
A BUY signal appears when:
9 EMA > 15 EMA
Both EMAs have strong upward slope
Momentum candle forms while touching/near EMAs
Candle closes bullish
Confirmation index (e.g., BankNifty) also bullish
A SELL signal is the exact opposite.
🛡 Risk Management Built-In
For every valid setup, the indicator automatically plots:
Entry level (break of candle high/low)
Stop-loss level (low/high of signal candle)
1:2 Risk–Reward Target
These lines extend until target or SL is hit (or are cleared automatically after N bars).
🧠 Why ITM Options?
Using ITM options gives:
Higher delta
Faster momentum capture
Lower time decay impact
Cleaner correlation with spot movement
Perfect for scalping.
📈 Ideal Timeframe
Designed for 5-minute charts
Works for both NIFTY and BANKNIFTY
⚡ Alerts Included
BUY Alert
SELL Alert
These alerts trigger exactly when the strategy identifies a high-probability setup.
🚫 Avoid False Signals
This indicator prevents trades if:
Trend is flat
EMAs lose angle
Opposite index contradicts the setup
Candle lacks momentum
Market is choppy or sideways
💡 Perfect For
Scalpers
Index option traders
ITM directional traders
Algo traders needing clean signal logic
Momentum strategy users
Multitime ATR (5m/15m/30m)Special thanks to Ogura
“This indicator displays ATR values for timeframes shorter than 30 minutes.”
“An ATR indicator designed to visualize volatility across 5-minute, 15-minute, and 30-minute timeframes.”
30分未満のATRを表示するインジケーターです。おぐさんありがとう。
MAGS ETF – Daily Chart Breakdown & Price Forecast📈 MAGS ETF – Daily Chart Breakdown & Price Forecast
Timeframe: 1D
MAGS is currently trading at $63.54, down -1.87% on the day. The chart shows a potential distribution structure forming after a strong prior uptrend.
🔍 Technical Highlights:
RSI Divergence (14 Close):
The RSI is at 40.14, trending lower after multiple bearish divergences. These signals typically warn of a momentum breakdown after an extended uptrend.
Structure Overview:
After a sharp move up, price action entered a ranging zone, marked by multiple lower highs and support retests. The current projection shows a possible head and shoulders or complex corrective structure forming.
Support Zone:
Critical support rests around $60.00–$61.00, marked by horizontal and dynamic levels. A breakdown from here could send prices lower toward the mid-$50s.
Bullish Reversal Zone:
If support holds, the projected wave count shows a potential rebound leg that may revisit previous resistance levels in the $68–$70 range.
🧠 Market Interpretation:
This chart suggests MAGS may be transitioning from an impulsive bullish phase to a corrective consolidation. While short-term bearish pressure is visible, a confirmed bounce from support could spark a recovery rally. Keep an eye on RSI behavior near the 40 level a sharp bullish divergence could flip the short-term outlook.
📉 Current bias: Neutral to Bearish (watch support)
📈 Upside target on reversal: $68–$70
⚠️ Breakdown trigger: Below $60 support zone
⚠️ Disclaimer: This is general information only and not financial advice. Always do your own research or consult a licensed professional before making any trading decisions.
XAUUSD Sniper Setup (Pre-Arrows + SL/TP)//@version=5
indicator("XAUUSD Sniper Setup (Pre-Arrows + SL/TP)", overlay=true)
// === Inputs ===
rangePeriod = input.int(20, "Lookback Bars for Zone", minval=5)
maxRangePercent = input.float(0.08, "Max Range % for Consolidation", step=0.01)
tpMultiplier = input.float(1.5, "TP Multiplier")
slMultiplier = input.float(1.0, "SL Multiplier")
// === Consolidation Detection ===
highestPrice = ta.highest(high, rangePeriod)
lowestPrice = ta.lowest(low, rangePeriod)
priceRange = highestPrice - lowestPrice
percentRange = (priceRange / close) * 100
isConsolidation = percentRange < maxRangePercent
// === Zones ===
demandZone = lowestPrice
supplyZone = highestPrice
// === Plot Consolidation Zone Background ===
bgcolor(isConsolidation ? color.new(color.gray, 85) : na)
// === Plot Potential Buy/Sell Levels ===
plot(isConsolidation ? demandZone : na, color=color.green, title="Potential Buy Level", linewidth=2)
plot(isConsolidation ? supplyZone : na, color=color.red, title="Potential Sell Level", linewidth=2)
// === Liquidity Sweep ===
liquidityTakenBelow = low < demandZone
liquidityTakenAbove = high > supplyZone
// === Engulfing Candles ===
bullishEngulfing = close > open and close < open and close > open
bearishEngulfing = close < open and close > open and close < open
// === Break of Structure ===
bosUp = high > ta.highest(high , 5)
bosDown = low < ta.lowest(low , 5)
// === Sniper Entry Conditions ===
buySignal = isConsolidation and liquidityTakenBelow and bullishEngulfing and bosUp
sellSignal = isConsolidation and liquidityTakenAbove and bearishEngulfing and bosDown
// === SL & TP Levels ===
slBuy = demandZone - (priceRange * slMultiplier)
tpBuy = close + (priceRange * tpMultiplier)
slSell = supplyZone + (priceRange * slMultiplier)
tpSell = close - (priceRange * tpMultiplier)
// === PRE-ARROWS (Show Before Breakout) ===
preBuyArrow = isConsolidation ? 1 : na
preSellArrow = isConsolidation ? -1 : na
plotarrow(preBuyArrow, colorup=color.new(color.green, 50), maxheight=20, minheight=20, title="Pre-Buy Arrow")
plotarrow(preSellArrow, colordown=color.new(color.red, 50), maxheight=20, minheight=20, title="Pre-Sell Arrow")
// === SNIPER CONFIRMATION ARROWS ===
buyArrow = buySignal ? 1 : na
sellArrow = sellSignal ? -1 : na
plotarrow(buyArrow, colorup=color.green, maxheight=60, minheight=60, title="Sniper BUY Arrow")
plotarrow(sellArrow, colordown=color.red, maxheight=60, minheight=60, title="Sniper SELL Arrow")
// === BUY SIGNAL ===
if buySignal
label.new(bar_index, low, "BUY SL/TP Added", style=label.style_label_up, color=color.green, textcolor=color.white)
line.new(bar_index, slBuy, bar_index + 5, slBuy, color=color.red, style=line.style_dotted)
line.new(bar_index, tpBuy, bar_index + 5, tpBuy, color=color.green, style=line.style_dotted)
label.new(bar_index, slBuy, "SL", color=color.red, style=label.style_label_down)
label.new(bar_index, tpBuy, "TP", color=color.green, style=label.style_label_up)
// === SELL SIGNAL ===
if sellSignal
label.new(bar_index, high, "SELL SL/TP Added", style=label.style_label_down, color=color.red, textcolor=color.white)
line.new(bar_index, slSell, bar_index + 5, slSell, color=color.red, style=line.style_dotted)
line.new(bar_index, tpSell, bar_index + 5, tpSell, color=color.green, style=line.style_dotted)
label.new(bar_index, slSell, "SL", color=color.red, style=label.style_label_up)
label.new(bar_index, tpSell, "TP", color=color.green, style=label.style_label_down)
// === Alerts ===
alertcondition(buySignal, title="Sniper BUY", message="Sniper BUY setup on XAUUSD")
alertcondition(sellSignal, title="Sniper SELL", message="Sniper SELL setup on XAUUSD")
OANDA:XAUUSD
High Volume Bars (Advanced)High Volume Bars (Advanced)
High Volume Bars (Advanced) is a Pine Script v6 indicator for TradingView that highlights bars with unusually high volume, with several ways to define “unusual”:
Classic: volume > moving average + N × standard deviation
Change-based: large change in volume vs previous bar
Z-score: statistically extreme volume values
Robust mode (optional): median + MAD, less sensitive to outliers
It can:
Recolor candles when volume is high
Optionally highlight the background
Optionally plot volume bands (center ± spread × multiplier)
⸻
1. How it works
At each bar the script:
Picks the volume source:
If Use Volume Change vs Previous Bar? is off → uses raw volume
If on → uses abs(volume - volume )
Computes baseline statistics over the chosen source:
Lookback bars
Moving average (SMA or EMA)
Standard deviation
Optionally replaces mean/std with robust stats:
Center = median (50th percentile)
Spread = MAD (median absolute deviation, scaled to approx σ)
Builds bands:
upper = center + spread * multiplier
lower = max(center - spread * multiplier, 0)
Flags a bar as “high volume” if:
It passes the mode logic:
Classic abs: volume > upper
Change mode: abs(volume - volume ) > upper
Z-score mode: z-score ≥ multiplier
AND the relative filter (optional): volume > average_volume * Min Volume vs Avg
AND it is past the first Skip First N Bars from the start of the chart
Colors the bar and (optionally) the background accordingly.
⸻
2. Inputs
2.1. Statistics
Lookback (len)
Number of bars used to compute the baseline stats (mean / median, std / MAD).
Typical values: 50–200.
StdDev / Z-Score Multiplier (mult)
How far from the baseline a bar must be to count as “high volume”.
In classic mode: volume > mean + mult × std
In z-score mode: z ≥ mult
Typical values: 1.0–2.5.
Use EMA Instead of SMA? (smooth_with_ema)
Off → uses SMA (slower but smoother).
On → uses EMA (reacts faster to recent changes).
Use Robust Stats (Median & MAD)? (use_robust)
Off → mean + standard deviation
On → median + MAD (less sensitive to a few insane spikes)
Useful for assets with occasional volume blow-ups.
⸻
2.2. Detection Mode
These inputs control how “unusual” is defined.
• Use Volume Change vs Previous Bar? (mode_change)
• Off (default) → uses absolute volume.
• On → uses abs(volume - volume ).
You then detect jumps in volume rather than absolute size.
Note: This is ignored if Z-Score mode is switched on (see below).
• Use Z-Score on Volume? (Overrides change) (mode_zscore)
• Off → high volume when raw value exceeds the upper band.
• On → computes z-score = (value − center) / spread and flags a bar as high when z ≥ multiplier.
Z-score mode can be combined with robust stats for more stable thresholds.
• Min Volume vs Avg (Filter) (min_rel_mult)
An extra filter to ignore tiny-volume bars that are statistically “weird” but not meaningful.
• 0.0 → no filter (all stats-based candidates allowed).
• 1.0 → high-volume bar must also be at least equal to average volume.
• 1.5 → bar must be ≥ 1.5 × average volume.
• Skip First N Bars (from start of chart) (skip_open_bars)
Skips the first N bars of the chart when evaluating high-volume conditions.
This is mostly a safety / cosmetic option to avoid weird behavior on very early bars or backfill.
⸻
2.3. Visuals
• Show Volume Bands? (show_bands)
• If on, plots:
• Upper band (upper)
• Lower band (lower)
• Center line (vol_center)
These are plotted on the same pane as the script (usually the price chart).
• Also Highlight Background? (use_bg)
• If on, fills the background on high-volume bars with High-Vol Background.
• High-Vol Bar Transparency (0–100) (bar_transp)
Controls the opacity of the high-volume bar colors (up / down).
• 0 → fully opaque
• 100 → fully transparent (no visible effect)
• Up Color (upColor) / Down Color (dnColor)
• Regular bar colors (non high-volume) for up and down bars.
• Up High-Vol Base Color (upHighVolBase) / Down High-Vol Base Color (dnHighVolBase)
Base colors used for high-volume up/down bars. Transparency is applied on top of these via bar_transp.
• High-Vol Background (bgHighVolColor)
Background color used when Also Highlight Background? is enabled.
⸻
3. What gets colored and how
• Bar color (barcolor)
• Up bar:
• High volume → Up High-Vol Color
• Normal volume → Up Color
• Down bar:
• High volume → Down High-Vol Color
• Normal volume → Down Color
• Flat bar → neutral gray
• Background color (bgcolor)
• If Also Highlight Background? is on, high-volume bars get High-Vol Background.
• Otherwise, background is unchanged.
⸻
4. Alerts
The indicator exposes three alert conditions:
• High Volume Bar
Triggers whenever is_high is true (up or down).
• High Volume Up Bar
Triggers only when is_high is true and the bar closed up (close > open).
• High Volume Down Bar
Triggers only when is_high is true and the bar closed down (close < open).
You can use these in TradingView’s “Create Alert” dialog to:
• Get notified of potential breakout / exhaustion bars.
• Trigger webhook events for bots / custom infra.
⸻
5. Recommended presets
5.1. “Classic” high-volume detector (closest to original)
• Lookback: 150–200
• StdDev / Z-Score Multiplier: 1.0–1.5
• Use EMA Instead of SMA?: off
• Use Robust Stats?: off
• Use Volume Change vs Previous Bar?: off
• Use Z-Score on Volume?: off
• Min Volume vs Avg (Filter): 0.0–1.0
Behavior: Flags bars whose volume is notably above the recent average (plus a bit of noise filtering), same spirit as your initial implementation.
⸻
5.2. Volatility-aware (Z-score) mode
• Lookback: 100–200
• StdDev / Z-Score Multiplier: 1.5–2.0
• Use EMA Instead of SMA?: on
• Use Robust Stats?: on (if asset has huge spikes)
• Use Volume Change vs Previous Bar?: off (ignored anyway in z-score mode)
• Use Z-Score on Volume?: on
• Min Volume vs Avg (Filter): 0.5–1.0
Behavior: Flags bars that are “statistically extreme” relative to recent volume behavior, not just absolutely large. Good for assets where baseline volume drifts over time.
⸻
5.3. “Wake-up bar” (volume acceleration)
• Lookback: 50–100
• StdDev / Z-Score Multiplier: 1.0–1.5
• Use EMA Instead of SMA?: on
• Use Robust Stats?: optional
• Use Volume Change vs Previous Bar?: on
• Use Z-Score on Volume?: off
• Min Volume vs Avg (Filter): 0.5–1.0
Behavior: Emphasis on sudden increases in volume rather than absolute size – useful to catch “first active bar” after a quiet period.
⸻
6. Limitations / notes
• Time-of-day effects
The script currently treats the entire chart as one continuous “session”. On 24/7 markets (crypto) this is fine. For regular-session assets (equities, futures), volume naturally spikes at open/close; you may want to:
• Use a shorter Lookback, or
• Add a session-aware filter in a future iteration.
• Illiquid symbols
On very low-liquidity symbols, robust stats (Use Robust Stats) and a non-zero Min Volume vs Avg can help avoid “everything looks extreme” problems.
• Overlay behavior
overlay = true means:
• Bars are recolored on the price pane.
• Volume bands are also drawn on the price pane if enabled.
If you want a dedicated panel for the bands, duplicate the logic in a separate script with overlay = false.
Simple VP Shape DetectorSimple VP Shape Detector is a lightweight Pine Script tool designed to help traders quickly identify the four major Volume Profile shapes commonly used in orderflow and auction-market theory:
D-Shape (Balanced Profile)
P-Shape (Short-Covering / Buyer-Dominant)
B-Shape (Long-Liquidation / Seller-Dominant)
Thin Profile (Trend Profile)
This indicator uses candle statistics (range, body size, volume distribution approximation, and directional movement) to estimate the underlying shape of the volume profile when the full Volume Profile tool is not available.
✔️ What this indicator does
Analyzes recent bars to estimate volume concentration vs. price movement
Flags possible VP shapes using simple logic
Displays labels above/below candles showing:
“D” → Balanced
“P” → Buyer-heavy
“B” → Seller-heavy
“T” → Trending / Thin profile
Helps traders quickly identify auction conditions
✔️ Why this is useful
Volume Profile tools require premium data or heavy visual processing.
This script provides a simple, fast, CPU-light alternative that still captures the essential behavior of profile shapes.
✔️ How shapes are detected
D-Shape: small directional movement + larger body clustering
P-Shape: strong upward move + volume weighted to upper half
B-Shape: strong downward move + volume weighted to lower half
Thin: long range candles with little internal consolidation
⚠️ Disclaimer
This script is an approximation. It does NOT replace full Volume Profile tools.
It is designed as an educational / supplemental tool for market structure analysis.
ATR STRUCTURE
So I can produce this
🟡 START = 662.63 ✳️ ATR ≈ 8.30 pts (0.5 ATR ≈ 4.15 • 1 ATR ≈ 8.30) 🙂📏
ATR bands (numeric)
🔼 START + 0.5 ATR = 662.63 + 4.15 = 666.78 (upper buffer / shelf)
🔼 START + 1 ATR = 662.63 + 8.30 = 670.93 (breakout band)
🔽 START − 0.5 ATR = 662.63 − 4.15 = 658.48 (near support)
🔽 START − 1 ATR = 662.63 − 8.30 = 654.33 (deeper stop zone)
— Priority level ladder (footprint‑first & ATR alignment) — (emoji = confidence • 🔥 = high • ✅ = footprint confirmed • 🟡 = medium)
🔥🟢 PM_LOW / D1 — ~659.95 → 660.50 ✅ (FOOTPRINT CONFIRMED)
Why: repeated 30m+1h absorption (sold‑into then bought up). DEEP confidence. 🧯🔁
🔥🔴 ORBH / U2 cluster — ~663.98 → 665.87 ✅ (FOOTPRINT SUPPLY)
Why: repeated rejections / sell MaxDelta rows on 30m & 1h. Treat as overhead supply / shelf. 🪓📉
🔥🟦 D3 / ORBL corridor — ~658.64 ✅ (TF confluence: 1h+4h MaxDelta)
Why: single‑row institutional sells map here; structural LVN / open‑range low. 🛡️📌
🟡⭐ START / U1 pivot zone — ~662.63 – 662.70 ✅ (session pivot, 1h absorption)
Why: session magnet—use for intraday bias pivot / quick confirms. 👀⚖️
🟡🔥 U4 / U5 upper HVN band — ~666.7 → 669.3 (ATR UPPER)
Why: strong HVN / stop‑run evidence on higher TFs — needs large buy MaxDelta to flip. 🚧🚀
⚪ D5 lower expansion support — ~654.3–656.7 (deeper target if sellers run)
Why: longer‑TF expansion area; lower immediate probability but high impact if hit. ⚠️📉
LiqD HeatMap 👑 [RubiXalgo]LiqD HeatMap - Advanced Liquidation Heatmap IndicatorOverviewThe LiqD HeatMap is a cutting-edge Pine Script™ indicator designed to visualize liquidation levels, market bias, and potential trade setups through an AI-driven color system. Inspired by Rubik's Cube mechanics and Ichimoku principles, it transforms complex market data (price, volume, momentum) into intuitive visuals like heatmaps, bubbles, lines, and gradients. This tool helps traders spot high-probability liquidation zones, support/resistance, and trend reversals without overwhelming charts.Powered by advanced smoothing (Kalman filters + LOWESS), pattern recognition (implied KNN clustering), and machine learning, it offers a "color language" for quick decisions: green/teal for bullish (buy), red/purple for bearish (sell), and yellow/orange for max volume (high-action zones). Darker shades indicate stronger signals.Key Benefits:Reduces trader bias with AI-based visuals.
Supports multi-timeframe (MTF) analysis for intraday to long-term trades.
Customizable for longs, shorts, or both.
No math required—follow the colors for 3:1+ risk-reward setups.
This indicator is for educational purposes only and does not guarantee profits. Trading involves risk; use at your own discretion.Main FeaturesLiquidation Heatmap (Bubbles & Lines): Displays liquidation levels as bubbles (circles) and horizontal lines. Bubbles show precise spots; lines mark broader zones. Size and color intensity reflect volume strength.
MTF Liquidation Levels: Overlay higher timeframes (e.g., Daily, Weekly) for thicker, brighter lines indicating stronger support/resistance.
Dynamic VWAP: Anchored VWAP with ATR multipliers for bias and liquidation estimates. Custom periods (e.g., Session, Month).
A.I. Volume Profit-Trend: Polyline prediction based on Ichimoku, volume delta, and targets (V, N, E, NT). Includes stop-loss, entry, and profit levels in a "Trade Window."
Stochastic Money Flow & Bollinger Band Width Percent: Labels above/below bars for momentum and volatility. Ranges from 3%–96% for extreme conditions.
Daily 0.618 Expansion (Fibonacci Ranges): Visualizes daily/HTF ranges with fib projections. Options for bar graphs and pre-market display.
Color Themes: "Classic" (red/green) or "Crypto" (teal/purple) for personalized visuals.
Trade Signals: High-probability setups like "Dark Green Bubble Surge" (long) or "Thick Red Line Breakdown" (short).
How to UseThe indicator shines in spotting liquidations and trends. Use the color language:Green/Teal: Bullish—buy or hold.
Red/Purple: Bearish—sell or short.
Yellow/Orange: Max volume—watch for reversals or breakouts.
Top Long Setups (3:1+ RR):Dark Green Bubble Surge: Enter long on dark green bubble below price + green bar. SL below bar low; TP 3x SL to red line. Exit on red bubble.
Thick Green Line Breakout: Enter long above thick green line + green bar. SL below line; TP 3x SL to red line. Exit on red rejection.
Yellow Line Bounce: Enter long off yellow line bounce + green bar. SL below low; TP 3x SL to higher red. Exit on red shift.
Top Short Setups (3:1+ RR):Dark Red Bubble Surge: Enter short on dark red bubble above price + red bar. SL above bar high; TP 3x SL to green line. Exit on green bubble.
Thick Red Line Breakdown: Enter short below thick red line + red bar. SL above line; TP 3x SL to green line. Exit on green support.
Yellow Line Rejection: Enter short off yellow line rejection + red bar. SL above high; TP 3x SL to lower green. Exit on green shift.
Pro Tips:In ranging markets: Trade bounces off levels.
In trends: Follow breakouts—aggressive moves take out levels.
Combine with Volume Profit-Trend: Polyline up + green = hit targets; down + red = breakdowns.
Stochastic Labels: >69% (red) = overbought; <31% (green) = oversold. Yellow (31–69%) = caution.
Bollinger Width: High % = volatility spike; low % = squeeze incoming.
For best results, use on crypto or forex charts. Test on demo accounts first.SettingsChart Settings: Toggle LiqD Levels/Bubbles, VWAP, Volume Profit-Trend, LiqD Window, Stochastic Flow, Bollinger Width.
HeatMap Liquidation Levels: Dynamic Lookback (8–21 bars for money flow), Market Bias (Both/Long/Short), Leverage (25–500 for signal frequency), Color Gradient (0–33 for intensity).
Dynamic VWAP: Anchor Period (e.g., Month), ATR Multiplier (0.9–3.14 for divergence).
MTF Liquidation Levels: Timeframe (e.g., D), Options (Current + HTF for overlays).
Daily 0.618 Expansion V4: Enable for fib ranges; Hide Historical, Show as Bar Graph, Resolution/Display (e.g., D), Mode (Daily Open/OHLC4/VWAP), Pre-Market Display.
Color Themes: Classic (red/green) or Crypto (teal/purple).
DisclaimersFinancial Disclaimer: This is for educational/informational purposes only. Not financial, investment, or trading advice. Use at your own risk; no liability for losses.
Copyright & Fair Use: Open-source under Mozilla Public License 2.0 and CC BY-NC-SA 4.0. Reuse for non-commercial, educational purposes with credit. Fair use applies per U.S. law (e.g., 17 U.S.C. § 107).
AI & Educational Reuse: AI modifications for learning are allowed under fair use precedents (e.g., Sony v. Universal, 1984).
TradingView Rules: Complies with platform guidelines; federal laws supersede any conflicts.
Risk Warning: Trading involves financial risk. Past performance ≠ future results. Rubik's Algo assumes no liability.
© 2025 Rubik's Algo. All rights reserved. Built with contributions from open-source Pine Script community and AI assistance (e.g., Grok). Special thanks to @StupidBitcoin
and referenced creators.
Volume % + OBV intensity + histogram (v6)1) Volume % (logic that already existed)
• Average volume at the last 20 days =
• Average level → 50%
• More than double the average → **100%**
• Mapping between 0 and 100%
2) OBV % (newly added)
• Look at the OBV change compared to the previous bar
• obvChange = obv - obv
• Compare the absolute value of this change (the magnitude of the force) to the average change in the last 20 bars
• Average level → 50%
• More than double the average → 100%
• Use the value from 0 to 100% as obvPercent
3) Long/Short Section Judgment (OBV basis)
• obvChange > 0 이고 obvPercent >= 60 →
👉 Good section to enter long (buying energy is strong) → Green number
• obvChange < 0 이고 obvPercent >= 60 →
👉 Short entry decent section (sell energy strong) → Red number
5m EMA + CCI + MACD + RSI + 1H/4H + Exhaustion (Clean)This Strategy Proves Profitable on the Back Test uses 5 Minute Chart Only Any asset Plots Buy sell and Exhaustion on chart uses 3 ema 50 110 and 260 CCI and MACD do not blindly follow the signals confirm fist
OB & FVG IndicatorOB & FVG Indicator
SHORT DESCRIPTION
Clean and simple visualization of Order Blocks (OB) and Fair Value Gaps (FVG) with automatic detection and customizable display settings. Perfect for Smart Money Concepts (SMC) traders.
FULL DESCRIPTION
📊 OVERVIEW
This indicator automatically detects and displays two key Smart Money Concepts (SMC) elements on your chart:
Order Blocks (OB) - Institutional supply and demand zones
Fair Value Gaps (FVG) - Price imbalances that often get revisited
Designed for clarity and simplicity, this tool helps traders identify high-probability reversal zones and potential entry points based on institutional trading behavior.
🔧 KEY FEATURES
Order Blocks Detection:
Automatically identifies bullish OB (last bearish candle before upward move)
Automatically identifies bearish OB (last bullish candle before downward move)
Customizable colors for bullish/bearish zones
Optional labels for easy identification
Minimum size filter to eliminate noise
Fair Value Gaps Detection:
Detects bullish FVG (gap between candle high and previous candle low)
Detects bearish FVG (gap between candle low and previous candle high)
Color-coded zones for instant recognition
Auto-deletion of filled gaps (optional)
Minimum size filter in pips
Visual Customization:
Adjustable transparency levels
Custom color schemes for all elements
Configurable box extension length
Toggle labels on/off
Clean, non-cluttered chart display
Performance Optimization:
Automatic deletion of old boxes to maintain chart performance
Maximum 100 boxes stored at once
Lightweight code for fast rendering
⚙️ HOW TO USE
1. Installation
Click "Add to Chart"
The indicator will appear on your chart overlay
2. Configuration
Open Settings panel (gear icon)
Customize colors, transparency, and filters under respective groups
Adjust minimum size filters to match your trading style and timeframe
3. Interpretation
Order Blocks:
Blue zones = Bullish OB (potential support/demand)
Orange zones = Bearish OB (potential resistance/supply)
Price often reacts strongly when revisiting these zones
Fair Value Gaps:
Green zones = Bullish FVG (potential retracement target in uptrends)
Red zones = Bearish FVG (potential retracement target in downtrends)
Gaps are often "filled" before continuation moves
📈 BEST PRACTICES
Timeframe Recommendations:
15m - 1H charts: Best for intraday trading
4H - Daily charts: Best for swing trading
Higher timeframes produce more reliable zones
Trading Strategy Tips:
Wait for price to return to OB/FVG zones before entry
Combine with other confirmation signals (candlestick patterns, volume)
Higher timeframe OBs/FVGs carry more weight
Use as confluence with support/resistance levels
Filter Settings:
Lower timeframes: Increase minimum size filters to reduce noise
Higher timeframes: Can use smaller minimum size settings
Adjust based on asset volatility (crypto vs. forex vs. stocks)
⚠️ IMPORTANT NOTES
This indicator identifies potential zones but does not guarantee reversals
Always use proper risk management and stop losses
Combine with price action analysis for best results
Not all OBs/FVGs will result in reactions
Past performance does not guarantee future results
🎯 IDEAL FOR:
Smart Money Concepts (SMC) traders
ICT (Inner Circle Trader) methodology followers
Swing traders and day traders
Support/resistance zone identification
Confluence-based trading strategies
📝 SETTINGS OVERVIEW
FVG Settings:
Enable/disable FVG display
Bullish and bearish color selection
Extension length (bars)
Auto-delete filled gaps option
Minimum gap size filter (pips)
OB Settings:
Enable/disable OB display
Bullish and bearish color selection
Extension length (bars)
Show/hide labels
Minimum block size filter (pips)
✨ Clean, Simple, Effective
No complicated signals or cluttered displays - just clear visualization of the institutional footprints that matter most.
OB & FVG IndicatorClean and simple visualization of Order Blocks (OB) and Fair Value Gaps (FVG) with automatic detection and customizable display settings. Perfect for Smart Money Concepts (SMC) traders.
FULL DESCRIPTION
📊 OVERVIEW
This indicator automatically detects and displays two key Smart Money Concepts (SMC) elements on your chart:
Order Blocks (OB) - Institutional supply and demand zones
Fair Value Gaps (FVG) - Price imbalances that often get revisited
Designed for clarity and simplicity, this tool helps traders identify high-probability reversal zones and potential entry points based on institutional trading behavior.
🔧 KEY FEATURES
Order Blocks Detection:
Automatically identifies bullish OB (last bearish candle before upward move)
Automatically identifies bearish OB (last bullish candle before downward move)
Customizable colors for bullish/bearish zones
Optional labels for easy identification
Minimum size filter to eliminate noise
Fair Value Gaps Detection:
Detects bullish FVG (gap between candle high and previous candle low)
Detects bearish FVG (gap between candle low and previous candle high)
Color-coded zones for instant recognition
Auto-deletion of filled gaps (optional)
Minimum size filter in pips
Visual Customization:
Adjustable transparency levels
Custom color schemes for all elements
Configurable box extension length
Toggle labels on/off
Clean, non-cluttered chart display
Performance Optimization:
Automatic deletion of old boxes to maintain chart performance
Maximum 100 boxes stored at once
Lightweight code for fast rendering
⚙️ HOW TO USE
1. Installation
Click "Add to Chart"
The indicator will appear on your chart overlay
2. Configuration
Open Settings panel (gear icon)
Customize colors, transparency, and filters under respective groups
Adjust minimum size filters to match your trading style and timeframe
3. Interpretation
Order Blocks:
Blue zones = Bullish OB (potential support/demand)
Orange zones = Bearish OB (potential resistance/supply)
Price often reacts strongly when revisiting these zones
Fair Value Gaps:
Green zones = Bullish FVG (potential retracement target in uptrends)
Red zones = Bearish FVG (potential retracement target in downtrends)
Gaps are often "filled" before continuation moves
📈 BEST PRACTICES
Timeframe Recommendations:
15m - 1H charts: Best for intraday trading
4H - Daily charts: Best for swing trading
Higher timeframes produce more reliable zones
Filter Settings:
Lower timeframes: Increase minimum size filters to reduce noise
Higher timeframes: Can use smaller minimum size settings
Adjust based on asset volatility (crypto vs. forex vs. stocks)
⚠️ IMPORTANT NOTES
This indicator identifies potential zones but does not guarantee reversals
Always use proper risk management and stop losses
Combine with price action analysis for best results
Not all OBs/FVGs will result in reactions
Past performance does not guarantee future results
📝 SETTINGS OVERVIEW
FVG Settings:
Enable/disable FVG display
Bullish and bearish color selection
Extension length (bars)
Auto-delete filled gaps option
Minimum gap size filter (pips)
OB Settings:
Enable/disable OB display
Bullish and bearish color selection
Extension length (bars)
Show/hide labels
Minimum block size filter (pips)
✨ Clean, Simple, Effective
No complicated signals or cluttered displays - just clear visualization of the institutional footprints that matter most.






















