Volume Anomaly Reversal DetectionVolume Anomaly Reversal Detection (VARD System)
🎯 What This Indicator Does
This indicator identifies potential trend reversals by detecting abnormal volume activity that often precedes significant price movements. It combines volume anomaly detection with dynamic trend analysis to generate actionable BUY/SELL signals.
📊 Core Concept & Methodology
Volume Anomaly Detection
The indicator analyzes directional volume (buying vs selling pressure) from a lower timeframe and calculates Z-scores to identify statistically significant volume spikes.
Z-Score Formula:
Z = (Current Volume - Average Volume) / Standard Deviation
When volume exceeds the threshold (default: 3 standard deviations above mean), it signals unusual market activity - often caused by forced liquidations or capitulation.
Dynamic Trend Filter
A custom trend-following algorithm based on ATR (Average True Range) bands determines the current market direction:
Price above lower band = Uptrend
Price below upper band = Downtrend
Signal Logic
Volume anomaly detected during an existing trend
Trend reversal confirmed within the confirmation window
Signal generated = BUY or SELL label appears
⚙️ Settings Explained
SettingDefaultDescriptionAnalysis Timeframe15minLower timeframe for volume samplingStatistical Lookback200Bars used for Z-score calculationAnomaly Sensitivity3.0Z-score threshold (lower = more signals)Confirmation Window50Max bars between anomaly and trend flipATR Multiplier2.0Trend band widthTrend Period10ATR calculation length
📖 How To Use
Entry Signals
BUY: Green label appears below bar - consider long positions
SELL: Red label appears above bar - consider short positions
Volume Anomaly Markers (⬥)
Small diamonds indicate detected volume spikes
These are early warnings before confirmed signals
Useful for anticipating potential reversals
Trend Bands
Colored zones show active signal direction
Stay with the trend until opposite signal appears
Best Practices
Confirm with price action - Look for support/resistance levels
Use appropriate timeframes - Works on all timeframes, but 1H-4H recommended
Manage risk - Always use stop losses
Avoid ranging markets - Best in trending/volatile conditions
⚠️ Important Notes
No indicator is perfect - Use as part of a complete trading strategy
Volume data required - Will show warning if volume unavailable
Not financial advice - Always do your own research
🔔 Alerts Available
BUY Signal Confirmed
SELL Signal Confirmed
Volume Anomaly (Buy Setup)
Volume Anomaly (Sell Setup)
Bands and Channels
Polynomial Regression Channel [ChartPrime]⯁ OVERVIEW
The Polynomial Regression Channel fits price action using advanced polynomial regression, extending beyond simple linear or logarithmic models. By leveraging matrix calculations, it builds a curved regression line that adapts to swings more naturally. The channel includes extrapolated forward projections, helping traders visualize where price may gravitate in the near future. Midline color shifts reflect directional bias, while prediction ranges are marked with dashed extensions, labeled prices, and a live table for clarity.
⯁ KEY FEATURES
Polynomial Regression Core:
Uses matrix algebra to calculate a polynomial fit of customizable degree, adapting to complex, non-linear market structures.
polyreg(source, length, degree, extrapolate) =>
total = length + extrapolate
X_all = matrix.new(total, degree + 1, 0.0)
for i = 0 to total - 1
for j = 0 to degree
matrix.set(X_all, i, j, math.pow(i, j))
// y (length × 1), oldest→newest over the fit window
y = matrix.new(length, 1, 0.0)
for i = 0 to length - 1
matrix.set(y, i, 0, source )
// X_train (first `length` rows of X_all)
X_tr = matrix.new(length, degree + 1, 0.0)
for i = 0 to length - 1
for j = 0 to degree
matrix.set(X_tr, i, j, matrix.get(X_all, i, j))
// OLS via normal equations: (X'X)^(-1)b = X'y ⇒ b = (X'X)^(-1) X'y
Xt = matrix.transpose(X_tr) // X'
XtX = matrix.mult(Xt, X_tr) // (X'X)
Xty = matrix.mult(Xt, y) // X'y
XtX_inv = matrix.inv(XtX) // (X'X)^(-1)
b = matrix.mult(XtX_inv, Xty) // b = (X'X)^(-1) X'y
// Predictions for all rows (fit + extrap)
preds = matrix.mult(X_all, matrix.col(b,0))
preds
Extrapolated Future Projections:
Forward-looking range (dashed lines + circular markers) shows where the fitted polynomial suggests price may move.
Dynamic Midline Coloring:
Regression midline shifts green when slope turns upward and magenta when slope turns downward, giving instant directional context.
Channel Boundaries:
Upper and lower levels expand from the midline using a volatility-based offset, framing potential overbought and oversold conditions.
Top-Right Data Table:
A live table displays Upper, Middle, and Lower Prediction values, updating in real time for quick reference without scanning the chart.
⯁ USAGE
Use the regression midline to gauge underlying market bias; green slopes suggest continuation, magenta slopes caution for weakness.
Watch dashed extrapolated ranges as potential targets or reaction zones during upcoming sessions.
Price labels and table values act as precise reference levels for planning entries, exits, or stop placement.
Increase Degree for more curve-fitting on choppy markets, or keep it low for broader trend approximation.
Adjust Period and Extrapolate length to balance stability vs. responsiveness.
⯁ CONCLUSION
The Polynomial Regression Channel offers a mathematically advanced way to visualize price trends and anticipate future paths. With matrix-driven polynomial fitting, extrapolated projections, and integrated live labels, it combines statistical rigor with practical trading visuals — a robust upgrade over standard regression channels.
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.
hassan box 2026This indicator is a tool designed to monitor general areas and predict future targets.
Pulse Wave Matrix [SCALPER]════════════════════════════════════════════════════════════════════════════════
PULSE WAVE MATRIX - SCALPER EDITION | QUICK GUIDE
════════════════════════════════════════════════════════════════════════════════
█ WHAT IS PWM?
PWM detects when price is "coiling" (compression) and about to explode.
• ORANGE DOTS = Spring compressing (GET READY)
• GREEN DOT = Spring released (TAKE ACTION)
════════════════════════════════════════════════════════════════════════════════
█ READING THE INDICATOR
════════════════════════════════════════════════════════════════════════════════
HISTOGRAM BARS:
• BRIGHT CYAN = Strong bullish (best for longs)
• DARK CYAN = Bullish weakening (consider exit)
• BRIGHT RED = Strong bearish (best for shorts)
• DARK RED = Bearish weakening (consider exit)
CENTER DOTS:
• ORANGE = Compression active → WAIT
• GREEN = Compression released → LOOK FOR ENTRY
• GRAY = Normal market → SCAN
SIGNALS:
• ▲ Green Triangle = HIGH-PROBABILITY LONG
• ▼ Red Triangle = HIGH-PROBABILITY SHORT
• ● Small Circle = Quick scalp (lower probability)
════════════════════════════════════════════════════════════════════════════════
█ HOW TO TRADE (3 Simple Steps)
════════════════════════════════════════════════════════════════════════════════
STEP 1: WAIT FOR SETUP
→ Orange dots appear (compression)
→ Panel shows "Pulse: READY"
STEP 2: WAIT FOR TRIGGER
→ Green dot appears (released)
→ Triangle signal appears
→ Check histogram: CYAN = Long, RED = Short
STEP 3: EXECUTE
→ Enter on triangle signal
→ Set SL: 1.5x ATR below/above entry
→ Set TP: 2x SL distance
════════════════════════════════════════════════════════════════════════════════
█ ENTRY CHECKLIST
════════════════════════════════════════════════════════════════════════════════
BEFORE ENTERING, CONFIRM:
☑ Green dot visible (pulse released)
☑ Triangle or circle signal present
☑ Histogram color matches direction
☑ Panel "Trend" aligns with trade
☑ RSI not showing OB! or OS!
DO NOT ENTER IF:
✗ Still orange dots (not released)
✗ Trend opposite to signal
✗ RSI at extreme
✗ Major news coming
════════════════════════════════════════════════════════════════════════════════
█ EXIT RULES
════════════════════════════════════════════════════════════════════════════════
EXIT IMMEDIATELY:
• Stop loss hit
• Take profit hit
• Opposite triangle appears
EXIT SOON:
• Histogram color fading (bright → dark)
• New orange dots appear
════════════════════════════════════════════════════════════════════════════════
█ RISK MANAGEMENT
════════════════════════════════════════════════════════════════════════════════
• Risk 1-2% per trade MAX
• Stop after 3 losses in a row
• Maximum 5-7 trades per day
• Primary signals (▲▼) = Full size
• Quick signals (●) = Half size
════════════════════════════════════════════════════════════════════════════════
█ RECOMMENDED SETTINGS
════════════════════════════════════════════════════════════════════════════════
FOR 5-MINUTE CHARTS:
Pulse Length: 8 | Wave Length: 5
ATR Length: 7 | Signal Smooth: 2
SL Multiplier: 1.2 | TP Ratio: 1.5
FOR 15-MINUTE CHARTS:
Pulse Length: 10 | Wave Length: 6
ATR Length: 8 | Signal Smooth: 3
SL Multiplier: 1.5 | TP Ratio: 2.0
════════════════════════════════════════════════════════════════════════════════
█ BEST TRADING TIMES
════════════════════════════════════════════════════════════════════════════════
FOREX: 8:00 - 11:00 AM EST (London-NY overlap)
CRYPTO: 9:00 - 11:00 AM EST (US morning)
STOCKS: 10:30 - 11:30 AM EST (post-open)
AVOID: Major news events, low volume periods
════════════════════════════════════════════════════════════════════════════════
█ COMMON MISTAKES
════════════════════════════════════════════════════════════════════════════════
✗ Entering during orange dots (too early)
✗ Trading against trend filter
✗ Moving stop loss further away
✗ Taking every signal without filtering
✗ Overtrading (20+ trades/day)
════════════════════════════════════════════════════════════════════════════════
█ QUICK REFERENCE
════════════════════════════════════════════════════════════════════════════════
LONG TRADE:
Orange dots → Green dot → Cyan bars rising → ▲ Triangle → BUY
SHORT TRADE:
Orange dots → Green dot → Red bars falling → ▼ Triangle → SELL
HOLD UNTIL:
Histogram fades OR TP hit OR opposite signal
════════════════════════════════════════════════════════════════════════════════
█ REMEMBER
════════════════════════════════════════════════════════════════════════════════
• Wait for GREEN DOT before looking for entries
• Only trade when TREND aligns with signal
• Always use STOP LOSS - no exceptions
• Quality over quantity - skip weak setups
60% win rate + 1:2 RR = PROFITABLE
════════════════════════════════════════════════════════════════════════════════
GOOD LUCK & HAPPY SCALPING!
════════════════════════════════════════════════════════════════════════════════
BK AK-Warfare Formations👑 BK AK-Warfare Formations — Geometric Structure, Tactical Readability 👑
Built for traders who want validated structure (channels/wedges/triangles) without chart clutter — with compact tags, hover briefings, filtered alerts, and forward-projected battle lines.
🎖️ Full Credit — Foundation Engine (Trendoscope)
Original foundation (Trendoscope Auto Chart Patterns):
The entire pattern engine (multi-zigzag scanning, pivot logic, trendline-pair validation, geometric classification, overlap handling, pattern caps, and the base drawing framework) is by Trendoscope — one of the strongest Pine engineers on TradingView and the creator of the underlying detection architecture.
This script keeps that engine intact. My work is a tactical layer on top: readability + interaction + alerts + forward structure projection.
🧠 What This Script Does (User-Facing Output)
This indicator automatically detects and draws these geometric formations on price:
Channels
AC — Ascending Channel
DC — Descending Channel
RC — Ranging Channel
Wedges
RWE / FWE — Rising/Falling Wedge (Expanding)
RWC / FWC — Rising/Falling Wedge (Contracting)
Triangles
ATC / DTC — Ascending/Descending Triangle (Contracting)
ATE / DTE — Ascending/Descending Triangle (Expanding)
CT — Converging Triangle
DT — Diverging Triangle
You can display either the full pattern name or short tactical tags so structure stays visible without burying price.
🔍 How It Detects (So You Know It’s Not Random)
Trendoscope’s engine follows a strict geometric workflow:
1) Multi-Zigzag Sweep (micro → macro)
The script runs multiple zigzag configurations (up to 4) so it can detect the same market at different swing sensitivities — from tighter formations to broader ones.
2) Pivot Structure Validation (5 or 6 pivots)
A formation is only eligible when the swing sequence provides a valid pivot set (typically 5 or 6 pivots depending on your setting).
3) Trendline-Pair Validation + Geometry Classification
Two boundary trendlines are built and validated:
Upper boundary anchored to pivot highs
Lower boundary anchored to pivot lows
Then the engine measures geometry to classify:
Parallel → Channel
Converging / Diverging with same direction → Wedge
Converging / Diverging with opposing direction → Triangle
4) Quality Controls (optional but recommended)
Error threshold controls tolerance for line fit
Flat threshold controls what qualifies as “flat”
Bar ratio verification checks proportionality of swing spacing
Avoid overlap prevents stacking noisy patterns
Max pattern caps keeps chart readable
Net effect: You get validated geometry, not doodles.
🧩 BK Enhancements — Why This Publication Exists (Not a Mashup)
This publication is not “two indicators glued together.” It’s a single detection engine plus an execution-oriented interface layer built specifically to solve real pain points:
A) Tactical Labels (Clarity Under Pressure)
Short-form tags (AC/DC/RWE/CT…) to keep charts readable
Independent transparency controls (label text + background)
Optional hover tooltips that show full pattern name + directional bias (Bullish/Bearish/Neutral)
How it works together: Trendoscope detects/draws → BK label layer converts to short tags + applies transparency + tooltip overlay.
B) Alert System Upgrades (Signal Routing, Not Spam)
Alerts are filtered by:
Bias: Bullish / Bearish / Neutral
Category: Channel / Wedge / Triangle
So instead of “New Pattern!” noise, you can route only what you trade.
How it works together: When the engine confirms a pattern, BK’s alert router reads the pattern name → derives bias/category → checks your enabled filters → sends only approved alerts.
C) Pattern Border Extension (Forward Battlefield Edges)
Optional feature to extend only the two true boundary lines of the pattern forward by N bars so you can plan:
where price might react
where breaks/retests become obvious
where entries/invalidations belong
This extension logic is selective (it avoids extending zigzag legs/pivot scribbles) and attempts to extend the best-matching border pair only.
How it works together: After patterns are drawn, BK scans existing pattern lines → identifies the border pair → extends those borders forward.
⚙️ Core Controls (What You Actually Tune)
Scanning / Quality
Zigzag lengths & depths (swing sensitivity)
Pivots used: 5 vs 6
Error tolerance + flat threshold
Bar ratio verification
Overlap avoidance + repaint behavior
Max patterns displayed
Display / Readability
Theme colors or custom palette
Transparency for pattern lines/labels
Short labels ON/OFF
Tooltips ON/OFF
Border extension ON/OFF + extend bars
Alerts
Enable alerts overall
Filter by bias
Filter by category (Channel/Wedge/Triangle)
🗺️ How To Use It (Practical, Not Fantasy)
Channels: trade the lane — entries near the boundary, invalidation outside the structure
Wedges: watch compression/expansion and breaks + retests (distribution/accumulation behavior often shows here)
Triangles: plan edges, not the middle — compression → expansion is the whole point
This script gives structure. You still decide execution rules (entry trigger, invalidation, targets).
🧑🏫 BK / AK
AK is honor — my mentor’s standard: patience, clean execution, no gambling.
👑 King Solomon’s Standard
This is warfare—market warfare—so we move by wisdom, not emotion:
“By wise counsel you will wage your own war, and in a multitude of counselors there is safety.” — Proverbs 24:6
BK AK-Warfare Formations — where formation meets judgment, and judgment meets execution.
Gd bless. 🙏
BK AK-Flag Formations🏴☠️ BK AK-Flag Formations — Continuation Structure, Tactical Readability. 🏴☠️
Built for traders who press momentum with discipline: it finds flagpoles + flags/pennants, validates the structure, draws the boundaries, and labels it in a way you can act on without clutter.
🎖️ Full Credit — Foundation Engine (Trendoscope)
Original foundation (Trendoscope Flags & Pennants):
The core detection engine (multi-zigzag swing extraction, pivot logic, validation/classification framework, and base drawing architecture) is by Trendoscope.
This script keeps that engine intact. My work adds a tactical execution layer: short tags + tooltip briefing + alert routing + forward border projection.
✅ What This Script Does
This indicator hunts continuation formations after an impulse move, and outputs three things:
Detects the pole (impulse leg) and the consolidation that follows
Classifies the consolidation as a Flag or Pennant, and assigns a bias (Bull/Bear/Neutral) based on context
Draws the structure and labels it cleanly, with optional hover briefings and filtered alerts
You get continuation structure across multiple sensitivities, so it can catch tight flags and larger, slower continuations without changing settings every chart.
🔍 How It Detects (So You Know It’s Not Random)
This is not “pattern art.” It’s rule-based swing logic + geometry:
1) Multi-Zigzag Sweep (micro → macro)
The script runs multiple zigzag levels (up to 4) to extract swings at different sensitivities.
That means the same market is scanned for both:
short, fast consolidations
larger, cleaner consolidations
2) Impulse + Consolidation Validation
After swings are extracted, the engine checks:
that the move qualifies as an impulse “pole”
that the consolidation stays within a controlled retracement window (your Max Retracement control)
that the consolidation geometry is coherent enough to be classified (tolerance controlled by Error Threshold and Flat Threshold)
3) Optional Quality Filters (you control strictness)
Verify Bar Ratio: checks proportion/spacing of pivots, not just price shape
Avoid Overlap: prevents stacking new patterns on top of existing ones
Max Patterns: hard cap so the chart stays readable
Repaint option: allows refinement if better coordinates form (useful for real-time traders)
🧩 BK Enhancements — Why This Publication Exists (Not a Mashup)
This is one pattern engine plus a purpose-built execution layer. Not “two indicators glued together.”
A) Short-Form Pattern Tags (clarity under pressure)
Instead of long labels drowning price, the script can replace them with compact codes:
BF / BeF / BP / BeP / F / P / UF / DF / RF / FF / AF / DeF
This is not cosmetic — it lets you keep structure visible while trading.
B) Tooltip Briefing (optional)
Hover a tag to see:
the full pattern name
the bias (Bullish/Bearish/Neutral)
So you get detail only when you request it, not sprayed across the chart.
C) Alert Routing (signal control, not spam)
Alerts can be filtered by:
Bias (Bull/Bear/Neutral)
Type (Flag vs Pennant)
So you can route only what you trade — e.g., bullish continuations only, or pennants only.
D) Pattern Border Extension (planning the break/retest)
Optional feature extends only the two true boundary lines forward by N bars, so you can plan:
breakout/breakdown levels
retest zones
invalidation outside structure
This extension is selective: it aims to extend the actual borders, not random zigzag legs.
How these work together:
Trendoscope detects/validates → draws the pattern → BK layer converts labels to short tags + applies transparency + tooltip overlay → BK alert router filters by bias/type → BK border extension projects the two boundary lines forward.
That’s the purpose: faster reads + cleaner execution planning.
🏷️ How To Read the Codes (Practical Translation)
BF — Bull Flag: strong pole → controlled pullback → watch boundary break + continuation
BP — Bull Pennant: thrust → tight compression → expansion confirms carry
BeF — Bear Flag: down impulse → weak rallies → breakdown favors continuation lower
BeP — Bear Pennant: pause beneath resistance → release favors trend continuation
F / P: generic tags when it’s valid but shouldn’t over-specify
⚙️ What You Actually Tune
Zigzag lengths/depths: sensitivity (faster vs cleaner)
Max Retracement: how deep consolidation may retrace the pole
Error / Flat thresholds: strictness of structure validation
Overlap / Max patterns: chart cleanliness
Labels: short tags, transparency, tooltips
Border extension: extend boundaries forward by N bars
Alerts: enable + filter by bias and by type
🧑🏫 BK / AK
AK is honor — my mentor’s standard: patience, clarity, no gambling.
All glory to G-d — the true source of wisdom, restraint, and endurance.
👑 King Solomon Lens
“Plans are established by counsel; by wise guidance wage war.” — Proverbs 20:18
Continuation trading is the same: impulse → formation → execution.
BK AK-Flag Formations — when the standard rises, the line advances.
Gd bless. 🙏
deKoder | VWAP | Volume Weighted Average PriceAn advanced, open-source Volume Weighted Average Price indicator with multi-period anchoring, standard deviation bands, previous period value area extension, comprehensive alerts, and enhanced visual context.
This script is a significant upgrade over standard VWAP implementations (including TradingView's built-in VWAP (the basis for this script) and typical community versions). It is designed for experienced intraday, swing, and positional traders who require precise, context-aware mean reference levels with minimal chart clutter.
Key Features & Trading Value
1 | Previous Period Value Area Extension
Automatically extends the prior anchor period's VWAP and ±1σ bands into the current period as reference lines.
Optional translucent fill between the previous ±1σ bands creates a clear "previous value area" zone.
Why it matters : The edges of the prior period's value area often act as dynamic support/resistance or mean reversion zones. This visual persistence eliminates manual drawing and provides immediate context for reactions at prior fair value zones. These are especially powerful on intraday charts when using Daily/Weekly/Quarterly anchors.
2 | Comprehensive Approach Alerts
Configurable proximity-based alerts trigger when price approaches (from either side) any plotted level: current VWAP, all six deviation bands (±1σ, ±2σ, ±3σ), and previous period VWAP/±1σ value area.
Adjustable trigger percentage and minimum bar cooldown prevent alert spam during consolidation.
Why it matters : Enables hands-off monitoring of potential mean reversion setups, deviation extremes, or breakout/rejection candidates without constant screen watching.
3 | Additional Professional-Grade Enhancements
Flexible Anchor Periods : Daily, Weekly, Monthly, Quarterly (default), Yearly, Decade, Century, plus event-based resets (Earnings, Dividends, Splits).
Intelligent Visibility Controls :
Hide entire indicator on selected higher timeframes (1H and above).
Dynamic distance filter removes off-screen levels (based on % from price).
Limit plotting to last X bars for performance and clarity.
Real-Time Info Table :
Displays current anchor, timeframe, and rounded live values for VWAP and all bands, enabling fast access to precise level values for order placement.
Fully customisable position, text size, font (monospace option), and price level decimal rounding.
Right-Side Labels with Tooltips :
Clean, minimal labels at current levels with hover tooltips allow you to quickly identify the level without cluttering the chart.
Customizable Styling :
Independently adjustable colours for VWAP and each deviation band pair.
Offset support for forward/backward shifting.
Recommended Use Cases
Intraday Scalping/Mean Reversion : 5m–15m charts with Daily anchor + previous value area as primary reference.
Swing Entries : Higher timeframes (1H–4H) using Weekly or Quarterly VWAP for bias, with previous quarter's value area as major confluence.
Deviation Trading : Watch for price interaction with ±2σ/±3σ bands combined with approach alerts for potential exhaustion.
Institutional Benchmarking : Quarterly/Yearly anchors approximate common institutional VWAP reset periods.
Additional Notes
Source fixed to hlc3 (industry standard for VWAP).
Enjoy cleaner, more contextual VWAP analysis.
| | deKoder | |
Released December 2025 | Open Source
// IF THIS FREE(!) VWAP SCRIPT — OR ANY OF ITS FRIENDS — HAS HELPED YOU BANK SOME COINS...
// A COFFEE, LUNCH, OR A FEW SATS GOES A LONG WAY TOWARDS KEEPING THE LIGHTS ON
// COFFEE KEEPS THE PINE FLOWING 😉❤️ | FR33FA11
// SOL: 2N8HWPAHSC7Z8SLyneMrZp234UAP9HCtQX7wNXw7LKQC
// ETH: 0xE770D254DC579d1db7bA2fe74376b7009527356B
// BTC: bc1qd8j3awht5yrjtnvt5dagxldzhaesc83sftype3
// POLYGON: 0xE770D254DC579d1db7bA2fe74376b7009527356B
// HYPE: 0xE770D254DC579d1db7bA2fe74376b7009527356B
Stochastic MAs+ (K Logit Bands)Below is a ready-to-paste **English TradingView publish description** that is detailed enough to satisfy the “Originality & usefulness” and “Description” house-rule expectations. It explains **what is original**, **why the components are combined**, **how they work together**, and **how to use it**, including practical presets and cautions.
---
## Title
**Stochastic MAs+ (K Logit Bands) — Extreme-Zone Reversion with Adaptive Percentile Bands**
## Overview
This script is a **Stochastic-based extreme-zone tool** designed for traders who want signals that occur **near statistically-defined extremes**, while reducing noise and overtrading.
It combines three ideas into one coherent workflow:
1. **Stochastic %K/%D with selectable smoothing MAs** (EMA/ZEMA/SMA/KAMA)
2. **Adaptive Logit Percentile Bands** computed **on %K** (not price) to define “extreme” zones dynamically
3. A **two-step signal workflow** (Touch → Re-entry → First K/D Cross) with **cooldown + invalidation rules** to suppress repeated signals in choppy markets
This is not a “mashup for convenience.” The logit-percentile bands and the signal state-machine are explicitly built to **solve a common Stochastic problem**: fixed 20/80 levels are often too generic, and raw K/D crosses can fire repeatedly in ranges. The components here work together to make Stochastic extremes more **context-aware** and signals more **selective**.
---
## What makes it original / useful
### 1) Dynamic extremes based on the oscillator’s own distribution
Instead of using fixed 20/80, the script builds **percentile-based bands on transformed %K values**:
* **Logit transform** is used to expand sensitivity near 0 and 100 (where Stochastic tends to compress).
* A rolling buffer stores recent transformed values.
* **Percentiles** (e.g., 15% / 85%) define adaptive low/high bands that respond to changing volatility regimes.
Result: “Extreme” zones are **relative to recent market behavior**, which is often more practical than static thresholds.
### 2) A structured signal process to reduce overtrading
Classic Stochastic crossovers can spam signals. This script uses a **state-based trigger**:
**Long logic**
1. %K drops below the **adaptive low band** (touch/arm)
2. %K re-enters above the low band (re-entry)
3. The first bullish crossover occurs (K crosses above D) while K remains below the mid-band
**Short logic** is symmetrical.
Then it adds:
* **Cooldown**: prevents clustered entries during noisy periods
* **Max wait**: invalidates old setups if confirmation takes too long
* **Mid-band invalidation**: if K moves too far (crosses mid), the setup is considered late and discarded
This turns Stochastic into a **controlled mean-reversion trigger** rather than an always-on crossover machine.
---
## How it works (plain-language)
### A) Stochastic with selectable smoothing (MAK/MAD)
* `%K` is computed from the standard Stochastic formula, then smoothed with your chosen MA.
* `%D` is computed by smoothing `%K` with a chosen MA.
**MA options**
* **EMA**: baseline responsive smoothing
* **ZEMA**: reduced lag (faster reactions)
* **SMA**: heavier smoothing (less noise)
* **KAMA**: adaptive smoothing (reacts faster when price moves, slower in noise)
### B) K-based Logit Percentile Bands
The script builds bands from **%K**, not from price:
* Convert K into logit space → store in rolling buffer
* Compute low/high percentiles in logit space
* Convert back to 0–100 space with logistic function
* Produce: **kLo / kHi / kMid**
This keeps the bands stable and meaningful even when volatility changes.
### C) Signal state-machine
* **Touch**: K enters extreme zone
* **Re-entry**: K exits the extreme zone
* **Trigger**: first K/D cross after re-entry, while still in the “early” half of the band (before mid)
The idea is to catch reversals **early**, but not on the very first noisy bounce.
---
## How to use
### 1) Baseline setup (recommended starting point)
These defaults are already aligned with the script’s intent:
* Stoch: **21 / 3 / 7**
* Bands: **bandLen 200**, **low/high 0.15/0.85**, **logitGain 1.0**
* Signals: **cooldown 8**, **maxWait 24**, **Use D Direction Confirm ON**
This typically produces fewer, more selective signals than traditional 14/3/3 style settings.
### 2) Interpreting the plots
* **%K (purple)** and **%D (yellow)** are the smoothed oscillator lines.
* **kLo / kHi / kMid** are the adaptive bands.
* Labels:
* **“L”** appears near the low band when a long setup completes
* **“S”** appears near the high band when a short setup completes
### 3) Practical trading workflow
* Prefer using signals as **timing cues**, not as a complete strategy by themselves.
* Many traders combine this with:
* a trend filter (e.g., EMA200 direction)
* a volatility filter (avoid low-vol chop)
* or higher timeframe confirmation
The script is designed to give **high-quality entry timing near extremes**, but you still need a trade plan for exits and risk management.
---
## Tuning guide (fast)
### Want signals closer to extremes (more selective)?
* Decrease / increase percentiles:
* lowPct **0.12** and highPct **0.88**
* Increase logitGain slightly:
* logitGain **1.1–1.2**
* Increase cooldown:
* cooldown **10–14**
### Want earlier signals (faster confirmations)?
* Use faster MA for %D (or reduce periodD):
* maD = **ZEMA** (or EMA)
* Reduce cooldown a bit:
* cooldown **5–8**
### Getting too many signals in ranges?
* Increase periodK to reduce chop:
* periodK **34**
* Increase cooldown
* Keep D confirm enabled
---
## Strengths
* **Adaptive extreme zones**: bands adjust to changing regimes (better context than static 20/80)
* **Reduced noise**: the Touch→Re-entry→Cross structure avoids many “random” crosses
* **Configurable smoothing**: lets you tune response vs stability via MA type
* **Risk-friendly by design**: cooldown + invalidation reduce repeated entries during chop
## Limitations
* **Not a full strategy**: no position management, take-profit/stop rules, or trend filter included
* **Mean-reversion bias**: in strong trends, Stochastic can stay overbought/oversold for long periods
* **Band buffer needs history**: percentile bands are more reliable after enough bars have accumulated (bandLen)
---
## Notes on repainting / confirmations
* The percentile band buffer uses **confirmed bars** (optional) to avoid unstable band updates during an incomplete candle.
* Signal labels are plotted when the full signal conditions are met (you can enforce confirmed-bar signals via settings).
---
## Suggested disclaimer (TradingView-friendly)
This indicator is for research and educational purposes and does not constitute financial advice. Always test settings on your market/timeframe and use proper risk management.
MTF MACD Dynamic█ MACD PULSE MTF
Multi-timeframe MACD with 4-color dynamic histogram.
█ FEATURES
- Multi-timeframe support
- 4-color histogram (trend strength + direction)
- Dynamic MACD/Signal line colors
- Cross markers for entry signals
█ HOW TO USE
HISTOGRAM COLORS:
🟢 Bright Green = Bullish momentum increasing
🟢 Teal = Bullish momentum decreasing
🔴 Bright Red = Bearish momentum increasing
🟠 Orange = Bearish momentum decreasing
SIGNALS:
- Buy: Histogram turns green + MACD crosses above signal
- Sell: Histogram turns red + MACD crosses below signal
- Circle markers show exact cross points
█ SETTINGS
- Fast EMA: 12 (default)
- Slow EMA: 26 (default)
- Signal SMA: 9 (default)
- Custom timeframe: Select any TF while on current chart
█ TIPS
- Use higher timeframe for trend direction
- Combine with support/resistance levels
- Fading colors = potential reversal warning
London Session + EMA 200 + UT BotCombined trading indicator featuring three powerful tools:🔵 London Session Box - Highlights the London trading session (0700-1600) with a customizable colored box to identify high-volume trading periods📈 EMA 200 - Exponential Moving Average for trend identification and dynamic support/resistance levels🎯 UT Bot - ATR-based trailing stop indicator with buy/sell signals and bar coloring for trend following
Sarina - 6 EMA Smart Signals - Colored AreasAdvanced 6 EMA system with smart MACD-based color coding. Features triple EMA pairs, dual signal types (MACD-only & FULL), real-time dashboard, and customizable displays. Perfect for multi-timeframe trend analysis with clear visual signals.
# 6 EMA Smart Signals with Colored Areas
## Overview
A sophisticated multi-timeframe indicator featuring three independent EMA systems with intelligent color coding based on MACD momentum. Perfect for traders who want clear visual signals and comprehensive trend analysis.
## Key Features
✅ **Triple EMA System** - 6 EMAs total (3 fast + 3 slow)
✅ **Smart Color Coding** - 4-color system based on MACD strength
✅ **Dual Signal Types** - MACD-only & FULL (EMA crossover) signals
✅ **Real-time Dashboard** - Compact table with all vital statistics
✅ **Fully Customizable** - Adjust every color, period, and display option
## How It Works
The indicator plots three pairs of EMAs, each representing different time horizons. The area between each fast/slow EMA pair is colored based on the corresponding MACD histogram's strength and direction. This creates an intuitive visual representation of momentum across multiple timeframes.
## Signal Interpretation
- **🟢 Green Triangles (Below Bar):** Buy signals
- **🔴 Red Triangles (Above Bar):** Sell signals
- **Faint Triangles:** MACD-only signals (quicker, more sensitive)
- **Bright Triangles:** FULL signals (EMA crossover + MACD, more reliable)
## Best Practices
1. **Start with defaults** - The preset periods (9/13, 21/34, 55/89) work well across most markets
2. **Use multi-system confirmation** - Wait for at least 2 systems to agree before entering
3. **Watch color alignment** - When all three areas turn the same color, the trend is strongest
4. **Combine with price action** - Use support/resistance levels for better entries
## Compatibility
- Works on all markets (Forex, Stocks, Crypto, Commodities)
- Suitable for all timeframes (1 minute to monthly)
- Compatible with other indicators
## Settings Guide
### EMA Systems
- **System 1 (Blue):** Short-term signals
- **System 2 (Green):** Medium-term trend
- **System 3 (Orange):** Long-term direction
### Display Options
- Toggle individual systems on/off
- Choose between MACD colors or solid fills
- Adjust signal visibility independently
## Disclaimer
This indicator is for educational and research purposes only. Past performance does not guarantee future results. Always practice proper risk management and consult with a financial advisor before trading.
Vegas Double ChannelThe indicator utilizes the 144 and 169 channels as the minor level, and the 576 and 676 channels as the major level. The EMA12 serves as a filter.
Translation for the complete definition of the “Vegas Double Channel” indicator:
The “Vegas Double Channel” indicator is designed to analyze market trends and identify potential trading opportunities. It employs the following parameters:
Minor Level: The indicator considers the 144 and 169 channels as the minor level, which are used to identify short-term market movements.
Major Level: The 576 and 676 channels are classified as the major level, indicating longer-term market trends.
Filter: The EMA12 (Exponential Moving Average with a period of 12) acts as a filter to smooth out short-term noise and provide a clearer picture of the overall market trend.
ATR Bands (MA Distance)ATR Bands (MA Distance) plots volatility-based bands at a multiple of ATR away from a selected moving average.
Unlike percentage envelopes or standard deviation bands, this indicator measures distance from the moving average using ATR, representing the market’s normal “breathing range” rather than statistical probability.
Key Features
The center line is a selectable moving average (EMA, SMA, RMA/Wilder, or WMA).
Upper and lower bands are calculated as:
Moving Average ± ATR × Multiplier
Band width automatically adapts to changing market volatility.
Designed for consistent use across different markets and timeframes without parameter re-optimization.
Non-repainting: all values are calculated only from confirmed historical bars.
Intended Use
ATR Bands (MA Distance) is best used as a context and preparation tool , not as a direct entry or exit signal.
Typical use cases include:
Identifying areas where price is extended relative to its recent volatility.
Visualizing normal vs. stretched price distance from the moving average.
Supporting range-based analysis or trade preparation when combined with other indicators (e.g., oscillators).
Important Notes / How NOT to Use
This indicator does NOT generate buy or sell signals by itself .
Touching or crossing a band does not imply an automatic reversal.
In strong trending markets, price may stay outside the bands for extended periods.
ATR Bands should not be interpreted as overbought/oversold levels on their own.
This indicator does NOT repaint. Once a bar is closed, its values will not change.
For best results:
Use ATR Bands as a preparation zone, then wait for confirmation from your own entry logic.
Disable or ignore band-based mean-reversion ideas during strong trend conditions.
Concept Summary (Short)
ATR Bands (MA Distance) visualize how far price has moved from its moving average in terms of volatility, without repainting and without relying on percentage deviation or statistical assumptions.
Optional Short Description (Preview)
Volatility-based, non-repainting ATR bands plotted at a distance from a moving average.
Designed for market context and trade preparation — not standalone signals.
Sarina - 6 EMA Smart Signals - V12292025Overview
This advanced trend-following indicator combines 6 Exponential Moving Averages (EMA) into three synchronized layers to provide a comprehensive view of market structure, momentum, and potential future direction. Designed with visual clarity and professional analysis in mind, it uses a dynamic "ribbon" system and a composite momentum engine.
Key Features
Triple-Layer Ribbon System: EMAs are paired in three sets (Fast, Medium, Slow). The space between each pair is dynamically colored based on the relationship between price action and momentum.
4-Stage Dynamic Coloring: The fill color isn't just about the trend; it's about strength.
Strong Bullish/Bearish: Trend and Momentum are aligned.
Weak Bullish/Bearish: Trend is present, but momentum is fading.
Composite Trend Projection: Using a physics-based velocity and acceleration algorithm, the indicator plots three non-linear projection curves to forecast potential EMA paths.
Fully Customizable Signals: Includes 12 different signal types (EMA Crossovers and MACD Zero-Cross) for each layer, all toggleable and pre-configured for a clean chart experience.
Scale-Stable UI: Optimized for TradingView’s scaling system, ensuring projection lines stay perfectly aligned with price action during manual chart adjustments.
How to Use
Trend Ribbon: Look for "Strong" colors (Solid Green/Red) for high-probability trend following.
Soft Transparency: Use the opacity settings (35%, 50%, 75%) to overlay multiple layers without cluttering your view.
Projections: Observe the curvature of the projection lines. A flattening curve often precedes a trend reversal or consolidation.
Signal Layers: Enable EMA signals for trend entries and MACD signals for early momentum warnings.
Settings
Global Colors: Customize the 4-stage trend colors to fit your dark or light theme.
Layer Controls: Independent periods for all 6 EMAs and 3 MACD oscillators.
Projection Toggle: Enable/Disable the curve forecasting system.
Mid-term RibbonWhat the indicator is meant to tell you
-Mid-term trend direction (bullish vs bearish)
-Trend transitions when the ribbon flips color
-Trend strength (wider ribbon = stronger momentum)
-Helps traders stay in trends longer and avoid chop
Typical use cases
-Trend-following entries and exits
-Filtering trades in the direction of the ribbon
-Visual confirmation for other signals
-Swing trading and position trading
Colors are customizable
Only for educational purposes, no recommendation to buy or sell
Nadaraya-Watson Envelope + EMA Filter (Optimized for BTC)Best Way to Use This Nadaraya-Watson EnvelopeThis indicator is not a standalone "holy grail" system — it's a powerful predictive tool that estimates where price is "likely" to go based on historical patterns.Core Idea:The orange line = predicted "fair value" or mean price path
The blue cloud = expected range (dynamic support/resistance)
Price tends to mean-revert to the orange line
Best Practices:Trade bounces in ranging markets:BUY at lower band (green) when price is below orange line
SELL at upper band (red) when price is above orange line
Target: the orange line or opposite band
Trade breakouts in trending markets:If price breaks and closes strongly outside the cloud → potential trend start
Wait for pullback to orange line for entry in trend direction
Best timeframes:5m–15m: Scalping bounces
1H–4H: Swing trading mean reversion
Add confluence for higher win rate:Only take BUY if price is above EMA 200 (uptrend bias)
Combine with volume spike or RSI oversold/overbought
Use with support/resistance levels
Risk management:Stop loss: just outside the envelope
Take profit: at orange line or next band
enjoy
TTM Squeeze Screener FriendlyTTM Squeeze indicator optimized for use with TradingView Pine Screener — computes squeeze on/just‑on/release and momentum on the chart symbol (60m default).
8x EMA + Labels + Trend + Volume Arrows + Developing VAH/VALThis indicator is a comprehensive trend, structure, and momentum tool designed for intraday and swing traders.
It combines multi-timeframe EMAs, dynamic EMA labels, developing Value Area High/Low, and volume-based entry signals into a single clean overlay.
Top 10 Bullish Wedge ScannerThe script does a check of all stocks and gives the top 10 list of stocks with bullish wedge formed on daily timeframe.
LTF Distribution Analyzer█ OVERVIEW
LTF Distribution Analyzer reveals the hidden price distribution and order flow within each candle by sampling lower timeframe data. It visualizes where prices concentrated, how volume was distributed between buyers and sellers, and identifies divergences between price action and actual market participation.
Unlike traditional candlesticks showing only OHLC, this indicator exposes the statistical structure of price movement using quartile-based visualization combined with delta analysis.
█ CONCEPTS
The indicator is built on two core concepts:
1 — Statistical Price Distribution
Each candle contains many lower timeframe bars. By analyzing these bars, we calculate:
• Q1 (25th percentile) - 25% of prices traded below this level
• Q3 (75th percentile) - 75% of prices traded below this level
• Median - The middle price value
• IQR (Interquartile Range) - The Q3-Q1 spread containing 50% of all prices
2 — Volume Delta Analysis
Delta measures buying vs selling pressure:
• Delta = Buy Volume − Sell Volume
• Positive delta = More aggressive buying
• Negative delta = More aggressive selling
• Delta Ratio normalizes this as a percentage
█ HOW IT WORKS
The indicator fetches lower timeframe data using request.security_lower_tf() and processes it to create a statistical summary:
Step 1: Timeframe Calculation
• Auto mode: Chart timeframe ÷ Auto Divisor = LTF
• Example: 1H chart ÷ 1000 = ~3.6 second sampling
• Manual mode: User-specified timeframe
Step 2: Data Collection
• Collects all close prices from LTF bars within current candle
• Aggregates volume by candle direction (bullish/bearish)
Step 3: Statistical Analysis
• Calculates quartiles (Q1, Q3), median, and boundaries
• Identifies outliers using 1.5× and 3× IQR fences
• Finds Volume POC (price with highest volume)
Step 4: Delta Calculation
• Sums buy volume (from bullish LTF bars)
• Sums sell volume (from bearish LTF bars)
• Computes delta ratio for color determination
█ VISUAL ELEMENTS
┌─────────────────────────────────────────┐
│ ▲ Extreme outlier (3× IQR) │
│ △ Mild outlier (1.5× IQR) │
│ ─ Upper whisker cap │
│ ┊ Whisker line (dashed) │
│ ▄ IQR Box (Q1 to Q3 range) │
│ ━ Volume POC (highest volume) │
│ ● Median (green=bull, red=bear) │
│ ┊ Whisker line (dashed) │
│ ─ Lower whisker cap │
│ ▽ Mild outlier │
│ ▼ Extreme outlier │
└─────────────────────────────────────────┘
█ COLOR SYSTEM
Colors indicate the relationship between candle direction and order flow:
🟢 TEAL (Positive Flow)
Bullish candle + Positive delta
→ Strong buying confirmation
→ Trend continuation signal
🔴 RED (Negative Flow)
Bearish candle + Negative delta
→ Strong selling confirmation
→ Trend continuation signal
🟠 ORANGE (Mixed Signal A)
Bullish candle + Negative delta
→ Price up but sellers dominated
→ Potential weakness/reversal warning
🔵 BLUE (Mixed Signal B)
Bearish candle + Positive delta
→ Price down but buyers dominated
→ Potential accumulation/reversal signal
█ SETTINGS
Timeframe Settings
• LTF Mode — Auto or Manual selection
• Manual Timeframe — Specific LTF when in Manual mode
• Auto Divisor — Higher = finer granularity (default: 1000)
• Allow Sub-Minute — Requires Premium subscription
Visual Style
• Positive/Negative Flow colors — Customize the 4 flow colors
• Box Transparency — Opacity of the quartile box (0-100%)
Statistics Display
• Show Statistics Panel — Toggle on-chart stats table
• Show Timeframe Badge — Toggle LTF indicator badge
• Panel Position — Choose corner placement
• Panel Size — Text size selection
█ HOW TO USE
1. Divergence Detection
Look for color mismatches:
• Orange bars in uptrend = weakness, potential reversal
• Blue bars in downtrend = strength, potential reversal
• Multiple consecutive divergent bars strengthen signal
• Wait for confirmation before entry
2. Volume POC Trading
• POC marks where most volume traded
• POC clusters at similar levels = strong S/R zone
• Price often returns to POC before continuing
• Use POC for entry/exit targeting
3. Trend Confirmation
• Consecutive teal = strong uptrend
• Consecutive red = strong downtrend
• Median position shows intrabar momentum
• Wide boxes indicate high volatility
4. Outlier Analysis
• Extreme markers (▲▼) often mark stop hunts
• Consider fading extremes at key levels
• Mild markers (△▽) = areas to watch
█ RECOMMENDED SETTINGS
For different chart timeframes:
│ Chart TF │ Auto Divisor │ Resulting LTF │
├──────────┼──────────────┼───────────────┤
│ 15M │ 1500 │ ~1M │
│ 1H │ 1000 │ ~3-4s │
│ 4H │ 600 │ ~24s │
│ Daily │ 500 │ ~2-3M │
Tip: Check the TF badge to confirm active sampling timeframe.
█ BEST PRACTICES
Do:
✓ Use "Bars" chart style for cleanest display
✓ Combine with support/resistance analysis
✓ Wait for confirmation bars
✓ Note POC clusters across multiple bars
✓ Adjust divisor based on your timeframe
Avoid:
✗ Trading single bar signals alone
✗ Using during low volume periods
✗ Trading immediately after news releases
✗ Ignoring overall market context
█ LIMITATIONS
• Requires adequate market liquidity for reliable signals
• Sub-minute timeframes need Premium subscription
• Historical data depth depends on TradingView's data availability
• Delta calculation assumes volume direction matches candle direction
█ NOTES
This indicator works best on liquid markets (forex majors, major indices, popular stocks/crypto) where volume data is meaningful.
The gray dotted vertical line marks where LTF data becomes available - bars before this line won't display the indicator.
For questions or suggestions, leave a comment below.
mncl's SL_TP FInderWe are all used to using the ATR to estimate the stop loss or take profit. So I wondered if there is another way since I found the ATR a little too far sometimes.
In this script, i combine other ways of finding your take profit or stop loss. These can be found in the settings. I also include a way to estimate the amount of money to risk per trade.
Have a go at it and let me know if you found it useful.
- mncl -
Stack Detector Stack Detector, which is showing how the ma moves as a chart goes by.
It help you the power of the waves






















