WHAT IT DOES
• Marks BUY / SELL entries after a pullback in a confirmed trend
• Draws entry, SL and TP zones on the chart
• Tracks every signal forward and shows total trades, wins, losses, win rate, breakeven win rate, net R and profit factor
• Sends alerts with entry, SL and TP in the message
HOW IT FILTERS SIGNALS
• EMA 21 / 50 / 200 trend structure
• Higher-timeframe EMA filter (no repainting)
• RSI, ADX and DI confirmation
• Minimum volatility filter
• Optional London + New York session filter
SETTINGS
• EMA lengths, pullback look-back, ADX and RSI thresholds
• Stop loss: ATR-based or swing-based
• Risk:Reward ratio and trade timeout
• Table position and visibility
HOW TO INSTALL
1. Open TradingView and the Pine Editor
2. Paste the code from the .pine file
3. Click "Add to chart" on XAUUSD
Recommended timeframes: M15, M30, H1.
IMPORTANT
The win rate table is calculated on the bars loaded in your own chart. It does not include spread, slippage or commission, and past results do not guarantee future results. Test and tune the settings on your own chart before using it live. This indicator is a tool for analysis, not financial advice. Trading gold carries a high risk of loss.



