Time-Decay Liquidity Zones [BackQuant]Time-Decay Liquidity Zones
A dynamic liquidity map that turns single-bar exhaustion events into fading, color-graded zones, so you can see where trapped traders and unfinished business still matter, and when those areas have finally stopped pulling price.
What this is
This indicator detects unusually strong impulsive moves into wicks, converts them into supply or demand “zones,” then lets those zones decay over time. Each zone carries a strength score that fades bar by bar. Zones that stop attracting or rejecting price are gradually de-emphasized and eventually removed, while the most relevant areas stay bright and obvious.
Instead of static rectangles that live forever, you get a living liquidity map where:
Zones are born from objective criteria: volatility, wick size, and optional volume spikes.
Zones “age” using a configurable decay factor and maximum lifetime.
Zone color and opacity reflect current relative strength on a unified clear → green → red gradient.
Zones freeze when broken, so you can distinguish “active reaction areas” from “historical levels that have already given way”.
Conceptual idea
Large wicks with strong volatility often mark areas where aggressive orders met hidden liquidity and got absorbed. Price may revisit these areas to test leftover interest or to relieve trapped positions. However, not every wick matters for long. As time passes and more bars print, the market “forgets” some areas.
Time-Decay Liquidity Zones turns that idea into a rule-based system:
Find bars that likely reflect strong aggressive flows into liquidity.
Mark a zone around the wick using ATR-based thickness.
Assign a strength score of 1.0 at birth.
Each bar, reduce that score by a decay factor and remove zones that fall below a threshold or live too long.
Color all surviving zones from weak to strong using a single gradient scale and a visual legend.
How events are detected
Detection lives in the Event Detection group. The script combines range, wick size, and optional volume filters into simple rules.
Volatility filter
ATR Length — computes a rolling ATR over your chosen window. This is the volatility baseline.
Min range in ATRs — bar range (High–Low) must exceed this multiple of ATR for an event to be considered. This avoids tiny bars triggering zones.
Wick filters
For each bar, the script splits the candle into body and wicks:
Upper wick = High minus the max(Open, Close).
Lower wick = min(Open, Close) minus Low.
Then it tests:
Upper wick condition — upper wick must be larger than Min wick size in ATRs × ATR.
Lower wick condition — lower wick must be larger than Min wick size in ATRs × ATR.
Only bars with a sufficiently long wick relative to volatility qualify as candidate “liquidity events”.
Volume filter
Optionally, the script requires a volume spike:
Use volume filter — if enabled, volume must exceed a rolling volume SMA by a configurable multiplier.
Volume SMA length — period for the volume average.
Volume spike multiplier — how many times above the SMA current volume needs to be.
This lets you focus only on “heavy” tests of liquidity and ignore quiet bars.
Event types
Putting it together:
Upper event (potential supply / long liquidation, etc.)
Occurs when:
Upper wick is large in ATR terms.
Full bar range is large in ATR terms.
Volume is above the spike threshold (if enabled).
Lower event (potential demand / short liquidation, etc.)
Symmetric conditions using the lower wick.
How zones are constructed
Zone geometry lives in Zone Geometry .
When an event is detected, the script builds a rectangular box that anchors to the wick and extends in the appropriate direction by an ATR-based thickness.
For upper (supply-type) zones
Bottom of the zone = event bar high.
Top of the zone = event bar high + Zone thickness in ATRs × ATR.
The zone initially spans only the event bar on the x-axis, but is extended to the right as new bars appear while the zone is active.
For lower (demand-type) zones
Top of the zone = event bar low.
Bottom of the zone = event bar low − Zone thickness in ATRs × ATR.
Same extension logic: box starts on the event bar and grows rightward while alive.
The result is a band around the wick that scales with volatility. On high-ATR charts, zones are thicker. On calm charts, they are narrower and more precise.
Zone lifecycle, decay, and removal
All lifecycle logic is controlled by the Decay & Lifetime group.
Each zone carries:
Score — a floating-point “importance” measure, starting at 1.0 when created.
Direction — +1 for upper zones, −1 for lower zones.
Birth index — bar index at creation time.
Active flag — whether the zone is still considered unbroken and extendable.
1) Active vs broken
Each confirmed bar, the script checks:
For an upper zone , the zone is counted as “broken” when the close moves above the top of the zone.
For a lower zone , the zone is counted as “broken” when the close moves below the bottom of the zone.
When a zone breaks:
Its right edge is frozen at the previous bar (no further extension).
The zone remains on the chart, but is no longer updated by price interaction. It still decays in score until removal.
This lets you see where a major level was overrun, while naturally fading its influence over time.
2) Time decay
At each confirmed bar:
Score := Score × Score decay per bar .
A decay value close to 1.0 means very slow decay and long-lived zones.
Lower values (closer to 0.9) mean faster forgetting and more current-focused zones.
You are controlling how quickly the market “forgets” past events.
3) Age and score-based removal
Zones are removed when either:
Age in bars exceeds Max bars a zone can live .
This is a hard lifetime cap.
Score falls below Minimum score before removal .
This trims zones that have decayed into irrelevance even if their age is still within bounds.
When a zone is removed, its box is deleted and all associated state is freed to keep performance and visuals clean.
Unified gradient and color logic
Color control lives in Gradient & Color . The indicator uses a single continuous gradient for all zones, above and below price, so you can read strength at a glance without guessing what palette means what.
Base colors
You set:
Mid strength color (green) — used for mid-level strength zones and as the “anchor” in the gradient.
High strength color (red) — used for the strongest zones.
Max opacity — the maximum visual opacity for the solid part of the gradient. Lower values here mean more solid; higher values mean more transparent.
The script then defines three internal points:
Clear end — same as mid color, but with a high alpha (close to transparent).
Mid end — mid color at the strongest allowed opacity.
High end — high color at the strongest allowed opacity.
Strength normalization
Within each update:
The script finds the maximum score among all existing zones.
Each zone’s strength is computed as its score divided by this maximum.
Strength is clamped into .
This means a zone with strength 1.0 is currently the strongest zone on the chart. Other zones are colored relative to that.
Piecewise gradient
Color is assigned in two stages:
For strength between 0.0 and 0.5: interpolate from “clear” green to solid green.
Weak zones are barely visible, mid-strength zones appear as solid green.
For strength between 0.5 and 1.0: interpolate from solid green to solid red.
The strongest zones shift toward the red anchor, clearly separating them from everything else.
Strength scale legend
To make the gradient readable, the indicator draws a vertical legend on the right side of the chart:
About 15 cells from top (Strong) to bottom (Weak).
Each cell uses the same gradient function as the zones themselves.
Top cell is labeled “Strong”; bottom cell is labeled “Weak”.
This legend acts as a fixed reference so you can instantly map a zone’s color to its approximate strength rank.
What it plots
At a glance, the indicator produces:
Upper liquidity zones above price, built from large upper wick events.
Lower liquidity zones below price, built from large lower wick events.
All zones colored by relative strength using the same gradient.
Zones that freeze when price breaks them, then fade out via decay and removal.
A strength scale legend on the right to interpret the gradient.
There are no extra lines, labels, or clutter. The focus is the evolving structure of liquidity zones and their visual strength.
How to read the zones
Bright red / bright green zones
These are your current “major” liquidity areas. They have high scores relative to other zones and have not yet decayed. Expect meaningful reactions, absorption attempts, or spillover moves when price interacts with them.
Faded zones
Pale, nearly transparent zones are either old, decayed, or minor. They can still matter, but priority is lower. If these are in the middle of a long consolidation, they often become background noise.
Broken but still visible zones
Zones whose extension has stopped have been overrun by closing price. They show where a key level gave way. You can use them as context for regime shifts or failed attempts.
Absence of zones
A chart with few or no zones means that, under your current thresholds, there have not been strong enough liquidity events recently. Either tighten the filters or accept that recent price action has been relatively balanced.
Use cases
1) Intraday liquidity hunting
Run the indicator on lower timeframes (e.g., 1–15 minute) with moderately fast decay.
Use the upper zones as potential sell reaction areas, the lower zones as potential buy reaction areas.
Combine with order flow, CVD, or footprint tools to see whether price is absorbing or rejecting at each zone.
2) Swing trading context
Increase ATR length and range/wick multipliers to focus only on major spikes.
Set slower decay and higher max lifetime so zones persist across multiple sessions.
Use these zones as swing inflection areas for larger setups, for example anticipating re-tests after breakouts.
3) Stop placement and invalidation
For longs, place invalidation beyond a decaying lower zone rather than in the middle of noise.
For shorts, place invalidation beyond strong upper zones.
If price closes through a strong zone and it freezes, treat that as additional evidence your prior bias may be wrong.
4) Identifying trapped flows
Upper zones formed after violent spikes up that quickly fail can mark trapped longs.
Lower zones formed after violent spikes down that quickly reverse can mark trapped shorts.
Watching how price behaves on the next touch of those zones can hint at whether those participants are being rescued or squeezed.
Settings overview
Event Detection
Use volume filter — enable or disable the volume spike requirement.
Volume SMA length — rolling window for average volume.
Volume spike multiplier — how aggressive the volume spike filter is.
ATR length — period for ATR, used in all size comparisons.
Min wick size in ATRs — minimum wick size threshold.
Min range in ATRs — minimum bar range threshold.
Zone Geometry
Zone thickness in ATRs — vertical size of each liquidity zone, scaled by ATR.
Decay & Lifetime
Score decay per bar — multiplicative decay factor for each zone score per bar.
Max bars a zone can live — hard cap on lifetime.
Minimum score before removal — score cut-off at which zones are deleted.
Gradient & Color
Mid strength color (green) — base color for mid-level zones and the lower half of the gradient.
High strength color (red) — target color for the strongest zones.
Max opacity — controls the most solid end of the gradient (0 = fully solid, 100 = fully invisible).
Tuning guidance
Fast, session-only liquidity
Shorter ATR length (e.g., 20–50).
Higher wick and range multipliers to focus only on extreme events.
Decay per bar closer to 0.95–0.98 and moderate max lifetime.
Volume filter enabled with a decent multiplier (e.g., 1.5–2.0).
Slow, structural zones
Longer ATR length (e.g., 100+).
Moderate wick and range thresholds.
Decay per bar very close to 1.0 for slow fading.
Higher max lifetime and slightly higher min score threshold so only very weak zones disappear.
Noisy, high-volatility instruments
Increase wick and range ATR multipliers to avoid over-triggering.
Consider enabling the volume filter with stronger settings.
Keep decay moderate to avoid the chart getting overloaded with old zones.
Notes
This is a structural and contextual tool, not a complete trading system. It does not account for transaction costs, execution slippage, or your specific strategy rules. Use it to:
Highlight where liquidity has recently been tested hard.
Rank these areas by decaying strength.
Guide your attention when layering in separate entry signals, risk management, and higher-timeframe context.
Time-Decay Liquidity Zones is designed to keep your chart focused on where the market has most recently “cared” about price, and to gradually forget what no longer matters. Adjust the detection, geometry, decay, and gradient to fit your product and timeframe, and let the zones show you which parts of the tape still have unfinished business.
Cari dalam skrip untuk "swing trading"
VM TRADERS 3 Moving Averages SimpleThis indicator displays three Simple Moving Averages (SMA) that can be toggled on/off individually. Perfect for traders who use multiple SMAs to identify trends, support/resistance levels, and potential entry/exit points.
Features:
- SMA 30 (White) - Short-term trend
- SMA 50 (Yellow) - Medium-term trend
- SMA 100 (Blue) - Long-term trend
- Toggle each SMA on/off independently
- Customizable periods and colors
- Clean and organized settings interface
Ideal for swing trading, trend following, and multi-timeframe analysis across Forex, Crypto, Stocks, and Synthetic indices.
Two Supertrend Crossover SignalThis indicator is designed to visualize trend shifts using two Supertrend lines and a crossover-based signal system.
It also colors the area between the two Supertrend lines based on the current trend direction, making trend changes easy to identify at a glance.
How It Works
The indicator plots:
Fast Supertrend (shorter ATR length, lower factor)
Slow Supertrend (longer ATR length, higher factor)
A crossover between these two Supertrend lines indicates a possible trend shift.
Buy Signal
A BUY signal occurs when: Fast Supertrend crosses ABOVE Slow Supertrend
This suggests bullish momentum strengthening.
Sell Signal
A SELL signal occurs when: Fast Supertrend crosses BELOW Slow Supertrend
This suggests bearish momentum increasing.
Buy/Sell Signal Labels
The chart displays clear BUY (green) and SELL (red) labels at every crossover.
These signals help traders quickly pinpoint potential entries or exits.
This indicator is ideal for:
✓ Trend trading
✓ Swing trading
✓ Identifying momentum shifts
✓ Visual confirmation of market direction
✓ Combining with price action or EMA filters
You may adjust ATR length and multiplier depending on the timeframe:
For Scalping (1–5 min):
Fast ATR: 5–7
Slow ATR: 10–14
For Intraday (5–15 min):
Fast ATR: 7
Slow ATR: 10–14
For Swing Trading (1h–4h):
Fast ATR: 10
Slow ATR: 20
Important Notes
This indicator does not repaint the Supertrend values.
Signals are based on confirmed crossovers.
Use stop-loss and risk management appropriate for your strategy.
Always combine with market context (support/resistance, volume, etc.)
Chart Analyser — Full dashboard + insights Chart Analyser — Full dashboard + insights (Pine v5) A composite overlay that combines EMA trend, VWAP, RSI, ADX, MACD, ATR, Bollinger Bands, volume context, and pivot S/R into a single charting tool. It marks pivots directly on candles (labels + plotshape) and provides a fixed top‑right dashboard with metric readouts and a one‑line “takeaway” bias. Highly configurable colors and thresholds make it suitable for intraday and swing trading.
Interpretation & suggested use
- Trend filter: use the EMA alignment (fast > med > slow) as your primary trend filter. Prefer long bias only when trend is Bull and short bias only when Bear.
- Momentum confirmation: require RSI not extreme and MACD histogram confirming the direction of trade bias.
- Trend strength: ADX >= 25 suggests the trend has strength; pair trade entries with ADX confirmation if you need higher-probability setups.
- Volatility sizing: ATR and BB width help size stops and determine whether to expect range expansion; a squeeze suggests possible upcoming expansion but not direction.
- Volume: treat volume spikes as confirmation of breakout/turning points when they coincide with pivot break or VWAP breaks.
- Support/Resistance: last pivot High = short‑term resistance; last pivot Low = short‑term support. Distances in the dashboard show how close price is to S/R.
- Takeaway summary: uses composite logic combining trend, momentum, volume and pivot SR to provide a quick bias indication — treat it as guidance, not a trade signal generator.
Chart Analyser — Full dashboard + insights Chart Analyser — Full dashboard + insights (Pine v5) A composite overlay that combines EMA trend, VWAP, RSI, ADX, MACD, ATR, Bollinger Bands, volume context, and pivot S/R into a single charting tool. It marks pivots directly on candles (labels + plotshape) and provides a fixed top‑right dashboard with metric readouts and a one‑line “takeaway” bias. Highly configurable colors and thresholds make it suitable for intraday and swing trading.
Key features
- Plots three EMAs (fast, medium, slow) and VWAP on the chart.
- Detects pivot highs and pivot lows and marks them with:
- bar‑anchored plotshape triangles (guaranteed to move/scale with candles)
- optional bar‑anchored labels attached to the pivot candle
- Full dashboard (fixed to viewport top‑right) that displays:
- Price, EMA values, trend summary
- RSI and RSI state (Overbought/Neutral/Oversold)
- ADX (via ta.dmi) and trend strength
- MACD histogram direction and value
- ATR and Bollinger Band width (squeeze detection)
- Volume vs. moving average and spike detection
- VWAP position (Above/Below/At)
- Last pivot resistance/support and distance to current price
- A one‑line composite takeaway / bias summary
- Configurable color inputs for EMA, VWAP, BB, pivot shapes, labels and bar colors
- Adjustable indicator parameters (periods, pivot left/right, volume thresholds, ADX smoothing, etc.)
- Alerts for buy/sell bias conditions (configurable logic in code)
Interpretation & suggested use
- Trend filter: use the EMA alignment (fast > med > slow) as your primary trend filter. Prefer long bias only when trend is Bull and short bias only when Bear.
- Momentum confirmation: require RSI not extreme and MACD histogram confirming the direction of trade bias.
- Trend strength: ADX >= 25 suggests the trend has strength; pair trade entries with ADX confirmation if you need higher-probability setups.
- Volatility sizing: ATR and BB width help size stops and determine whether to expect range expansion; a squeeze suggests possible upcoming expansion but not direction.
- Volume: treat volume spikes as confirmation of breakout/turning points when they coincide with pivot break or VWAP breaks.
- Support/Resistance: last pivot High = short‑term resistance; last pivot Low = short‑term support. Distances in the dashboard show how close price is to S/R.
- Takeaway summary: uses composite logic combining trend, momentum, volume and pivot SR to provide a quick bias indication — treat it as guidance, not a trade signal generator.
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.
Swing Point PnL PressureThis indicator visualizes the cumulative profit potential of bulls and bears based on recent swing highs and lows — offering a unique lens into trend maturity, sentiment imbalance, and exhaustion risk.
🟢 Bull PnL rises as price moves above prior swing lows — reflecting unrealized gains for long positions
🔴 Bear PnL rises as price drops below prior swing highs — capturing short-side profitability
Over time, these curves diverge during strong trends, revealing which side is in control. But when they converge, it often signals that the dominant side is losing steam — a potential turning point where profit-taking, traps, or reversals may emerge.
This tool doesn’t predict tops or bottoms — it tracks the emotional and financial pressure building on each side of the market. Use it to:
Spot trend exhaustion before price confirms it
Identify profit parity zones where sentiment may flip
Time accumulation or distribution phases with greater confidence
Whether you’re swing trading or analyzing macro structure, this indicator helps you see what price alone can’t: who’s winning, who’s trapped, and who’s about to give up.
Candle 2 Closure📌 Indicator Presentation – Candle 2 Closure
" Candle 2 Closure "s is an indicator designed to identify three types of price–action-based signals in real time: Long, Short, and Generic.
The goal is to visually highlight moments when the market breaks a key level of the previous candle but rejects that break, closing on the opposite side.
The idea was inspired by the study of pure price action and specifically by the following video:
👉 www.youtube.com
🎯 How the Indicator Works
The indicator generates signals on bar close (barstate.isconfirmed), making them reliable and free from repainting.
🔵 LONG Signal
A long signal is triggered when:
The current candle breaks the low of the previous candle
But then closes back above that low
→ This is often a sign of a bear trap or a liquidity rejection to the downside.
🔴 SHORT Signal
A short signal is triggered when:
The current candle breaks the high of the previous candle
But then closes back below that high
→ This may indicate a bull trap or a liquidity rejection to the upside.
⚪ GENERIC Signal
A generic signal is triggered when:
A high or low is broken,
But neither the long nor short conditions are met,
Resulting in a simple unconfirmed break.
📍 Operational Advantages
Highlights liquidity absorption zones
Works on all timeframes (1m → 1D)
Useful for scalping, intraday, or swing trading
Clear and immediate visual signals on the chart
Zero repainting
✨ Visual Style
LONG displayed below the candle, white color
SHORT displayed above the candle, white color
Generic signal shown with a neutral label
J&C Indicator 20/40 MA4H SMA Signal Map (20/40) Strategy
Timeframe: 4-Hour
Overview:
This is a momentum-based trend confirmation system using dual moving averages. The strategy identifies potential entry points when price action aligns with moving average positioning.
LONG Signal:
Triggers when the market demonstrates bullish momentum with price confirming an upside breakout while both moving averages are in a favorable uptrend alignment.
SHORT Signal:
Triggers when the market demonstrates bearish momentum with price confirming a downside breakdown while both moving averages are in a favorable downtrend alignment.
Key Features:
Uses a 20-period and 40-period simple moving average on the 4-hour timeframe
Filters out false signals by requiring multi-factor confirmation
Generates clear visual alerts with background highlighting
Real-time dashboard showing current MA values and trend direction
Sound/notification alerts for immediate signal awareness
Best Used For:
Swing trading on higher timeframes with proper risk management and support from additional confluence factors on your trading setup.
Pivot crossThis script is simple way of seeing the trend using two pivots, one with lower time frame and other with higher timeframe. When the lower crosses above higher, its bullish, when lower crosses below higher pivot then bearish. Works on any timeframes for intraday and swing trading.
Volume Peak Box📄 English Description
Overview
The Volume Peak Box indicator highlights periods of unusually high volume by identifying volume spikes using Bollinger Bands on volume and drawing a price-range box around each spike window. This provides traders with a clear visual representation of supply/demand imbalances, absorption zones, and breakout/false-break areas.
All calculations come from one unified concept: detecting statistically significant volume peaks on a locked timeframe and mapping them onto the chart.
Concept & Logic
1. Locked Timeframe Volume Analysis
Instead of using the current chart timeframe, this script allows users to lock volume analysis to any timeframe (e.g., 60m, 4H, 1D).
The script retrieves from the chosen timeframe:
Volume
High price
Low price
This allows volume structure from higher timeframes to be used while trading lower timeframes.
2. Bollinger Bands on Volume
Volume volatility is analyzed using a standard Bollinger Band model:
Basis = SMA(volume, BB length)
Upper Band = Basis + (mult × standard deviation)
When:
Volume > Upper Band
→ This bar is classified as a Volume Peak.
This approach makes the peak detection statistically meaningful, instead of simply comparing raw volume to previous bars.
3. Peak Session Detection (Continuous Peaks Form One Box)
The script tracks continuous volume peaks:
When a peak starts → begin a session
While peaks continue → extend the session
When peaks end → session closes and a box is created
For each peak session, the script records:
Start bar index
End bar index
Highest high within the session
Lowest low within the session
These values determine the box boundaries.
This allows the indicator to group related peaks into a single price zone, instead of drawing a box for every bar.
4. Drawing the Volume Peak Box
When a session ends, the script draws:
A filled box covering the full price range
From startBar → endBar
Using user-defined:
Box fill color
Border color
Each box visually marks a region where strong participation entered the market, often signaling:
Breakout validation
Absorption zones
Supply/demand imbalance
High-activity trading decisions
How to Use
Use the boxes to identify high-volume reaction zones.
When price revisits a box:
Expect strong reactions (bounce, rejection, or absorption).
When price breaks out from a box:
Can signal continuation with momentum.
Lower-timeframe entry signals become more reliable when aligned with high-timeframe volume boxes.
Recommended to lock the TF to:
60m for intraday
4H or 1D for swing trading
Why This Script Is Original
It uses Bollinger Bands on volume, not price — a less common volatility-based method for detecting volume anomalies.
It groups continuous peaks into unified zones instead of treating each spike separately.
The ability to lock the volume analysis to a higher timeframe allows multi-timeframe volume interpretation without cluttering the chart.
Boxes give traders a clean and intuitive view of volume-based “decision zones”.
🇹🇭 Thai Description — คำอธิบายภาษาไทย
ภาพรวม
อินดิเคเตอร์ Volume Peak Box ใช้การตรวจจับ “Volume Peak” โดยใช้ Bollinger Band บน Volume แล้วสร้าง “กล่องช่วงราคา” ครอบช่วงที่มี Volume สูงผิดปกติ ทำให้เห็นบริเวณที่มีแรงซื้อขายเข้ามาอย่างชัดเจน เช่น จุด Breakout, จุด Absorption, หรือเขต Supply/Demand
แนวคิดและหลักการทำงาน
1. วิเคราะห์ Volume จาก Timeframe ที่ล็อกไว้
คุณสามารถเลือก TF ที่ต้องการให้ Volume ถูกนำมาคำนวณ เช่น 60 นาที, 4 ชั่วโมง, 1 วัน
แม้คุณจะเปิดกราฟ TF เล็ก เช่น 5m แต่กล่องยังอิง volume จาก TF ที่เลือกไว้ ทำให้ได้ “โซน Volume ใหญ่” ที่แม่นยำขึ้น
2. Bollinger Band บน Volume
ใช้ SMA + ส่วนเบี่ยงเบนมาตรฐานของ Volume เพื่อหา “จุดที่ Volume สูงกว่าปกติอย่างมีนัยสำคัญ”
เงื่อนไข Peak:
Volume > Upper Bollinger Band
นี่เป็นวิธีที่ดีกว่า “เทียบกับแท่งก่อนหน้า” เพราะคิดจากสถิติของทั้งช่วง
3. รวม Peak ต่อเนื่องเป็นกล่องเดียว
ถ้า Volume Peak เกิดต่อเนื่องหลายแท่ง:
จะถูกจับรวมเป็น Peak session เดียว
ใช้ High สูงสุด และ Low ต่ำสุดของทั้ง session
เมื่อ Peak จบ → วาดกล่องช่วงราคา
เหมาะกับการหาจุดที่ตลาดมีแรงเข้าซื้อ/ขายหนักในช่วงเวลาเดียวกัน
4. วาดกล่อง Volume Peak
กล่องจะครอบ:
ช่วงแท่งเริ่มต้น → แท่งสุดท้ายของ Peak
ความสูงของกล่อง = ช่วงราคาที่มี Volume สูงผิดปกติ
กล่องสามารถใช้เป็น:
โซน Breakout/Breakdown
โซน Supply/Demand
เขตที่ราคามักมี reaction
วิธีใช้งาน
ใช้กล่องเป็น “เขตการตัดสินใจ” (Decision Zone)
ราคาแตะซ้ำมักเกิดการกลับตัวหรือความผันผวนสูง
การทะลุกล่องบ่อยครั้งนำไปสู่ขาเทรนด์ใหญ่
เหมาะกับการใช้ร่วมกับ Price Action และโครงสร้างราคา
จุดเด่น / ความเป็น Original
ใช้ Bollinger Band บน Volume (น้อยอินดี้ทำ)
รวม Peak ต่อเนื่องเป็น session เดียว
วิเคราะห์ Volume ข้าม TF ได้ โดยไม่ต้องเปลี่ยน TF บนกราฟ
ได้ “โซน Volume สำคัญ” แบบชัดเจน อ่านง่าย ไม่รกจอ
Haut & Bas Semaine Précédente – Depuis lundi (paramétrable)Clean and precise indicator that draws:
• The previous week’s high
• The previous week’s low
Lines start exactly on the Monday of the previous week and extend to the right (auto-updated every Monday).
Works perfectly on all timeframes (1 min, 5 min, 1H, 4H, daily…).
Fully customizable:
Colors
Style: Solid / Dashed / Dotted
Line width (1–5)
Perfect for intraday, swing trading or scalping — these levels are often strong support/resistance or breakout zones.
No labels, no plots, just the two clean lines. Lightweight and professional.
Frequency Momentum Oscillator [QuantAlgo]🟢 Overview
The Frequency Momentum Oscillator applies Fourier-based spectral analysis principles to price action to identify regime shifts and directional momentum. It calculates Fourier coefficients for selected harmonic frequencies on detrended price data, then measures the distribution of power across low, mid, and high frequency bands to distinguish between persistent directional trends and transient market noise. This approach provides traders with a quantitative framework for assessing whether current price action represents meaningful momentum or merely random fluctuations, enabling more informed entry and exit decisions across various asset classes and timeframes.
🟢 How It Works
The calculation process removes the dominant trend from price data by subtracting a simple moving average, isolating cyclical components for frequency analysis:
detrendedPrice = close - ta.sma(close , frequencyPeriod)
The detrended price series undergoes frequency decomposition through Fourier coefficient calculation across the first 8 harmonics. For each harmonic frequency, the algorithm computes sine and cosine components across the lookback window, then derives power as the sum of squared coefficients:
for k = 1 to 8
cosSum = 0.0
sinSum = 0.0
for n = 0 to frequencyPeriod - 1
angle = 2 * math.pi * k * n / frequencyPeriod
cosSum := cosSum + detrendedPrice * math.cos(angle)
sinSum := sinSum + detrendedPrice * math.sin(angle)
power = (cosSum * cosSum + sinSum * sinSum) / frequencyPeriod
Power measurements are aggregated into three frequency bands: low frequencies (harmonics 1-2) capturing persistent cycles, mid frequencies (harmonics 3-4), and high frequencies (harmonics 5-8) representing noise. Each band's power normalizes against total spectral power to create percentage distributions:
lowFreqNorm = totalPower > 0 ? (lowFreqPower / totalPower) * 100 : 33.33
highFreqNorm = totalPower > 0 ? (highFreqPower / totalPower) * 100 : 33.33
The normalized frequency components undergo exponential smoothing before calculating spectral balance as the difference between low and high frequency power:
smoothLow = ta.ema(lowFreqNorm, smoothingPeriod)
smoothHigh = ta.ema(highFreqNorm, smoothingPeriod)
spectralBalance = smoothLow - smoothHigh
Spectral balance combines with price momentum through directional multiplication, producing a composite signal that integrates frequency characteristics with price direction:
momentum = ta.change(close , frequencyPeriod/2)
compositeSignal = spectralBalance * math.sign(momentum)
finalSignal = ta.ema(compositeSignal, smoothingPeriod)
The final signal oscillates around zero, with positive values indicating low-frequency dominance coupled with upward momentum (trending up), and negative values indicating either high-frequency dominance (choppy market) or downward momentum (trending down).
🟢 How to Use This Indicator
→ Long/Short Signals: the indicator generates long signals when the smoothed composite signal crosses above zero (indicating low-frequency directional strength dominates) and short signals when it crosses below zero (indicating bearish momentum persistence).
→ Upper and Lower Reference Lines: the +25 and -25 reference lines serve as threshold markers for momentum strength. Readings beyond these levels indicate strong directional conviction, while oscillations between them suggest consolidation or weakening momentum. These references help traders distinguish between strong trending regimes and choppy transitional periods.
→ Preconfigured Presets: three optimized configurations are available with Default (32, 3) offering balanced responsiveness, Fast Response (24, 2) designed for scalping and intraday trading, and Smooth Trend (40, 5) calibrated for swing trading and position trading with enhanced noise filtration.
→ Built-in Alerts: the indicator includes three alert conditions for automated monitoring - Long Signal (momentum shifts bullish), Short Signal (momentum shifts bearish), and Signal Change (any directional transition). These alerts enable traders to receive real-time notifications without continuous chart monitoring.
→ Color Customization: four visual themes (Classic green/red, Aqua blue/orange, Cosmic aqua/purple, Custom) allow chart customization for different display environments and personal preferences.
FX Swing — Compact Auto-Sizing (Fixed)A compact Forex swing-trading strategy that combines higher-timeframe EMA trend bias, EMA pullback confirmation, and RSI momentum filtering. It automatically sizes positions using either risk-percentage or fixed-risk, adapts pip values for JPY and non-JPY pairs, and generates clear SL/TP levels with partial take-profit exits. The script also sends structured JSON alerts for webhooks or WhatsApp automation, making it ideal for fast, disciplined, and risk-controlled swing entries.
Vertical Lines: 5, 20, 50, 200 Days Back - 30 minutesVerticals lines to indicate 5, 20, 50, and 200 day marks on a 30 minute chart. Used in Swing trading with multi-timeframe approach to mark the levels.
Generated using Claude.
Futures EMA 9×20 Scanner (Daily + 4H + 15m)This script is to facilitate the swing trading in 15min TF using the Daily and 4H.
Impulse Trend Suite (LITE) source🚀 Impulse Trend Suite (LITE version) — Simple, Accurate, Powerful
A lightweight yet precise trend suite for any symbol and any timeframe. Designed to keep your chart clean while giving you what matters: direction, timing, and confidence. Great for intraday scalping, swing trading, or longer holds.
✨ What You Get in LITE
Clear Entry Points — single arrow printed only at trend change (no spam).
Background Zones — continuous, gap-free trend shading (green = uptrend, red = downtrend).
ATR Bands + Adaptive Baseline — contextual volatility & mean reference.
Trend Panel — “CURRENT TREND DIRECTION” banner (UPTREND / DOWNTREND / NEUTRAL).
Minimal Noise — arrows only when trend flips; no clutter, no repeated shapes.
Inputs: Baseline length, ATR length & multiplier, RSI & MACD lengths, show/hide bands, shading, and arrows.
Under the hood: LITE blends ATR, an adaptive baseline, and momentum filters (RSI + MACD histogram) to confirm thrust and suppress weak moves. Signals trigger only on state change to keep focus on quality over quantity.
🛠️ How to Use
When the background turns green and a BUY arrow appears, you have a potential long setup.
Stay in the trade while the background remains green and price respects the baseline/ATR context.
When a SELL arrow prints and the background flips red, consider exiting or reversing.
Tip: For short-term trading, start with ATR Multiplier = 2.0 and Baseline = 50. Increase the baseline length for smoother trend following; decrease it to react faster.
👉 In the screenshots we used the default settings on the EUR/USD M15 timeframe to demonstrate how the tool looks and works right out of the box.
🧩 Inputs Explained
Adaptive Baseline Length — EMA that anchors the trend.
ATR Length & Multiplier — volatility channel; helps avoid chasing noise.
RSI/MACD Lengths — momentum confirmation to filter weak impulses.
Show ATR Bands — visualize volatility envelope for context.
Background Shading — always-on fill (no black gaps) to read trend at a glance.
Show Entry Arrows — single arrow on the exact trend flip bar.
🆚 LITE vs PRO
Feature comparison:
Trend shading + panel: LITE ✅ | PRO ✅
Entry arrows (de-duplicated): LITE ✅ | PRO ✅ + more filters
Visual & audio alerts: LITE — | PRO ✅
Graphical Reversal Zones (with suggested SL context): LITE — | PRO ✅
HTF confirmation & noise filters: LITE — | PRO ✅
Ready-made strategies (detailed docs): LITE — | PRO ✅
PRO strategies included:
Trend Continuation — follow the impulse + HTF confirm.
Reversal Zones — timing turns with visual boxes & suggested stop areas.
Hybrid — enter with continuation logic, manage with reversal zones.
Upgrade to the full professional toolkit (+ PDF on price patterns & candlesticks):
fxsharerobots.com
📈 Works On
Forex, Indices, Commodities, Crypto, Stocks
Scalping (1–5m), Intraday (15m–1h), Swing (4h–D1+)
Note: Volatility differs by market. If you see too many flips, raise the Baseline length or ATR multiplier; if it reacts too slowly, lower them.
✅ Best Practices
Trade in the direction of the active background.
Use ATR bands / structure to define risk and place stops logically.
Avoid over-fitting — start with defaults, then tune slightly for your market/timeframe.
Add session/time filters or HTF bias (available in PRO) for extra selectivity.
📚 Documentation & More Tools
PRO version & user guide: fxsharerobots.com
All downloads (indicators, EAs, toolkits): fxsharerobots.com
⚠️ Disclaimer
Trading involves risk. This script is for educational purposes and does not constitute financial advice. Past performance does not guarantee future results. Always test and manage risk responsibly.
Happy trading & many pips!
— FxShareRobots Team 🌟
Volume Orderblock Breakout — Naaganeunja Lite v3.5Pre signal update for volume orderblock breakout
THIS IS 4 HOUR SIGNAL FOR SWING TRADING, WIINNING RATE IS 80~90%
Market Profile Dominance Analyzer# Market Profile Dominance Analyzer
## 📊 OVERVIEW
**Market Profile Dominance Analyzer** is an advanced multi-factor indicator that combines Market Profile methodology with composite dominance scoring to identify buyer and seller strength across higher timeframes. Unlike traditional volume profile indicators that only show volume distribution, or simple buyer/seller indicators that only compare candle colors, this script integrates six distinct analytical components into a unified dominance measurement system.
This indicator helps traders understand **WHO controls the market** by analyzing price position relative to Market Profile key levels (POC, Value Area) combined with volume distribution, momentum, and trend characteristics.
## 🎯 WHAT MAKES THIS ORIGINAL
### **Hybrid Analytical Approach**
This indicator uniquely combines two separate methodologies that are typically analyzed independently:
1. **Market Profile Analysis** - Calculates Point of Control (POC) and Value Area (VA) using volume distribution across price channels on higher timeframes
2. **Multi-Factor Dominance Scoring** - Weights six independent factors to produce a composite dominance index
### **Six-Factor Composite Analysis**
The dominance score integrates:
- Price position relative to POC (equilibrium assessment)
- Price position relative to Value Area boundaries (acceptance/rejection zones)
- Volume imbalance within Value Area (institutional bias detection)
- Price momentum (directional strength)
- Volume trend comparison (participation analysis)
- Normalized Value Area position (precise location within fair value zone)
### **Adaptive Higher Timeframe Integration**
The script features an intelligent auto-selection system that automatically chooses appropriate higher timeframes based on the current chart period, ensuring optimal Market Profile structure regardless of the trading timeframe being analyzed.
## 💡 HOW IT WORKS
### **Market Profile Construction**
The indicator builds a Market Profile structure on a higher timeframe by:
1. **Session Identification** - Detects new higher timeframe sessions using `request.security()` to ensure accurate period boundaries
2. **Data Accumulation** - Stores high, low, and volume data for all bars within the current higher timeframe session
3. **Channel Distribution** - Divides the session's price range into configurable channels (default: 20 rows)
4. **Volume Mapping** - Distributes each bar's volume proportionally across all price channels it touched
### **Key Level Calculation**
**Point of Control (POC)**
- Identifies the price channel with the highest accumulated volume
- Represents the price level where the most trading activity occurred
- Serves as a magnetic level where price often returns
**Value Area (VA)**
- Starts at POC and expands both upward and downward
- Includes channels until reaching the specified percentage of total volume (default: 70%)
- Expansion algorithm compares adjacent volumes and prioritizes the direction with higher activity
- Defines the "fair value" zone where most market participants agreed to trade
### **Dominance Score Formula**
```
Dominance Score = (price_vs_poc × 10) +
(price_vs_va × 5) +
(volume_imbalance × 0.5) +
(price_momentum × 100) +
(volume_trend × 5) +
(va_position × 15)
```
**Component Breakdown:**
- **price_vs_poc**: +1 if above POC, -1 if below (shows which side of equilibrium)
- **price_vs_va**: +2 if above VAH, -2 if below VAL, 0 if inside VA
- **volume_imbalance**: Percentage difference between upper and lower VA volumes
- **price_momentum**: 5-period SMA of price change (directional acceleration)
- **volume_trend**: Compares 5-period vs 20-period volume averages
- **va_position**: Normalized position within Value Area (-1 to +1)
The composite score is then smoothed using EMA with configurable sensitivity to reduce noise while maintaining responsiveness.
### **Market State Determination**
- **BUYERS Dominant**: Smooth dominance > +10 (bullish control)
- **SELLERS Dominant**: Smooth dominance < -10 (bearish control)
- **NEUTRAL**: Between -10 and +10 (balanced market)
## 📈 HOW TO USE THIS INDICATOR
### **Trend Identification**
- **Green background** indicates buyers are in control - look for long opportunities
- **Red background** indicates sellers are in control - look for short opportunities
- **Gray background** indicates neutral market - consider range-bound strategies
### **Signal Interpretation**
**Buy Signals** (green triangle) appear when:
- Dominance crosses above -10 from oversold conditions
- Previous state was not already bullish
- Suggests shift from seller to buyer control
**Sell Signals** (red triangle) appear when:
- Dominance crosses below +10 from overbought conditions
- Previous state was not already bearish
- Suggests shift from buyer to seller control
### **Value Area Context**
Monitor the information table (top-right) to understand market structure:
- **Price vs POC**: Shows if trading above/below equilibrium
- **Volume Imbalance**: Positive values favor buyers, negative favors sellers
- **Market State**: Current dominant force (BUYERS/SELLERS/NEUTRAL)
### **Multi-Timeframe Strategy**
The auto-timeframe feature analyzes higher timeframe structure:
- On 1-minute charts → analyzes 2-hour structure
- On 5-minute charts → analyzes Daily structure
- On 15-minute charts → analyzes Weekly structure
- On Daily charts → analyzes Yearly structure
This higher timeframe context helps avoid counter-trend trades against the dominant force.
### **Confluence Trading**
Strongest signals occur when multiple factors align:
1. Price above VAH + positive volume imbalance + buyers dominant = Strong bullish setup
2. Price below VAL + negative volume imbalance + sellers dominant = Strong bearish setup
3. Price at POC + neutral state = Potential breakout/breakdown pivot
## ⚙️ INPUT PARAMETERS
- **Higher Time Frame**: Select specific HTF or use 'Auto' for intelligent selection
- **Value Area %**: Percentage of volume contained in VA (default: 70%)
- **Show Buy/Sell Signals**: Toggle signal triangles visibility
- **Show Dominance Histogram**: Toggle histogram display
- **Signal Sensitivity**: EMA period for dominance smoothing (1-20, default: 5)
- **Number of Channels**: Market Profile resolution (10-50, default: 20)
- **Color Settings**: Customize buyer, seller, and neutral colors
## 🎨 VISUAL ELEMENTS
- **Histogram**: Shows smoothed dominance score (green = buyers, red = sellers)
- **Zero Line**: Neutral equilibrium reference
- **Overbought/Oversold Lines**: ±50 levels marking extreme dominance
- **Background Color**: Highlights current market state
- **Information Table**: Displays key metrics (state, dominance, POC relationship, volume imbalance, timeframe, bars in session, total volume)
- **Signal Shapes**: Triangle markers for buy/sell signals
## 🔔 ALERTS
The indicator includes three alert conditions:
1. **Buyers Dominate** - Fires on buy signal crossovers
2. **Sellers Dominate** - Fires on sell signal crossovers
3. **Dominance Shift** - Fires when dominance crosses zero line
## 📊 BEST PRACTICES
### **Timeframe Selection**
- **Scalping (1-5min)**: Focus on 2H-4H dominance shifts
- **Day Trading (15-60min)**: Monitor Daily and Weekly structure
- **Swing Trading (4H-Daily)**: Track Weekly and Monthly dominance
### **Confirmation Strategies**
1. **Trend Following**: Enter in direction of dominance above/below ±20
2. **Reversal Trading**: Fade extreme readings beyond ±50 when diverging with price
3. **Breakout Trading**: Look for dominance expansion beyond ±30 with increasing volume
### **Risk Management**
- Avoid trading during NEUTRAL states (dominance between -10 and +10)
- Use POC levels as logical stop-loss placement
- Consider VAH/VAL as profit targets for mean reversion
## ⚠️ LIMITATIONS & WARNINGS
**Data Requirements**
- Requires sufficient historical data on current chart (minimum 100 bars recommended)
- Lower timeframes may show fewer bars per HTF session initially
- More accurate results after several complete HTF sessions have formed
**Not a Standalone System**
- This indicator analyzes market structure and participant control
- Should be combined with price action, support/resistance, and risk management
- Does not guarantee profitable trades - past dominance does not predict future results
**Repainting Characteristics**
- Higher timeframe levels (POC, VAH, VAL) update as new bars form within the session
- Dominance score recalculates with each new bar
- Historical signals remain fixed, but current session data is developing
**Volume Limitations**
- Uses exchange-provided volume data which varies by instrument type
- Forex and some CFDs use tick volume (not actual transaction volume)
- Most accurate on instruments with reliable volume data (stocks, futures, crypto)
## 🔍 TECHNICAL NOTES
**Performance Optimization**
- Uses `max_bars_back=5000` for extended historical analysis
- Efficient array management prevents memory issues
- Automatic cleanup of session data on new period
**Calculation Method**
- Market Profile uses actual volume distribution, not TPO (Time Price Opportunity)
- Value Area expansion follows traditional Market Profile auction theory
- All calculations occur on the chart's current symbol and timeframe
## 📚 EDUCATIONAL VALUE
This indicator helps traders understand:
- How institutional traders use Market Profile to identify fair value
- The relationship between price, volume, and market acceptance
- Multi-factor analysis techniques for assessing market conditions
- The importance of higher timeframe structure in trade planning
## 🎓 RECOMMENDED READING
To better understand the concepts behind this indicator:
- "Mind Over Markets" by James Dalton (Market Profile foundations)
- "Markets in Profile" by James Dalton (Value Area analysis)
- Volume Profile analysis in institutional trading
## 💬 USAGE TERMS
This indicator is provided as an educational and analytical tool. It does not constitute financial advice, investment recommendations, or trading signals. Users are responsible for their own trading decisions and should conduct their own research and due diligence.
Trading involves substantial risk of loss. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose.
Average Dollar Volume by Mashrab
Standard Mode: By default, it shows a 20-period SMA of the Dollar Volume. This is great for swing trading to see if money flow is increasing over days.
Day Trading Mode: Go to the indicator settings (User Input) and check "Reset Average Daily".
The line will now represent the Cumulative Average for today only.
Example: If it's 10:00 AM, the line shows the average dollar volume per bar since the market opened at 9:30 AM. This helps you spot if the current 5-minute bar is truly igniting compared to the rest of the morning.
How to Use for Day Trading
Add the script to your 1-minute chart.
Ensure "Reset Average Daily" is checked in the settings (I made it default to true for you).
Look at the Table in the top right:
Avg Dollar Vol: This tells you the average money flowing into the stock per minute today.
1% Threshold: This gives you the exact number your friend likely uses to gauge "minimum viable liquidity" or specific risk calculations.
ATR Channel (Bottom & Top)The ATR Channel (Bottom & Top) indicator dynamically visualizes market volatility zones based on the Average True Range (ATR). It automatically builds adaptive upper and lower boundaries around the current price, helping traders identify potential market extremes, volatility-driven reversals, and dynamic support/resistance levels.
This version is specifically optimized for Bitcoin (BTCUSDT) but works with any asset or timeframe.
⚙️ How It Works
The indicator calculates ATR over a user-defined period (default 200) and applies separate multipliers for the top and bottom bands (default ×1).
The Top Band = Close + (ATR × Multiplier)
The Bottom Band = Close - (ATR × Multiplier)
These two adaptive bands create a volatility envelope, allowing traders to visualize where the price may encounter potential exhaustion or reversal zones.
💡 Signal Logic
LONG Signal (Green Tab):
Triggered when the low of the candle touches or dips below the ATR bottom line — suggesting a possible oversold or volatility-based bottoming area.
The label displays the exact ATR line value (not the close), formatted for better readability (e.g. “LONG\n103 885”).
SELL Signal (Red Tab):
Triggered when the high of the candle touches or exceeds the ATR top line — signaling possible overbought conditions or an exhaustion zone.
Signal Filtering:
The script intelligently avoids duplicate signals — e.g., multiple consecutive LONGs or SELLs will not appear until the opposite signal is triggered.
This ensures cleaner visualization and reduces signal noise during consolidation periods.
🎯 Features
✅ Adaptive ATR-based volatility channel
✅ Automatic LONG/SELL signal labeling with real ATR-touch prices
✅ Customizable parameters:
✅ Intelligent filtering (one signal per phase)
✅ Works on any market and timeframe (crypto, forex, indices, stocks)
🧭 Trading Applications
Identify volatility extremes (ATR-based overbought/oversold zones)
Detect reversal points or exhaustion moves after extended trends
Use with trend filters (e.g. EMA200) to confirm trend continuation vs mean reversion setups
Combine with oscillators (RSI, Stoch) for confluence signals
📊 Summary
The ATR Channel (Bottom & Top) provides a clear, professional-grade visualization of volatility dynamics and price extremes.
It is especially useful for traders using mean-reversion, volatility breakout, or swing-trading strategies — helping them identify statistically significant reaction zones and improving trade timing precision.
Major exchages total Open interest & Long/Short OI trends📊 Indicator: Major Exchanges Total OI & Long/Short Trends
This Pine Script™ indicator is designed to provide a comprehensive analysis of Open Interest (OI) and Long/Short position trends across major cryptocurrency exchanges (Binance, Bybit, OKX, Bitget, HTX, Deribit). It serves as a powerful tool for traders seeking to understand market liquidity, participant positioning, and overall market sentiment.
🔑 Key Features and Functionalities
Aggregated Multi-Exchange Open Interest (OI):
Consolidates real-time Open Interest data from user-selected major cryptocurrency exchanges.
Provides a unified view of the total OI, offering insights into the collective market liquidity and the aggregate size of participants' open positions.
Visualized Combined OI Candles:
Presents the aggregated total OI data in a candlestick chart format.
Displays the Open, High, Low, and Close of the combined OI, with color variations indicating increases or decreases from the previous period. This enables intuitive visualization of OI trend shifts.
Estimated Long/Short OI and Visualization:
Calculates and visualizes estimated Long and Short position Open Interest based on the total aggregated OI data.
Estimation Logic:
Employs a sophisticated logic that considers both price changes and OI fluctuations to infer the balance between Long and Short positions. For instance, an increase in both price and OI may suggest an accumulation of Long positions, while a price decrease coupled with an OI increase might indicate growing Short positions.
Initial 50:50 Ratio:
The estimation for Long/Short OI begins with an assumption of a 50:50 ratio at the initial data point available for the selected timeframe. This establishes a neutral baseline, from which subsequent price and OI changes drive the divergence and evolution of the estimated Long/Short balance.
Flexible Visualization Options:
Allows users to display Long/Short OI data in either line or candlestick styles, with customizable color schemes. This flexibility aids in clearly discerning bullish or bearish positioning trends.
💡 Development Background
The development of this indicator stems from the critical importance of Open Interest data in the cryptocurrency derivatives market. Recognizing the limitations of analyzing individual exchange OI in isolation, the primary objective was to integrate data from leading exchanges to offer a holistic perspective on market sentiment and overall positioning dynamics.
The inclusion of the Long/Short position estimation feature is crucial for deciphering the specific directional biases of market participants, which is often not evident from raw OI data alone. This enables a deeper understanding of how positions are being accumulated or liquidated, moving beyond simple OI change analysis.
Furthermore, a key design consideration was to leverage the characteristic where the indicator's data start point dynamically adjusts with the chart's timeframe selection. This allows for the analysis of short-term Long/Short trends on shorter timeframes and long-term trends on longer timeframes. This inherent flexibility empowers traders to conduct analyses across various time scales, aligning with their diverse trading strategies.
🚀 Trading Applications
Leveraging Combined Open Interest (OI):
Trend Confirmation: A sustained increase in total OI signifies growing market interest and capital inflow, potentially confirming the strength of an existing trend. Conversely, decreasing OI may suggest diminishing participant interest or widespread position liquidation.
Validation of Price Extremes: If price forms a new high but OI fails to increase or declines, it could signal a potential trend reversal (divergence). Conversely, a sharp increase in OI during a price decline might indicate a surge in short positions or renewed selling pressure.
Identifying Volatility Triggers: Monitoring rapid shifts in OI during significant news events or market catalysts can help assess immediate market reactions and liquidity changes.
📈Utilizing Long/Short OI Trends
Assessing Market Bias: A sustained dominance or rapid increase in Long OI suggests a prevalent bullish sentiment, which could inform decisions to enter or maintain long positions. The inverse scenario indicates bearish sentiment and potential short entry opportunities.
Anticipating Squeezes: The indicator can help identify scenarios conducive to short or long squeezes. Excessive short positioning followed by a price uptick can trigger a short squeeze, leading to rapid price appreciation. Conversely, an oversupply of long positions preceding a price drop can result in a long squeeze and sharp declines.
Divergence Analysis: Divergences between price action and Long/Short OI estimates can signal potential trend reversals. For example, if price is rising but the increase in Long OI slows down or Short OI begins to grow, it may suggest weakening buying pressure.
🕔Timeframe-Specific Trend Analysis:
Shorter Timeframes (e.g., 1m, 5m, 15m): Ideal for identifying short-term shifts in participant positioning, beneficial for day trading and scalping strategies. Provides insights into immediate market reactions to price movements.
Longer Timeframes (e.g., 1h, 4h, Daily): Valuable for evaluating broader positioning trends and the sustainability or potential reversal of medium-to-long-term trends. Offers a macro perspective on Long/Short dynamics, suitable for swing trading or long-term investment strategies.
This indicator integrates complex market data, provides nuanced Long/Short position estimations, and offers multi-timeframe analytical capabilities, empowering traders to make more informed and strategic decisions.
MACD crossover while RSI Oversold/Overbought# MACD Crossover with RSI Overbought/Oversold Indicator Explained
## Indicator Overview
This is a trading signal system that combines two classic technical indicators: **MACD (Moving Average Convergence Divergence)** and **RSI (Relative Strength Index)**. Its core logic is: MACD crossover signals are only triggered when RSI is in extreme zones (overbought/oversold), thereby filtering out many false signals and improving trading accuracy.
## Core Principles
### 1. **Dual Confirmation Mechanism**
This indicator doesn't use MACD or RSI alone, but requires both conditions to be met simultaneously:
- **Short Signal (Orange Triangle)**: MACD bearish crossover (fast line crosses below signal line) + RSI was overbought (≥71)
- **Long Signal (Green Triangle)**: MACD bullish crossover (fast line crosses above signal line) + RSI was oversold (≤29)
### 2. **RSI Memory Function**
The indicator checks the RSI values of the current and past 5 candlesticks. As long as any one of them reaches the overbought/oversold level, the condition is satisfied. This design avoids overly strict requirements, as RSI may have already left the extreme zone before the MACD crossover occurs.
```pine
wasOversold = rsi <= 29 or rsi <= 29 or ... or rsi <= 29
wasOverbought = rsi >= 71 or rsi >= 71 or ... or rsi >= 71
```
## Parameter Settings
### MACD Parameters
- **Fast MA**: 12 periods (adjustable 7-∞)
- **Slow MA**: 26 periods (adjustable 7-∞)
- **Signal Line**: 9 periods
### RSI Parameters
- **Oversold Threshold**: 29 (traditional 30)
- **Overbought Threshold**: 71 (traditional 70)
- **Calculation Period**: 14
## Visual Elements
### 1. **Signal Markers**
- 🔻 **Orange Downward Triangle**: Appears above the candlestick, labeled "overbought", indicating a shorting opportunity
- 🔺 **Green Upward Triangle**: Appears below the candlestick, labeled "oversold", indicating a long opportunity
### 2. **Price Level Lines**
- **Orange Dashed Line**: Extends rightward from the high of the short signal, serving as a potential resistance level
- **Green Dashed Line**: Extends rightward from the low of the long signal, serving as a potential support level
Each time a new signal appears, the old level line is deleted, keeping only the most recent reference line.
## Trading Logic Explained
### Short Signal Scenario
1. Price rises, RSI surges above 71 (market overheated)
2. Momentum subsequently weakens, MACD fast line crosses below signal line
3. Indicator draws an orange triangle at the high, alerting to reversal risk
4. Orange dashed line marks the high point of the short entry position
### Long Signal Scenario
1. Price falls, RSI drops below 29 (market oversold)
2. Selling pressure exhausted, MACD fast line crosses above signal line
3. Indicator draws a green triangle at the low, suggesting a rebound opportunity
4. Green dashed line marks the low point of the long entry position
## Advantages and Limitations
### ✅ Advantages
- **Filters Noise**: Reduces false signals through dual confirmation
- **Captures Reversals**: Catches trend reversals in extreme conditions
- **Visual Clarity**: Level lines help identify support/resistance
- **Built-in Alerts**: Can set up message push notifications
### ⚠️ Limitations
- **Lag**: Both indicators are lagging, signals may be delayed
- **Poor Performance in Ranging Markets**: Prone to whipsaws during consolidation
- **Needs Other Analysis**: Should not be the sole decision-making basis
- **Parameter Sensitivity**: Different markets and timeframes may require parameter adjustments
## Practical Trading Suggestions
1. **Confirm Trend Context**: Counter-trend signals carry high risk in strong trending markets
2. **Combine with Candlestick Patterns**: Confirm with patterns (such as engulfing, hammer candles)
3. **Set Stop Losses**: Use level lines as stop-loss references (long stop below green line, short stop above orange line)
4. **Watch Volume**: Signals accompanied by high volume are more reliable
5. **Multi-Timeframe Verification**: Signals appearing simultaneously on daily and 4-hour charts are more credible
## Summary
This indicator follows the "mean reversion from extremes" philosophy, seeking reversal opportunities when market sentiment becomes excessive. It's suitable for auxiliary judgment, particularly in swing trading and position trading strategies. But remember, no indicator is perfect—always combine risk management and multi-dimensional analysis when making trading decisions






















