Trader Assistant Pro [WillyAlgoTrader]

This is not another single-purpose indicator. This is a complete trading workflow built for traders who want structure, patterns, trend context, and risk management working together on every chart.
🎯 WHO THIS IS FOR
— Day traders and scalpers who need fast, clean setups with built-in risk management
— Smart Money / ICT traders who use BOS, CHoCH, and Fair Value Gaps
— Pattern traders who rely on 1-2-3 reversal formations for high R:R entries
— Anyone tired of manually calculating position size, stop loss, and take profit for every trade
— Traders who want to see their actual 24-hour win rate on every chart — not guess
— Beginners who need a clear workflow: what's the trend, where's the setup, how much to risk
💎 WHY TRADERS CHOOSE THIS INDICATOR
✅ Four engines in one tool — working together.
Market structure tells you the direction. The 123 engine finds the reversal setups. Trend Bands confirm the bias. The Risk Manager calculates your exact position size. Every component reinforces the others — you're not guessing, you're following a system.
✅ Automatic 1-2-3 pattern detection.
The 1-2-3 reversal is one of the most reliable patterns in technical analysis — but finding valid formations manually is tedious. This indicator detects them automatically, scores them by quality, filters weak setups, and draws the entire structure: pattern legs, Fibonacci zones, target zone, entry, and stop loss.
✅ Built-in Smart Money toolkit.
Break of Structure (BOS), Change of Character (CHoCH), Fair Value Gaps, and Inverted FVGs — all the tools ICT and Smart Money traders rely on, integrated directly. Swing structure and internal structure tracked on separate layers. Multiple FVG mitigation modes to match your style.
✅ Real-time Risk Manager.
Enter your account balance, your risk %, your leverage — the indicator calculates your position size automatically when a setup triggers. Two sizing modes: Risk-based (industry standard) or Margin-based (for futures traders). Everything updates live when you change your inputs.
✅ Automatic trailing stop to breakeven and beyond.
After price reaches 50% of target → stop moves to entry (breakeven, protected). At 75% → stop moves to +1R (locked profit). At 90% → stop moves to +2R (maximum profit protection). Fully automated. Fully configurable.
✅ Live 24-hour performance tracking.
The dashboard shows your actual win rate over the last 24 hours on the current symbol. Not theoretical. Not backtested. Real trades, real results, live on your chart. Know whether your setup is working right now.
✅ Adaptive Trend Bands.
A volatility-aware trend filter that tells you the overall bias at a glance. Combine with the 123 pattern to take only trades aligned with the trend — or use as independent confirmation.
✅ Clean, professional design.
Auto-adapts to dark and light themes. Every visual element is toggleable. No chart clutter — only what you need to see, when you need to see it.
🚀 HOW IT CHANGES YOUR WORKFLOW
Before: You open a chart. You load 5 different indicators — one for structure, one for FVG, one for patterns, one for trend, and a separate position calculator in another tab. You spend 2 minutes per trade doing math. Half your setups you miss because you were calculating the last one.
After: You open a chart. Trader Assistant Pro is already loaded. The trend is colored. Structure is labeled. Fair Value Gaps are drawn. A 1-2-3 pattern forms — the target zone, entry, and stop appear automatically. The dashboard shows your position size, max loss, max profit, and current 24-hour win rate. You decide. You execute. You repeat.
What used to take 5 tools and 2 minutes now takes one glance.
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator to any chart
2. Enter your account balance and risk % in the "123 Risk Manager" settings
3. Set your leverage (1 for spot, higher for futures)
4. Trade with the direction shown in the dashboard's "Expected" row
5. When a 1-2-3 pattern forms → entry, stop, and target appear automatically
6. Copy the levels to your exchange and execute
👁️ Reading the chart:
— 🟢 Green Trend Band = bullish bias (look for longs)
— 🔴 Red Trend Band = bearish bias (look for shorts)
— "BOS" labels = continuation (trend is holding)
— "CHoCH" labels = reversal (trend has changed)
— Colored FVG boxes = imbalance zones where price often returns
— 1/2/3 labels = reversal pattern formation
— Yellow Fibonacci box = ideal zone for point 3
— Green TARGET ZONE = take profit area
— Red SL line = stop loss
— Blue Entry line = entry price
💡 Trading ideas:
— Trend continuation: take 1-2-3 patterns only in the direction of Trend Bands
— Reversal trading: wait for CHoCH + 1-2-3 in the new direction
— FVG retest: enter when price returns to an unfilled Fair Value Gap
— Structure trading: use BOS as continuation confirmation after pullbacks
— Automatic risk: let the Risk Manager size every position — never over-risk
📊 Dashboard fields:
— Trend: current bias from Trend Bands
— Expected: direction to trade (follows trend or active formation)
— Trades 24h: number of setups in the last 24 hours
— Winrate 24h: actual win rate on the current symbol
— Position: exact position size for the current setup
— Max Loss: maximum dollar amount at risk
— Max Profit: maximum dollar target (at 1:3 R:R)
— Leverage: your configured leverage
— Margin: margin required for the position
⚙️ KEY FEATURES
🏗️ Smart Market Structure Engine:
— Swing structure (major HH/HL/LH/LL)
— Internal structure (minor pivots for early entries)
— BOS / CHoCH labels with auto-mitigation
— Fair Value Gaps with 7 mitigation modes
— Inverted FVG detection
— Pullback signals on FVG zones
📐 1-2-3 Pattern Engine:
— Early stage detection (Point 2) for advance warning
— Confirmed stage detection (Point 3) for entries
— Automatic pattern quality scoring
— Fibonacci retracement zones (0.5, 0.618, 0.705, 0.786)
— Auto-calculated Target Zone at 0.5 and 0.618 extension
— Entry, Stop, and Target drawn automatically
— R:R 1:3 fixed ratio on every setup
— Pullback dot tracking on every fib level
— Automatic trailing stop (BE / +1R / +2R)
— Win/loss tracking with 24h statistics
📈 Trend Bands:
— Adaptive volatility-aware trend line
— Upper/lower bands for mean reversion
— Color-coded direction (green/red)
— Alert conditions for trend changes
💰 Risk Manager:
— Live position size calculation
— Two modes: Risk-based or Margin-based
— % of balance or fixed amount
— Leverage up to 125x
— Auto margin insufficiency warning
— Max loss and max profit in USD
📊 Dashboard:
— 6 position options (top/bottom × left/right + middle left/right)
— Theme-adaptive colors
— 10-row live readout
— Trend + Expected direction + Trade stats + Position sizing
🔔 Alerts:
— 123 Pattern Point 2 (early warning)
— 123 Pattern Point 3 (confirmed entry)
— SME CHoCH bullish / bearish
— SME Internal CHoCH
— Trend Bands bullish / bearish breakout
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals, pattern detections, structure breaks, and alerts are confirmed on bar close.
— 🔒 One trade at a time. The 123 engine tracks one active formation and one active trade. New setups are blocked until the current trade resolves (TP or SL) — preventing overlap and confusion.
— 📐 Position sizing recalculates live from your inputs. Change your balance or risk % and the dashboard updates instantly.
— 📊 The 24-hour win rate is real data from actual pattern outcomes on the current symbol — not a backtest.
— 🌐 Works on all markets and timeframes: stocks, forex, crypto, futures, indices. Volume-dependent features (FVG pullback signals) auto-adapt to instruments with or without volume data.
— 🛠️ This is a trade assistance and analysis tool, not an automated trading bot. It detects setups, calculates risk, and tracks outcomes — trade execution decisions remain yours.
— 🔒 This indicator is invite-only. Access is granted after purchase.
📩 HOW TO GET ACCESS
Send a private message on TradingView to request access. Do not include external links or contact details in public comments.
🆕 Trend Filter for 123 Patterns
New "Trend Filter" setting with three modes: Off, Trend Bands, and Swing Structure. When enabled, the indicator only takes longs in a bullish trend and shorts in a bearish trend, filtering out counter-trend signals.
🎯 TP2 — Second Target (0.272 Extension)
A new TP2 level is now displayed at the 0.272 wave extension alongside the existing TP1 zone. The TP2 line and label are shown in orange, auto-extend with price, and are cleaned up when SL or TP is hit.
📐 TP1 — Dedicated Line at Point 2 Level
TP1 now has its own clearly visible line drawn at the Point 2 level (line 0) with a corresponding label. The old dashed "pending level" line has been removed — its function is fully replaced by the TP1 line.
🛡️ Skip SL/TP Check on Entry Bar
Stop-loss and take-profit are no longer evaluated on the same candle where the entry was placed. This eliminates false exits caused by entry candle wicks piercing the stop level.
🔒 Negative Reward Protection
If the entry price is already beyond the TP level (negative profit potential), the trade is not activated.
📏 Thinner Swing Structure Lines
Swing structure lines (BOS/CHoCH) are now drawn as width-1 dashed lines instead of width-2 solid, visually separating them from internal structure and reducing chart clutter.
🔄 Trailing Stop — Visual Only
The trailing stop (BE / +1R / +2R) now functions purely as a visual indicator on the Entry label. The actual SL level that triggers an exit remains at its original position, preventing premature exits due to volatility.
🔧 Fixed Break Detection Logic (Section 13)
When Point 2 level is broken, the position is no longer pushed to "historical" arrays. Entry, SL, TP, and trailing stop continue to be tracked as the current trade until the target or stop is actually hit.
🚀 UPDATE v2.0 — What's New
═══════════════════════════════════════
🎯 Two-Bar Entry (Zero Look-Ahead Bias)
Trades now open at the OPEN of the next bar after signal detection — not at the signal bar's close. This eliminates forward-looking bias and makes historical stats match real trading conditions.
🛡️ "Already Broken" Entry Filter
If the next bar opens beyond Point 2 (gap through breakout level), the trade is automatically cancelled. No more late entries into moves that already happened.
📏 Max Wave Size Filter (× ATR)
New setting: "Max Wave Size" (default: 8× ATR). Patterns with abnormally large waves after news spikes or squeezes are rejected. Prevents trades with unreachable TP/SL that would sit on chart for days.
⏰ Trade Expiration
New setting: "Max Trade Duration" (default: 100 bars). Trades that haven't hit SL or TP are force-closed. In profit at expiration → win. In loss → loss. No more zombie trades.
📊 Dashboard Period Selector
Stats period is now configurable: 24h / 7d / 30d / All. Previously hardcoded to 24h.
🏷️ Historical Entry Labels
New toggle: "Show Entry Labels on History" (default: ON). When a trade closes, the label stays on chart with the result:
✓ TP — closed at take profit
✗ SL — closed at stop loss
✓ Expired — force-closed in profit
✗ Expired — force-closed in loss
📈 HTF Trend Line
Higher-timeframe trend line overlay (default: 1H). Uses the same parameters as current-TF trend bands. Helps identify the larger trend without switching timeframes.
⚫ 0.886 Cancel Level
New Fibonacci level at 0.886 retracement with "Cancel Longs" / "Cancel Shorts" label. When price retraces this deep, the pattern is effectively invalidated.
═══════════════════════════════════════
🔧 IMPROVEMENTS
═══════════════════════════════════════
🧮 Improved Pattern Scoring
Reworked score function with single bell-curve centered on 0.618. Cleaner tiers (55/45/32/20/5), sqrt scaling for ATR component. More discriminating, fewer false positives.
📐 Consistent Line Styles
Target lines now use solid style for Stage 3 and dashed for Stage 2 across all TP levels. Previously inconsistent.
🔔 Alerts on Stage 3 Upgrade
Alerts now fire on any Stage 3 event — both fresh detections and upgrades from Stage 2. Previously upgrades were silently ignored.
🎯 Trailing Stop — Clean Visuals
SL line and label no longer move on chart. Original SL stays as reference. Trailing state shown as suffix on Entry label: "Entry 71624.6 | SL→BE" or "SL→+1R".
⚡ Force-Close Safety Net
Three layers of protection: wave size filter → time expiration → invalid state backstop. Trades cannot get stuck anymore.
═══════════════════════════════════════
🗑️ CLEANUP
═══════════════════════════════════════
• Removed ~200 lines of dead code (unused history arrays, unreachable demote section)
• Sections renumbered 1–12 sequentially
• Architecture notes rewritten
• Fixed Step 2 → Step 1 execution order to prevent signal loss
• Eliminated magic numbers (named constants throughout)
🔥 WHAT'S NEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ INSTANT TRADE EXECUTION
Trade system completely reworked. Entry, SL and TP levels appear immediately when Point 2 is detected — no more waiting for the next bar. Full trade setup is visible the moment the pattern forms.
📍 SMART ENTRY AT 0.5 FIB
Entry level is now fixed at the 0.5 Fibonacci retracement of the 1-2 wave. This provides a mathematically optimal entry within the OTE zone, instead of using bar close price.
🛡️ STOP LOSS = 0.886 FIB (CANCEL LEVEL)
Stop Loss is aligned with the 0.886 Fibonacci retracement — the natural invalidation point of the 1-2-3 pattern. SL label shows exact price and % distance from entry.
📊 LIVE VOLUME PROFILE WITH POC
Real-time Volume Profile built between Point 1 and Point 2. Continues accumulating volume on every new bar while trade is active. POC (Point of Control) line highlights the highest-volume price level. Volume is distributed proportionally across 24 price bins.
📋 TRADE INFO PANEL
Visual information panel to the right of each trade:
🟢 Green zone (Entry → TP) — Direction, Stage, Score, RR, Entry/SL/TP prices, position size, max loss
🔴 Red zone (Entry → SL) — "Discount zone" (longs) / "Premium zone" (shorts)
📈 EXTENDED VISUAL ELEMENTS
OTE zone (yellow box), 0.705 line, and SL line now extend to the right in sync with TP and Entry lines. All elements stay aligned as new bars form.
✅ TRADE RESULT ICONS
Clear result icons on the chart at trade close:
✓ (green) — TP hit or trailing stop profit (BE/+1R/+2R)
✗ (red) — SL hit or expired in loss
Scan chart history instantly to see wins and losses.
📏 VERTICAL ENTRY MARKER
Dotted vertical line marks the exact bar where each trade was opened. Easy to spot entry points when scrolling through history.
🎯 QUALITY DOT INDICATOR
Color-coded quality dot (●) at each entry:
🟢 Green — Score ≥ 60 + trend aligned
🟡 Amber — Score ≥ 40 (medium)
🔴 Red — Score < 40 (weak)
Hover for tooltip: exact Score, Stage, and trend status.
🏷️ LONG/SHORT SIGNAL LABELS
Clear "Long ▲" or "Short ▼" label at Point 3 when complete 1-2-3 pattern is confirmed. No ambiguity about direction.
📱 RICH ALERT NOTIFICATIONS
Alerts now include full trade details:
BTCUSDT 15
🟢 LONG · Stage 3 · Score: 72
Entry: 74800.9
SL: 74226.8
TP1: 75544.5
RR 1:2.8
Pos: 0.134
Act directly from your phone without opening the chart.
💰 PERCENTAGE LABELS ON TP/SL
All TP and SL labels show % distance from entry:
TP1 75544.5 [+0.99%]
SL 74226.8 [-0.77%]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 IMPROVEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 UNIVERSAL THEME SUPPORT
All colors audited for dark AND light themes:
• Dashboard green optimized for visibility on dark backgrounds
• OTE text switches to dark orange on white backgrounds
• Fib lines adjusted for proper contrast
• Quality dots and result icons use theme-appropriate colors
🧠 SMARTER TRADE PROTECTION
• OTE zone and SL line preserved while trade is active
• Break detection skipped during active trades
• No more disappearing visuals when price hits TP1
🧹 CODE CLEANUP
• Removed ~40 lines of dead variables and unused references
• Removed obsolete constants (RR_RATIO, showStopLine, showEntryLine)
• Updated architecture comments to reflect current design
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🐛 BUG FIXES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Fixed: Result icon direction always showing as long (plDir read after reset)
• Fixed: Trailing stop hits (BE/+1R/+2R) now correctly counted as wins
• Fixed: Dashboard Max Profit calculated from actual TP distance
🔔 NEW: Full alert system
• Alert: Trade Confirmed — fires the moment a trade is confirmed
(when a Long/Short pivot label appears inside the SL↔Entry zone)
• Direction filter: Both / Longs only / Shorts only
• Pattern Score filter (minimum score threshold for alerts)
• Confluence filter (0–5 confirmations: Score, Trend, HTF KAMA, FVG, Stage 3)
• Stage 3 Only — option to send alerts only for confirmed formations
• Message format: Text (human-readable) or JSON (for webhooks/bots)
🎯 IMPROVED: Trade confirmation logic
• Trades now have two states: "armed" (ready) and "active" (confirmed)
• Confirmation requires a pivot signal candle inside the SL↔Entry zone
• Winrate statistics now count only confirmed trades
• Dashboard shows "LONG/SHORT (armed)" status for trades awaiting confirmation
📊 NEW: Enhanced Dashboard
• Equity sparkline — mini-chart of last N trades (▰▱ blocks + total in R)
• Last trade cooldown — time since last close + result (✓/✗)
• STEPS checklist — step-by-step trade tracker:
1. Wait for trade
2. Wait for signal candle
3. Set TP and SL
4. Move SL to breakeven
• TARGETS progress bar — visual progress toward TP (▰▱ 10 segments + %)
• Configurable sparkline length (5–30 bars)
💎 NEW: Pattern Score — customizable weights
• Retrace Quality — 5 thresholds (Tight / Good / OK / Weak / Outside)
• Leg Size Weight — multiplier and cap for impulse-size points
• Symmetry Bonus — bonus for P3 inside the 1-2 range
• All parameters moved to "🎯 123 — Pattern Score" group
🎨 IMPROVED: Trade INFO panel
• Completely redesigned using Unicode bold digits for Entry/SL prices
• New header: ▌ LONG ▲ · STAGE 3 ▐ with ━━━ and ╌╌╌ separators
• Three TPs with live status: ● (pending) → ⏳ (current target) → ✓ (hit)
TP1 = ext 0.886 (~1R)
TP2 = ext 0.181
TP3 = ext 0.5 (final target)
• R-scale in the bottom box: SL / -0.25R / -0.50R / -0.75R with prices
• Tooltip with detailed breakdown of 5 confluence factors
🛡️ IMPROVED: Stuck-trade protection
• Runaway detection — auto-close if price travels > 5× TP distance
• Zombie detection — force-close after 1000 bars
• Correct win/loss classification in both cases
🎨 VISUAL: Other improvements
• Confluence dot on the entry bar: green/yellow/red by quality,
with a [n/5] tooltip and per-factor breakdown
• SL label now shows % from Entry: "⛔ SL 1.2345 [-0.85%]"
• TP labels: "TP1 ... [+X.XX%]", "TP2 ... [+X.XX%]", "TP3 ... [+X.XX%]"
• Removed excessive Risk/Profit zone background fills (cleaner look)
• Vertical dotted line on the entry bar in the trade-direction color
• Result icon (✓/✗) drawn only for confirmed trades
🔄 New reversal engine (no lag)
Pivot detection has been rewritten: the signal is now locked in on the close of the reversal candle, with no right shoulder. The Long/Short label is anchored to the current bar and appears at the same moment as the alert — the visual gap between the label and the alert firing is gone.
🎯 Anchor Trail — self-adjusting point 2
While a trade is armed but price hasn't reached entry yet, point 2 automatically re-anchors to the true extreme. The entire Fibonacci layout (Entry, SL, TP1–TP3, OTE, 0.705) and every object recalculate on the fly. The anchor locks once price touches entry; a wave that's too wide (> Max Wave × ATR) invalidates the setup.
🔔 Expanded alerts
A layer of selectable conditions has been added to the Create Alert dialog:
• Long / Short / Any Entry — confirmed entry, with a JSON payload of levels for webhooks/bots.
• Setup forming (prepare) — an early heads-up about a forming setup, before the reversal candle.
All alerts respect the Score, Stage 3, Confluence and direction filters.
📊 Dashboard
• New Confluence row (★/5) with a live recount of confirmations.
• Winrate now shown with a visual progress bar.
• Animated trade status (pending / armed / active).
🛠 Fixes
• Correct win/loss tracking on forced exits (runaway/zombie) — these trades were previously logged as losses by mistake.
• Period stats (24h / 7d / 30d / All) no longer lose history when switching — the filter is now non-destructive.
• TP status and trailing stop update only after the trade is confirmed.
⚙️ Other
New settings in the Pivot Prices group (Swing Period, reversal triangles, bar coloring), a higher default Min Pattern Score, and cleanup of unused code.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact WillyAlgoTrader directly.
Note that this private, invite-only script has not been reviewed by script moderators, and its compliance with House Rules is undetermined. TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact WillyAlgoTrader directly.
Note that this private, invite-only script has not been reviewed by script moderators, and its compliance with House Rules is undetermined. TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.