CUSUM Volatility BreakoutCUSUM Volatility Breakout A statistical trend-detection and volatility-breakout indicator that identifies subtle momentum shifts earlier than traditional tools.
OVERVIEW
The CUSUM control chart is a statistical tool designed to detect small, gradual shifts from a target value. In trading, it helps identify the early stages of a trend, giving traders a heads-up before momentum becomes obvious on standard price charts. By spotting these subtle movements, the CUSUM Volatility Breakout indicator (CUSUM VB) can highlight potential breakout opportunities earlier than traditional indicators. In other words, a statistical trend detection & breakout indicator.
Copyright © 2025 CoinOperator
HOW IT WORKS
CUSUM VB uses a combination of differenced price series, volume normalization, and dynamic control limits:
CUSUM Principle: Tracks cumulative deviations of price from a zero reference. Signals occur when cumulative deviations exceed a control limit shown on the chart and clears any enabled filters.
Adaptive Volatility: H adjusts automatically based on short- vs long-term ATR ratios, allowing faster detection during volatile periods and reduced false signals in calm markets.
Volume Weighting (optional): Amplifies price CUSUM values during high-volume bars to prioritize market participation strength.
ATR Confirmation (optional): Ensures breakouts are accompanied by expanded volatility.
Bollinger Band Squeeze Integration (optional): Confirms trend breakouts by detecting volatility contraction and release shown on the chart as triangles.
Signals:
Arrows on the price chart mark the bars where trades are actually filled, based on conditions detected on the prior signal bar.
Long Entry: Confirmed positive CUSUM breach (price & volume) with BB breakout (signal bar).
Short Entry: Confirmed negative CUSUM breach (price & volume) with BB breakout (signal bar).
Exit Signals: Triggered automatically by opposite-side signals.
Alerts, when created, fire on the bars where fills occur.
CHART COMPONENTS
CUSUM Upper Price (CU Price) and CUSUM Lower Price (CL Price) are green/red circles for confirmed signals.
● Rapid upward accumulation of CU Price indicates a developing bullish trend.
● Rapid downward accumulation of CL Price indicates a developing bearish trend.
Decision/Control limits (UCL/LCL, red)
Zero line (reference for the differenced price series baseline)
Optional BB triangles and volume CUSUM
SETUP AND CONFIGURATION
Differenced Price Series
Differenced Price Length and Lag
Increase differencing lag or window length → Increases variance of residuals → Wider control limits (UCL/LCL) → Slower to trigger.
Decrease lag or window → Tighter limits, more responsive to short-term regime shifts.
CUSUM Parameters
Volume-Weighted CUSUM
NOTE : Uses price length if 'Confirm Price with Volume' is disabled, otherwise will use volume length.
Amplifies CUSUM price responses during high-volume bars and reduces them during low-volume bars. This links trend detection to market participation strength.
Volume-Weighted CUSUM doesn’t replace price confirmation with volume; it modulates it by volume intensity, amplifying price signals when participation is strong and suppressing them when weak.
Recommended when analyzing assets with consistent volume patterns (e.g., stocks, major futures).
Disable for low-liquidity or irregular-volume instruments (e.g., crypto pairs, small-cap stocks).
ATR Confirmation
Enable this feature to confirm CUSUM signals only when price deviations are accompanied by higher-than-normal volatility. The indicator compares current ATR to a smoothed ATR to detect volatility expansion. This helps distinguish true breakouts from low-volatility noise and reduces false signals during quiet periods.
Adjust the ATR lookback length, smoothing length, and expansion factor to control sensitivity. Rule of thumb:
ATR Length ≈ 0.5 × differenced price length to 1.5 × differenced price length gives balanced sensitivity.
ATR Smoothing 5–10 bars.
ATR Expansion 5% to 50%.
CUSUM Input Mode
Select how CUSUM processes differenced price and log-normalized volume — either directly (Txfrm Data) or as deviations from a short-term EMA baseline (Residuals):
Txfrm Data = transformed input: differenced price & log-normalized volume as input for CUSUM (larger swings, more frequent control limit breaches)
Residuals = deviation from short-term EMA baseline (smaller swings, fewer control limit breaches, but higher signal quality).
Residual EMA Length: Defines how quickly the residual baseline adapts to recent differenced price moves. Shorter = more reactive; longer = smoother baseline. Keep EMA length moderate; over-smoothing can distort timing.
Control Sensitivity (K)
Increase K → Less sensitive → CUSUM accumulates slower → Fewer signals, captures only major trends.
Decrease K → More sensitive → CUSUM accumulates faster → More signals, captures minor swings too.
Reset Mode : Method of resetting CUSUM values.
Immediate Reset: Reset both immediately after any signal breach. Traditional SPC.
Opposite-Side Reset: Reset only the opposite side when a valid signal fires. Best for ongoing trend tracking.
Decay Reset: Gradually reduce CUSUM values toward zero with a decay factor each bar. Maintains trend memory but allows slow “forgetting.”
Threshold Reset: Reset only if CUSUM returns below a small threshold (10 % of H). Filters noise without full wipe.
No Reset / Continuous: Never reset; instead track running totals. Long-term cumulative bias measurement.
Conflict Handling : Method of handling conflicting signals.
Ignore Both: Discards both when overlap occurs.
Prioritize Latest: Chooses the direction implied by the most recent close.
Prioritize Stronger: Compares absolute magnitudes of CU Price vs CL Price.
Average Resolve: Looks at the difference; small overlap → ignore, otherwise pick direction by sign.
Sequential Confirm: Requires N consecutive same-direction signals before confirmation.
Volume Parameters (Optional)
Amplification Factor
Adjusts volume sensitivity and effectively rescales the log series of volume to a comparable magnitude with price changes.
Since price and volume are normalized in a compatible way, the amplification factor is used instead of independent K and H values for volume.
Bollinger Bands (Optional)
Lookback Synchronization
BB Lookback (for CUSUM): Number of bars that define a window for the BB signal to look back for the CUSUM signal.
CUSUM Lookback (for BB): Number of bars that define a window for the CUSUM signal to look back for the BB signal.
Both can be enabled for stricter alignment.
Relationship Between K, H, ARL₀ and ARL₁
H (max) is usually the only H you need to adjust. With everything else being constant, increasing either K or H (max) generally increases both ARL₀ and ARL₁ : higher thresholds reduce false alarms but slow detection, and lower thresholds do the opposite.
Increase Min Target ARL ratio →
ARL₀ increases (safer, fewer false alarms)
ARL₁ decreases or stays small (faster detection)
Control limits slightly expand to achieve separation
Strategy becomes more selective and stable
Decrease Min Target ARL ratio →
ARL₀ decreases (more false alarms tolerated)
ARL₁ increases (slower detection tolerated)
Control limits tighten
Strategy becomes more sensitive but lower quality
The ARL Ratio of ARL₀ / ARL₁ is typically between 3 and 8. This implies you want your ARL₀ (false-alarm interval) ≈ 'Min Target ARL ratio' × differenced price length window.
Example:
"Min Target ARL ratio = 4.0"
⇒ implies you want your ARL₀ (false-alarm interval) ≈ 4 × differenced price length.
Assume price length = 50 (typical differencing window).
ARL ratio = 4.0 → target ARL = 4 × 50 = 200 bars.
● On a 6-hour chart (≈4 bars/day) → ~50 days between expected false alarms (on average).
● On a daily chart → ~200 trading days between false alarms (very conservative).
ARL ratio = 8.0 → target ARL = 400 bars → twice as infrequent signals vs ratio=4.
ARL ratio = 2.0 → target ARL = 100 bars → about half the inter-signal interval.
Another way to think about it: probability of a false alarm on any bar ≈ 1 / target ARL. If you want ~1% of bars producing alarms, target ARL ≈ 100.
QUICK START
Start with the defaults.
Set price series → length/order/lag
Configure CUSUM thresholds → K, H min/max
1. Adjust the price differencing lag/window.
2. Verify that it captures real price inflection points without overreacting to bar noise.
Enable optional filters → Volume, ATR, BB
The optional Bollinger Bands squeeze usually works best if used with CUSUM Input Mode = Txfrm Data.
Monitor CUSUM chart → CU Price, CL Price, thresholds, zero line
Act on signals → data window / chart triangles
Adjust sensitivity → H (max), K, lengths
Monitor ARL ratio and CUSUM behavior for fine-tuning
Note : When you’ve finalized the length, lag, and order of the Price Difference, as well as the Ln(Vol) Series of “Confirm Price with Volume” if enabled, then pass both through the Augmented Dickey–Fuller (ADF) mean reversion test to ensure they are stationary, i.e., mean reverting. You can find a ready-made indicator for such use at . Many thanks to tbtkg for this indicator.
SUMMARY
CUSUM VB combines CUSUM statistical control, volatility-adaptive thresholds, volume weighting, and optional BB breakout confirmation to provide robust, actionable signals across a wide variety of trading instruments.
Why traders use it : Fast detection of shifts, reduced false alarms, versatile across markets.
Ideal for : Futures (continuous contracts), forex, crypto, stocks, ETFs, and commodity/index CFDs, especially where:
● Price and volume data exist
● Breakouts and volatility shifts are tradable
● There’s enough liquidity for meaningful signals
Visualization : Upper/lower CUSUM circles, UCL/LCL thresholds, optional highlight traded background, optional volume and BB overlays on the chart, optional entry/exit labels on the price chart, as well as entry/exit signals in the data window.
Alerts : For entry/exit labels when trades are actually filled.
CUSUM VB is designed for traders who want statistically grounded trend detection with configurable sensitivity, visual clarity, and multi-market versatility.
DISCLAIMER
This software and documentation are provided “as is” without any warranties of any kind, express or implied. CoinOperator assumes no responsibility or liability for any errors, omissions, or losses arising from the use or interpretation of this software or its outputs. Trading and investing carry inherent risks, and users are solely responsible for their own decisions and results.
Breakout
Wedge Pattern [Kodexius]Wedge Pattern is a chart-overlay indicator designed to detect and manage classic Rising Wedge (bearish) and Falling Wedge (bullish) structures using strict, rules-based validation. The script focuses on producing clean, tradable wedge prints by building both boundaries from confirmed pivot swings, enforcing a mandatory “no closes outside the wedge” condition during formation, and requiring the wedge apex to be projected into the future to avoid premature or distorted patterns.
This implementation is built for practical execution charts. It continuously updates the active wedge boundaries in real time, clearly labels the pattern type, and reacts decisively when price confirms a valid breakout. When enabled, it also projects a measured-move target derived from the wedge geometry, so the trader can quickly evaluate reward potential without manual projection.
The detection logic is intentionally conservative. Rather than printing every possible converging structure, it aims to identify wedges that respect structural integrity: multiple touches on each boundary, controlled price action inside the converging range, and a valid convergence point (apex) ahead of the current bar. The result is a wedge tool that prioritizes quality, readability, and consistent behavior across symbols and timeframes.
🔹 Features
🔸 Rising and Falling Wedge Detection (Trendline Based)
The indicator detects two wedge types by constructing an upper trendline from pivot highs and a lower trendline from pivot lows:
Rising Wedge (Bearish): both lines slope upward, and the lower line rises faster than the upper line, creating a tightening upward channel that typically resolves with a downside break.
Falling Wedge (Bullish): both lines slope downward, and the upper line falls faster than the lower line, producing a tightening downward channel that typically resolves with an upside break.
This slope relationship is the core wedge classifier. It ensures the script is not just drawing random converging lines, but explicitly requires the characteristic “compression” geometry that defines wedges.
🔸 Pivot-Confirmed Structure with User Control
Wedges are built from confirmed pivots using:
Pivot Left and Pivot Right inputs to control how “strict” a pivot must be.
Min. Touches per Line to enforce multiple confirmations on each boundary.
Standard technical analysis commonly requires at least three touches to validate a trendline. This script supports that workflow by requiring a minimum number of pivot points before a wedge is eligible for drawing.
🔸 Mandatory Integrity Rule: No Closes Outside the Boundaries
A key quality filter is applied before a wedge can be accepted:
During formation, no candle close is allowed outside the upper or lower boundary.
If any close is detected above the upper line or below the lower line (with tick tolerance), the candidate wedge is rejected. This prevents patterns that already “broke” before they were formally detected and reduces false positives caused by messy price action.
🔸 Apex Validation to Avoid Distorted Prints
The wedge apex (the projected intersection point of the two trendlines) must be in the future. This avoids degenerate cases where lines intersect behind current price, which often indicates the structure is not a valid wedge or is already past its useful phase.
🔸 Live Updating Boundaries for Active Patterns
Once a wedge becomes active, its upper and lower lines are extended forward bar by bar. The script recalculates the boundary price at the current bar index using the stored slope, then updates the line endpoints so the wedge remains visually accurate as time advances.
🔸 Breakout Engine with Directional Confirmation
The script differentiates between:
Correct breakout: the wedge breaks in the expected direction.
Rising wedge breaks downward (close below the lower boundary).
Falling wedge breaks upward (close above the upper boundary).
When this happens, the wedge is marked as broken and labeled as BREAKOUT on the chart.
🔸 Invalidation and Failure Handling
If price violates the wedge in the wrong direction, or if the wedge collapses into an impossible structure (upper boundary falls below or equals the lower boundary), the wedge is flagged as FAILED. This keeps signals honest and prevents lingering drawings that no longer represent a valid pattern.
🔸 Optional Target Projection (Measured Move)
When Show Target Projection is enabled, the script plots a dashed target line and a target label after a valid breakout. The target is computed as a measured move using the wedge height, projected from the breakout boundary in the breakout direction. This provides an immediate objective reference for potential continuation.
🔸 Clean Object Management and Chart Readability
To maintain clarity, the script manages the “active” wedge per type:
If a new wedge is detected while an older one is still active and not broken or failed, the old drawings are removed and replaced with the newer valid pattern.
This prevents chart clutter and keeps the display focused on the most relevant wedge structures.
🔹 Calculations
1) Pivot Collection
The script uses pivot functions to confirm swing points:
float ph = ta.pivothigh(high, INPUT_PIVOT_LEFT, INPUT_PIVOT_RIGHT)
float pl = ta.pivotlow(low, INPUT_PIVOT_LEFT, INPUT_PIVOT_RIGHT)
if not na(ph)
pivot_highs.push(Coordinate.new(bar_index - INPUT_PIVOT_RIGHT, ph))
if not na(pl)
pivot_lows.push(Coordinate.new(bar_index - INPUT_PIVOT_RIGHT, pl))
Each pivot is stored as a Coordinate containing:
index: the bar index where the pivot is confirmed
price: the pivot high or pivot low value
The arrays are capped (for example, last 20 pivots) to control memory and keep selection relevant.
2) Trendline Construction and Slope
A wedge candidate uses the earliest and latest required pivot points for each line. For each boundary, slope is computed as:
method calc_slope(Trendline this) =>
(this.end.price - this.start.price) / (this.end.index - this.start.index)
With slope known, the trendline value at any bar index is:
method get_price_at(Trendline this, int bar_idx) =>
this.start.price + this.slope * (bar_idx - this.start.index)
This approach allows the script to update wedge boundaries consistently without re-fitting lines on every bar.
3) Wedge Type Classification (Geometry Rules)
After both slopes are calculated, wedge type is determined by slope direction and relative steepness:
Rising wedge requires both slopes positive and lower slope greater than upper slope.
Falling wedge requires both slopes negative and upper slope more negative than lower slope (upper line falls faster).
In code logic:
if tl_up.slope > 0 and tl_lo.slope > 0 and tl_lo.slope > tl_up.slope
w_type := 1 // Rising
if tl_up.slope < 0 and tl_lo.slope < 0 and tl_up.slope < tl_lo.slope
w_type := 2 // Falling
This enforces converging boundaries and avoids simple parallel channels.
4) Apex Projection (Trendline Intersection)
The apex is the projected intersection x-coordinate of the two trendlines:
method get_apex_index(Wedge this) =>
float m1 = this.upper.slope
float m2 = this.lower.slope
float y1 = this.upper.start.price
float y2 = this.lower.start.price
int x1 = this.upper.start.index
int x2 = this.lower.start.index
float apex_x = (y2 - y1 + m1 * x1 - m2 * x2) / (m1 - m2)
math.round(apex_x)
Validation requires:
apex_idx > bar_index (apex must be in the future)
This prevents late or structurally invalid wedges from being activated.
5) Mandatory “No Close Outside” Validation
Before activation, the script verifies the pattern has not been violated by candle closes:
method check_violation(Wedge this, int from_idx, int to_idx) =>
bool violated = false
for i = from_idx to to_idx
float up_p = this.upper.get_price_at(i)
float lo_p = this.lower.get_price_at(i)
float c_p = close
if c_p > up_p + syminfo.mintick or c_p < lo_p - syminfo.mintick
violated := true
break
violated
Interpretation:
For every bar from wedge start to current bar, the close must remain between the projected upper and lower boundary prices.
A tick tolerance (syminfo.mintick) is used to reduce micro false violations.
6) Live Update and Breakout Detection
Once active, lines are extended to the current bar and boundary prices are computed:
float u_p = w.upper.get_price_at(bar_index)
float l_p = w.lower.get_price_at(bar_index)
bool b_up = close > u_p
bool b_dn = close < l_p
Correct breakout conditions:
Rising wedge breakout: close below lower boundary.
Falling wedge breakout: close above upper boundary.
if (w.is_rising and b_dn) or (not w.is_rising and b_up)
w.is_broken := true
Invalidation rules include:
wrong-direction break
boundary crossover (upper <= lower)
7) Target Projection (Measured Move)
If target display is enabled, the script calculates wedge height and projects a target from the breakout side:
float m = math.abs(w.upper.start.price - w.lower.get_price_at(w.upper.start.index))
float t = w.is_rising ? l_p - m : u_p + m
Interpretation:
m represents the wedge height near the start of the formation.
t is the target price, projected in the breakout direction.
Rising wedge: target below the lower boundary.
Falling wedge: target above the upper boundary.
A dashed target line and label are then placed forward in time for readability.
Volume Edge Pro[wjdtks255]Volume Edge Pro: Indicator Description
Volume Edge Pro is an advanced volume analysis tool designed to identify institutional accumulation and significant supply levels. Unlike standard volume bars, this indicator categorizes trading volume into four distinct types based on price action and historical comparisons, helping traders spot high-probability breakout opportunities.
Key Components:
Blue Bars (PPV - Pocket Pivot Volume): Indicates institutional accumulation. It appears when up-day volume exceeds the highest down-day volume of the last 10 trading sessions.
Green Bars (RGV - Recent Green Volume): Represents strong buying pressure where up-day volume is higher than the 50-period moving average.
Red Bars (RRV - Recent Red Volume): Signifies heavy supply or selling pressure where down-day volume is higher than the 50-period moving average.
Grey Bars: Represents standard market volume without significant institutional involvement.
Trading Strategy (How to Trade)
1. Identifying Accumulation (The Base)
Look for multiple Blue Bars (PPV) during a consolidation phase or within a "base." This suggests that "Smart Money" is quietly accumulating shares without significantly driving up the price yet.
2. The Buy Signal
The ideal entry point is when the price breaks out of a consolidation resistance level, especially when the breakout is confirmed by a Blue (PPV) or Green (RGV) bar. The presence of PPV signals within the base increases the reliability of the breakout.
3. Overcoming Supply (The RRV Rule)
When a Red Bar (RRV) appears, it marks a level of "unconsumed supply."
Treat the high of the RRV candle as a resistance level.
A bullish reversal or continuation is confirmed only when the price reclaims the high of the RRV day or when subsequent PPVs/RGVs overwhelm the previous selling volume.
4. Risk Management
If a massive Red Bar (RRV) appears after a long uptrend and the price breaks below the prior support, it may indicate institutional distribution (selling), signaling a time to exit or tighten stop-losses.
Nifty Darvas Box Long And Short SignalNifty Darvas Box Long And Short Signal – Smart Risk–Reward Indicator
This indicator is designed for traders who focus on clean entries, disciplined risk management, and long-term profitability rather than noisy buy/sell signals.
It is based on the Darvas Box breakout concept, enhanced with clear entry signals, fixed target & stop-loss visualization, and advanced performance metrics.
Key Features
1. Entry-Only Signals
Displays only ENTRY LONG and ENTRY SHORT signals for a clean and distraction-free chart.
No repeated BUY/SELL signals and only one active trade at a time.
2. Darvas Box Breakout Logic
Long entry is generated when price breaks above the previous Darvas High.
Short entry is generated when price breaks below the previous Darvas Low.
3. Clear Risk–Reward Visualization
Green shaded area represents the Target (Reward zone).
Red shaded area represents the Stop-Loss (Risk zone).
Both zones remain active until the trade is closed.
4. Automatic Trade Outcome Labels
Clearly marks each trade result with:
TARGET HIT or STOPLOSS HIT.
5. Live Performance Statistics on Chart
Displays real-time trading performance including:
Total Target Hit
Total StopLoss Hit
Win Rate (%)
6. Expectancy-Focused Design
Helps traders evaluate long-term profitability instead of relying only on win rate.
Disclaimer
This indicator is for educational purposes only and should not be considered financial advice. You should perform your own analysis before taking trades.
MACD H&S Breakout ScannerMACD H&S Breakout Scanner (FX24HR HSB)
This tool automatically scans any market and timeframe for high‑probability Head & Shoulders (H&S) and Inverse Head & Shoulders (IH&S) reversal patterns, filtered by MACD momentum.
This indicator detects structural H&S / IH&S patterns using pivot logic with adjustable sensitivity.
Draws a dynamic neckline connecting the key swing lows/highs of the pattern.
Uses MACD (12/26/9) to verify momentum exhaustion:
Bearish H&S: LS & Head form with MACD above zero, right shoulder forms as MACD loses strength and moves toward/through the zero line.
Bullish IH&S: LS & Head form with MACD below zero, right shoulder forms with MACD already at/above zero, confirming a bullish shift.
Highlights the full pattern path (LS → Head → RS) and neckline, giving a clean visual map for manual entries, alerts, or further confluence (RSI, volume, S/R, etc.).
Supports multi‑timeframe context: you can optionally project higher‑timeframe patterns onto your trading chart for better top‑down analysis.
This is an indicator, not an auto‑strategy. It is designed to help traders:
Quickly spot quality reversal structures.
Filter out weak patterns where MACD does not confirm exhaustion/shift.
Build their own entry/exit rules around neckline breaks, retests, and other confirmation tools.
Best used on 15m–4H for FX, indices, gold, and crypto, but it works on any symbol and timeframe.
© forex24hr.com – All rights reserved.
Disclaimer
This script is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Past performance of any strategy or indicator does not guarantee future results. Trading involves substantial risk and may not be suitable for all investors. You are solely responsible for your own trading decisions and for managing your risk at all times. Always do your own research and, if necessary, consult a licensed financial advisor before trading.
Ash_TheTrader Algo : Smart Structure & Liquidity🚀 The "Code" to Market Structure: How to Find the Real Trend with "Ash_TheTrader Algo"
Why do 90% of traders fail? Because they try to catch falling knives instead of riding the wave.
They buy support in a downtrend. They sell resistance in an uptrend. They get crushed by the "Trend."
But seeing the real Market Structure in real-time is hard... until now.
I have engineered the Ash_TheTrader Algo to solve the biggest problem in trading: Directional Bias. It automates Institutional Market Structure (SMC) so you never trade against the flow of money again.
Here is how to use the "Structure & Zones" engine to trade like a pro.
---
🧠 THE ENGINE: How "Ash_TheTrader " Maps the Market
Retail traders look at price. Institutions look at Structure . This Algo visualizes the institutional roadmap:
1. The Roadmap (Smart Structure): It automatically detects BOS (Break of Structure) for trend continuation and CHoCH (Change of Character) for trend reversals. No more guessing if the trend has changed.
2. The Fortress (Smart Zones): It draws High-Timeframe (HTF) Supply & Demand zones. Crucially, these are Auto-Flipping —if a Supply Zone is broken, it turns into Demand instantly.
3. The Verification (Dashboard): It doesn't just show one timeframe. It checks if the LTF (Lower Timeframe) and HTF (Higher Timeframe) structures align.
---
📉 THE STRATEGY: The "Zone & Structure" Play
Stop taking random trades. Use this "Structure-First" checklist.
🟢 SETUP 1: The "Trend Continuation" Buy
Step 1: Check the Bias.
Look at the Dashboard. Is the HTF Trend 🟢 ? If yes, we are only looking for Buys. Do not fight the big money.
Step 2: The Pullback to the Wall.
Wait for price to drop into a Blue Zone (HTF Demand) or a Flipped Support Zone .
Patience is key. Let the price come to your fortress.
Step 3: The Structure Shift (The Trigger).
Once inside the zone, we need proof that buyers are stepping in.
▪️ Look for a Bullish CHoCH or BOS label to print.
▪️ Watch the Dashboard Pace turn Green (▲▲) .
👉 ENTRY: On the close of the candle that creates the BOS/CHoCH.
🛑 STOP LOSS: Below the recent Structural Low or the Blue Zone.
🎯 TAKE PROFIT: The next unmitigated Red Zone (Supply) or the Weak High.
---
🔴 SETUP 2: The "Structural Reversal" Sell
Step 1: Identify the Exhaustion.
Price rallies into a major Orange Zone (HTF Supply) . The Dashboard shows Pace is slowing down or hitting extreme exhaustion.
Step 2: The Break of the Floor.
Do not sell just because it touched the line. Wait for the algo to print a Bearish CHoCH .
This confirms that the uptrend structure has been broken and bears are in control.
Step 3: Dashboard Confirmation.
Check the Dashboard:
▪️ Is the LTF Trend flipping to Red? 🔴
▪️ Is the Volume validating the move?
👉 ENTRY: On the retest of the broken structure or immediately after the CHoCH.
🛑 STOP LOSS: Above the Structural High or the Orange Zone.
🎯 TAKE PROFIT: The next Blue Zone (Demand) or Weak Low.
---
⚡ PRO TIPS: MASTERING THE ZONES
▪️ The "Zone Flip" is Powerful: If price smashes through an Orange Supply Zone with a strong BOS , that zone will turn Blue . This "Flip" is often the highest probability entry for a retest trade.
▪️ Full Alignment = Full Risk: When the Dashboard shows HTF 🟢 AND LTF 🟢 , you have "Full Alignment." These are your A+ setups. Increase confidence here.
▪️ Don't ignore the Sweeps: Even when trading structure, keep an eye on the Sweep 🧹 labels. A Sweep of a low followed by a CHoCH is the strongest reversal signal in existence.
---
📥 HOW TO START
Market Structure is the language of the banks. This tool translates it for you.
1. Add "Ash_TheTrader Algo : Smart Structure & Liquidity" to your chart.
2. Go to Settings -> Visuals. Ensure "Show BOS / CHoCH" and "Show HTF Zones" are ON.
3. Study the Flow: Look at how price respects the Blue/Orange zones. Notice how the Trend colors on the Dashboard predict the next leg.
Stop guessing the direction. Let the Structure guide you.
Trade Smart, Stay Disciplined.
~ @Ash_TheTrader
Box Theory [Interactive Zones] PyraTimeThis script combines Nicholas Darvas’s "Box Theory" with modern Supply and Demand (Premium/Discount) concepts. It automatically identifies the most recent Swing High and Swing Low to delineate the current trading range.
The purpose of this tool is to visualize market structure and help traders identify when price is relatively expensive (Premium) or cheap (Discount) within a defined range.
Visual Guide: What You Are Seeing
The Box: Represents the active trading range defined by the most recent significant Swing High and Swing Low.
Red Zone (Premium): The top 25% of the range. Mathematically, prices here are considered "expensive" relative to the current structure.
Green Zone (Discount): The bottom 25% of the range. Prices here are considered "cheap" relative to the current structure.
Grey Zone (Equilibrium): The middle 50% of the range. This is the area of fair value where price often consolidates.
Dashed Line (EQ): The exact 50% midpoint of the range.
Tutorial: How to Trade Using This Indicator
Method 1: Mean Reversion (Range Trading) This method applies when the market is moving sideways.
Identify Structure: Wait for a box to form.
Wait for Extremes: Do not trade when price is in the middle (Grey/White area). Wait for price to enter the Red or Green zones.
Entry Trigger:
Shorts: When price enters the Red Zone, look for a rejection (wicks leaving the zone) or a lower timeframe breakdown. Target the EQ (Midline) as your first take profit.
Longs: When price enters the Green Zone, look for support formation. Target the EQ (Midline) as your first take profit.
Method 2: Trend Continuation (Breakouts) This method applies when the market is trending strongly.
Breakout: Monitor the alerts. A close outside the box indicates a potential shift in market structure.
Retest: After a breakout up, the old "Red Zone" (Resistance) often flips to become new Support. Wait for price to pull back to the top of the old box before entering.
Configuration Guide (Settings)
Pivot Left/Right Bars (Sensitivity):
Default (20/20): Best for Swing Trading. It filters out market noise and only draws boxes based on major structural points.
Lower (5/5): Best for Scalping. It will create smaller, more frequent boxes but increases the risk of false signals.
Zone Percentage:
Default (25%): Standard deviation for Supply/Demand zones.
Alternative (15%): Use this for "sniping" entries at the absolute extremes of the range.
Multi-Timeframe (MTF):
Enable "Use Higher Timeframe" to see Daily or Weekly ranges while trading on lower timeframes (like the 15m or 1H). This helps keep your intraday trades aligned with the major trend.
Technical Note on "Lag" This indicator uses Pivots to draw the box. A pivot is only confirmed after a certain number of bars have passed (the "Pivot Right Bars" setting).
Example: If "Pivot Right Bars" is set to 20, the box will update 20 bars after the actual high or low occurred. This is necessary to confirm that the point was indeed a Swing High/Low. Do not treat the box lines as predictive; they are reactive to confirmed structure.
VORB DJB Trades V1VORB by DJB Trades (Version 1) is a complete intraday framework built around the New York session Opening Range Breakout (ORB), combined with higher-timeframe VWAPs and precise Fair Value Gap mapping.
This tool is designed to give you context, levels and confluence at a glance – no more stacking 5 different indicators on your chart.
🔶 Core ORB Logic (NY Session)
• Uses the 09:30–09:45 NY time 15-minute ORB range.
• Draws an ORB box from high to low during the ORB window.
• Projects clean high/low ORB lines across the session (up to your chosen end time, default 18:00 NY).
• Displays the ORB size in points above the box
• 1 point = 4 ticks (futures-style logic).
This gives an instant sense of how “wide” or “tight” the opening drive was, and how much room you have for trend or mean-reversion plays.
📐 Daily VWAP (Intraday Bias)
• Custom anchor time (default 18:00, NY session close style).
• Plots Daily VWAP plus +/-1 standard deviation bands.
• Full styling controls: colors, line widths, band fill etc.
• You can limit visibility to specific timeframes via dropdown (e.g. only show on 1–5m, or just intraday).
VWAP +/-1 deviation bands gives you intraday bias and “fair value” zones to frame trades around the ORB.
🕒 Higher Timeframe VWAPs (Weekly, Monthly, Yearly)
All three higher-TF VWAPs are calculated the same way (volume-weighted, streaming) but anchored at different structural points:
• Weekly VWAP – resets at the start of each week
• Monthly VWAP – resets at the start of each month
• Yearly VWAP – resets at the start of each year
Each has:
• Main VWAP line
• ±/-1 standard deviation bands
• Independent color / width / band fill settings
• Timeframe visibility controls (“show from TF” & “show up to TF”) so you can do things like:
⁃ Weekly VWAP only from 5m and above
⁃ Monthly on 1h and higher
⁃ Yearly only on Daily/Weekly/Monthly
Use these as higher-timeframe bias references and key dynamic value areas above/below the ORB.
📊 1m FVGs (Outside ORB & VWAP Bands)
For precision entries:
• Detects 1-minute Fair Value Gaps (classic 3-candle pattern):
⁃ Bullish FVG: low > high
⁃ Bearish FVG: high < low
• Only plots FVGs that are:
⁃ Outside the ORB range, and
⁃ Outside the Daily VWAP +/-1 bands
• FVG boxes are auto-extended to the right (4× original width) for clear “liquidity pockets”.
• Separate colors for bullish and bearish FVGs.
This helps you focus only on “clean” imbalances away from the opening chop and mid-range value.
⚙️ Customisation & Use
• Works best on US indices, FX and futures during the NY session.
• Optimised for 1m–15m ORB trading, but higher-TF VWAPs shine on 5m, 15m, 1h and Daily.
• Every visual element (ORB box, lines, VWAPs, bands, FVGs, label text/bg) is fully customisable in the settings.
⚠️ Disclaimer
This script is for educational and informational purposes only.
It does not constitute financial advice or a signal service.
Always test on a demo account and use your own risk management before trading live.
Malama's Range BreakoutMalama's Range Breakout is a dynamic indicator designed to automatically detect periods of price consolidation (tight ranges) and generate actionable signals for breakouts or wick-based reversals.
Why It's Useful: Unlike fixed-time tools like Opening Range Breakouts (ORB), this indicator is Adaptive. It uses a volatility-adjusted threshold (ATR multiplier) to determine when a market is truly consolidating. This helps traders avoid false signals in choppy markets and focus on periods where volatility is compressing.
Key Features:
Adaptive Detection: Uses ATR over a user-defined lookback to find tight ranges automatically.
Preset Profiles: Quickly switch between optimized settings for:
Scalping: (Tight Ranges)
Intraday: (Normal Ranges)
Swing Trading: (Loose Ranges)
Options/Chop: (Extreme sideways movement)
Breakout Signals: Triggers "BUY/SELL" labels when price closes outside the box. Includes an optional Volume Filter to ignore low-momentum breakouts.
Wick Reversals: Detects "Fake-outs" where wicks probe the range boundary but fail to close outside, signaling a potential reversal back into the range.
How to Use:
Select a Profile: Choose "Normal" for standard day trading or "Tight" for scalping.
Wait for the Box: The indicator will draw an orange box when price consolidates.
Trade the Break: Wait for a confirmed close outside the box (Look for the "Malama BUY/SELL" label).
Watch for Rejection: If you see a "Wick" label, it means the breakout failed—be cautious or trade the reversal.
Settings:
Profile: Select your trading style (Scalping, Intraday, Swing).
Volume Filter: Require a volume spike to confirm breakouts (Recommended).
Wick Confirmation: Require a confirmation candle before signaling a wick reversal.
Malama's Pre-Market BoxThis script is a comprehensive Pre-Market range visualizer designed to replace older, single-candle analysis tools. It automatically highlights the full pre-market session (04:00–09:30 EST) and extends key support/resistance levels into the regular trading day.
Why this script was created (Evolution from previous versions): This is a complete architectural rewrite of the older "Malama's KAYCAP Pre-Market Box."
Old Logic: The previous version focused on isolating a single, specific 1-minute candle (e.g., exactly 4:00 AM) to determine levels.
New Logic: This version tracks the entire pre-market session range. It dynamically updates the True High and True Low as the pre-market develops, providing a much more accurate support/resistance zone for the open.
Visual Overhaul: Instead of static plots, this version uses Pine Script v6 box and line objects to draw a clean, shading-customizable range that automatically extends rightward until the trading session ends.
How it works:
Session Tracking: The script monitors the user-defined session (default 04:00-09:30).
Dynamic Box: As price moves during pre-market, a box is drawn covering the highest high and lowest low of that period.
Level Extension: At 09:30 (Market Open), the script locks the High and Low values. It then projects two horizontal lines (Resistance and Support) across the chart for the rest of the day.
Breakout Detection: If the price closes outside these levels during regular hours, the script can optionally trigger Alerts and plot "BREAK" labels on the chart.
Settings:
Time Settings: Customizable session string (default captures standard US Pre-Market).
Visuals: Fully adjustable box colors, border transparency, and line width.
Signals: Toggle breakout labels on/off.
Alerts Included:
Bullish Breakout: Triggers when price crosses and closes above the Pre-Market High.
Bearish Breakdown: Triggers when price crosses and closes below the Pre-Market Low.
Sen Regression ChannelSen Regression Channel
OVERVIEW
The Sen Regression Channel is a trend-structure visualization tool built on the Theil–Sen estimator, a median-based regression method designed to reduce sensitivity to price outliers. Unlike traditional least-squares regression channels, this approach anchors trend using the most representative slope across the lookback period, resulting in a more stable and noise-resistant structure.
TECHNICAL LOGIC & ORIGINALITY
To protect the proprietary implementation of the median-slope engine and adaptive band construction, this script is published as Protected.
Median Slope Engine
Calculates the Theil–Sen slope by evaluating the median rate of change across the lookback window, producing a trendline less distorted by extreme candles or transient volatility.
Adaptive Volatility Bands
Channel width can be derived from either Standard Deviation or ATR, allowing the envelope to adjust dynamically to changing volatility regimes.
Multi-Reference Context (Optional)
VWAP and EMA/SMA overlays can be enabled to compare the median regression structure against commonly used price and volume-weighted references.
HOW TO USE (EDUCATIONAL)
This tool is designed to help analyze trend quality and market structure, not to generate trade signals.
Trend Direction & Stability
A sustained upward or downward slope of the median regression line indicates directional structure with reduced noise sensitivity.
Volatility Expansion Zones
Price closing outside the channel bands highlights volatility expansion relative to the median trend and may signal regime change.
Mean-Reversion Context
Price oscillation between the median line and bands reflects balanced conditions; movement toward the outer bands indicates relative extension.
VWAP Confluence
Alignment between the regression midline and VWAP may highlight areas of consensus value.
USER INPUTS
Lookback Period – Sets the window for the median slope calculation
Band Multiplier – Scales the channel width
Band Method – Standard Deviation or ATR-based envelope
Visual Overlays – Toggle VWAP, midline, and cloud transparency
NOTES
This script is a historical charting and visualization tool for educational purposes only.
It does not provide trade signals, alerts, or financial advice.
All values are calculated in real time using available chart data.
Beast Mode - ORB Indicator [Advanced Retest & Targets]Beast Mode - ORB Indicator
The Beast Mode - ORB Indicator is a comprehensive institutional trading system designed to automate the Opening Range Breakout (ORB) strategy. Unlike standard ORB indicators that simply draw high/low lines, this script integrates "Smart Retest" logic, dynamic risk/reward targets, and volume/volatility filters to help traders identify high-probability setups while filtering out chop and fake-outs.
This tool is designed for Futures (ES, NQ, YM) and Equities traders who rely on the initial market balance to determine the day's directional bias.
How It Works
The Opening Range is defined as the High and Low price established during the first X minutes of the market session (e.g., 5 minutes, 15 minutes). This range represents the initial battle between buyers and sellers.
1. The Range Formation: The script monitors the user-defined opening window (e.g., 9:30–9:35 AM ET). Once the window closes, it plots the ORB High (Green), ORB Low (Red), and Midline (Gray).
2. The Breakout: A signal is generated when a candle closes outside the defined range. This signal is filtered by volume (must be higher than average) and range quality (to avoid trading during extremely tight or over-extended ranges).
3. The Smart Retest (New Feature): Breakouts often fail. The most reliable entry is often the retest of the breakout level. This script uses a unique algorithm to detect valid retests:
- Tolerance: Price must return to within a specific point range of the ORB level.
- Rejection: Price must physically "bounce" away from the level by a minimum point value.
- Volume: The rejection candle must have significant volume to confirm institutional defense of the level.
Key Features
1. Dynamic Risk/Reward Targets
The indicator automatically projects profit targets based on the size of the Opening Range:
- Target 1 (💰): Placed at a 1:1 ratio relative to the range size. (e.g., If the range is 20 points, T1 is 20 points above the High).
- Target 2: A user-defined multiplier (default 2.0x) for extended trend days.
- Stop Loss Zones: Visual dotted lines indicating statistically significant stop-loss placement levels.
2. Smart Retest Logic
Instead of blindly buying a touch of the line, the script waits for confirmation. It looks for a "Checkmark" pattern: Breakout -> Pullback to Zone -> Rejection Bounce. Retest signals are marked with a distinct "RE" label.
3. Quality Filters
- Volume Filter: Ensures that breakout signals are backed by relative volume (RVOL) to avoid "low volume drift" fake-outs.
- Range Filter: Prevents signals if the Opening Range is too small (chop) or too large (exhaustion), based on point values.
4. Professional Dashboard
A data table displays real-time statistics:
- Status: Forming, Active, or Waiting.
- Range: The exact size of the opening range in points.
- Position: Current price relation to the ORB (Above/Below/Inside).
- Targets: Exact price levels for T1 and T2.
Settings & Configuration
- ORB Timeframe: Select between 5m PreMarket, 5m Standard, 15m, or 30m ranges.
- Trading Session: Define your active trading hours (signals are muted outside this window).
- Target Multiplier: Adjust the extension for the second target (e.g., 1.5x, 2.0x, 3.0x).
- Retest Specifics:
- Tolerance: How close price must get to the line to count as a test.
- Min Bounce: How hard price must reject to trigger a signal.
- Visuals: Fully customizable colors for lines, backgrounds, and labels.
Disclaimer
This indicator is a technical analysis tool intended to assist in identifying market structure and potential areas of interest. Past performance of the Opening Range Breakout strategy does not guarantee future results. Users should always manage risk appropriately and use this tool in conjunction with their own analysis.
Concepts based on standard institutional Opening Range Breakout theory.
New Rate - PREMIUM v2New Rate - PREMIUM v2
New Rate - PREMIUM v2 is an intraday Opening Range Breakout (ORB) strategy built around a strict one-trade-per-day execution model.
The strategy defines a price range using the first N candles of a user-defined session, freezes the High/Low at the close of candle N, and places OCO stop orders exactly at those levels. The first breakout fills, the opposite order is canceled, and no further trades are allowed until the next trading day.
This script is published for educational and research purposes, with documented mechanics and backtest settings to support transparency and reproducibility.
How the strategy works
Session range construction
The user selects a minutes-based timeframe, a session start time, and the number of candles N. During the session window, the strategy tracks the highest High and lowest Low formed by the first N candles. These candles are visually highlighted on the chart.
Range freeze
When candle N closes, the range is locked. Horizontal High/Low lines are drawn and extended forward. An optional 50% midpoint can be displayed for reference.
OCO breakout execution
Immediately after the range is frozen, the strategy places:
A buy stop at the frozen High
A sell stop at the frozen Low
Orders are linked using OCO (One-Cancels-Other) logic. When one side fills, the opposite order is automatically canceled.
Exit management
Two exit frameworks are available:
Tick-based exits: stop-loss and take-profit are fixed distances in ticks from entry.
Risk/Reward exits: optional stop at the opposite side of the range, with TP calculated as RR × risk.
Both modes can display SL/TP boxes projected forward for visual review.
Daily execution lock
After the first filled trade of the day, the strategy blocks any new entries until the next daily reset. This enforces strict discipline and prevents over-trading.
Visual features
Configurable High/Low lines and labels (color, style, width, alignment)
Optional midpoint (50%) line
Session background highlight with adjustable opacity
Optional SL/TP boxes with configurable colors, borders, and projection length
Weekday filter (trade only selected days)
Settings used for the published backtest (replication)
The performance screenshots included with this publication were generated using the following configuration:
Market & chart
Symbol: FX:XAUUSD
Timeframe: 15 minutes
Session & range
Session start: as configured on chart (exchange time)
Range candles (N): 1
Auto range end: enabled (TF × N)
Line extension: 20 bars
Exits
Exit mode: SL/TP by ticks
Stop-loss: 1500 ticks
Take-profit: 2000 ticks
Weekdays
Monday to Friday enabled
Strategy Properties (TradingView settings)
Initial capital: 1,000 USD
Commission: 0.1 (as set in Strategy Properties)
Slippage: 1 tick
Users should adjust commission, slippage, and position sizing to match their own broker and execution conditions.
Backtest context and limitations
This strategy uses stop orders that may fill intrabar depending on TradingView’s execution model.
Results vary by symbol, timeframe, session selection, and trading costs.
Past performance does not guarantee future results.
This script is not financial advice.
Originality and usefulness
While opening-range breakouts are a known concept, this strategy’s implementation focuses on:
Exact range-freeze timing: orders are armed precisely at the close of the N-th candle.
True OCO + hard daily lock: one-and-done execution enforced at the engine level.
Dual exit framework: fixed-tick and RR exits analyzed with the same SL/TP visual logic.
Operational safeguards: weekday filters and drawing limits designed for stable long-term backtesting.
Market Efficiency DashboardDescription
This indicator is an analytical tool designed to visualize the relationship between price action and market efficiency. Based on the Choppiness Index (CI), this indicator identifies whether the market is in a state of Range Contraction (Consolidation) or Range Expansion (Trending) . This implementation introduces a unique 50-pivot baseline to better differentiate between these two market characters, providing traders with an objective view of volatility cycles.
Key Features
Volatility Cycle Logic: A refined implementation of the Choppiness Index that assists in filtering market noise during low-volatility periods.
Pivot-50 Visualization: A custom geometric layout that separates range contraction from trend expansion for faster visual interpretation.
Multi-Timeframe (MTF) Data Handling: Enables the monitoring of higher-timeframe efficiency cycles without switching charts.
Trend Context Filter: Integrates a 200-period EMA to provide a directional baseline relative to the current market state.
Real-Time Status Dashboard: A real-time data table providing a summary of current market efficiency and trend bias.
Signal Refinement: Includes optional smoothing (EMA/SMA/WMA) to reduce calculation "jitter" and provide clearer structural signals.
Inputs Overview
Choppiness Length: Sets the lookback period for the efficiency calculation (Default: 14).
Calculation Timeframe: Allows the user to select the source timeframe for the index data.
Smoothing Method: Users can choose between multiple moving average types to filter the raw index output.
Threshold Levels: Customizable Fibonacci-based levels (61.8 and 38.2) used to define the boundaries of "Choppy" and "Trending" environments.
EMA Filter: Toggle for the 200-period Exponential Moving Average used for directional bias.
How to Use
Context Identification: Observe the histogram’s position relative to the 50-pivot. Bars expanding upward toward the 61.8 level indicate the market is coiling/congested.
Trend Confirmation: Bars expanding downward toward the 38.2 level indicate the market is moving efficiently in a specific direction.
Bias Alignment: When the Trend Bias is Bullish and the state is Trending, price discovery is likely occurring to the upside. Conversely, a Bearish bias in a Trending state suggests efficient movement to the downside.
Risk Management: Rising choppiness levels often precede a period of trend exhaustion or reversal, signaling a potential time to reduce exposure.
How it Helps
This tool is designed to assist in objective decision-making by identifying the current "market character." By distinguishing between trending and non-trending environments, it helps traders select the appropriate strategy for the current context—avoiding trend-following entries during sideways markets and identifying when a market has entered a period of price expansion.
Alerts
Trend Starting: Triggers when the index crosses below the lower threshold, suggesting a transition into an efficient trend.
Squeeze/Consolidation: Notifies the user when the index crosses above the upper threshold, indicating range contraction.
Midpoint Cross: Signals when the index crosses the 50-level, marking a shift in market momentum.
⚠️ Disclaimer:
This script/indicator is not endorsed by, affiliated with, sponsored by, or connected to TradingView in any manner. The author is not a TradingView partner.
This script/indicator and all related content are provided “as is” and “as available,” without any warranties of any kind, express or implied. The content is strictly for educational and informational purposes and does not constitute financial, investment, trading, or legal advice.
The author makes no representations or guarantees regarding accuracy, reliability, profitability, or future performance. Use of this script/indicator is entirely at the user’s own risk, and the author assumes no liability for any losses, damages, or financial consequences arising from its use.
TSS by AMAGADONTSS - THE SESSION SETUP
The Methodology
THE SESSION SETUP (TSS) is a price-action framework that utilizes session-specific volatility to define intraday expansion zones. By isolating the opening ranges of the Asia, London, and New York sessions on the 15-minute (M15) timeframe, TSS identifies clear institutional "interest zones."
The algorithm monitors these ranges for two specific price-action events:
Primary Breakouts: Decisive candle closes outside the session boundaries.
Liquidity Reversals (Counter-Signals): Identification of "fake-outs" where price traps initial breakout traders before reversing through the entire session range.
Features
Automated Session Boxes: Dynamic range calculation for all major global sessions.
Precision TP Levels: Systematic profit targets based on the measured session range (R).
Timeframe Integrity: Built-in guard to ensure the logic is only applied to the M15 timeframe, preserving the accuracy of the range calculations.
Visual Median: Dotted mid-lines to identify the "mean" price within a session.
CRITICAL DISCLOSURE - PLEASE READ CAREFULLY
HIGH RISK INVESTMENT WARNING: Trading Foreign Exchange (Forex) is highly speculative, carries a high level of risk, and may not be suitable for all investors. You may sustain a loss of some or all of your invested capital; therefore, you should not speculate with capital that you cannot afford to lose. NO FINANCIAL ADVICE: The TSS - THE SESSION SETUP indicator is a technical analysis tool provided for informational and educational purposes only. It does not constitute investment advice, financial advice, or a recommendation to buy or sell any currency pair or financial instrument.
LIMITATION OF LIABILITY:
Execution Risk: The author does not guarantee the accuracy of signals. Market conditions, including news-driven volatility, spreads, and slippage, can result in trades that differ significantly from the indicator's visual signals.
Backtesting Limitation: Past performance and historical signals are not indicative of future results.
User Responsibility: You are solely responsible for your trading decisions. The author of this script shall not be held liable for any loss or damage, including without limitation, any loss of profit, which may arise directly or indirectly from the use of or reliance on this tool.
BY USING THIS SCRIPT, YOU AGREE THAT YOU ARE TRADING AT YOUR OWN RISK.
Explosive Candle Detector [CodeAlchemyLab]Explosive Candle Detector
This indicator identifies potential high-momentum trading opportunities by detecting explosive candles that form after consolidation periods (base candles).
How It Works:
The indicator uses a two-candle pattern system:
Base Candle (Boring): A consolidation candle where the wicks are larger than the body, indicating indecision and potential accumulation/distribution by smart money. This represents a compression phase where price is being absorbed.
Explosive Candle: A momentum candle that appears immediately after a base candle, with a size at least 50% larger than the base candle. This represents an expansion phase where price breaks out with strong directional movement.
Features:
• Detects bullish explosive candles (green markers below candle)
• Detects bearish explosive candles (red markers above candle)
• Highlights base candles with background color
• Customizable explosive threshold (default: 50% size increase)
• Clean visual signals for easy pattern recognition
Trading Applications:
• Supply and Demand zone identification
• Breakout confirmation signals
• Momentum trade entries
• Order block detection
• Smart money accumulation/distribution phases
Best Used With:
Support/resistance levels, trend analysis, and volume confirmation for optimal trade setups.
Parameter:
Boring Candle Parameters:
1. Min wick ratio (0.6 = 60%): The total wicks (upper + lower) must be at least 60% of the candle's total range. Higher values = more wick required, meaning the candle is more "indecisive" with long wicks.
2. Max body ratio (0.4 = 40%): The body must be at most 40% of the candle's total range. Lower values = smaller body required, confirming the candle is mostly wicks with a small body.
Example: If candle range is 100 pips, wicks must be ≥60 pips and body must be ≤40 pips.
──────────────────────────────────────────
Explosive Candle Parameters:
3. Min size vs Boring (1.5 = 150%): The explosive candle must be at least 1.5x (or 50% bigger) than the boring candle's range. If boring candle is 100 pips, explosive must be ≥150 pips.
4. Min body ratio (0.5 = 50%): The explosive candle's body must be at least 50% of its total range. This ensures it's a strong directional move with a large body, not just wicks.
──────────────────────────────────────────
In Simple Terms:
• Boring candle = Big wicks, small body (consolidation/indecision)
• Explosive candle = Big body, much larger than boring candle (strong directional move)
ORB Pro: Sniper Edition [Hybrid Scanner + Smart Ranking]الوصف (Description):
🚀 ORB Pro: Sniper Edition – The Ultimate Day Trading System
The ORB Pro: Sniper Edition is not just an indicator; it is a complete algorithmic trading system designed for scalpers and day traders who trade the Opening Range Breakout (ORB) strategy.
This edition features a revolutionary "Hybrid Scanner" with "Smart Opportunity Ranking" logic that prioritizes fresh signals over old ones, ensuring you never miss a breakout.
🔥 Key Features:
Hybrid Scanner System:
Manual Mode: Monitor your own top 5 favorite stocks.
Auto Scanner Mode: Automatically scans a pre-defined list of Top 20 High-Momentum Stocks (TSLA, NVDA, AMD, COIN, MSTR, etc.) inside the code.
🧠 Sniper Ranking Logic (The Game Changer): Unlike standard scanners that show static lists, this system sorts stocks dynamically in the table based on opportunity:
🥇 Priority 1: Fresh Breakouts (RUN 🚀) that haven't hit targets yet (The Entry Zone).
🥈 Priority 2: Winning Trades (WIN ✅) that already hit targets.
🥉 Priority 3: Weak or Stopped out trades.
Advanced Strategy Logic:
Fibonacci Targets: Precision exits at 1.618, 2.0, 2.618, and 3.618 extensions.
Smart Reversal: Detects "Fakeouts" and flips the signal immediately (e.g., from CALL to PUT) to catch institutional traps.
Trend Filtering: Uses EMA 50 to filter out low-probability trades.
Risk Management:
Auto Breakeven: Moves stop-loss to entry after Target 1.
Trailing Stop: Dynamic stop-loss that follows the price action.
⚙️ How to Use:
Add the indicator to a 5-minute chart.
Go to Settings > Table System > Select "Auto Scanner".
Watch the table: Focus on the top rows showing "RUN 🚀". These are your live entry signals!
----------------------------------
🚀 مؤشر القناص: ORB Pro Sniper Edition – نظام المضاربة اللحظية المتكامل
يعتبر هذا المؤشر نظاماً آلياً متطوراً للمضاربين اللحظيين (Scalpers/Day Traders) يعتمد على استراتيجية كسر نطاق الافتتاح (ORB) الشهيرة، ولكنه معزز بخوارزميات ذكية لتصفية الفرص.
يتميز هذا الإصدار بوجود "ماسح هجين" (Hybrid Scanner) ونظام "تصنيف ذكي" يعطيك الزبدة ويعرض لك الفرص الحية فور حدوثها.
🔥 أهم المميزات:
نظام الماسح الهجين (Hybrid Scanner):
الوضع اليدوي (Manual): لمراقبة قائمتك الخاصة (5 أسهم تختارها أنت).
الماسح الآلي (Auto Scanner): يقوم المؤشر بمسح فوري لقائمة مدمجة تضم أقوى 20 سهم سيولة ومضاربة في السوق الأمريكي (مثل TSLA, NVDA, MSTR, COIN, وغيرها).
🧠 خوارزمية "القناص" للترتيب (Sniper Ranking): الجدول لا يعرض الأسهم عشوائياً، بل يركز على الفرصة الحالية:
🥇 الأولوية القصوى: للأسهم التي أعطت إشارة دخول (RUN 🚀) ولم تحقق الهدف بعد (هذه هي منطقة الدخول الذهبية).
🥈 الأولوية الثانية: للأسهم التي حققت أهدافها (WIN ✅).
🥉 الأولوية الأخيرة: للأسهم المتذبذبة أو الخاسرة.
دقة فنية عالية:
أهداف فيبوناتشي: تحديد آلي لأهداف جني الأرباح (1.618، 2.0، 2.618).
كشف الانعكاس (Reversal): يكتشف الاختراقات الكاذبة (Fakeouts) ويقلب الإشارة فوراً للدخول مع صناع السوق.
فلتر الترند: يستخدم متوسط 50 لمنع الدخول عكس الاتجاه العام.
إدارة المخاطر:
تأمين الصفقة (Breakeven): يرفع الوقف لسعر الدخول تلقائياً بعد تحقق الهدف الأول.
الوقف المتحرك: يلاحق الأرباح للحفاظ عليها.
⚙️ طريقة الاستخدام:
ضع المؤشر على فريم 5 دقائق.
من الإعدادات، اختر نظام الجدول "Auto Scanner".
راقب الجدول: ركز نظرك على الأسهم التي تظهر في أعلى القائمة بحالة "RUN 🚀".
⚠️ Disclaimer / إخلاء مسؤولية: This tool is for educational and analytical purposes only. Trading involves significant risk. Always manage your risk properly. هذه الأداة للأغراض التعليمية والتحليلية فقط. التداول ينطوي على مخاطر عالية.
Hybrid Strategy: Trend/ORB/MTFHybrid Strategy: Trend + ORB + Multi-Timeframe Matrix
This script is a comprehensive "Trading Manager" designed to filter out noise and identify high-probability breakout setups. It combines three powerful concepts into a single, clean chart interface: Trend Alignment, Opening Range Breakout (ORB), and Multi-Timeframe (MTF) Analysis.
It is designed to prevent "analysis paralysis" by providing a unified Dashboard that confirms if the trend is aligned across 5 different timeframes before you take a trade.
How it Works
The strategy relies on the "Golden Trio" of confluence:
1. Trend Definition (The Setup) Before looking for entries, the script analyzes the immediate trend. A bullish trend is defined as:
Price is above the Session VWAP.
The fast EMA (9) is above the slow EMA (21). (The inverse applies for bearish trends).
2. The Signal (The Trigger) The script draws the Opening Range (default: first 15 minutes of the session).
Buy Signal: Price breaks above the Opening Range High while the Trend is Bullish.
Sell Signal: Price breaks below the Opening Range Low while the Trend is Bearish.
3. The Confirmation (The Filter) A signal is only valid if the Higher Timeframe (default: 60m) agrees with the direction. If the 1m chart says "Buy" but the 60m chart is bearish, the signal is filtered out to prevent false breakouts.
Key Features
The Matrix Dashboard A zero-lag, real-time table in the corner of your screen that monitors 5 user-defined timeframes (e.g., 5m, 15m, 30m, 60m, 4H).
Trend: Checks if Price > EMA 21.
VWAP: Checks if Price > VWAP.
ORB: Checks if Price is currently above/below the Opening Range of that session.
D H/L: Warns if price is near the Daily High or Low.
PD H/L: Warns if price is near the Previous Daily High or Low.
Visual Order Blocks The script automatically identifies valid Order Blocks (sequences of consecutive candles followed by a strong explosive move).
Chart: Draws Green/Red zones extending to the right, showing where price may react.
Dashboard: Displays the exact High, Low, and Average price of the most recent Order Blocks for precision planning.
Risk Management (Trailing Stop) Once a trade is active, the script plots Chandelier Exit dots (ATR-based trailing stop) to help you manage the trade and lock in profits during trend runs.
Visual Guide (Chart Legend)
⬜ Gray Box: Represents the Opening Range (first 15 minutes). This is your "No Trade Zone." Wait for price to break out of this box.
🟢 Green Line: The Opening Range High. A break above this line signals potential Bullish momentum.
🔴 Red Line: The Opening Range Low. A break below this line signals potential Bearish momentum.
🟢 Green / 🔴 Red Zones (Boxes): These are Order Blocks.
🟢 Green Zone: A Bullish Order Block (Demand). Expect price to potentially bounce up from here.
🔴 Red Zone: A Bearish Order Block (Supply). Expect price to potentially reject down from here.
⚪ Dots (Trailing Stop):
🟢 Green Dots: These appear below price during a Bullish trend. They represent your suggested Stop Loss.
🔴 Red Dots: These appear above price during a Bearish trend.
🏷️ Buy / Sell Labels:
BUY: Triggers when Price breaks the Green Line + Trend is Bullish + HTF is Bullish.
SELL: Triggers when Price breaks the Red Line + Trend is Bearish + HTF is Bearish.
Settings
Session: Customizable RTH (Regular Trading Hours) to filter out pre-market noise.
Matrix Timeframes: 5 fixed slots to choose which timeframes you want to monitor.
Order Blocks: Adjust the sensitivity and lookback period for Order Block detection.
Risk: Customize the ATR multiplier for the trailing stop.
Disclaimer
This tool is for educational purposes only. Past performance does not guarantee future results. Always manage your risk properly.
0DTE Credit Spreads Indicator0DTE Credit Spreads Indicator
This indicator is designed to assist 0DTE credit spread traders by providing rule-based PCS (Put Credit Spread) and CCS (Call Credit Spread) signals, dynamic risk levels, and an integrated performance summary — all within a single, cohesive tool.
What the indicator does
The script implements a complete intraday framework tailored specifically to same-day expiration credit spreads, combining market structure, volatility context, and trade management logic into one workflow:
Opening Range logic (15-minute)
A defined opening range is used to establish directional bias. Signals are generated only after the range is confirmed, aligning entries with controlled intraday structure rather than momentum chasing.
Optional Early Entry logic
An optional early-entry mechanism evaluates 30-minute RSI extremes during the opening phase only. This is intentionally constrained to the opening window and designed for early premium capture scenarios common in 0DTE trading.
Volatility-aware credit estimation
Expected credit is derived from current volatility conditions to provide realistic assumptions for backtesting, trade visualization, and partial-profit modeling.
Dynamic risk visualization
Each signal automatically plots:
A horizontal stop-loss level
A take-profit level based on user-selected credit percentage
A dynamic diagonal stop line from entry to end-of-day, modeling time-based risk specific to 0DTE positions
Partial profit and contract modeling
The backtest logic supports closing a user-defined number of contracts at the take-profit level, while allowing remaining contracts to run to end-of-day or stop loss. This mirrors real-world 0DTE trade management practices.
Flexible evaluation modes
Trades can be evaluated using either:
Intraday stop-loss crosses, or
End-of-day outcome logic
allowing users to align results with their execution style.
Backtesting and transparency
The indicator includes a live, on-chart backtest table displaying:
PCS and CCS signal counts
Wins, losses, and win rate
Total P/L (points or dollar-based per contract)
Contract and partial-TP configuration
A non-blocking “Recommended context” note indicating whether the script is running on the preferred symbol and timeframe
Signals and visuals will display on any chart. The recommended context is informational only and does not restrict usage.
Chart presentation
Full visual mode with labels, TP/SL levels, and diagonal risk lines
Clean Chart mode with arrow-only signals and a compact summary table
Automatic object management to prevent chart clutter.
Intended use
This indicator is intended as a decision-support and research tool for experienced traders. It does not place trades, does not guarantee profitability, and should be used alongside proper risk management.
GoldHook Reversal ProGoldHook Reversal Pro v7 is an advanced market structure indicator designed to identify high-probability turning points. It automatically detects where price is accumulating—and monitors for specific momentum shifts that signal a valid Breakout or Reversal. By filtering out market noise with its "Smart Adaptive" logic, it helps traders distinguish between false moves and genuine trend opportunities, providing clear entry signals with built-in risk management targets.
Smart Chart Patterns: Breakout Boxes## Abstract
This script is an algorithmic pattern recognition tool designed to identify, validate, and trade classical reversal structures (Double/Triple Tops and Bottoms). Unlike subjective drawing tools, this indicator employs a quantitative approach to geometry. It utilizes Volatility Normalization to ensure that angle detection works consistently across all asset classes—from high-priced assets like Bitcoin to low-volatility Forex pairs—without requiring manual recalibration.
## Methodology & Features
1. Pivot Chaining & Integrity Checks The algorithm identifies Swing Highs and Swing Lows (Pivots). It then "chains" them together to form resistance or support barriers.
Integrity Check: The script strictly enforces that price action between pivots must not violate the connecting line. If price cuts through the line, the pattern is invalidated immediately.
2. Angled vs. Horizontal Structures
Angled Mode: Allows for "channel-like" tops and bottoms (e.g., Rising Wedges or Descending Channels) up to a user-defined volatility-adjusted angle.
Horizontal Mode: If angled lines are disabled, the script applies a strict 1-degree tolerance filter, identifying only classical "Flat" Double/Triple patterns.
3. Trend Filtering To reduce false positives in ranging markets, the script includes a directional filter:
Double Tops are only validated if preceded by a quantitative Uptrend.
Double Bottoms are only validated if preceded by a quantitative Downtrend.
Trend Strength is measured by the net price displacement relative to ATR over a lookback period.
4. Automated Risk Management Upon pattern confirmation (breakout), the script automatically projects:
Target (Green): Projected based on the vertical height of the pattern (Pivot to Neckline).
Stop Loss (Red): Calculated dynamically using the Neckline ± (1.5 * ATR), adapting to current market volatility.
## Settings Guide
Min Touches: Set to 2 for Double patterns, 3 for Triple patterns.
Trend Filter: Enable to ensure the pattern is reversing an existing trend.
Angle Control: Adjusts the maximum allowed slope. Because this is normalized, 15.0 is a robust default for almost all assets.
Targets & Stops: Toggles the automated SL/TP lines and adjusts their multipliers.
Rectangle Breakout Patterns📊 Rectangle Breakout Pattern Detector (Support & Resistance)
This indicator is a dynamic tool designed to automatically identify and visualize Rectangle Continuation Patterns and Trading Ranges based on pure price action. It focuses on finding horizontal areas of long-term support and resistance where price is consolidating before an eventual breakout.
💡 What It Does
The core function of this indicator is to detect and plot the boundaries of significant consolidation areas on your chart. It follows a multi-step confirmation process:
Level Detection: It automatically identifies significant Pivot Highs and Lows.
Pattern Confirmation: It confirms Support and Resistance by counting the number of times price 'touches' a level (controlled by the Min Pivot Touches setting).
Visualization: Once confirmed, it draws a Box around the consolidation area. This box automatically extends to the right as long as the price remains contained, showing the active trading range.
This provides an objective, code-driven approach to a classic chart pattern often relied upon by technical analysts.
QM Level Detector by RWBTradeLabQM Level Detector by RWBTradeLab
A clean, non-repainting QM level detector built for traders who track structure shifts and level-break sequences using confirmed candles only.
What this indicator does
This script detects and marks QM Levels based on a strict, rule-based sequence using closed candles only (no running-bar signals).
It identifies two types of QM:
Buy QM
A Buy QM is confirmed when the following sequence completes in order:
* V Level is detected.
* That V Level is broken down by a red candle close below the V Level price.
* After that breakdown, the most recent A Level (formed before the breakdown) is identified.
* When that A Level is later broken out by a green candle close above the A Level price, the original V Level becomes a Buy QM Level .
Sell QM
A Sell QM is confirmed when the opposite sequence completes in order:
* A Level is detected.
* That A Level is broken out by a green candle close above the A Level price.
* After that breakout, the most recent V Level (formed before the breakout) is identified.
* When that V Level is later broken down by a red candle close below the V Level price, the original A Level becomes a Sell QM Level .
Visuals on chart
* A horizontal ray (right-extended) is drawn at the confirmed QM price level.
* Label distance is adjustable via Text Offset (ticks).
Alerts
Built-in alerts trigger only on candle close when a QM is confirmed:
* Buy QM
* Sell QM
Each alert is designed for reliable automation without repainting.
Key settings
* Candle Length (closed candles): Scans the last N closed bars (running candle excluded).
* Buy QM / Sell QM toggles: Show or hide each type.
* Text toggle: Show or hide labels.
* QM Line Color and Text Offset (ticks) customization.
Non-repainting confirmation
All detection, marking, and alerts are based on confirmed candles only.
No running-bar conditions → no repainting .
Disclaimer
This indicator is a level-detection tool, not financial advice. Trading involves risk—always use proper risk management and confirm signals with your own analysis.
Creator: RWBTradeLab
If you find this useful, please leave a like ⭐ and share your feedback.






















