Quality-Controlled Trend StrategyOverview
This strategy demonstrates a clean, execution-aware trend framework with fully isolated risk management.
Entry conditions and risk logic are intentionally separated so risk parameters can be adjusted without altering signal behavior.
All calculations are evaluated on confirmed bars to ensure backtest behavior reflects real-time execution.
Design intent
Many scripts mix entries and exits in ways that make results fragile or misleading.
This strategy focuses on structural clarity by enforcing:
confirmed-bar logic only
fixed and transparent risk handling
consistent indicator calculations
one position at a time
It is intended as a baseline framework rather than an optimized system.
Trading logic (high level)
Trend context
EMA 50 vs EMA 200 defines directional bias
Entry
Price alignment with EMA 50
RSI used as a momentum confirmation, not as an overbought/oversold signal
Risk management
Stop-loss based on ATR
Fixed risk–reward structure
Risk logic is isolated from entry logic
Editing risk without affecting signals
All stop-loss and take-profit calculations are handled in a dedicated block.
Users can adjust:
ATR length
stop-loss multiplier
risk–reward ratio
without modifying entry conditions.
This allows controlled experimentation while preserving signal integrity.
Usage notes
Results vary by market, timeframe, and volatility conditions.
This script is provided for testing and educational purposes and should be validated across multiple symbols and forward-tested before use in live environments.
Pinescript
Prismatic Liquidity Engine [JOAT]Prismatic Liquidity Engine v6 - SMC Structure, Liquidity & Confluence Suite
IMPORTANT NOTES (READ FIRST)
This is a strategy script with automated entry/exit logic for backtesting and forward-testing purposes. It does not place live trades without your broker integration.
This script is written in Pine Script® v6 and is intended to be used on standard candlestick charts (not Heikin Ashi, Renko, etc.).
Source code visibility: This script is published as Protected Source (closed-source) to prevent unauthorized copies and maintain versioning integrity. This description documents what the strategy does, how it works, and how to use it.
All backtesting results shown use the default settings documented below. Adjust parameters for your specific instrument and risk tolerance.
Protected Source / Closed-Source Clarification
Protected source means the internal implementation is not publicly viewable.
The operational behavior is documented here: what is detected, what each module does, what each input controls, and how to interpret the output.
If you see unauthorized copies elsewhere, report them via TradingView's plagiarism reporting system.
Overview
Prismatic Liquidity Engine v6 is a Smart Money Concepts (SMC) strategy that combines market structure analysis, liquidity zone detection, and price imbalance identification into a unified decision framework. The strategy identifies trading opportunities by analyzing:
Market structure shifts (Break of Structure / Change of Character)
Liquidity pools (equal highs/lows where stops accumulate)
Price imbalances (Fair Value Gaps created by aggressive institutional participation)
Order blocks (accumulation/distribution zones)
The strategy requires confluence across multiple factors before generating entries, filtering out noise and focusing on setups where structure, liquidity, and momentum align.
What Makes This Strategy Original (Originality & Usefulness)
This is not a simple mashup of standard indicators. The strategy implements a coordinated SMC workflow:
Structure defines the directional bias (BOS confirms trend, CHoCH signals potential reversal).
Liquidity zones identify where stop-hunts are likely to occur before major moves.
FVGs and Order Blocks provide objective entry zones with defined invalidation levels.
Session filtering restricts trading to high-liquidity periods (London/NY overlap).
ATR-based risk management adapts stop/target placement to current volatility.
Confluence scoring requires multiple conditions to align before entry.
The purpose is to systematize SMC concepts into a testable, repeatable framework rather than relying on discretionary interpretation.
1) Chart Visuals — What You See
A) Fair Value Gap (FVG) Zones
The strategy detects three-candle formations that create price imbalances:
Bullish FVGs : Gap between candle 1's high and candle 3's low after aggressive upward movement.
Bearish FVGs : Gap between candle 1's low and candle 3's high after aggressive downward movement.
Zones are drawn as boxes with size labels showing the gap in price terms.
Mitigation tracking marks zones as "used" when price trades back through them.
How to use:
FVGs represent areas where price moved too fast for balanced trading.
Price often returns to these zones before continuing in the original direction.
The strategy uses FVGs as potential entry zones when other confluence factors align.
B) Order Block (OB) Zones
Bullish OBs : Last down-candle before a strong upward move (institutional absorption).
Bearish OBs : Last up-candle before a strong downward move (institutional distribution).
Volume-weighted analysis distinguishes significant blocks from noise.
Breach detection invalidates spent order blocks.
C) Market Structure Labels
BOS (Break of Structure) : Price breaks beyond previous swing high/low, confirming trend continuation.
CHoCH (Change of Character) : Price breaks structure against the prevailing trend, signaling potential reversal.
Swing highs/lows are marked and connected for visual structure tracking.
D) Liquidity Zone Markers
Equal highs : Buy-side liquidity pools (stop losses from shorts).
Equal lows : Sell-side liquidity pools (stop losses from longs).
Sweep detection identifies when liquidity is taken.
E) Session Background Shading
Asian session: 0000-0900 UTC
London session: 0700-1600 UTC
New York session: 1300-2200 UTC
Background tint indicates active session for context.
F) Trend EMAs (Optional)
EMA 20 / 50 / 200 for trend direction context.
Used internally for trend alignment requirements.
2) Strategy Execution Logic (How Entries Work)
Long Entry Conditions (all must be true):
Market bias is bullish (confirmed by BOS or CHoCH analysis).
Price is within a valid bullish FVG or Order Block zone.
EMAs show bullish alignment or recovery.
Volume exceeds 20-period moving average (participation confirmation).
Trade window is active (session filter).
A BOS or CHoCH signal is present.
Short Entry Conditions (all must be true):
Market bias is bearish (confirmed by BOS or CHoCH analysis).
Price is within a valid bearish FVG or Order Block zone.
EMAs show bearish alignment or recovery.
Volume exceeds 20-period moving average.
Trade window is active.
A BOS or CHoCH signal is present.
Exit Logic:
Primary stop loss: ATR-based (default 1.5x ATR).
Fallback stop: Recent swing point if ATR stop is too wide.
Take profit: ATR-based (default 2.5x ATR).
Trailing stop available for locking in profits.
3) Strategy Properties & Backtesting Documentation
Default Strategy Properties (Properties Tab):
Initial Capital : $10,000 USD — realistic for average retail trader
Base Currency : USD
Order Size : 10% of equity per trade
Pyramiding : 1 order (no pyramiding for conservative risk)
Commission : 0.05% per order (realistic for CFD/forex brokers)
Slippage : 2 ticks per order (accounts for market impact)
Risk Per Trade:
With ATR Stop Multiplier at 1.5x and 10% position sizing, typical risk per trade is approximately 1-3% of equity depending on volatility. This is within the sustainable 5-10% maximum recommended by TradingView guidelines.
Published Backtest Results (GOLD 5m, Sep 28, 2025 – Jan 12, 2026):
Total Trades : 37
Profitable Trades : 56.76% (21 of 37)
Profit Factor : 2.067
Net Profit : +$40.90 USD (+0.04%)
Max Drawdown : $98.62 USD (0.10%)
Sample Size Justification:
This strategy intentionally generates fewer trades (37 in this sample) because it requires multi-factor confluence before entry:
Market structure confirmation (BOS or CHoCH)
EMA trend alignment
Valid SMC zone proximity when zone filter is enabled
The confluence requirement filters out low-probability setups, resulting in a positive profit factor (2.07) and controlled drawdown (0.10%) at the cost of trade frequency. This is a deliberate design choice — the strategy prioritizes quality over quantity .
To increase sample size for your own testing:
Test across multiple instruments (EURUSD, BTCUSD, indices)
Extend the historical date range
Reduce Swing Length parameter from 5 to 3
Strategy Input Defaults:
Swing Length : 5 bars
ATR Period : 14 bars
ATR Stop Multiplier : 1.5x ATR
ATR Take Profit Multiplier : 2.5x ATR (1.67:1 reward-to-risk)
Risk % of Equity : 1.0%
Trading Session : 0000-2359 (all sessions)
Require FVG/OB Zone Entry : OFF
Require Volume Confirmation : OFF
Require EMA Alignment : ON
Backtest Limitations & Realistic Expectations:
Backtesting assumes perfect fills at the close price — live execution will differ.
Commission and slippage significantly impact net results. Always test with your broker's actual fees.
Past performance does not guarantee future results.
Results vary across instruments, timeframes, and market regimes.
This strategy performs best in trending markets with clear structure — ranging/choppy conditions will produce more false signals.
Always forward-test on paper before risking real capital.
4) Real-Time Dashboard
The dashboard provides market context at a glance:
Market Bias : BULLISH / BEARISH / NEUTRAL based on structure.
Trend Strength : STRONG / WEAK based on EMA alignment.
ATR : Current volatility level with HIGH / MEDIUM / LOW classification.
Volume : Current volume ratio vs 20-period average (SPIKE / HIGH / NORMAL / LOW).
Session : Active trading session.
Key Levels : Dynamic resistance and support from recent structure.
Signal Count : Active SMC signals with strength indicator.
Trade Window : OPEN / CLOSED based on session filter.
5) Inputs & Settings Reference
Structure Detection
Swing Length : Lookback for swing high/low detection (default: 5). Lower = more signals, Higher = major structure only.
FVG Settings
Show FVGs : Toggle FVG box display.
FVG Extension : How long FVG boxes extend forward (default: 20 bars).
Order Block Settings
Show Order Blocks : Toggle OB display.
OB Extension : How long OB boxes extend forward (default: 20 bars).
Liquidity Settings
Liquidity Range % : ATR percentage for "equal high/low" classification (default: 0.5%).
Show Liquidity Zones : Toggle liquidity pool markers.
Strategy Controls
Enable Long Trades : Allow long entries (default: ON).
Enable Short Trades : Allow short entries (default: ON).
Risk % of Equity : Maximum risk per trade (default: 1.0%).
ATR Period : Length for ATR calculation (default: 14).
ATR Stop Multiplier : Stop distance in ATR units (default: 1.5).
ATR TP Multiplier : Take profit distance in ATR units (default: 2.5).
Trading Session Filter : Restrict entries to specific time windows (default: 0000-2359 = all day).
Require FVG/OB Zone Entry : When ON, price must be inside an FVG or OB zone. When OFF, trades trigger on structure signals alone (default: OFF).
Require Volume Confirmation : When ON, volume must exceed 20-period average (default: OFF).
Require EMA Alignment : When ON, price must be above/below EMAs for direction (default: ON).
Visual Settings
Show Dashboard : Toggle dashboard display.
Show Sessions : Toggle session background shading.
Show Fibonacci : Toggle Fibonacci level display.
Color Customization : Full control over all visual elements.
6) Recommended Workflow
Step 1 — Configure Risk Parameters
Set risk % appropriate for your account (1-2% recommended).
Adjust ATR multipliers based on your instrument's volatility.
Set commission/slippage to match your broker.
Step 2 — Select Appropriate Timeframe
M15-H1 : Best balance of signal frequency and reliability.
H4-D1 : Higher quality signals, fewer false positives.
M1-M5 : Scalping possible but requires tighter risk management.
Step 3 — Backtest on Your Instrument
Run strategy tester with realistic commission/slippage.
Review trade list for entry quality.
Adjust parameters if needed for your specific market.
Step 4 — Forward Test Before Live Trading
Paper trade or use small size to validate real-time behavior.
Monitor for any discrepancies between backtest and live conditions.
7) Suitable Markets
Forex majors (EURUSD, GBPUSD, USDJPY) — 24/5 liquidity, clear structure.
Major indices (SPX, NASDAQ, DAX) — trending behavior, respects levels.
Gold (XAUUSD) — respects structure and liquidity concepts.
Crypto (BTCUSD, ETHUSD) — high volatility, adjust ATR multipliers.
8) Limitations & Best-Use Guidance
This strategy is a decision-support and backtesting tool, not a guaranteed profit system.
Performance varies across market conditions (trending vs ranging).
Low liquidity periods may produce false signals.
News events can override technical analysis.
Overnight gaps may affect stop placement.
Always validate with forward testing before live capital.
9) Alerts
Bullish / Bearish Regime Start
FVG Formation (Bull / Bear)
Order Block Detection
BOS / CHoCH Structure Shift
Liquidity Sweep
High-Volume Confirmation
Recommended: Use "Once Per Bar Close" for most reliable alerts.
Disclaimer
This strategy is for educational and backtesting purposes only. It does not constitute financial advice. Trading involves substantial risk of loss. Past performance does not guarantee future results. Always test configurations on historical data and paper trading before applying them to live capital. You are solely responsible for your trading decisions and risk management.
-Made with passion by officialjackofalltrades
Astral Flux Architect [JOAT]Astral Flux Architect – Institutional-Grade Trend & Confluence Suite
Introduction
Astral Flux Architect (AFA) is a professional, closed-source indicator built for traders who demand institutional-level clarity without exposing internal logic. It combines a zero-lag trend ribbon, multi-indicator momentum engine, regime state detection, multi-timeframe confirmation, volatility bands, volume analytics, swing structure, divergences and a compact dashboard into one unified visual system.
AFA is designed to be:
Clean enough for discretionary traders who hate chart clutter
Structured enough for systematic traders who think in rules and regimes
Flexible enough to adapt from lower intraday charts up to swing and position trading
This script is public but closed source . You can load it on any chart, change inputs, and use all features freely, but the underlying Pine Script v6 code is protected to prevent low-effort counterfeit copies and to comply with TradingView’s House Rules.
Core Functionality Overview
AFA is organised into several cooperating engines:
Trend Ribbon Engine – Five stacked moving averages (user-selectable type) form a zero-lag directional ribbon with colour-coded alignment.
Momentum Confluence Engine – RSI, MACD and ADX are blended into a single confluence score so you can quantify trend agreement at a glance.
Regime State Machine – Converts raw signals into stable Bullish , Bearish or Neutral regimes with debounce and minimum hold logic.
MTF Confirmation Layer – Optional higher-timeframe (HTF) checks that gate or filter signals based on HTF trend and momentum.
Volatility Band Engine – ATR-based envelopes that expand and contract with volatility percentile, framing fair-value vs. extension.
Volume Intelligence Layer – Compares current volume to adaptive baselines to highlight conviction vs. weak participation.
Structure & Divergence Module – Auto-detected swing highs/lows, structure break alerts and optional RSI-based divergences.
Strength Meter & Dashboard – A right-side panel that summarises bias, strength and HTF alignment without needing extra subcharts.
Visual Map – What You See on the Chart
Ribbon – Five lines following price:
– Deep/bright greens = strong bullish alignment (fast MAs above slow).
– Deep/bright reds = strong bearish alignment (fast MAs below slow).
– Neutral blues/greys = transition / compression.
Band Envelopes
– Semi-transparent band around price derived from ATR.
– Upper band: potential extension / take-profit or fade area.
– Lower band: potential discount / bid zone in bullish regimes and breakdown area in bearish regimes.
Background Tint
– Soft green background = bullish regime confirmed.
– Soft red background = bearish regime confirmed.
– Neutral/very light background = no active regime (chop, transition).
Swing Markers & Structure Lines
– Small "H" labels mark confirmed swing highs; small "L" labels mark confirmed swing lows.
– Dashed horizontal lines extend from recent pivots to visualise active support/resistance.
Divergence Markers (optional)
– Tiny green diamonds below price = bullish RSI divergence (price lower low, RSI higher low).
– Tiny red diamonds above price = bearish RSI divergence (price higher high, RSI lower high).
Strength Meter
– A compact percentage widget on the right side representing combined trend+momentum+volume strength from 0–100.
– Darker colour + higher value = more decisive trend environment.
Astral Flux Dashboard (top-right by default)
– Header: ASTRAL FLUX + current symbol.
– "REGIME": Bullish / Bearish / Neutral, colour-coded.
– "CONFLUENCE": −100 to +100, summarising trend+momo alignment.
– "TREND": textual rating (Strong / Weak / Flat) with score.
– "RSI", "MACD", "ADX" rows: quick assessment of each component.
– "HTF": Higher-timeframe bias (Bull / Bear / Mixed) when HTF is enabled.
Engines in Detail
1. Trend Ribbon Engine
Five moving averages with user-selectable type: EMA, SMA, ZEMA, DEMA, TEMA, HMA, ALMA, KAMA.
Defaults: 8 / 21 / 55 / 100 / 200 – a blend of short-term reactivity and institutional anchor levels.
Ribbon colouring encodes both direction and ordering:
– All stacked bullish (fast above slow) = strong bullish environment.
– All stacked bearish (fast below slow) = strong bearish environment.
– Mixed stacking or tight clustering = transition or compression.
Fills between the lines visually highlight compression/expansion phases.
2. Momentum Confluence Engine
RSI checks whether price is building strength (above bull threshold), losing strength (below bear threshold) or neutral.
MACD checks if momentum agrees with price direction (line vs. signal, above/below zero).
ADX evaluates whether conditions are trending (above threshold) or ranging.
A vote is assigned by each component (bull, bear or neutral), then combined with ribbon alignment into a Confluence Score from −100 to +100.
This score is displayed in the dashboard and used by the regime detector and alerts.
3. Regime State Machine
Raw conditions (trend score + confluence + anti-chop filters) propose bullish or bearish states.
Debounce logic requires a minimum number of confirm bars before flipping.
Minimum hold time prevents immediate flip-flopping in chop.
Final regimes:
– Bullish : background tinted green; bullish alerts active.
– Bearish : background tinted red; bearish alerts active.
– Neutral : no tint; best to stand aside or reduce size.
4. Multi-Timeframe Confirmation Layer
Pulls higher-timeframe data (e.g., 4H while trading 45m) using Pine Script v6 non-repainting request patterns.
Evaluates HTF trend (MAs), HTF RSI zone and HTF MACD orientation.
Modes:
– Display : show HTF row in dashboard, no gating.
– Filter : disallow entries against a strong opposite HTF trend.
– Strict : only allow trades when LTF and HTF agree.
5. Volatility Band Engine
Bands are based on ATR length + multiplier with optional dynamic scaling via volatility percentile.
Use cases:
– Identify stretched moves (price pinned outside band).
– Frame pullback zones (mid-band and opposite band).
– Combine with regime to avoid shorting strong bull trends too early.
6. Volume Intelligence Layer
Compares current volume to a rolling baseline.
Flags high-volume bursts (potential genuine moves) vs. low-volume drifts (low conviction).
Feeds into the strength meter and high-volume alerts.
7. Structure & Divergence Module
Automatically finds swing highs/lows with user-controlled lookback.
Draws short horizontal lines to mark tradable structure.
Generates alerts on:
– Bullish structure breaks (price clearing prior swing highs).
– Bearish structure breaks (price losing prior swing lows).
Optional RSI divergence detection (bullish and bearish) for advanced timing.
8. Strength Meter & Dashboard
Strength meter condenses trend score, confluence, ADX and volume into a simple 0–100 scale.
Dashboard text is intentionally concise: every row answers a specific question (Who is in control? How strong? Is HTF aligned?).
Colours are tuned for both dark and light theme visibility using blended midnight-blue backgrounds and high-contrast text.
Inputs & Customisation (Detailed)
Trend Ribbon Settings
– MA Type, lengths, plot visibility and fill transparency.
– Ideal workflow: leave the base stack at 8/21/55/100/200 and adjust type per asset (HMA/ALMA for crypto, EMA/ZEMA for FX, KAMA for indices).
Momentum Confluence
– Tune RSI thresholds tighter for scalping, wider for swing trading.
– Adjust ADX threshold to define what you consider a "real" trend.
Regime Detector
– ATR separation multiplier filters out flat MAs.
– Slope ROC and minimum hold bars balance responsiveness vs. stability.
Multi-Timeframe
– Choose HTF (e.g., trade 15m with 1H, trade 1H with 4H, trade 4H with 1D).
– Switch between Display, Filter, Strict depending on how aggressively you want to enforce alignment.
Volatility Bands
– Tune ATR length/multiplier per asset.
– Enable dynamic mode when volatility regimes vary strongly over time.
Visual Settings
– Toggle background tint, bar colours, structure, divergences, dashboard and meter individually for ultra-clean or fully-instrumented layouts.
Practical Workflows
1. Intraday Trend-Following (5–15m)
Use HTF = 1H or 4H in Filter mode.
Look for AFA bullish regime + HTF bull alignment + confluence above +30.
Enter on pullbacks toward the mid-band or slow ribbon MAs.
Partial take-profit at upper band; trail behind ribbon or recent swing lows.
2. Swing Trading (1H–4H)
HTF = 1D, mode Strict .
Focus on clear regime shifts after prolonged neutral/chop periods.
Use structure breaks plus high confluence for initial entries.
Use divergences and strength meter > 80 to manage exits on exhaustion.
3. Mean-Reversion Windows
Only consider counter-trend plays when:
– Strength meter > 85.
– Price extended beyond the outer band.
– Divergence appears or structure refuses further extension.
Reduce position size relative to with-trend trades.
Alerts
AFA ships with a rich alert set (exact names may vary with future updates):
Bullish / Bearish Regime Start
Strong Bull / Bear Confluence
Upper / Lower Band Touch in active regime
Bullish / Bearish Structure Break
High-Volume Bull / High-Volume Bear
Bullish / Bearish Divergence
Recommended: attach alerts to a higher timeframe chart (e.g., 1H/4H) and then drill into lower timeframes to refine entries.
Best Practices
Treat AFA as a decision-support system , not a signal spammer.
Let regime and HTF alignment define your directional bias first.
Use confluence and strength meter to time entries, not to force trades.
Keep risk management external (position sizing, stop placement and portfolio rules are still your responsibility).
Test on your favourite asset/timeframe combinations before going live.
Publishing Rules & IP / Reuse Notice
This indicator is published on TradingView as public, closed source . It follows TradingView House Rules. Using this tool on your charts is fully allowed.
Disclaimer
Astral Flux Architect is an educational and analytical tool, not financial advice. Markets are risky; there is no guarantee of profit or protection from loss. Always test configurations on historical data and paper trading before applying them to live capital, and make sure your risk per trade and overall exposure are appropriate for your situation.
-Made with passion by officialjackofalltrades
InstitutionalSuite Fusion [JOAT]InstitutionalSuite Fusion
Introduction
InstitutionalSuite Fusion is a single, overlay-style TradingView indicator that combines multiple market context layers into one coherent workspace:
Confluence (Fusion Wave): A bounded, smoothed confluence engine that maps multi-factor momentum/pressure into a clean wave around price.
Trend Regime + Matrix: A multi-length trend regime model that summarizes directional bias and coherence (agreement) across a configurable range of lengths.
Timeline Levels: Key opens and reference levels (day/week/month/year open, previous session highs/lows) for clean session structure.
Liquidity Zones + Ladder: Automatic imbalance-style zones, mitigation tracking, and a right-side “ladder” that lists the nearest active zones.
Dashboard + Matrix UI: Lightweight tables to keep state readable without cluttering the chart.
The purpose of Fusion is not to “merge indicators for the sake of merging”. It is built so the modules reinforce each other:
Confluence shows pressure and inflection.
Trend Regime shows whether that pressure aligns with the broader directional backdrop.
Timeline levels provide context for where price is trading relative to key opens and prior extremes.
Liquidity zones provide likely reaction areas and objective references for risk framing.
The ladder/dashboard compress all of the above into a fast decision surface.
Important Note
This is an analysis indicator . It does not place trades and it does not guarantee results. Use it as a decision-support layer inside a complete trading plan.
What You See On The Chart (Visual Guide)
1) Fusion Wave (Confluence Overlay)
When Modules -> Confluence is enabled, the indicator draws:
Fusion Basis (subtle baseline): an EMA-based anchor around which the wave oscillates.
Fusion Wave (colored line): the confluence projection mapped into price space using ATR scaling.
Wave Fill : a filled band between the wave and the basis to visualize pressure intensity.
Bar Tint (optional): candle colors are tinted to match the confluence gradient.
How to read it
Positive wave coloration / upward pressure: confluence is net bullish.
Negative wave coloration / downward pressure: confluence is net bearish.
Transitions around neutral: watch for shifts in pressure, then confirm with the Trend Regime and nearby Liquidity Zones/Timeline levels.
Why it stays clean and on-scale
Fusion confluence is explicitly bounded and smoothed to avoid runaway values that can distort chart scaling. The wave is derived from the bounded confluence and an ATR-based amplitude.
2) Regime Background (Optional)
When Modules -> Regime background is enabled, the chart background is softly tinted:
Bull regime: bias exceeds the neutral band.
Bear regime: bias falls below the neutral band.
Neutral regime: bias remains inside the neutral band.
Use it as “macro tint”, not as a signal by itself.
3) Timeline Levels (Session/Period Structure)
When Modules -> Timeline levels is enabled, Fusion can plot:
Day Open
Week Open
Month Open
Year Open (12M)
Previous Day High / Low
Previous Week High / Low
How to use them
Treat opens as “fair value anchors” for that period.
Use previous highs/lows as liquidity reference points and reaction zones.
Combine them with Liquidity Zones: confluence shifts near a timeline level is higher quality than a shift in empty space.
Note: level prices are aligned to the instrument’s tick size to keep plotted lines visually accurate.
4) Liquidity Zones (Imbalance-Style Zones)
When Modules -> Liquidity zones is enabled, Fusion detects and draws zones as boxes.
Zone types
Bull zones (typically below/around current price when created): represent upward displacement leaving an imbalance.
Bear zones (typically above/around current price when created): represent downward displacement leaving an imbalance.
Zone lifecycle
Creation: a zone is created only on confirmed bars and only if its size meets your minimum ATR-based threshold.
Aging/Fade: zones progressively fade as they get older (configurable).
Mitigation: a zone is marked mitigated when price trades back through its price range.
Optional deletion: mitigated zones can be kept (muted) or deleted automatically.
How to read zones
Active zones are potential reaction areas.
Mitigated zones are “used” and generally less relevant.
Zones are not a promise of reversal; they are objective references for planning, risk framing, and expectation management.
5) Liquidity Ladder (Nearest Zone Navigator)
When Modules -> Liquidity ladder is enabled (and zones are enabled), Fusion builds a right-side ladder on the last bar.
Each ladder row corresponds to one of the nearest active zones (by distance from current price).
Each row is plotted at the zone’s midpoint .
The label includes direction (BULL/BEAR), midpoint price, and zone size expressed in ATR units.
Rows are offset to the right by a configurable amount so they do not overlap active candles.
How to use the ladder
Quickly identify the nearest potential reaction area without scanning every box.
Use it to plan “where is the next level of interest above and below me?”
Combine with confluence: strong confluence into a nearby opposite-side zone is often where traders become more selective.
6) Dashboard (Compact State Readout)
When Modules -> Dashboard is enabled, a compact table is shown (position configurable):
State: Bull / Bear / Neutral based on confluence thresholding.
Flux: the bounded confluence value.
Bias: the aggregate trend regime bias.
Coh %: coherence (agreement) across the selected matrix lengths.
Zones B / Zones R: count of active bull and bear zones.
Nearest: nearest active zone midpoint.
The dashboard updates on the last bar to stay responsive and light.
7) Matrix Table (Trend Regime Breakdown)
When Modules -> Matrix table is enabled, Fusion prints a multi-column view of trend regime across lengths.
Header
Regime (Bull/Bear/Neutral)
Bias (aggregate)
Coherence (agreement)
Rows/columns
Len: the actual length used for that column.
Trend: the trend value for that length.
Str: normalized strength (0-100).
State: Bull / Bear / Neutral per length.
How to interpret coherence
High coherence means many lengths agree on direction (cleaner regime).
Low coherence means lengths disagree (chop/transition/mean-reversion risk).
How The Confluence Engine Works (Conceptual, No Code)
Fusion confluence blends multiple normalized components into a single bounded score. Each component is normalized so that no single raw scale dominates.
Components
ZEMA delta (ATR-normalized): adaptive trend impulse using a zero-lag EMA concept versus a standard EMA.
RSI normalization: RSI mapped into a symmetric -1 to +1 space around 50.
MACD histogram impulse (ATR-normalized): momentum agreement and acceleration.
Channel position (range-normalized): where price sits inside a lookback channel.
Volume impulse (standardized): relative volume change signed by price direction.
Weights and smoothing
Each component has a configurable weight.
The blend is smoothed to reduce noise.
The final result is bounded to keep visuals stable and readable.
HTF Blend (Optional)
When enabled, Fusion blends current timeframe confluence with a higher-timeframe confluence sample to reduce low-timeframe noise.
The HTF sample is taken from confirmed higher-timeframe data (designed to avoid forward-looking behavior).
How To Use InstitutionalSuite Fusion (Practical Workflow)
Step 1: Start with a clean chart
Fusion is meant to be readable on its own. Use a normal candlestick chart and avoid stacking other indicators on top unless you have a clear reason.
Step 2: Identify regime first (Matrix + Coherence)
If regime is Bull or Bear and coherence is strong, you are likely in a trending environment.
If regime is Neutral or coherence is low, be cautious with trend assumptions and focus more on levels and reactions.
Step 3: Use Timeline Levels to frame context
Day/Week opens help define where price is “holding value” for the period.
Previous highs/lows often act as reaction magnets.
Step 4: Use Liquidity Zones as objective areas
Zones can act as potential reaction areas and reference points.
Prefer zone interactions that also align with timeline levels or strong regime context.
Step 5: Use Confluence to time the pressure shift
Treat confluence as “pressure”.
A confluence shift near a meaningful level/zone is more informative than a shift in open space.
Confluence can lead; regime can confirm.
Step 6: Use the Ladder to stay oriented
The ladder is your “nearest active zones” list.
Use it to plan what is closest above and below price at a glance.
Inputs Guide (What Each Setting Does)
Core
Source: price series used across the indicator (default: close).
Theme
Bear / Mid / Bull colors: define the gradient used across the wave, tints, and UI accents.
Bar tint: transparency strength applied to candle tint.
Background tint: transparency strength applied to regime background.
Modules
Confluence: enables Fusion Wave and bar tinting.
Regime background: optional background regime tint.
Timeline levels: plots period opens and prior highs/lows.
Liquidity zones: plots imbalance-style zones and mitigation.
Matrix table: multi-length trend regime breakdown (position configurable).
Liquidity ladder: nearest-zone navigator (requires zones).
Dashboard: compact state readout (position configurable).
Dash position / Matrix position: choose where tables appear.
Confluence
ZEMA length: responsiveness of the adaptive impulse component.
RSI length: RSI smoothing window.
MACD fast/slow/signal: MACD impulse tuning.
Channel length: lookback window for channel position.
Smoothing: final smoothing of confluence blend.
Wave basis length: smoothing of the wave baseline.
Wave amplitude (ATR): how far the wave can swing away from basis.
Wave fill transparency: opacity of the filled band.
Weights: relative contribution of each component.
HTF blend / HTF / HTF weight: blends higher-timeframe confluence into the final score.
Trend Regime
Base length: starting length for the regime matrix.
Matrix columns: how many lengths are evaluated.
Length step: distance between lengths (base + step * column).
Neutral band: dead-zone around zero for Bull/Bear/Neutral classification.
Strong coherence %: threshold used for coloring/interpretation of coherence strength.
Std blend: how much the model blends “EMA trend” with a “standardized momentum/range” component.
Timeline Levels
Day/Week/Month/Year open toggles
Prev day H/L, Prev week H/L toggles
Extend right: extend levels into the future.
Line width: thickness of timeline lines.
Liquidity Zones
Zones (Bull/Bear/Both): which zone directions to detect.
Min zone size (ATR): filters out tiny zones.
Use wicks (high/low): if enabled, uses full wicks; otherwise uses candle bodies.
Max active boxes: maximum zones kept on chart.
Fade after N bars: controls how quickly zones visually fade.
Delete when mitigated: deletes mitigated zones instead of keeping them muted.
Border / Fill transparency: zone styling.
Ladder rows: how many nearest zones to display.
Ladder X offset: how far to the right the ladder is plotted.
Alerts
Fusion includes alert conditions for:
Fusion Bull Shift: confluence crosses above 0.
Fusion Bear Shift: confluence crosses below 0.
Fusion New Bull Zone: a new bullish zone is formed on a confirmed bar.
Fusion New Bear Zone: a new bearish zone is formed on a confirmed bar.
Fusion Zone Mitigated: at least one zone is mitigated on a confirmed bar.
Alert setup guidance
For most users, “Once Per Bar Close” is the safest choice.
Use alerts as notifications, not as automatic execution logic unless you have built and tested a full execution system.
Accuracy, Data Handling, and Repainting Notes
HTF blend is designed to reference confirmed higher-timeframe values so it does not rely on future bars.
Timeline previous highs/lows are based on completed periods.
Zones are created on confirmed bars; mitigation state updates as price trades back into zones.
Any indicator will recalculate historically if you change settings; that is expected behavior.
Recommended Use Cases
Trend continuation: strong regime + strong coherence; use zones/timeline as pullback references.
Transition/mean reversion: neutral/low coherence; prioritize levels and reactions over trend assumptions.
Level-based planning: timeline opens and prior highs/lows, plus nearest active zones from the ladder.
Limitations (Be Realistic)
Fusion is a visual decision-support tool, not a complete trading system.
Zones represent objective price structures, not guaranteed reversal points.
Different symbols and sessions can cause opens and period boundaries to appear differently depending on the exchange/session settings.
Very low-liquidity markets can produce noisier zones and confluence readings.
Resource limits exist (lines/boxes/labels). The script manages objects, but extremely dense charts may require lowering max boxes or ladder rows.
Source Protection and Publication Mode
This indicator is published as protected (closed-source) to preserve the integrity of the work, reduce unauthorized redistribution, and allow continued iteration without exposing implementation details. Users can apply the indicator normally on their charts, but the underlying source is not viewable.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk. You are responsible for your own decisions and risk management.
-Made with passion by officialjackofalltrades
Cumulative Volume Delta (CVD) Suite [QuantAlgo]🟢 Overview
The Cumulative Volume Delta (CVD) Suite is a comprehensive toolkit that tracks the net difference between buying and selling pressure over time, helping traders identify significant accumulation/distribution patterns, spot divergences with price action, and confirm trend strength. By visualizing the running balance of volume flow, this indicator reveals underlying market sentiment that often precedes significant price movements.
🟢 How It Works
The indicator begins by determining the optimal timeframe for delta calculation. When auto-select is enabled, it automatically chooses a lower timeframe based on your chart period, e.g., using 1-second bars for minute charts, 5-second bars for 5-minute charts, and progressively larger intervals for higher timeframes. This granular approach captures volume flow dynamics that might be missed at the chart level.
Once the timeframe is established, the indicator calculates volume delta for each bar using directional classification:
getDelta() =>
close > open ? volume : close < open ? -volume : 0
When a bar closes higher than it opens (bullish candle), the entire volume is counted as positive delta representing buying pressure. Conversely, when a bar closes lower than its open (bearish candle), volume becomes negative delta representing selling pressure. This classification is applied to every bar in the selected lower timeframe, then aggregated upward to construct the delta for each chart bar:
array deltaValues = request.security_lower_tf(syminfo.tickerid, lowerTimeframe, getDelta())
float barDelta = 0.0
if array.size(deltaValues) > 0
for i = 0 to array.size(deltaValues) - 1
barDelta := barDelta + array.get(deltaValues, i)
This aggregation process sums all the individual delta values from the lower timeframe bars that comprise each chart bar, capturing the complete volume flow activity within that period. The resulting bar delta then feeds into the various display calculations:
rawCVD = ta.cum(barDelta) // Cumulative sum from chart start
smoothCVD = ta.sma(rawCVD, smoothingLength) // Smoothed for noise reduction
rollingCVD = math.sum(barDelta, rollingLength) // Rolling window calculation
Note: This directional bar approach differs from exchange-level orderflow CVD, which uses tick data to separate aggressive buy orders (executed at the ask price) from aggressive sell orders (executed at the bid price). While this method provides a volume flow approximation rather than pure tape-reading precision, it offers a practical and accessible way to analyze buying and selling dynamics across all timeframes and instruments without requiring specialized data feeds on TradingView.
🟢 Key Features
The indicator offers five distinct visualization modes, each designed to reveal different aspects of volume flow dynamics and cater to various trading strategies and market conditions.
1. Oscillator (Raw): Displays the true cumulative volume delta from the beginning of chart history, accompanied by an EMA signal line that helps identify trend direction and momentum shifts. When CVD crosses above the signal line, it indicates strengthening buying pressure; crosses below suggest increasing selling pressure. This mode is particularly valuable for spotting long-term accumulation/distribution phases and identifying divergences where CVD makes new highs/lows while price fails to confirm, often signaling potential reversals.
2. Oscillator (Smooth): Applies a simple moving average to the raw CVD to filter out noise while preserving the underlying trend structure, creating smoother signal line crossovers. Use this when trading trending instruments where you need confirmation of genuine volume-backed moves versus temporary volatility spikes.
3. Oscillator (Rolling): Calculates cumulative delta over only the most recent N bars (configurable window length), effectively resetting the baseline and removing the influence of distant historical data. This approach focuses exclusively on current market dynamics, making it highly responsive to recent shifts in volume pressure and particularly useful in markets that have undergone regime changes or structural shifts. This mode can be beneficial for traders when they want to analyze "what's happening now" without legacy bias from months or years of prior data affecting the readings.
4. Histogram: Renders the per-bar volume delta as individual histogram bars rather than cumulative values, showing the immediate buying or selling pressure that occurred during each specific candle. Positive (green) bars indicate that bar closed higher than it opened with buying volume, while negative (red) bars show selling volume dominance. This mode excels at identifying sudden volume surges, exhaustion points where large delta bars fail to move price, and bar-by-bar absorption patterns where one side is aggressively consuming the other's volume.
5. Candles: Transforms CVD data into OHLC candlestick format, where each candle's open represents the CVD at the start of the bar and subsequent intra-bar delta changes create the high, low, and close values. This visualization reveals the internal volume flow dynamics within each time period, showing whether buying or selling pressure dominated throughout the bar's formation and exposing intra-bar reversals or sustained directional pressure. Use candle wicks and bodies to identify volume acceptance/rejection at specific CVD levels, similar to how price candles show acceptance/rejection at price levels.
▶ Built-in Alert System: Comprehensive alerts for all display modes including bullish/bearish momentum shifts (CVD crossing signal line), buying/selling pressure detection (histogram mode), and bullish/bearish CVD candle formations. Fully customizable with exchange and timeframe placeholders.
▶ Visual Customization: Choose from 5 color presets (Classic, Aqua, Cosmic, Ember, Neon) or create your own custom color schemes. Optional price bar coloring feature overlays CVD trend colors directly onto your main chart candles, providing instant visual confirmation of volume flow and making divergences immediately apparent. Optional info label with configurable position and size displays current CVD values, data source timeframe, and mode at a glance.
ScalpAtlas [JOAT]ScalpAtlas - Volatility, Structure, Confluence & Risk Console
IMPORTANT NOTES (READ FIRST)
This is an indicator (not a strategy). It does not place trades. It provides a structured decision framework: context + levels + sizing.
This script is written in Pine Script v6 and is intended to be used on standard candlestick charts .
All numbers shown in the console (S/R, SL/TP) are displayed using the symbol’s tick size formatting for maximum price precision.
No external indicators are required. The design goal is to keep the chart clean and use the Execution Console as the primary “operator panel”.
Source code visibility: This script is published as Protected Source (closed-source) . The purpose is to protect the work from unauthorized re-uploads/copies and to keep a stable versioning path for ongoing maintenance. This description is intentionally detailed so you can understand what the indicator does and how to use each feature without needing access to the implementation.
Protected Source / Closed-Source Clarification
Protected source does not mean “trust me”. It means the internal implementation is not publicly viewable.
The operational behavior is documented here: what is plotted, what each console cell means, what each input controls, and how to use the output.
If you see re-uploads or near-identical copies elsewhere, treat them with caution and rely on the official publication details and visuals.
Overview
ScalpAtlas is a regime-aware scalping and intraday decision suite designed to unify:
Volatility context (ATR or Gaussian bands)
Non‑repainting higher-timeframe structure (confirmed HTF pivot Support/Resistance)
Multi-timeframe momentum (DMI/ADX across 5m, 15m, 1h)
Volume pressure + absorption proxies (volume Z-score, wick/body efficiency, wick skew)
VWAP regime context (deviation and directional bias)
Actionable risk sizing (account/risk inputs, friction, point value, per-stop ladder sizing)
Instead of cluttering the chart with dozens of labels, the script consolidates critical information into a single right-side ScalpAtlas Execution Console so you can make fast decisions with consistent formatting.
What Makes It “A Suite” (Originality & Usefulness)
This script is not a simple mashup of common indicators. It is a coordinated workflow:
Structure defines where decisions should happen (confirmed HTF pivot zones).
Volatility bands define whether price is “extended” or “discounted” relative to the current regime.
MTF momentum (ADX/DMI) defines trend strength and directional alignment.
VWAP deviation adds context for mean-reversion vs continuation bias.
Flow metrics approximate absorption/stop activity (wick-based efficiency + volume deviation).
Risk console translates context into actionable sizing (ticks, risk per contract, quantity).
The purpose is to reduce discretionary guesswork by presenting a consistent, tick-accurate operational picture in one place.
1) Chart Visuals - What You See on the Chart
A) Volatility Bands (ATR or Gaussian)
The script plots a basis line and upper/lower volatility envelopes.
ATR mode : adapts to changing volatility via ATR.
Gaussian mode : uses standard deviation logic for statistical dispersion.
A subtle fill is used between bands for quick “zone recognition”.
How to use:
When price is near the lower band , the script treats it as a discount zone (context for long ideas if other filters agree).
When price is near the upper band , the script treats it as a premium zone (context for short ideas if other filters agree).
B) Dynamic Candle Coloring (optional)
When enabled, candles are tinted based on location vs the basis line. This is a visual aid only.
Above basis: warmer/bullish tint.
Below basis: cooler/bearish tint.
C) Market Structure Lines (optional)
The script draws Support (S) and Resistance (R) using confirmed higher-timeframe pivots.
Support line: dashed, light-brown tone.
Resistance line: dashed, rose tone.
Labels “S” and “R” are updated on the latest bar only (no spam).
Non‑repainting structure policy:
Structure levels are derived from a higher timeframe and intentionally confirmed. This means:
Levels appear only when a pivot is confirmed.
Levels can update when a new confirmed pivot replaces the previous one.
D) Optional “Chart Signals” (OFF by default)
To keep charts clean, signal labels and auxiliary overlays are gated behind Show Chart Signals . When ON, the script may display:
Long/Short signal labels (only on confirmed bars).
Dynamic SL/TP lines for active signal context.
Order block shading (a lightweight heuristic layer).
E) Background Strength Tint
A subtle background tint reflects the presence and strength of the current signal state.
2) ScalpAtlas Execution Console - Full Glossary
The Execution Console is the primary UI. It is designed to read like an operations dashboard.
Header Row (Row 0)
Column 0 : Script console title.
Column 1 : Symbol.
Column 2 : Chart timeframe.
Column 3 : Session context (London/NY vs Asia) based on current exchange time window.
Column 4 : VWAP header (shows VWAP or VWAP+VOL if a volume burst is present).
Column 5 : Band mode currently selected (ATR or Gaussian).
Row 1 - Momentum
5m / 15m / 1h ADX cells : trend strength + direction via DMI/ADX.
Cell color reflects directional bias and trend strength.
An “inside bar” state is highlighted distinctly to warn about compression.
VWAP % : percent deviation of price from VWAP (tick-safe computations).
EFF % : “efficiency” of the current bar (body size relative to total range).
How to use Momentum row:
Higher ADX across 15m and 1h increases the probability that trend-following logic is appropriate.
Inside-bar highlighting suggests compression and potential expansion risk (wait for confirmation).
VWAP deviation helps decide continuation vs mean-reversion bias.
Row 2 - Flow
Z : volume Z-score relative to its moving average and standard deviation.
Abs(B) : bullish absorption proxy (uses wick/balance/volume deviation mechanics).
Abs(S) : bearish absorption proxy.
Skew : wick skew (upper vs lower wick dominance).
IMB : imbalance flag (range/body relationship vs ATR context).
How to use Flow row:
High Z + strong Abs(B) near support can strengthen a long thesis.
High Z + strong Abs(S) near resistance can strengthen a short thesis.
Skew helps interpret whether rejection is happening on one side of the candle range.
IMB warns that the bar is “inefficient” (potential displacement / imbalance conditions).
Row 3 — Risk
Bal : account balance input.
R$ : base risk amount derived from risk % (before volatility adjustment).
PV : point value used for sizing (either symbol point value or your manual value).
ATRSL % : ATR-based stop model expressed as percent of price.
Fr : friction % (commissions/slippage buffer). This impacts the stop ladder computations.
Row 4 - Levels
S : current support level (tick-formatted).
R : current resistance level (tick-formatted).
Tick : symbol minimum tick size.
RR : risk:reward ratio used for projected TP.
Adj : volatility-adjusted risk % and corresponding risk amount.
Row 5 - Setup (Real-time operator row)
Signal : LONG / SHORT / NEUTRAL.
Str : composite strength score (0–100) based on momentum/volume/VWAP/absorption context.
SL : dynamic stop level derived from structure + buffer (tick-formatted).
TP : projected take-profit using RR ratio (tick-formatted).
Qty : calculated contract quantity based on your risk model.
Rows 6–17 - Money Management Ladder
This section models multiple stop configurations and shows the implied risk per contract and sizing.
Columns
SL : stop model name (ATR or % ladder).
SL% : selected stop percent plus friction.
Ticks : the implied stop distance in ticks.
Risk/ct : dollar risk per contract for that stop distance.
Qty : suggested quantity for that stop model.
How to use the ladder:
Pick a stop model that matches current volatility and structure spacing.
If the calculated Qty is too large/small, adjust risk %, friction, or point value (or select a different stop model).
Use the ladder as a “sanity check” to avoid accidental oversizing.
3) How the Signal Framework Works (High-Level, No Code)
The script evaluates a confluence framework that adapts to regime:
Trend regime (trend-following bias)
Requires higher ADX confirmation across higher timeframes.
Uses directional alignment across 5m/15m/1h momentum.
Uses VWAP bias and band position for timing.
Requires volume expansion (burst) to reduce low-liquidity signals.
Range / sweep regime (mean-reversion / liquidity sweep bias)
Looks for sweeps through structure (support/resistance) and reversal back inside.
Uses absorption proxies + volume expansion as confirmation.
Strength Score
The strength score is intended to prioritize only the best conditions:
Trend strength contribution (ADX)
Volume participation contribution (relative volume)
VWAP displacement contribution
Absorption contribution
Imbalance contribution
4) Inputs & Settings — Full Reference
Volatility Bands
Band Type : ATR or Gaussian.
Band Length : smoothing length used by basis and dispersion.
Band Multiplier : envelope width factor.
Market Structure
Pivot Lookback : sensitivity of pivot detection.
Structure Timeframe : HTF used to derive pivots.
Show Structure Lines : toggle dashed S/R lines and labels.
Momentum Heatmap
ADX Length : DMI/ADX length.
Strong Trend Threshold : minimum ADX used for trend regime classification.
Volume Analysis
Volume MA Length : baseline volume moving average length.
Volume Burst Multiplier : defines when current volume is a “burst”.
Risk Management
Account Balance : used for sizing.
Max Risk Per Trade (%) : base risk percent (volatility-adjusted internally for stability).
Friction (%) : commission/slippage buffer included in stop model calculations.
Risk:Reward Ratio : used to project TP.
Use Symbol Point Value : uses exchange-provided point value when available.
Manual Point Value : fallback when symbol point value is incorrect/missing.
Structure Buffer (ticks) : adds a tick buffer beyond structure for SL placement.
Scalping Money Management
Show ATR stop loss : includes ATR-based stop model in the ladder.
ATR timeframe : timeframe used for ATR stop computation.
Stop loss length : ATR length used for the ATR model.
Stop loss ladder (%) : configurable percent stops from 0.10% to 1.00% (each can be toggled).
Visual Settings
Show Execution Console
Console Position
Console Text Size
Show Chart Signals (keeps the chart clean when OFF)
Fill Opacity
Line Width
Dynamic Candle Coloring
5) Recommended Workflow (Practical Use)
Step 1 — Calibrate risk inputs
Set Account Balance.
Set Risk % conservatively.
Set Friction to reflect your real costs.
Confirm Point Value is correct for your instrument.
Step 2 — Select your structure timeframe
For intraday/scalping, use a higher timeframe that provides stable pivots (e.g., 15m/30m/1h depending on your chart timeframe).
Step 3 — Use the console to decide regime
If 15m & 1h ADX are strong and direction aligns, treat conditions as trend regime.
If not, be more selective and consider sweep/mean-reversion contexts.
Step 4 — Validate location
Prefer longs near support / lower band when context supports it.
Prefer shorts near resistance / upper band when context supports it.
Step 5 — Use SL/TP + Qty as the final gate
Confirm SL makes structural sense.
Confirm Qty is reasonable.
If not reasonable, do not force the trade—adjust stop model or risk.
7) Limitations & Best-Use Guidance
This tool does not know your broker execution, slippage, or fills. The risk ladder is a planning model.
Volume-based logic depends on the quality of volume data for the symbol/exchange.
Structure pivots are confirmed by design; you may see levels update only after confirmation.
Order block shading is a lightweight heuristic layer and is not a full SMC mapping engine.
Avoid making decisions on non-standard chart types (Heikin Ashi / Renko / etc.) if you want consistency with price-based stops and risk sizing.
Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. Trading involves risk, and you are responsible for your own decisions, sizing, and risk controls. Always test settings and workflows in a simulated environment before using them in live markets.
-Made with passion by officialjackofalltrades
Institutional Confluence Mapper [JOAT]Institutional Confluence Mapper (ICM)
Introduction
The Institutional Confluence Mapper is an open-source multi-factor analysis tool that combines five analytical modules into a unified confluence scoring system. It synthesizes institutional trading concepts including Relative Rotation analysis, Smart Money flow detection, Liquidity zone mapping, Session-based timing, and Volatility regime classification.
Rather than relying on a single indicator, ICM evaluates market conditions through multiple lenses simultaneously, presenting a clear confluence score (0-100%) that reflects the alignment of various market factors.
This script is fully open-source under the Mozilla Public License 2.0.
Originality and Purpose
This indicator is NOT a random mashup of existing indicators. It is an original implementation that creates a unified institutional analysis framework:
Why Multiple Modules? Most retail traders struggle because they rely on single indicators that provide conflicting signals. Institutional traders evaluate markets through multiple frameworks simultaneously. ICM bridges this gap by providing a unified view of complementary analysis methods.
The Confluence Scoring System: Each module contributes to a weighted confluence score (0-100%). Scores above 65% indicate bullish confluence; below 35% indicates bearish confluence.
How Components Work Together:
RRG (Relative Rotation) determines macro bias - is this asset outperforming or underperforming its benchmark?
Institutional Flow confirms smart money activity - are institutions accumulating or distributing?
Volatility Regime determines strategy selection - trend-follow or mean-revert?
Liquidity Detection identifies key levels - where are the stop hunts happening?
Session Analysis optimizes timing - when should you trade?
The Five Core Modules
1. Relative Rotation Momentum Matrix (RRG)
Compares the current symbol against a benchmark (default: SPY) using the JdK RS-Ratio methodology with double-smoothed EMA. Assets rotate through four quadrants:
LEADING: Outperforming with positive momentum (strongest bullish)
WEAKENING: Outperforming but losing momentum
LAGGING: Underperforming with negative momentum (strongest bearish)
IMPROVING: Underperforming but gaining momentum
2. Institutional Flow Analysis
Analyzes volume patterns to detect smart money activity:
Volume Z-Score measures how unusual current volume is
Buy/Sell pressure estimation based on candle structure
Unusual volume detection highlights institutional activity
3. Volatility Regime System
Uses ATR percentile ranking to classify market conditions:
COMPRESSION: Low volatility (ATR < 20th percentile) - potential breakout
EXPANSION: High volatility (ATR > 80th percentile) - trending
TRENDING_BULL/BEAR: Directional trends based on EMA alignment
RANGING: Sideways consolidation
4. Liquidity Detection
Identifies institutional liquidity targets using swing point analysis:
Swing highs/lows are tracked and displayed as dashed lines
Purple dashed lines mark resistance/sell-side liquidity
Teal dashed lines mark support/buy-side liquidity
Gold diamonds appear when liquidity sweeps are detected (potential reversals)
5. Session Momentum Profiler
Tracks trading sessions based on your selected timezone:
Asian Session: 7PM - 4AM EST
London Session: 3AM - 12PM EST
New York Session: 9:30AM - 4PM EST
London/NY Overlap: 8AM - 12PM EST (peak liquidity)
Visual Elements
Main Dashboard (Top-Right):
BIAS: Overall direction with confluence percentage
RRG: Current quadrant and momentum
FLOW: Smart money bias and volume status
REGIME: Market condition and volatility percentile
SESSION: Active trading session and current time
LIQUIDITY: Active zones and grab signals
SIGNAL: Actionable recommendation
Chart Elements:
Gold Diamond: Liquidity grab (potential reversal point)
Teal Dashed Line: Support / Buy-side liquidity zone
Purple Dashed Line: Resistance / Sell-side liquidity zone
EMA 21/55/200: Trend structure with cloud fill
Volatility Bands: ATR-based channels
How to Use
Step 1: Check the BIAS row for overall market direction
Step 2: Check REGIME to understand market conditions
Step 3: Identify key levels using liquidity zones and EMAs
Step 4: Wait for confluence above 65% (bullish) or below 35% (bearish)
Step 5: Look for gold diamond signals at key levels
Best Setups
Bullish: Confluence >65%, RRG in LEADING/IMPROVING, bullish flow, price near teal support zone.
Bearish: Confluence <35%, RRG in LAGGING/WEAKENING, bearish flow, price near purple resistance zone.
Reversal: Gold diamond appears after price sweeps a liquidity zone.
Key Input Parameters
Benchmark Symbol: Compare against (default: SPY)
RS-Ratio/Momentum Lookback: RRG calculation periods
Volume Analysis Period: Flow detection lookback
Swing Length: Liquidity zone detection
ATR Period/Rank Period: Regime classification
Timezone: Session detection timezone
Alerts
Liquidity Grab Bull: Bullish sweep detected
Liquidity Grab Bear: Bearish sweep detected
High Confluence Bull: Confluence above 70%
High Confluence Bear: Confluence below 30%
Best Practices
Use on 1H, 4H, or Daily timeframes for reliable signals
Combine with price action for confirmation
Respect the regime - don't fight strong trends
Trade during London/NY overlap for best liquidity
Wait for high confluence scores before entering
Always use proper risk management
Limitations
Works best on liquid markets with sufficient volume
Session features optimized for forex/crypto markets
RRG requires a valid benchmark symbol
No indicator predicts the future - use proper risk management
Disclaimer
This indicator is for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Past performance does not guarantee future results.
-Made with passion by officialjackofalltrades
TurboRSI Pro [JOAT]TurboRSI Pro - Multi-Length RSI Ensemble with Dynamic Momentum Analysis
Introduction
TurboRSI Pro is an open-source indicator that reimagines the classic RSI by calculating multiple RSI lengths simultaneously and combining them into a single, more reliable momentum reading. Instead of relying on a single RSI period that may lag or produce false signals, this indicator creates an ensemble of RSI values across a configurable range, providing a smoother and more robust momentum assessment.
The indicator is designed for traders who want deeper insight into momentum conditions without the noise that comes from single-period oscillators.
Originality and Purpose
This indicator is NOT a simple RSI with different settings. It is an original implementation that solves a fundamental problem with traditional RSI:
The Problem with Single-Period RSI: Traditional RSI uses a single lookback period (typically 14). The issue is that different market conditions favor different RSI lengths. A 14-period RSI might work well in one market phase but produce false signals in another. There's no "perfect" RSI length that works in all conditions.
The Multi-Length Solution: TurboRSI Pro calculates RSI across a range of lengths (default: 10 to 20) simultaneously, then averages all values to create a composite reading. This ensemble approach filters out period-specific noise while preserving genuine momentum shifts. When multiple RSI lengths agree, the signal is more reliable.
OB/OS Strength Percentage: The indicator tracks how many individual RSI lengths are in overbought or oversold territory. When 100% of lengths are overbought, it's a much stronger signal than when only 50% are. This percentage-based approach is original to this indicator and provides conviction assessment.
Candle Heatmap Innovation: An optional feature colors price bars based on deviation from a 200-bar linear regression line. This shows when price is statistically overextended (HOT/COLD) independent of RSI, providing another layer of analysis.
How the components work together:
Multi-length RSI ensemble provides a more robust momentum reading than single-period RSI
OB/OS Strength percentages quantify how many timeframes agree on the momentum condition
Dynamic channels expand/contract based on momentum strength across all calculated lengths
Candle heatmap adds statistical price deviation context independent of RSI
Core Concept: Multi-Length RSI Ensemble
Traditional RSI uses a single lookback period (typically 14). The problem is that different market conditions favor different RSI lengths. TurboRSI Pro solves this by:
Calculating RSI across a range of lengths (default: 10 to 20)
Averaging all RSI values to create a composite reading
Tracking how many individual RSI lengths are in overbought or oversold territory
Displaying this information as "OB Strength" and "OS Strength" percentages
This approach filters out noise while preserving genuine momentum shifts.
How the Multi-Length RSI Works
The calculation uses an efficient array-based approach:
int N = maxLength - minLength + 1
float diff = nz(srcInput - srcInput )
for i = 0 to N - 1
int len = minLength + i
float alpha = 1.0 / len
float numRma = alpha * diff + (1 - alpha) * array.get(numArr, i)
float denRma = alpha * math.abs(diff) + (1 - alpha) * array.get(denArr, i)
float rsiVal = denRma != 0 ? 50 * numRma / denRma + 50 : 50
avgRSI += rsiVal
Each RSI length is calculated using the RMA (Running Moving Average) formula, then all values are averaged. The result is a composite RSI that responds to momentum changes while filtering out period-specific noise.
Visual Components
1. Multi-Length RSI Line
The main oscillator line displays the averaged RSI value with a gradient color:
Green gradient when RSI is above 50 (bullish momentum)
Red gradient when RSI is below 50 (bearish momentum)
Color intensity increases as RSI approaches extreme levels
2. Dynamic Channels
Two adaptive channel lines track momentum extremes:
Upper Channel: Expands when multiple RSI lengths enter overbought territory
Lower Channel: Expands when multiple RSI lengths enter oversold territory
Channel width indicates momentum strength across all calculated lengths
3. Candle Heatmap
An optional feature that colors price bars based on deviation from a linear regression line:
Red/Orange bars: Price is significantly above the regression line (overextended to upside)
Blue bars: Price is significantly below the regression line (overextended to downside)
Yellow bars: Price is near the regression line (neutral)
The heatmap uses a 200-bar regression calculation to identify when price has deviated significantly from its statistical trend.
4. Reference Lines
Standard RSI reference levels are displayed:
80 and 20: Extreme overbought/oversold
70 and 30: Standard overbought/oversold thresholds
50: Neutral momentum line
5. Background Zones
Shaded areas indicate the percentage of RSI lengths in extreme territory:
Green shading from bottom: Percentage of lengths in overbought
Red shading from top: Percentage of lengths in oversold
Dashboard Panel
The dashboard displays real-time analysis in a 7-row table:
RSI Value: Current composite RSI reading (large text for visibility)
Momentum: Current state - OVERBOUGHT, OVERSOLD, BULLISH, BEARISH, or NEUTRAL
OB Strength: Percentage of RSI lengths currently above the overbought threshold
OS Strength: Percentage of RSI lengths currently below the oversold threshold
Heat Level: Current price deviation state - HOT, WARM, NEUTRAL, COOL, or COLD
Trend Bias: Overall trend assessment based on RSI level and channel direction
Optional Stochastic RSI
When enabled, an additional Stochastic RSI line is plotted. This applies the stochastic formula to the RSI itself, providing another layer of momentum analysis. The Stochastic RSI is more sensitive to short-term momentum shifts.
Input Parameters
RSI Settings:
Min RSI Length: Starting length for the RSI range (default: 10)
Max RSI Length: Ending length for the RSI range (default: 20)
Source: Price source for calculation (default: ohlc4)
Overbought: Upper threshold (default: 70)
Oversold: Lower threshold (default: 30)
Candle Heatmap:
Enable Heatmap: Toggle bar coloring on/off (default: enabled)
Regression Length: Lookback for linear regression calculation (default: 200)
Display:
Show Dashboard: Toggle the information panel (default: enabled)
Show Dynamic Channels: Toggle channel lines (default: enabled)
Show Stochastic RSI: Toggle additional Stoch RSI line (default: disabled)
Colors:
Bullish: Color for bullish conditions (default: teal)
Bearish: Color for bearish conditions (default: red)
Neutral: Color for neutral conditions (default: gray)
How to Use TurboRSI Pro
Identifying Momentum Shifts:
Watch for RSI crossing above 50 for bullish momentum confirmation
Watch for RSI crossing below 50 for bearish momentum confirmation
Use the gradient color to quickly assess momentum direction
Using OB/OS Strength:
When OB Strength reaches 100%, all RSI lengths are overbought - strong reversal potential
When OS Strength reaches 100%, all RSI lengths are oversold - strong bounce potential
Partial readings (e.g., 50%) indicate mixed conditions across timeframes
Heatmap Analysis:
HOT readings combined with high RSI suggest overextension - caution for longs
COLD readings combined with low RSI suggest oversold conditions - watch for reversal
Use heatmap divergence from RSI for additional confirmation
Channel Interpretation:
Expanding upper channel with rising RSI confirms strong bullish momentum
Expanding lower channel with falling RSI confirms strong bearish momentum
Channel contraction suggests momentum is weakening
Alert Conditions
Six alert conditions are available:
RSI Overbought: RSI crosses above overbought threshold
RSI Oversold: RSI crosses below oversold threshold
RSI Bullish Cross: RSI crosses above 50
RSI Bearish Cross: RSI crosses below 50
All RSI Overbought: Every RSI length is in overbought territory
All RSI Oversold: Every RSI length is in oversold territory
Best Practices
Use on higher timeframes (1H, 4H, Daily) for more reliable signals
Combine with price action analysis - RSI confirms, it does not predict
Pay attention to OB/OS Strength percentages for conviction assessment
The heatmap works best on assets with clear trending behavior
Adjust min/max RSI lengths based on your trading style - wider range for smoother signals
Limitations
Like all oscillators, can remain in overbought/oversold territory during strong trends
The heatmap regression may lag during rapid price movements
Multi-length calculation requires more processing than single RSI
Best suited for swing trading and position trading timeframes
Technical Notes
This indicator is written in Pine Script v6 and uses:
Array-based calculations for efficient multi-length RSI computation
Linear regression for heatmap deviation analysis
Gradient coloring for intuitive visual feedback
State management for dynamic channel calculations
The source code is open and available for review and modification.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Past performance does not guarantee future results. Always conduct your own analysis and use proper risk management.
-Made with passion by officialjackofalltrades
RSI Trend Authority [JOAT]RSI Trend Authority - VAR-RSI with OTT Trend Detection System
Introduction
RSI Trend Authority is an open-source overlay indicator that combines Variable Index Dynamic Average (VAR) smoothed RSI with the Optimized Trend Tracker (OTT) to create a complete trend detection and signal generation system. Unlike traditional RSI which oscillates in a separate pane, this indicator scales the RSI to price and overlays it directly on your chart, making trend analysis more intuitive.
The indicator generates clear BUY and SELL signals when the smoothed RSI crosses the OTT trailing stop line, providing actionable entry points with trend confirmation.
Originality and Purpose
This indicator is NOT a simple mashup of RSI and moving averages. It is an original implementation that transforms RSI into a trend-following overlay system:
Why VAR Smoothing? Traditional RSI is noisy and produces many false signals. The Variable Index Dynamic Average (VAR) is an adaptive smoothing algorithm based on the Chande Momentum Oscillator principle. It adjusts its smoothing factor based on market conditions - responding quickly during trends and smoothing out during choppy markets. This creates an RSI that filters noise while preserving genuine momentum shifts.
Why OTT Trailing Stop? The Optimized Trend Tracker (OTT) is a percentage-based trailing stop mechanism that only moves in the direction of the trend. When VAR-RSI crosses above OTT, a bullish trend is confirmed; when it crosses below, a bearish trend is confirmed. This provides clear, actionable signals rather than subjective interpretation.
Price Scaling Innovation: By scaling RSI (0-100) to price using the formula (RSI * close / 50), the indicator overlays directly on the price chart. This allows traders to see how momentum relates to actual price levels, making trend analysis more intuitive than a separate oscillator pane.
ATR Boundaries: Optional volatility-based boundaries show when price is extended relative to its normal range, helping identify potential reversal zones.
How the components work together:
VAR smoothing removes RSI noise while preserving trend information
OTT provides a dynamic trailing stop that generates clear crossover signals
Price scaling allows direct overlay on the chart for intuitive analysis
ATR boundaries add volatility context for profit target estimation
Core Components
1. VAR-RSI (Variable Index Dynamic Average RSI)
The foundation of this indicator is the VAR smoothing algorithm applied to RSI. VAR is an adaptive moving average that adjusts its smoothing factor based on the Chande Momentum Oscillator principle:
f_var_calc(float data, int length) =>
int a = 9
float b = data > nz(data ) ? data - nz(data ) : 0.0
float c = data < nz(data ) ? nz(data ) - data : 0.0
float d = math.sum(b, a)
float e = math.sum(c, a)
float f = nz((d - e) / (d + e))
float g = math.abs(f)
float h = 2.0 / (length + 1)
float x = ta.sma(data, length)
This creates an RSI that:
Responds quickly during trending conditions
Smooths out during choppy, sideways markets
Reduces false signals compared to raw RSI
2. OTT (Optimized Trend Tracker)
The OTT acts as a dynamic trailing stop that follows the VAR-RSI:
In uptrends, OTT trails below the VAR-RSI line
In downtrends, OTT trails above the VAR-RSI line
The OTT Percent parameter controls how closely it follows
When VAR-RSI crosses above OTT, a bullish trend is confirmed. When VAR-RSI crosses below OTT, a bearish trend is confirmed.
3. Price Scaling
The RSI (0-100 scale) is converted to price scale using:
float scaleFactor = close / 50.0
float varRSIScaled = varRSI * scaleFactor
This allows the indicator to overlay directly on price, showing how momentum relates to actual price levels.
Visual Components
VAR-RSI Line (Cyan/Magenta)
The main indicator line with gradient coloring:
Cyan gradient when RSI is above 50 (bullish)
Magenta gradient when RSI is below 50 (bearish)
Line thickness of 3 for clear visibility
OTT Line (Yellow Circles)
The trailing stop line displayed as circles:
Acts as dynamic support in uptrends
Acts as dynamic resistance in downtrends
Crossovers generate trading signals
Trend Fill
The area between VAR-RSI and OTT is filled:
Cyan fill during bullish trends
Magenta fill during bearish trends
Fill transparency allows price visibility
Buy position and LONG on Dashboard with a Uptrend:
ATR Boundaries (Optional)
Dotted lines showing volatility-based price boundaries:
Upper band: Close + (ATR x Multiplier)
Lower band: Close - (ATR x Multiplier)
Color matches current trend direction
Buy/Sell Signals
Clear labels appear at signal points:
BUY label below bar when VAR-RSI crosses above OTT
SELL label above bar when VAR-RSI crosses below OTT
Additional glow circles highlight signal bars
Bar Coloring
Optional feature that colors price bars:
Cyan bars during bullish trend
Magenta bars during bearish trend
Dashboard Panel
The 8-row dashboard provides comprehensive status information:
Signal: Current position - LONG or SHORT (large text)
VAR-RSI: Current smoothed RSI value (large text)
RSI State: OVERBOUGHT, OVERSOLD, BULLISH, or BEARISH
OTT Trend: UPTREND or DOWNTREND based on OTT direction
Bars Since: Number of bars since last signal
Price: Current close price (large text)
OTT Level: Current OTT trailing stop value
Input Parameters
RSI Settings:
RSI Length: Period for RSI calculation (default: 100)
Source: Price source (default: close)
VAR Settings:
VAR Length: Adaptive smoothing period (default: 50)
OTT Settings:
OTT Period: Trailing stop calculation period (default: 30)
OTT Percent: Distance percentage for trailing stop (default: 0.2)
ATR Trend Boundaries:
Show ATR Boundaries: Toggle visibility (default: enabled)
ATR Length: Period for ATR calculation (default: 14)
ATR Multiplier: Distance multiplier (default: 2.0)
Display Options:
Show Buy/Sell Signals: Toggle signal labels (default: enabled)
Show Status Table: Toggle dashboard (default: enabled)
Table Position: Choose corner placement
Color Bars by Trend: Toggle bar coloring (default: enabled)
Color Scheme:
Bullish Color: Main bullish color (default: cyan)
Bearish Color: Main bearish color (default: magenta)
OTT Line: Trailing stop color (default: yellow)
VAR-RSI Line: Main line color (default: teal)
ATR colors for boundaries
How to Use RSI Trend Authority
Signal-Based Trading:
Enter LONG when BUY signal appears (VAR-RSI crosses above OTT)
Enter SHORT when SELL signal appears (VAR-RSI crosses below OTT)
Use the OTT line as a trailing stop reference
Trend Confirmation:
Cyan fill indicates bullish trend - favor long positions
Magenta fill indicates bearish trend - favor short positions
Check RSI State in dashboard for momentum context
Using the Dashboard:
Monitor "Bars Since" to assess signal freshness
Check RSI State for overbought/oversold warnings
Use OTT Level as a reference for stop placement
ATR Boundaries:
Price near upper ATR band in uptrend suggests extension
Price near lower ATR band in downtrend suggests extension
Boundaries help identify potential reversal zones
Parameter Optimization
For Faster Signals:
Decrease RSI Length (try 50-80)
Decrease VAR Length (try 30-40)
Decrease OTT Period (try 15-25)
For Smoother Signals:
Increase RSI Length (try 120-150)
Increase VAR Length (try 60-80)
Increase OTT Period (try 40-50)
For Tighter Stops:
Decrease OTT Percent (try 0.1-0.15)
For Wider Stops:
Increase OTT Percent (try 0.3-0.5)
Alert Conditions
Three alert conditions are available:
Buy Signal: VAR-RSI crosses above OTT
Sell Signal: VAR-RSI crosses below OTT
Trend Change: OTT direction changes
Understanding the OTT Calculation
The OTT uses a percentage-based trailing mechanism:
float farkOTT = mavgOTT * ottPercent * 0.01
float longStopCalc = mavgOTT - farkOTT
float shortStopCalc = mavgOTT + farkOTT
longStop := mavgOTT > nz(longStop ) ? math.max(longStopCalc, nz(longStop )) : longStopCalc
shortStop := mavgOTT < nz(shortStop ) ? math.min(shortStopCalc, nz(shortStop )) : shortStopCalc
This ensures the trailing stop only moves in the direction of the trend, never against it.
Best Practices
Use on 1H timeframe or higher for more reliable signals
Wait for signal confirmation before entering trades
Consider RSI State when evaluating signal quality
Use ATR boundaries for profit target estimation
The longer RSI length (100) provides smoother trend detection
Combine with support/resistance analysis for better entries
Limitations
Signals may lag during rapid price movements due to smoothing
Works best in trending markets; may whipsaw in ranges
The overlay nature means RSI values are scaled, not absolute
Default parameters are optimized for crypto and forex; adjust for other markets
Technical Notes
This indicator is written in Pine Script v6 and uses:
VAR (Variable Index Dynamic Average) for adaptive smoothing
OTT (Optimized Trend Tracker) for trailing stop calculation
ATR for volatility-based boundaries
Gradient coloring for intuitive trend visualization
The source code is open and available for review and modification.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Past performance does not guarantee future results. Always conduct your own analysis and use proper risk management.
-Made with passion by officialjackofalltrades
Red Bull Wings [JOAT]RED BULL WINGS - Bullish-Only Institutional Overlay
Introduction and Purpose
RED BULL WINGS is an open-source overlay indicator that combines five distinct bullish detection methods into a single composite scoring system. The core problem this indicator solves is that individual bullish signals (patterns, volume, zones, trendlines) often disagree or fire in isolation. A bullish engulfing pattern means little if volume is weak and price is far from support. Traders need confluence across multiple dimensions to identify high-probability setups.
This indicator addresses that by scoring each bullish component separately, then combining them into a weighted WINGS score (0-100) that reflects overall bullish conviction. When multiple components align, the score rises; when they disagree, the score stays low.
Why These Five Modules Work Together
Each module measures a different aspect of bullish market structure:
1. Module A - Bullish Candlestick Engine - Detects classic reversal patterns (engulfing, marubozu, hammer, 3-bar cluster). These patterns identify WHERE buyers are stepping in.
2. Module B - PVSRA Volume Climax - Measures spread x volume to detect institutional participation. This tells you WHETHER smart money is involved.
3. Module C - Demand Zone Detection - Identifies and tracks order block zones where buyers previously overwhelmed sellers. This shows you WHERE institutional support exists.
4. Module D - Trendline Channel - Builds dynamic support/resistance from pivot points. This reveals the STRUCTURE of the current trend.
5. Module E - Ichimoku Assist - Optional filter using Tenkan/Kijun cross, cloud position, and Chikou confirmation. This provides TREND PERMISSION context.
The combination works because:
Patterns alone can fail without volume confirmation
Volume alone means nothing without price structure context
Zones alone are static without pattern/volume triggers
Trendlines alone miss the micro-level entry timing
When 3+ modules agree, the probability of a valid bullish setup increases significantly
How the Calculations Work
Module A - Pattern Detection:
Bullish Engulfing - Current bullish bar completely engulfs prior bearish bar:
bool engulfingCond = isBullish() and
isBearish() and
open <= close and
close >= open and
bodySize() > bodySize()
Marubozu - Strong body with minimal wicks (body >= 1.8x average, wick ratio < 20%):
float wickRatio = candleRange() > 0 ? (upperWick() + lowerWick()) / candleRange() : 0
bool marubozuCond = isBullish() and
bodySize() >= bodySizeAvg * i_maruMult and
wickRatio < i_wickRatioMax
Hammer - Long lower wick (>= 2.5x body), close in upper third, volume confirmation:
bool hammerWick = lowerWick() >= i_hammerWickMult * bodySize()
bool hammerClose = close >= low + (candleRange() * 0.66)
bool hammerVol = volume >= i_pvsraRisingMult * volAvg
3-Bar Cluster - Three consecutive bullish closes with increasing prices and volume spike:
bool threeBarBullish = isBullish() and isBullish() and isBullish()
bool increasingCloses = close > close and close > close
bool volSpike3Bar = volume >= i_pvsraRisingMult * volAvg or
volume >= i_pvsraRisingMult * volAvg
Module B - PVSRA Volume Analysis:
Uses spread x volume to detect climax conditions:
float spreadVol = candleRange() * volume
float maxSpreadVol = ta.highest(spreadVol, ADJ_PVSRA_LOOKBACK)
bool volClimax = volume >= i_pvsraClimaxMult * volAvg or spreadVol >= maxSpreadVol
bool volRising = volume >= i_pvsraRisingMult * volAvg and volume < i_pvsraClimaxMult * volAvg
Volume only scores when the candle is bullish, preventing false signals on bearish volume spikes.
Module C - Demand Zone Detection:
Identifies zones using a two-candle structure:
// Small bearish candle A followed by larger bullish candle B
bool candleA_bearish = isBearish()
bool candleB_bullish = isBullish()
bool newZoneCond = candleA_bearish and candleB_bullish and
candleB_size >= i_zoneSizeMult * candleA_size
Zones are drawn as rectangles and tracked for retests. Score increases when price is near or inside an active zone, with bonus points for rejection candles.
Module D - Trendline Channel:
Builds dynamic channel from confirmed pivot points:
float ph = ta.pivothigh(high, i_pivotLeft, i_pivotRight)
float pl = ta.pivotlow(low, i_pivotLeft, i_pivotRight)
Pivots are stored and connected to form upper/lower channel lines. The indicator detects breakouts when price closes beyond the channel with volume confirmation.
Module E - Ichimoku Assist:
Standard Ichimoku calculations with bullish scoring:
float tenkan = (ta.highest(high, i_tenkanLen) + ta.lowest(low, i_tenkanLen)) / 2
float kijun = (ta.highest(high, i_kijunLen) + ta.lowest(low, i_kijunLen)) / 2
bool tkCross = ta.crossover(tenkan, kijun)
bool priceAboveCloud = close > cloudTop
bool chikouAbovePrice = chikou > close
Module F - WINGS Composite Score:
All module scores are combined using adjustable weights:
float WINGS_score = 100 * (nW_pattern * S_pattern +
nW_volume * S_vol +
nW_zone * S_zone +
nW_trend * S_trend +
nW_ichi * S_ichi)
Default weights: Pattern 30%, Volume 25%, Zone 20%, Trend 15%, Ichimoku 10%.
Signal Thresholds
WATCH (30-49) - Interesting bullish context forming, not yet actionable
MOMENTUM (50-74) - Strong bullish conditions, multiple modules agreeing
LIFT-OFF (75+) - High-confidence bullish confluence across most modules
WINGS Badge (Dashboard)
The right-side panel displays:
WINGS Score - Current composite score (0-100)
Pattern - Active pattern name and strength, or neutral placeholder
Volume - Normal / Rising / CLIMAX status
Zone - ACTIVE if price is near a demand zone
Trend - Channel position or BREAK status
Ichimoku - OFF / Weak / Bullish / STRONG
Status - Overall signal level (Neutral / WATCH / MOMENTUM / LIFT-OFF)
Input Parameters
Module Toggles:
Enable Bullish Patterns (true) - Toggle pattern detection
Enable PVSRA Volume (true) - Toggle volume analysis
Enable Order Blocks (true) - Toggle demand zone detection
Enable Trendlines (true) - Toggle pivot channel
Enable Ichimoku Assist (false) - Toggle Ichimoku filter (off by default for performance)
Enable Visual Effects (false) - Toggle labels, trails, and visual elements
LIVE MODE (false) - Enable intrabar signals (WARNING: signals may repaint)
Pattern Engine:
Pattern Lookback (5) - Bars for body size averaging
Marubozu Body Multiplier (1.8) - Minimum body size vs average
Hammer Wick Multiplier (2.5) - Minimum lower wick vs body
Max Wick Ratio (0.2) - Maximum wick percentage for marubozu
Volume / PVSRA:
PVSRA Lookback (10) - Period for volume averaging
Climax Multiplier (2.0) - Volume threshold for climax detection
Rising Volume Multiplier (1.5) - Volume threshold for rising detection
Order Blocks:
Zone Size Multiplier (2.0) - Minimum bullish candle size vs bearish
Zone Extend Bars (200) - How far zones project forward
Max Zones (12) - Maximum active zones displayed
Remove Zone on Close Below (true) - Delete broken zones
Trendlines:
Pivot Left/Right Bars (3/3) - Pivot detection sensitivity
Min Slope % (0.25) - Minimum trendline angle
Max Trendlines (5) - Maximum pivot points stored
Trendline Projection Bars (60) - Forward projection distance
Ichimoku:
Tenkan Length (9) - Conversion line period
Kijun Length (26) - Base line period
Senkou B Length (52) - Leading span B period
Displacement (26) - Cloud displacement
WINGS Score:
Weight: Pattern (0.30) - Pattern contribution to score
Weight: Volume (0.25) - Volume contribution to score
Weight: Zone (0.20) - Zone contribution to score
Weight: Trend (0.15) - Trendline contribution to score
Weight: Ichimoku (0.10) - Ichimoku contribution to score
Lift-Off Threshold (75) - Score required for LIFT-OFF signal
Momentum Watch Threshold (50) - Score required for MOMENTUM signal
Visuals:
Signal Cooldown (8) - Minimum bars between labels
Show WINGS Score Badge (true) - Toggle dashboard
Show Wing Combos (true) - Show DOUBLE/MEGA WINGS streaks
Red Background Wash (true) - Tint chart background
Show Lift-Off Trails (false) - Toggle golden trail visuals
How to Use This Indicator
For Bullish Entry Identification:
1. Monitor the WINGS badge for score changes
2. Wait for MOMENTUM (50+) or LIFT-OFF (75+) signals
3. Check which modules are contributing (Pattern + Volume + Zone = stronger)
4. Use demand zones and trendlines as structural reference for entries
For Confluence Confirmation:
1. Use alongside your existing analysis
2. LIFT-OFF signals indicate multiple bullish factors aligning
3. Low scores (< 30) suggest weak bullish context even if one factor looks good
For Zone-Based Trading:
1. Watch for price approaching active demand zones
2. Look for pattern + volume confirmation at zone retests
3. Zone score increases with successful retests
For Trendline Analysis:
1. Monitor the pivot-based channel for trend structure
2. Breakouts with volume confirmation trigger TREND BREAK alerts
3. Price inside channel with bullish patterns = trend continuation setup
1M and lower timeframes:
Alerts Available
LIFT-OFF - High-confidence bullish confluence
MOMENTUM - Strong bullish conditions
Zone Retest - Bullish rejection from demand zone
Trendline Break - Breakout with volume confirmation
Individual patterns (Engulfing, Marubozu, Hammer, 3-Bar Cluster)
Volume Climax - Institutional volume spike
DOUBLE WINGS / MEGA WINGS - Consecutive lift-off signals
Repainting Behavior
By default, the indicator uses confirmed bars only (barstate.isconfirmed), meaning signals appear after the bar closes and do not repaint. However:
LIVE MODE - When enabled, signals can appear intrabar but may disappear if conditions change before bar close. A warning label displays when LIVE MODE is active.
Trendlines - Pivot detection requires lookback bars, so the most recent trendline segments may adjust as new pivots confirm. This is inherent to pivot-based analysis.
Demand Zones - Zones are created on confirmed bars and do not repaint, but they can be removed if price closes below the zone bottom (configurable).
Live Mode with 'Enable Visual Effect' turned off in settings:
Limitations
This is a bullish-only indicator. It does not detect bearish setups or provide short signals.
The WINGS score is a confluence measure, not a prediction. High scores indicate favorable conditions, not guaranteed outcomes.
Pattern detection uses simplified logic. Not all candlestick nuances are captured.
Volume analysis requires reliable volume data. Results may vary on instruments with inconsistent volume reporting.
Ichimoku calculations add processing overhead. Disable if not needed.
Demand zones are based on a specific two-candle structure. Other valid zones may not be detected.
Trendlines use linear regression between pivots. Curved or complex channels are not supported.
Timeframe Recommendations
15m-1H: More frequent signals, useful for intraday analysis. Higher noise.
4H-Daily: Best balance of signal quality and frequency for swing trading.
Weekly: Fewer but more significant signals for position trading.
Adjust lookback periods and thresholds based on your timeframe. Shorter timeframes may benefit from shorter lookbacks.
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each module works.
This indicator does not constitute financial advice. The WINGS score and signals do not guarantee profitable trades. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses. Test thoroughly on your preferred instruments and timeframes before using in live trading.
- Made with passion by officialjackofalltrades
Zenith MACD Evolution [JOAT]
Zenith MACD Evolution - Volatility-Normalized Momentum Oscillator
Introduction and Purpose
Zenith MACD Evolution is an open-source oscillator indicator that takes the classic MACD and normalizes it by ATR (Average True Range) to create consistent overbought/oversold levels across different market conditions. The core problem this indicator solves is that traditional MACD values are incomparable across different volatility regimes. A MACD reading of 50 might be extreme in a quiet market but normal in a volatile one.
This indicator addresses that by dividing MACD by ATR and scaling to a consistent range, allowing traders to use fixed overbought/oversold levels that work across all market conditions.
Why ATR Normalization Works
Traditional MACD problems:
- Values vary wildly based on price and volatility
- No consistent overbought/oversold levels
- Hard to compare across different instruments
- Extreme readings in one period may be normal in another
ATR-normalized MACD (Zenith) solves these:
- Values scaled to consistent range
- Fixed overbought/oversold levels work across all conditions
- Comparable across different instruments
- Extreme readings are truly extreme regardless of volatility
How the Normalization Works
// Classic MACD
= ta.macd(close, fastLength, slowLength, signalLength)
// ATR for normalization
float atrValue = ta.atr(atrNormLength)
// Volatility-Normalized MACD
float zenithMACD = atrValue != 0 ? (histLine / atrValue) * 100 : 0
float zenithSignal = ta.ema(zenithMACD, signalLength)
The result is a MACD that typically ranges from -200 to +200, with consistent levels:
- Above +150 = Overbought
- Below -150 = Oversold
- Above +200 = Extreme overbought
- Below -200 = Extreme oversold
Signal Types
Zero Cross Up/Down - Zenith crosses zero line (trend change)
Overbought/Oversold Entry - Zenith enters extreme zones
Overbought/Oversold Exit - Zenith leaves extreme zones (potential reversal)
Momentum Shift - Histogram direction changes (early warning)
Divergence - Price makes new high/low but Zenith does not
Histogram Coloring
The histogram uses four colors to show momentum state:
- Strong Bull (Teal) - Positive and rising
- Weak Bull (Light Teal) - Positive but falling
- Strong Bear (Red) - Negative and falling
- Weak Bear (Light Red) - Negative but rising
This helps identify momentum shifts before crossovers occur.
Dashboard Information
Zenith - Current normalized MACD value with signal line
Zone - Current zone (EXTREME OB/OVERBOUGHT/NORMAL/OVERSOLD/EXTREME OS)
Momentum - Direction (RISING/FALLING/FLAT)
Histogram - Current histogram value
ATR Norm - Current ATR value used for normalization
Classic - Traditional MACD value for reference
How to Use This Indicator
For Mean-Reversion:
1. Wait for Zenith to reach extreme zones (+200/-200)
2. Look for momentum shift (histogram color change)
3. Enter counter-trend when exiting extreme zone
For Trend Following:
1. Enter long on zero cross up
2. Enter short on zero cross down
3. Use histogram color to gauge momentum strength
For Divergence Trading:
1. Watch for DIV labels (price vs Zenith divergence)
2. Bullish divergence at support = potential long
3. Bearish divergence at resistance = potential short
Input Parameters
Fast/Slow/Signal Length (12/26/9) - Standard MACD parameters
ATR Normalization Period (26) - Period for ATR calculation
Overbought/Oversold Zone (150/-150) - Zone thresholds
Extreme Level (200) - Extreme threshold
Show Classic MACD Lines (false) - Toggle traditional lines
Show Divergence Detection (true) - Toggle divergence signals
Divergence Lookback (14) - Bars to scan for divergence
Timeframe Recommendations
All timeframes work due to normalization
Higher timeframes provide smoother signals
Normalization makes cross-timeframe comparison meaningful
Limitations
ATR normalization adds slight lag
Divergence detection is simplified
Extreme zones can persist in strong trends
Works best when combined with price action analysis
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Momentum analysis does not guarantee profitable trades. Always use proper risk management.
- Made with passion by officialjackofalltrades
Vortex Trend Matrix [JOAT]Vortex Trend Matrix - Multi-Factor Trend Confluence System
Introduction and Purpose
Vortex Trend Matrix is an open-source overlay indicator that combines Ichimoku-style equilibrium analysis with the Vortex Indicator to create a comprehensive trend confluence system. The core problem this indicator solves is that single trend indicators often give conflicting signals. Price might be above a moving average but momentum might be weakening.
This indicator addresses that by combining five different trend factors into a single composite score, making it easy to identify when multiple factors align for high-probability trend trades.
Why These Components Work Together
Each component measures trend from a different perspective:
1. Cloud Position - Price above/below the equilibrium cloud indicates overall trend bias. The cloud acts as dynamic support/resistance.
2. TK Relationship - Conversion line vs Base line (like Tenkan/Kijun in Ichimoku). Conversion above Base = bullish momentum.
3. Lagging Span - Current price compared to price N bars ago. Confirms whether current move has follow-through.
4. Vortex Indicator - VI+ vs VI- measures directional movement strength. Provides momentum confirmation.
5. Base Direction - Whether the base line is rising or falling. Indicates medium-term trend direction.
How the Trend Score Works
float trendScore = 0.0
// Cloud position (+2/-2)
trendScore += aboveCloud ? 2.0 : belowCloud ? -2.0 : 0.0
// TK relationship (+1/-1)
trendScore += conversionLine > baseLine ? 1.0 : conversionLine < baseLine ? -1.0 : 0.0
// Lagging span (+1/-1)
trendScore += laggingBull ? 1.0 : laggingBear ? -1.0 : 0.0
// Vortex (+1.5/-1.5)
trendScore += vortexBull ? 1.5 : vortexBear ? -1.5 : 0.0
// Base direction (+0.5/-0.5)
trendScore += baseDirection * 0.5
Score ranges from approximately -6 to +6:
- +4 or higher = STRONG BULL
- +2 to +4 = BULL
- -2 to +2 = NEUTRAL
- -4 to -2 = BEAR
- -4 or lower = STRONG BEAR
Signal Types
TK Cross Up/Down - Conversion line crosses Base line (momentum shift)
Base Direction Change - Base line changes direction (medium-term shift)
Strong Bull/Bear Trend - Score reaches +4/-4 (high confluence)
Dashboard Information
Trend - Overall status with composite score
Cloud - Price position (ABOVE/BELOW/INSIDE)
TK Cross - Conversion vs Base relationship
Lagging - Lagging span bias
Vortex - VI+/VI- relationship
VI+/VI- - Individual vortex values
How to Use This Indicator
For Trend Following:
1. Enter long when trend score reaches +4 or higher (STRONG BULL)
2. Enter short when trend score reaches -4 or lower (STRONG BEAR)
3. Use cloud as dynamic support/resistance for entries
For Momentum Timing:
1. Watch for TK Cross signals for entry timing
2. Base direction changes indicate medium-term shifts
3. Vortex confirmation adds conviction
For Risk Management:
1. Exit when trend score drops to neutral
2. Use cloud edges as stop-loss references
3. Reduce position when score weakens
Input Parameters
Conversion Period (9) - Fast equilibrium line
Base Period (26) - Slow equilibrium line
Lead Span Period (52) - Cloud projection period
Displacement (26) - Cloud and lagging span offset
Vortex Period (14) - Period for vortex calculation
VI+ Strength (1.10) - Threshold for strong bullish vortex
VI- Strength (0.90) - Threshold for strong bearish vortex
Timeframe Recommendations
4H-Daily: Best for equilibrium-based analysis
1H: Good for intraday trend following
Lower timeframes may require adjusted periods
Limitations
Equilibrium calculations have inherent lag
Cloud displacement means signals are delayed
Works best in trending markets
May whipsaw in ranging conditions
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Trend analysis does not guarantee profitable trades. Always use proper risk management.
- Made with passion by officialjackofalltrades
Sentinel Market Structure [JOAT]
Sentinel Market Structure - Smart Money Structure Analysis
Introduction and Purpose
Sentinel Market Structure is an open-source overlay indicator that identifies swing highs/lows, tracks market structure (HH/HL/LH/LL), detects Break of Structure (BOS) and Change of Character (CHoCH) signals, and marks order blocks. The core problem this indicator solves is that retail traders often miss structural shifts that smart money traders use to identify trend changes.
This indicator addresses that by automatically tracking market structure and alerting traders to key structural breaks that often precede significant moves.
Why These Components Work Together
Each component provides different structural information:
1. Swing Detection - Identifies significant pivot highs and lows. These are the building blocks of market structure.
2. Structure Labels (HH/HL/LH/LL) - Classifies each swing relative to the previous swing. Higher Highs + Higher Lows = uptrend. Lower Highs + Lower Lows = downtrend.
3. Break of Structure (BOS) - Identifies when price breaks a swing level in the direction of the trend. This is a continuation signal.
4. Change of Character (CHoCH) - Identifies when price breaks a swing level against the trend. This is a potential reversal signal.
5. Order Blocks - Marks the last opposing candle before an impulse move. These zones often act as future support/resistance.
How the Detection Works
Swing Detection:
bool swingHighDetected = high == ta.highest(high, swingLength * 2 + 1)
bool swingLowDetected = low == ta.lowest(low, swingLength * 2 + 1)
BOS vs CHoCH Logic:
// BOS: Break in direction of trend (continuation)
bool bullishBOS = close > lastSwingHigh and marketTrend >= 0
// CHoCH: Break against trend (reversal signal)
bool bullishCHOCH = close > lastSwingHigh and marketTrend < 0
Order Block Detection:
bool bullOB = close < open and // Previous candle bearish
close > open and // Current candle bullish
close > high and // Breaking above
(high - low) > ta.atr(14) * 1.5 // Strong impulse
Signal Types
HH (Higher High) - Swing high above previous swing high (bullish structure)
HL (Higher Low) - Swing low above previous swing low (bullish structure)
LH (Lower High) - Swing high below previous swing high (bearish structure)
LL (Lower Low) - Swing low below previous swing low (bearish structure)
BOS↑/BOS↓ - Break of structure in trend direction (continuation)
CHoCH↑/CHoCH↓ - Change of character against trend (potential reversal)
Dashboard Information
Trend - Current market bias (BULLISH/BEARISH/NEUTRAL)
Swing High - Last swing high price with HH/LH label
Swing Low - Last swing low price with HL/LL label
Structure - Current structure state (HH+HL, LH+LL, etc.)
Price - Price position relative to structure
How to Use This Indicator
For Trend Following:
1. Identify trend using structure (HH+HL = uptrend, LH+LL = downtrend)
2. Enter on BOS signals in trend direction
3. Use swing levels for stop placement
For Reversal Trading:
1. Watch for CHoCH signals (break against trend)
2. Confirm with order block formation
3. Enter on retest of order block zone
For Risk Management:
1. Place stops beyond swing highs/lows
2. Use structure lines as trailing stop references
3. Exit when CHoCH signals against your position
Input Parameters
Swing Detection Length (5) - Bars on each side for pivot detection
Show Swing High/Low Points (true) - Toggle swing markers
Show BOS/CHoCH (true) - Toggle structural break signals
Show Structure Lines (true) - Toggle horizontal swing lines
Show Order Blocks (true) - Toggle order block zones
Zone Extension (50) - How far order block boxes extend
Timeframe Recommendations
15m-1H: Good for intraday structure analysis
4H-Daily: Best for swing trading structure
Lower timeframes require smaller swing detection length
Limitations
Swing detection has inherent lag (needs confirmation bars)
Not all BOS/CHoCH signals lead to continuation/reversal
Order block zones are simplified (not full ICT methodology)
Structure analysis is subjective - different traders see different swings
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Market structure analysis does not guarantee trade outcomes. Always use proper risk management.
- Made with passion by officialjackofalltrades
ML-Inspired Adaptive Momentum Strategy (TradingView v6)This strategy demonstrates an adaptive momentum approach using volatility-normalized trend strength. It is designed for educational and analytical purposes and uses deterministic, fully transparent logic compatible with Pine Script v6.
ML-Inspired Concept (Educational Context)
Pine Script cannot train or execute real machine-learning models.
Instead, this strategy demonstrates ML-style thinking by:
Converting price data into features
Normalizing features to account for volatility differences
Producing a bounded confidence score
Applying thresholds for decision making
This is not predictive AI and does not claim forecasting capability.
Strategy Logic
EMA is used to measure directional bias
EMA slope represents momentum change
ATR normalizes the slope (feature scaling)
A clamped score between −1 and +1 is generated
Trades trigger only when the score exceeds defined thresholds
Risk & Execution
Position size capped at 5% equity
Commission and slippage included for realistic testing
Signals are calculated on closed bars only
Purpose
This script is intended to help traders explore adaptive momentum concepts and understand how feature normalization can be applied in systematic trading strategies.
Quantum Candle Scanner [JOAT]
Quantum Candle Scanner - Advanced Multi-Pattern Recognition System
Introduction and Purpose
Quantum Candle Scanner is an open-source overlay indicator that detects multiple candlestick patterns including engulfing patterns, kicker patterns, inside bar setups, momentum candles, and higher-high/lower-low sequences. The core problem this indicator solves is that traders often miss patterns because they're looking for only one type. Different patterns work better in different market conditions.
This indicator addresses that by scanning for five distinct pattern types simultaneously, giving traders a comprehensive view of price action signals.
Why These Five Pattern Types Work Together
Each pattern type identifies different market behavior:
1. Engulfing Patterns - Classic reversal signals where current candle completely engulfs the previous candle. Best for identifying potential turning points.
2. Kicker Patterns - Strong reversal signals with gap confirmation. The current candle opens beyond the previous candle's open with opposite direction. Best for identifying high-momentum reversals.
3. Inside Bar Patterns - Consolidation breakout signals where a candle's range is contained within the previous candle, followed by a breakout. Best for identifying compression before expansion.
4. Momentum Candles - Identifies the largest body candle over a lookback period. Best for spotting institutional activity.
5. HH/HL and LH/LL Sequences - Three-bar structure patterns showing trend continuation. Best for confirming trend direction.
How the Detection Works
Engulfing Pattern:
bool engulfBullBase = open <= math.min(close , open ) and
close >= math.max(close , open ) and
isBullish(0) and
getBodyPct(0) > bodyMinPct
Kicker Pattern:
bool kickerBull = isBearish(1) and isBullish(0) and
open > open and low > low and
getBodyPct(0) > 40 and getBodyPct(1) > 40
Inside Bar:
bool insideBarSetup = low < low and high > high
bool insideBarBull = insideBarSetup and isBullish(0)
HH/HL Sequence:
bool hhhlSeq = high > high and low > low and
high > high and low > low and
close > close
Optional Filters
ATR Filter - Only shows patterns where candle body exceeds ATR (strong candles only)
Body Minimum % - Requires minimum body percentage for engulfing patterns
Close Beyond Prior H/L - Requires engulfing candle to close beyond prior high/low
Dashboard Information
Engulfing - Total engulfing patterns detected
Kicker - Kicker pattern count
Inside Bar - Inside bar breakout count
HH/LL Seq - Structure sequence count
Total - Combined pattern count
How to Use This Indicator
For Reversal Trading:
1. Look for engulfing or kicker patterns at key support/resistance
2. Confirm with HH/HL or LH/LL sequence breaking
3. Enter with stop beyond the pattern
For Breakout Trading:
1. Identify inside bar setups (consolidation)
2. Enter on breakout candle in direction of break
3. Use the inside bar range for stop placement
For Trend Confirmation:
1. Use HH/HL sequences to confirm uptrend structure
2. Use LH/LL sequences to confirm downtrend structure
3. Momentum candles indicate institutional participation
Input Parameters
Detect Engulfing/Kicker/Inside Bar/Momentum/HHLL (all true) - Toggle each pattern type
Min Body % for Engulfing (0) - Minimum body percentage
ATR Filter (false) - Only show strong candles
Engulf Must Close Beyond Prior H/L (true) - Stricter engulfing definition
Compact Mode (false) - Shorter labels for cleaner charts
Timeframe Recommendations
1H-Daily: Best for reliable pattern detection
15m-30m: More patterns but higher noise
Use Compact Mode on lower timeframes
Limitations
Pattern detection is mechanical and does not consider context
Not all patterns lead to successful trades
Kicker patterns are rare but powerful
Inside bar breakouts can fail (false breakouts)
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Pattern detection does not guarantee trade outcomes. Always use proper risk management.
- Made with passion by officialjackofalltrades
Pulse Volume Commitment [JOAT]
Pulse Volume Commitment - Three-Dimensional Momentum Analysis
Introduction and Purpose
Pulse Volume Commitment is an open-source oscillator indicator that analyzes price action through three distinct dimensions: Quantity (candle count), Quality (body structure), and Commitment (volume-weighted quality). The core problem this indicator solves is that simple bullish/bearish candle counts miss important context. A market can have more green candles but still be weak if those candles have small bodies and low volume.
This indicator addresses that by requiring all three dimensions to align before generating strong signals, filtering out weak moves that lack conviction.
Why These Three Dimensions Work Together
Each dimension measures a different aspect of market conviction:
1. Quantity - Counts bullish vs bearish candles over the lookback period. Tells you WHO is winning the candle count battle.
2. Quality - Scores candles by body size relative to total range. Full-bodied candles (small wicks) indicate stronger conviction than doji-like candles. Tells you HOW decisively price is moving.
3. Commitment - Weights quality scores by volume. High-quality candles on high volume indicate institutional participation. Tells you WHETHER smart money is involved.
When all three align (e.g., more bullish candles + bullish quality + bullish commitment), the signal is significantly more reliable.
How the Calculations Work
Quantity Analysis:
int greenCount = 0
int redCount = 0
for i = 0 to lookbackPeriod - 1
if close > open
greenCount += 1
if close < open
redCount += 1
bool quantityBull = greenCount > redCount
Quality Analysis (body-to-range scoring):
for i = 0 to lookbackPeriod - 1
float candleBody = close - open // Signed (positive = bull)
float candleRange = high - low
float bodyQuality = candleRange > 0 ? (candleBody / candleRange * 100) * candleRange : 0.0
sumBodyQuality += bodyQuality
bool qualityBull = sumBodyQuality > 0
Signal Types
FULL BULL - All three dimensions bullish (Quantity + Quality + Commitment)
FULL BEAR - All three dimensions bearish
LEAN BULL/BEAR - 2 of 3 dimensions agree
MIXED - No clear consensus
STRONG BUY/SELL - Full confluence + ADX confirms trending market
ADX Integration
The indicator includes ADX (Average Directional Index) to filter signals:
- ADX >= 20 = TRENDING market (signals more reliable)
- ADX < 20 = RANGING market (signals may whipsaw)
Strong signals only trigger when full confluence occurs in a trending environment.
Dashboard Information
Quantity - BULL/BEAR/FLAT with green/red candle ratio
Quality - Directional bias based on body quality scoring
Commit - Volume-weighted commitment reading
ADX - Trend strength (TRENDING/RANGING)
Signal - Confluence status (FULL BULL/FULL BEAR/LEAN/MIXED)
Action - STRONG BUY/STRONG SELL/WAIT
How to Use This Indicator
For High-Conviction Entries:
1. Wait for FULL BULL or FULL BEAR confluence
2. Confirm ADX shows TRENDING
3. Enter when Action shows STRONG BUY or STRONG SELL
For Filtering Weak Setups:
1. Avoid entries when signal shows MIXED
2. Be cautious when ADX shows RANGING
3. Require at least 2 of 3 dimensions to agree
For Divergence Analysis:
1. Watch for Quantity bullish but Commitment bearish (distribution)
2. Watch for Quantity bearish but Commitment bullish (accumulation)
Input Parameters
Lookback Period (9) - Bars to analyze for all three dimensions
ADX Smoothing (14) - Period for ADX calculation
ADX DI Length (14) - Period for directional indicators
Timeframe Recommendations
15m-1H: Good for intraday momentum analysis
4H-Daily: Best for swing trading confluence
Lookback period may need adjustment for different timeframes
Limitations
Lookback period affects signal responsiveness vs reliability tradeoff
Volume data quality varies by exchange
ADX filter may cause missed entries in early trends
Works best on liquid instruments with consistent volume
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Confluence signals do not guarantee profitable trades. Always use proper risk management.
- Made with passion by officialjackofalltrades
Prism Band Dynamics [JOAT]Prism Band Dynamics - Bollinger-Style Bands with Force Detection
Introduction and Purpose
Prism Band Dynamics is an open-source overlay indicator that creates dynamic Bollinger-style bands with an innovative "force detection" system. The core problem this indicator solves is that standard Bollinger Bands show volatility but don't indicate directional momentum. When all three band components (upper, lower, basis) move in the same direction, it indicates strong directional force that standard bands don't highlight.
This indicator addresses that by detecting when all band components align directionally, providing a clear signal of market force.
Why Force Detection Matters
Standard Bollinger Bands expand and contract based on volatility, but they don't tell you about directional momentum. Force detection adds this dimension:
1. Bullish Force - Upper band, lower band, AND basis all moving up together. This indicates strong upward momentum where even the lower support level is rising.
2. Bearish Force - Upper band, lower band, AND basis all moving down together. This indicates strong downward momentum where even the upper resistance level is falling.
3. Neutral - Mixed movement indicates consolidation or uncertainty.
How Force Detection Works
bool upperUp = upper > upper
bool lowerUp = lower > lower
bool basisUp = basis > basis
int forceFull = if upperUp and lowerUp and basisUp
1 // Bullish force
else if upperDn and lowerDn and basisDn
-1 // Bearish force
else
0 // Neutral
Additional Features
Squeeze Detection - Identifies when band width contracts below threshold, often preceding large moves
Gradient Fills - Color intensity reflects force strength
Direction Change Arrows - Visual markers when force direction shifts
Dashboard Information
Force - Current force status (BULLISH/BEARISH/NEUTRAL)
Position - Price location within bands (Upper/Mid/Lower Zone)
Band Width - Current width percentage with expansion/contraction label
Volatility - Squeeze status (SQUEEZE/NORMAL)
Force Count - Bars since last force change
How to Use This Indicator
For Trend Following:
1. Enter long when force turns BULLISH
2. Enter short when force turns BEARISH
3. Exit or reduce when force turns NEUTRAL
For Squeeze Breakouts:
1. Watch for SQUEEZE status in dashboard
2. Prepare for breakout in either direction
3. Enter when force confirms direction after squeeze
For Mean Reversion:
1. Only trade mean-reversion when force is NEUTRAL
2. Avoid fading moves when force is active
3. Use band touches as entry points during neutral force
Input Parameters
Length (20) - Period for basis and standard deviation
Multiplier (2.0) - Standard deviation multiplier for bands
MA Type (SMA) - Basis calculation method
Squeeze Threshold (0.5) - Band width percentage for squeeze detection
Timeframe Recommendations
4H-Daily: Cleanest force signals
1H: Good balance of signals and reliability
15m: More signals but more noise
Limitations
Force detection can lag during rapid reversals
Squeeze breakouts can fail (false breakouts)
Works best in markets with clear trending/ranging phases
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Force detection does not guarantee trend continuation. Always use proper risk management.
- Made with passion by officialjackofalltrades
Nexus Momentum Flow [JOAT]
Nexus Momentum Flow - ADX-Based Trend Strength Analysis
Introduction and Purpose
Nexus Momentum Flow is an open-source oscillator indicator that combines the ADX (Average Directional Index) with directional movement indicators (+DI/-DI) to create a comprehensive trend strength and direction analysis tool. The core problem this indicator solves is that ADX alone tells you trend strength but not direction, while +DI/-DI alone tells you direction but not strength. Traders need both pieces of information together.
This indicator addresses that by combining ADX strength classification with directional bias into a single confluence score, making it easy to identify when strong trends exist and which direction they favor.
Why These Components Work Together
1. ADX (Average Directional Index) - Measures trend strength regardless of direction. Values above 25 indicate trending; below 20 indicate ranging.
2. +DI (Positive Directional Indicator) - Measures upward price movement strength.
3. -DI (Negative Directional Indicator) - Measures downward price movement strength.
4. Confluence Score - Combines ADX strength with DI bias to create a single actionable metric.
The combination works because:
ADX filters out ranging markets where DI crossovers produce whipsaws
DI relationship provides direction when ADX confirms trend
Confluence score simplifies the analysis into one number
How the Calculation Works
float directionBias = diPlus - diMinus
float confluenceScore = (adx / 100) * directionBias
The confluence score is positive when +DI > -DI (bullish) and negative when -DI > +DI (bearish), with magnitude scaled by ADX strength.
Trend State Classification
EXTREME - ADX > 50 (very strong trend)
STRONG - ADX 35-50 (strong trend)
TRENDING - ADX 25-35 (moderate trend)
RANGING - ADX < 25 (no clear trend)
Dashboard Information
Status - Current trend state (EXTREME/STRONG/TRENDING/RANGING)
Direction - BULLISH or BEARISH based on DI relationship
ADX - Current ADX value
DI Bias - Difference between +DI and -DI
Confluence - Combined score with directional context
How to Use This Indicator
For Trend Following:
1. Wait for ADX to show TRENDING or higher
2. Check direction matches your trade bias
3. Enter on pullbacks when confluence remains positive/negative
4. Exit when ADX drops to RANGING
For Avoiding Whipsaws:
1. Do not trade DI crossovers when ADX shows RANGING
2. Only trust directional signals when ADX confirms trend
3. Use RANGING periods for mean-reversion strategies instead
For Trend Exhaustion:
1. Watch for EXTREME ADX readings
2. Extreme trends often precede reversals
3. Consider taking profits when ADX reaches extreme levels
Input Parameters
ADX Length (14) - Period for ADX calculation
DI Length (14) - Period for directional indicators
ADX Smoothing (14) - Smoothing period for ADX
Trend Threshold (25) - ADX level for trend confirmation
Strong Threshold (35) - ADX level for strong trend
Extreme Threshold (50) - ADX level for extreme trend
Timeframe Recommendations
Daily/4H: Best for swing trading trend analysis
1H: Good for intraday trend following
15m: More signals but requires faster reaction
Limitations
ADX is a lagging indicator - trends are confirmed after they start
DI crossovers can whipsaw even with ADX filter
Works best in markets that trend clearly
May miss early trend entries due to confirmation requirement
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Trend analysis does not guarantee profitable trades. Always use proper risk management.
- Made with passion by officialjackofalltrades
Fractal Wave Hunter [JOAT]
Fractal Wave Hunter - Multi-Method Fractal Detection System
Introduction and Purpose
Fractal Wave Hunter is an open-source overlay indicator that identifies key reversal patterns using multiple fractal detection methods. The core problem this indicator solves is that different fractal methods catch different types of reversals. Williams' classic 5-bar fractal is reliable but slow; Hougaard's 4-bar method is faster but noisier. Using only one method means missing valid signals that the other would catch.
This indicator addresses that by combining both methods plus HOLP/LOHP detection, giving traders a comprehensive view of potential reversal points.
Why These Methods Work Together
Each fractal method has different characteristics:
1. 4-Bar Fractal (Hougaard Method) - Faster detection, identifies momentum shifts when close exceeds recent highs/lows. Best for catching early reversals.
2. Classic 5-Bar Fractal (Williams) - Traditional pivot detection requiring the middle bar to be the highest/lowest of 5 bars. Best for identifying significant swing points.
3. HOLP/LOHP - High of Low Period and Low of High Period signals identify when price makes a new extreme within a defined lookback. Best for trend exhaustion detection.
By combining these methods, traders can:
Use 4-bar fractals for early entry signals
Use 5-bar fractals for confirmation and stop placement
Use HOLP/LOHP for trend exhaustion warnings
How the Detection Works
4-Bar Fractal (Hougaard):
bool fractal4BuyBase = close > high and close > high
bool fractal4SellBase = close < low and close < low
Classic 5-Bar Fractal:
bool fractalHigh = high > high and high > high and high > high and high > high
bool fractalLow = low < low and low < low and low < low and low < low
Signal Types
4B (4-Bar Buy) - Close exceeds high and high - early bullish signal
4S (4-Bar Sell) - Close below low and low - early bearish signal
FH (Fractal High) - Classic 5-bar swing high - confirmed resistance
FL (Fractal Low) - Classic 5-bar swing low - confirmed support
HOLP - High of low period - potential bullish exhaustion
LOHP - Low of high period - potential bearish exhaustion
Dashboard Information
4-Bar Fractal - Count of bullish/bearish 4-bar fractals
Classic Fractal - Count of 5-bar fractal highs/lows
HOLP/LOHP - Reversal signal counts
Total Signals - Combined pattern count
How to Use This Indicator
For Counter-Trend Entries:
1. Wait for 4-bar fractal signal at key support/resistance
2. Confirm with 5-bar fractal forming nearby
3. Enter with stop beyond the fractal point
For Stop Placement:
1. Use 5-bar fractal highs/lows as stop-loss references
2. These represent confirmed swing points that should hold if trend continues
For Trend Analysis:
1. Track swing structure using fractal highs and lows
2. Higher fractal lows = uptrend structure
3. Lower fractal highs = downtrend structure
Input Parameters
Show 4-Bar Fractals (true) - Toggle Hougaard method signals
Show Classic Fractals (true) - Toggle Williams method signals
Show HOLP/LOHP (true) - Toggle exhaustion signals
ATR Filter (false) - Only show signals during volatile conditions
Swing Lines (true) - Connect significant swing points
Timeframe Recommendations
1H-Daily: Best for reliable fractal detection
15m-30m: More signals but higher noise
Weekly: Fewer but more significant fractals
Limitations
5-bar fractals have inherent 2-bar lag (need confirmation)
4-bar fractals can produce false signals in choppy markets
HOLP/LOHP signals work best at trend extremes
Not all fractals lead to significant reversals
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Fractal detection does not guarantee reversals. Always use proper risk management.
- Made with passion by officialjackofalltrades
Eclipse Multi-Oscillator [JOAT]Eclipse Multi-Oscillator - Unified Momentum Confluence System
Introduction and Purpose
Eclipse Multi-Oscillator is an open-source indicator that combines four classic oscillators (RSI, Stochastic, CCI, and Williams %R) into a single unified view with confluence detection. The core problem this indicator solves is oscillator disagreement: traders often see RSI oversold while Stochastic is neutral, or CCI overbought while Williams %R is mid-range. This creates confusion about the true momentum state.
This indicator addresses that by displaying all four oscillators together and counting how many agree on overbought or oversold conditions, providing a clear confluence score that cuts through the noise.
Why These Four Oscillators Work Together
Each oscillator measures momentum differently, and their combination provides a more complete picture:
1. RSI (Relative Strength Index) - Measures the magnitude of recent price changes. Best at identifying momentum exhaustion.
2. Stochastic - Compares closing price to the high-low range. Best at identifying where price is within its recent range.
3. CCI (Commodity Channel Index) - Measures price deviation from statistical mean. Best at identifying unusual price movements.
4. Williams %R - Similar to Stochastic but inverted. Provides confirmation of Stochastic readings.
When 3 or more of these oscillators agree on overbought or oversold, the signal is significantly more reliable than any single oscillator alone.
How Confluence Scoring Works
The indicator counts how many oscillators are in extreme territory:
int obCount = 0
if rsi > rsiOB
obCount += 1
if stochK > stochOB
obCount += 1
if cci > cciOB
obCount += 1
if willRScaled > stochOB
obCount += 1
bool strongOverbought = obCount >= 3
bool strongOversold = osCount >= 3
The confluence score ranges from -4 (all oversold) to +4 (all overbought), with 0 being neutral.
Signal Types
Strong Oversold - 3+ oscillators below oversold threshold (potential bounce)
Strong Overbought - 3+ oscillators above overbought threshold (potential pullback)
OB/OS Exit - RSI leaving extreme zone with Stochastic confirmation (potential reversal)
Divergence - Price makes new high/low while RSI does not (potential reversal warning)
Dashboard Information
RSI/Stoch K/CCI/Will %R - Current values with zone status (OB/OS/MID)
Confluence - Overall bias (STRONG OS, STRONG OB, Lean Bull/Bear, Neutral)
OB Count - How many oscillators are overbought (0-4)
OS Count - How many oscillators are oversold (0-4)
How to Use This Indicator
For Reversal Trading:
1. Wait for Strong Oversold (3+ oscillators agree)
2. Look for bullish candlestick pattern or support level
3. Enter long with stop below recent low
4. Take profit when confluence returns to neutral or overbought
For Trend Confirmation:
1. Check confluence direction matches your trade bias
2. Avoid longs when confluence is strongly overbought
3. Avoid shorts when confluence is strongly oversold
For Divergence Trading:
1. Watch for "D" labels indicating RSI divergence
2. Bullish divergence at support = potential long
3. Bearish divergence at resistance = potential short
Input Parameters
RSI Length (14) - Period for RSI calculation
Stochastic K/D Length (14/3) - Periods for Stochastic
CCI Length (20) - Period for CCI
Williams %R Length (14) - Period for Williams %R
OB/OS Thresholds - Customizable levels for each oscillator
Timeframe Recommendations
15m-1H: Good for intraday momentum analysis
4H-Daily: Best for swing trading confluence
Very short timeframes may produce noisy signals
Limitations
All oscillators can remain in extreme territory during strong trends
Confluence does not predict direction, only identifies extremes
Divergence detection is simplified and may miss some patterns
Works best in ranging or moderately trending markets
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied.
This indicator does not constitute financial advice. Oscillator confluence does not guarantee reversals. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades
Aurora Volatility Bands [JOAT]Aurora Volatility Bands - Dynamic ATR-Based Envelope System
Introduction and Purpose
Aurora Volatility Bands is an open-source overlay indicator that creates multi-layered volatility envelopes around price using ATR (Average True Range) calculations. The core problem this indicator solves is that static bands (like fixed percentage envelopes) fail to adapt to changing market conditions. During high volatility, static bands are too tight; during low volatility, they're too wide.
This indicator addresses that by using ATR-based dynamic bands that automatically expand during volatile periods and contract during quiet periods, providing contextually appropriate support/resistance levels at all times.
Why These Components Work Together
The indicator combines three analytical approaches:
1. Triple-Layer Band System - Inner (1x ATR), Outer (2x ATR), and Extreme (3x ATR) bands provide graduated levels of significance
2. Volatility State Detection - Compares current ATR to historical average to classify market regime
3. Multiple MA Types - Allows customization of the center line calculation method
These components complement each other:
The triple-layer system gives traders multiple reference points - inner bands for normal moves, outer for significant moves, extreme for rare events
Volatility state detection tells you WHEN bands are expanding or contracting, helping anticipate breakouts or mean-reversion
MA type selection lets you match the indicator to your trading style (faster EMA vs smoother SMA)
How the Calculation Works
The bands are calculated using ATR multiplied by configurable factors:
float atr = ta.atr(atrPeriod)
float innerUpper = centerMA + (atr * innerMult)
float outerUpper = centerMA + (atr * outerMult)
float extremeUpper = centerMA + (atr * extremeMult)
Volatility state is determined by comparing current ATR percentage to its historical average:
float atrPercent = (atr / close) * 100
float avgAtrPercent = ta.sma(atrPercent, volatilityLookback)
float volatilityRatio = atrPercent / avgAtrPercent
bool isExpanding = volatilityRatio > 1.2 // 20%+ above average
bool isContracting = volatilityRatio < 0.8 // 20%+ below average
Signal Types
Band Touch - Price reaches inner, outer, or extreme bands
Mean Reversion - Price returns to center after touching outer/extreme bands
Breakout - Sustained move beyond outer bands during volatility expansion
Dashboard Information
Volatility - Current state (EXPANDING/CONTRACTING/NORMAL)
Vol Ratio - Current volatility vs average (e.g., 1.5x = 50% above average)
ATR - Current ATR value
ATR % - ATR as percentage of price
Zone - Current price position (EXTREME HIGH/UPPER ZONE/CENTER ZONE/etc.)
Position - Price position as percentage within band structure
Width - Total band width as percentage of price
Using SMA in settings:
How to Use This Indicator
For Mean-Reversion Trading:
1. Wait for price to touch outer or extreme bands
2. Check that volatility state is NORMAL or CONTRACTING (not expanding)
3. Look for reversal candlestick patterns at the band
4. Enter toward center MA with stop beyond the band
For Breakout Trading:
1. Wait for volatility state to show EXPANDING
2. Look for price closing beyond outer bands
3. Enter in direction of breakout
4. Use the band as trailing stop reference
For Volatility Analysis:
1. Monitor volatility ratio for regime changes
2. CONTRACTING often precedes large moves (squeeze)
3. EXPANDING confirms trend strength
Using VWMA and Mean Reversion Signal/MR:
Input Parameters
ATR Period (14) - Period for ATR calculation
Inner/Outer/Extreme Multipliers (1.0/2.0/3.0) - Band distance from center
MA Type (EMA) - Center line calculation method
MA Period (20) - Period for center line
Volatility Comparison Period (20) - Lookback for volatility state
Timeframe Recommendations
15m-1H: Good for intraday mean-reversion
4H-Daily: Best for swing trading and breakout identification
Weekly: Useful for position trading and major level identification
Limitations
ATR-based bands lag during sudden volatility spikes
Mean-reversion signals can fail in strong trends
Breakout signals may whipsaw in ranging markets
Works best on liquid instruments with consistent volatility patterns
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Band touches do not guarantee reversals. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades
Quantum Reversal Detector [JOAT]
Quantum Reversal Detector - Multi-Factor Reversal Probability Analysis
Introduction and Purpose
Quantum Reversal Detector is an open-source overlay indicator that combines multiple reversal detection methods into a unified probability-based framework. The core problem this indicator addresses is the unreliability of single-factor reversal signals. A price touching support means nothing without momentum confirmation; an RSI oversold reading means nothing without price structure context.
This indicator solves that by requiring multiple independent factors to align before generating reversal signals, then expressing the result as a probability score rather than a binary signal.
Why These Components Work Together
The indicator combines five analytical approaches, each addressing a different aspect of reversal detection:
1. RSI Extremes - Identifies momentum exhaustion (overbought/oversold)
2. MACD Crossovers - Confirms momentum direction change
3. Support/Resistance Proximity - Ensures price is at a significant level
4. Multi-Depth Momentum - Analyzes momentum across multiple timeframes
5. Statistical Probability - Quantifies reversal likelihood using Bayesian updating
These components are not randomly combined. Each filter catches reversals that others miss:
RSI catches momentum exhaustion but misses structural reversals
MACD catches momentum shifts but lags price action
S/R proximity catches structural levels but ignores momentum
Multi-depth momentum catches divergences across timeframes
Probability scoring combines all factors into actionable confidence levels
How the Detection System Works
Step 1: Pattern Detection
The indicator first identifies potential reversal conditions:
// Check if price is at support/resistance
float lowestLow = ta.lowest(low, period)
float highestHigh = ta.highest(high, period)
bool atSupport = low <= lowestLow * 1.002
bool atResistance = high >= highestHigh * 0.998
// Check RSI conditions
float rsi = ta.rsi(close, 14)
bool oversold = rsi < 30
bool overbought = rsi > 70
// Check MACD crossover
float macd = ta.ema(close, 12) - ta.ema(close, 26)
float signal = ta.ema(macd, 9)
bool macdBullish = ta.crossover(macd, signal)
bool macdBearish = ta.crossunder(macd, signal)
// Combine for reversal detection
if atSupport and oversold and macdBullish
bullishReversal := true
Step 2: Multi-Depth Momentum Analysis
The indicator calculates momentum across multiple periods to detect divergences:
calculateQuantumMomentum(series float price, simple int period, simple int depth) =>
float totalMomentum = 0.0
for i = 0 to depth - 1
int currentPeriod = period * (i + 1)
float momentum = ta.roc(price, currentPeriod)
totalMomentum += momentum
totalMomentum / depth
This creates a composite momentum reading that smooths out noise while preserving genuine momentum shifts.
Step 3: Bayesian Probability Calculation
The indicator uses Bayesian updating to calculate reversal probability:
bayesianProbability(series float priorProb, series float likelihood, series float evidence) =>
float posterior = evidence > 0 ? (likelihood * priorProb) / evidence : priorProb
math.min(math.max(posterior, 0.0), 1.0)
The prior probability starts at 50% and updates based on:
RSI extreme readings increase likelihood
MACD crossovers increase likelihood
S/R proximity increases likelihood
Momentum divergence increases likelihood
Step 4: Confidence Intervals
Using Monte Carlo simulation concepts, the indicator estimates price distribution:
monteCarloSimulation(series float price, series float volatility, simple int iterations) =>
float sumPrice = 0.0
float sumSqDiff = 0.0
for i = 0 to iterations - 1
float randomFactor = (i % 10 - 5) / 10.0
float simulatedPrice = price + volatility * randomFactor
sumPrice += simulatedPrice
float avgPrice = sumPrice / iterations
// Calculate standard deviation for confidence intervals
This provides 95% and 99% confidence bands around the current price.
Signal Classification
Signals are classified by confirmation level:
Confirmed Reversal : Pattern detected for N consecutive bars (default 3)
High Probability : Confirmed + Bayesian probability > 70%
Ultra High Probability : High probability + PDF above average
Dashboard Information
The dashboard displays:
Bayesian Probability - Updated reversal probability (0-100%)
Quantum Momentum - Multi-depth momentum average
RSI - Current RSI value with overbought/oversold status
Volatility - Current ATR as percentage of price
Reversal Signal - BULLISH, BEARISH, or NONE
Divergence - Momentum divergence detection
MACD - Current MACD histogram value
S/R Zone - AT SUPPORT, AT RESISTANCE, or NEUTRAL
95% Confidence - Price range with 95% probability
Bull/Bear Targets - ATR-based reversal targets
Visual Elements
Quantum Bands - ATR-based upper and lower channels
Probability Field - Circle layers showing probability distribution
Confidence Bands - 95% and 99% confidence interval circles
Reversal Labels - REV markers at confirmed reversals
High Probability Markers - Star diamonds at high probability setups
Reversal Zones - Boxes around confirmed reversal areas
Divergence Markers - Triangles at momentum divergences
How to Use This Indicator
For Reversal Trading:
1. Wait for Bayesian Probability to exceed 70%
2. Confirm price is at S/R zone (dashboard shows AT SUPPORT or AT RESISTANCE)
3. Check that RSI is in extreme territory (oversold for longs, overbought for shorts)
4. Enter when REV label appears with high probability marker
For Risk Management:
1. Use the 95% confidence band as a stop-loss reference
2. Use Bull/Bear Targets for take-profit levels
3. Higher probability readings warrant larger position sizes
For Filtering False Signals:
1. Increase Confirmation Bars to require more consecutive signals
2. Only trade when probability exceeds 70%
3. Require divergence confirmation for highest conviction
Input Parameters
Reversal Period (21) - Lookback for S/R and momentum calculations
Quantum Depth (5) - Number of momentum layers for multi-depth analysis
Confirmation Bars (3) - Consecutive bars required for confirmation
Detection Sensitivity (1.2) - Band width and target multiplier
Bayesian Probability (true) - Enable probability calculation
Monte Carlo Simulation (true) - Enable confidence interval calculation
Normal Distribution (true) - Enable PDF calculation
Confidence Intervals (true) - Enable confidence bands
Timeframe Recommendations
1H-4H: Best for swing trading reversals
Daily: Fewer but more significant reversal signals
15m-30m: More signals, requires higher probability threshold
Limitations
Statistical concepts are simplified implementations for Pine Script
Monte Carlo uses deterministic pseudo-random factors, not true randomness
Bayesian probability uses simplified prior/likelihood model
Reversal detection does not guarantee actual reversals will occur
Confirmation bars add lag to signal generation
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Reversal detection is probabilistic, not predictive. The probability scores represent statistical likelihood based on historical patterns, not guaranteed outcomes. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades
Photon Price Action Scanner [JOAT]Photon Price Action Scanner - Multi-Pattern Recognition with Adaptive Filtering
Introduction and Purpose
Photon Price Action Scanner is an open-source overlay indicator that automates the detection of 15+ candlestick patterns while filtering them through multiple confirmation layers. The core problem this indicator solves is pattern noise: raw candlestick pattern detection produces too many signals, most of which fail because they lack context. This indicator addresses that by combining pattern recognition with trend alignment, volume-weighted strength scoring, velocity confirmation, and an adaptive neural bias filter.
The combination of these components is not arbitrary. Each filter addresses a specific weakness in standalone pattern detection:
Trend alignment ensures patterns appear in favorable market structure
Volume-weighted strength filters out weak patterns with low conviction
Velocity confirmation identifies momentum behind the pattern
Neural bias filter adapts to recent price behavior to avoid counter-trend signals
What Makes This Indicator Original
While candlestick pattern scanners exist, this indicator's originality comes from:
1. Multi-Layer Filtering System - Patterns must pass through trend, strength, velocity, and neural bias filters before generating signals. This dramatically reduces false positives compared to simple pattern detection.
2. Adaptive Neural Bias Filter - A custom momentum-adjusted EMA that learns from recent price action using a configurable learning rate. This is not a standard moving average but an adaptive filter that accelerates during trends and smooths during consolidation.
3. Pattern Strength Scoring - Each pattern receives a strength score based on volume ratio and body size, allowing traders to focus on high-conviction setups rather than every pattern occurrence.
4. Smart Cooldown System - Prevents signal overlap by enforcing minimum bar spacing between pattern labels, keeping charts clean even when "Show All Patterns" is enabled.
How the Components Work Together
Step 1: Pattern Detection
The indicator scans for 15 candlestick patterns using precise mathematical definitions:
// Example: Bullish Engulfing requires the current bullish candle to completely
// engulf the previous bearish candle with a larger body
isBullishEngulfing() =>
bool pattern = close < open and close > open and
open <= close and close >= open and
close - open > open - close
pattern
// Example: Three White Soldiers requires three consecutive bullish candles
// with each opening within the previous body and closing higher
isThreeWhiteSoldiers() =>
bool pattern = close > open and close > open and close > open and
close < close and close < close and
open > open and open < close and
open > open and open < close
pattern
Step 2: Strength Calculation
Each detected pattern receives a strength score combining volume and body size:
float volRatio = avgVolume > 0 ? volume / avgVolume : 1.0
float bodySize = math.abs(close - open) / close
float baseStrength = (volRatio + bodySize * 100) / 2
This ensures patterns with above-average volume and large bodies score higher than weak patterns on low volume.
Step 3: Trend Alignment
Patterns are checked against the trend direction using an EMA:
float trendEMA = ta.ema(close, i_trendPeriod)
int trendDir = close > trendEMA ? 1 : close < trendEMA ? -1 : 0
Bullish patterns in uptrends and bearish patterns in downtrends receive priority.
Step 4: Neural Bias Filter
The adaptive filter uses a momentum-adjusted EMA that responds to price changes:
neuralEMA(series float src, simple int period, simple float lr) =>
var float neuralValue = na
var float momentum = 0.0
if na(neuralValue)
neuralValue := src
float error = src - neuralValue
float adjustment = error * lr
momentum := momentum * 0.9 + adjustment * 0.1
neuralValue := neuralValue + adjustment + momentum
neuralValue
The learning rate (lr) controls how quickly the filter adapts. Higher values make it more responsive; lower values make it smoother.
Step 5: Velocity Confirmation
Price velocity (rate of change) must exceed the average velocity for strong signals:
float velocity = ta.roc(close, i_trendPeriod)
float avgVelocity = ta.sma(velocity, i_trendPeriod)
bool velocityBull = velocity > avgVelocity * 1.5
Step 6: Signal Classification
Signals are classified based on how many filters they pass:
Strong Pattern : Pattern + strength threshold + trend alignment + neural bias + velocity
Ultra Pattern : Strong pattern + gap in same direction + velocity confirmation
Watch Pattern : Pattern detected but not all filters passed
Detected Patterns
Classic Reversal Patterns:
Bullish/Bearish Engulfing - Complete body engulfment with larger body
Hammer - Long lower wick (2x body), small upper wick, bullish context
Shooting Star - Long upper wick (2x body), small lower wick, bearish context
Morning Star - Three-bar bullish reversal with small middle body
Evening Star - Three-bar bearish reversal with small middle body
Piercing Line - Bullish candle closing above midpoint of previous bearish candle
Dark Cloud Cover - Bearish candle closing below midpoint of previous bullish candle
Bullish/Bearish Harami - Small body contained within previous larger body
Doji - Body less than 10% of total range (indecision)
Advanced Patterns (Optional):
Three White Soldiers - Three consecutive bullish candles with rising closes
Three Black Crows - Three consecutive bearish candles with falling closes
Tweezer Top - Equal highs with reversal candle structure
Tweezer Bottom - Equal lows with reversal candle structure
Island Reversal - Gap isolation creating reversal structure
Dashboard Information
The dashboard displays real-time analysis:
Pattern - Current detected pattern name or "SCANNING..."
Bull/Bear Strength - Volume-weighted strength scores
Trend - UPTREND, DOWNTREND, or SIDEWAYS based on EMA
RSI - 14-period RSI for momentum context
Momentum - 10-period momentum reading
Volatility - ATR as percentage of price
Neural Bias - BULLISH, BEARISH, or NEUTRAL from adaptive filter
Action - ULTRA BUY/SELL, BUY/SELL, WATCH BUY/SELL, or WAIT
Visual Elements
Pattern Labels - Abbreviated codes (BE=Engulfing, H=Hammer, MS=Morning Star, etc.)
Neural Bias Line - Adaptive trend line showing filter direction
Gap Boxes - Cyan boxes highlighting price gaps
Action Zones - Dashed boxes around strong pattern areas
Velocity Markers - Small circles when velocity confirms direction
Ultra Signals - Large labels for highest conviction setups
How to Use This Indicator
For Reversal Trading:
1. Wait for a pattern to appear at a key support/resistance level
2. Check that the Action shows "BUY" or "SELL" (not just "WATCH")
3. Confirm the Neural Bias aligns with your trade direction
4. Use the strength score to gauge conviction (higher is better)
For Trend Continuation:
1. Identify the trend using the Trend row in the dashboard
2. Look for patterns that align with the trend (bullish patterns in uptrends)
3. Ultra signals indicate the strongest continuation setups
For Filtering Noise:
1. Keep "Show All Patterns" disabled to see only filtered signals
2. Increase "Pattern Strength Filter" to see fewer, higher-quality patterns
3. Enable "Velocity Confirmation" to require momentum behind patterns
Input Parameters
Scan Sensitivity (1.0) - Overall detection sensitivity multiplier
Pattern Strength Filter (3) - Minimum strength score for strong signals
Trend Period (20) - EMA period for trend determination
Show All Patterns (false) - Display all patterns regardless of filters
Advanced Patterns (true) - Enable soldiers/crows/tweezer detection
Gap Analysis (true) - Enable gap detection and boxes
Velocity Confirmation (true) - Require velocity for strong signals
Neural Bias Filter (true) - Enable adaptive trend filter
Neural Period (50) - Lookback for neural bias calculation
Neural Learning Rate (0.12) - Adaptation speed (0.01-0.5)
Timeframe Recommendations
1H-4H: Best balance of signal frequency and reliability
Daily: Fewer but more significant patterns
15m-30m: More signals, requires tighter filtering (increase strength threshold)
Limitations
Pattern detection is mechanical and does not consider fundamental context
Neural bias filter may lag during rapid trend reversals
Gap detection requires clean price data without after-hours gaps
Strength scoring favors high-volume patterns, which may miss valid low-volume setups
- Made with passion by officialjackofalltrades






















