Gold Sniper Pro - XAUUSD Buy/Sell Signals

764
# Gold Sniper Pro – XAUUSD Buy/Sell Signals

Buy and sell arrows for gold (XAUUSD), during 14:00-18:00 Budapest time.

**Chart timeframe: 1-minute (recommended, matches the test) or 5-minute.** Other timeframes are not supported; the script shows a warning and prints no arrows.

## How it works
- The script builds 5-minute blocks from the 1-minute bars and only acts when a block has closed (no repainting, no lookahead, no higher-timeframe requests).
- Seven independent signal engines read each block: inside-bar breakout, stop-and-reverse flip, %R hook, engulfing/cross confluence, a trend-or-range regime switch, a 61.8% impulse retrace, and a brick pullback-resume.
- An arrow prints when at least 2 engines point the same way within the last 4 blocks and none point the other way.
- Suggested exit: target 0.75x and stop 1.5x the 5-minute average range (stop = 2x target). Arrows are suppressed around high-impact USD releases you list in the event input.

## Inputs
- Agreement count (default 2) and agreement window in blocks (default 4).
- Session start/end hour, Europe/Budapest (default 14-18).
- Range length (14), target and stop multiples (0.75 / 1.5).
- Event block: on/off, minutes before/after (60), and a list of UTC release times (YYYY-MM-DD HH:MM, comma-separated).
- Visuals: arrows by default. Target/stop lines, BUY/SELL text labels and a stats dashboard (lookback days, spread) are optional and off by default.
- Alerts: Buy arrow, Sell arrow.

## Tested results
Backtest on XAUUSD 1-minute data from January 2025 to early October 2026, entry at the next bar open, 0.2 spread, stop counted first if stop and target are touched in the same bar, event block on. Settings were chosen on 2025 data and kept unchanged for 2026.

| Period | Trades | Win rate | Profit factor | Arrows per day |
|---|---|---|---|---|
| 2025 | 597 | 70.35% | 1.32 | about 2.3 |
| 2026 (Jan to early Oct) | 513 | 70.57% | 1.33 | about 2.6 |
| Fresh data, Oct 5-15 2026 | 30 | 73.3% | 1.39 | about 3.3 |

With a 0.3 spread the 2026 profit factor was 1.27. The fresh-data period is short (9 trading days).

## Notes
- Results come from a research backtest; live fills, spreads and slippage differ. Late entries weaken results.
- The long baseline in the script is a close approximation of the one used in testing.
- The long baseline needs about 12,000 one-minute bars of history; with less history loaded the script uses the mean of the loaded blocks (at least one day), so the first days on a short chart can differ slightly from the test.
- Arrows print on the close of the last bar of each 5-minute block; if the data feed skips that minute, the block is closed one bar later.

**Past results don't guarantee future results. Not financial advice.**

## Untouched 2024 test (honest disclosure)
On 2024 gold data the same frozen settings LOST: 559 trades, 64.4% wins, profit factor 0.92 at 0.2 spread (61.0% / PF 0.82 at 0.3 spread). The edge appeared in the trending 2025-2026 market and may not hold in choppy or ranging conditions. Past results do not guarantee future results. Not financial advice.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน