PROTECTED SOURCE SCRIPT

GOLD – Dan Toma Patterns + Market Structure/OB [by Dragos] v3.2

20
GOLD – Dan Toma Patterns + Market Structure/OB [by Dragos] v3.2

(Panel x3 • Last R:R • Logical SL • HTF Filter)

All-in-one XAUUSD tool blending Dan Toma patterns (P1–P4) with Internal/External Market Structure, Order Blocks, fixed liquidity (PDH/PDL & sessions), breakout short, dip-buy on trend, a live signals panel, and auto-draw Entry/SL/TP for the last signal. Includes an HTF EMA filter (with slope) and logical Stop Loss to keep signals disciplined.

What it does

P1 – Trend Reverse SELL: structure shift (BOS down) + Supply rejection (wick/engulf) and/or RSI overbought.

P2 – Liquidity: hunts fixed liquidity: PDH/PDL and Asia/London/NY session highs/lows + wick rejection confirmation. BUY at PDL/session Lows, SELL at PDH/session Highs.

P3 – Breakout Short: tight range (ATR/ATRma below threshold) + break under range LL with volume spike.

P4 – Dip Buy: uptrend (EMA) + Demand + pullback to 61.8% (configurable) + RSI oversold.

Market Structure + OB: marks CHoCH/BOS on Internal/External and draws Order Blocks from the last opposite candle at the break (box cap & custom colors).

Auto R:R (last signal only): draws Entry/SL/TP1/TP2 (1.5R / 3R) for the most recent signal to keep the chart clean.

Logical SL: choose Pivot, SD Box, or %ATR and force correct placement (BUY: SL below entry / SELL: SL above entry).

HTF Filter: confirm direction with HTF EMA (custom TF/length), optional slope requirement (rising for BUY / falling for SELL).

Panel x3: compact panel with the last N signals (time, pattern, side, entry, SL, TP1, TP2); place it in any corner.

Quick workflow

HTF context: enable HTF filter (e.g., EMA 200 on H4) to lock a clean bias.

Structure & zones: let MS/OB mark CHoCH/BOS and Supply/Demand; look for confluence with PDH/PDL & session HLs.

Triggers:

SELL: P1/P2/P3 confluencing with Supply, BOS down, wick up, breakout volume.

BUY: P2/P4 in Demand, uptrend, pullback near 0.618, RSI OS.

Execution & management: confirm on bar close (optional repaintSafe), use logical SL, follow auto Entry/SL/TP lines of the last signal.

Panel: monitor fresh events (timestamp + details) for quick validation/journaling.

Key settings

General: XAU/GOLD filter, close-bar confirmation, optional candle labels, show Entry/SL/TP for the last signal only.

HTF: timeframe, EMA length, Need Slope toggle.

Structure/OB: Internal/External/Both/Off, swing lengths, OB lookback, max OB boxes.

Supply/Demand: pivot length (HH/LL) + wick fraction for imbalance detection.

Liquidity: PDH/PDL on/off, sessions (Asia/London/NY) and session HLs.

Breakout Short: range lookback, ATR/ATRma threshold, volume spike multiplier.

Dip Buy: EMA trend length, target Fibo retracement.

RSI/Volume: RSI length + OB/OS thresholds.

SL/TP: Pivot / SD Box / %ATR, ATR length & multiplier, forceLogicalSL.

Alerts (ready to use)

P1 – Trend Reverse SELL

P2 – Liquidity Short

P2 – Liquidity Buy

P3 – Breakout Short

P4 – Dip Buy
(Messages include current price; for auto-execution use your own bridge/automation.)

Recommendations

Timeframes: M5/M15 for entries, H1/H4 for context.

Look for 2–3 confluences (MS, OB, PDH/PDL/sessions, RSI/volume) before validating a signal.

Avoid flat, low-volume ranges or thin-liquidity periods.

Disclaimer

This is an analysis tool, not financial advice. Trading involves risk. Use strict risk management (risk < 1%/trade, R:R ≥ 1:2, mandatory SL) and test on demo/backtest before going live.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.