NY Pre-Session Sweep — Strategy by Lean_Trading

By Lean_Trading

Performance Metrics

Description

# NY Pre-Session Sweep## OverviewSession-based strategy for the New York Pre-Session (14:30–16:30 Berlin). Uses "Attempted Candles" after a sweep of the Pre-Session box. Optimized for XAUUSD on the 5-minute chart. Integrated with Telegram and Pine Connector for alerts and external bots.---## Strategy ConceptThe strategy uses the Pre-Session box (14:30–16:30 Berlin) as a reference range. Trades are only taken when the market sweeps a session extreme and the candle closes in the direction of the sweep (Attempted Candle).---## Time Structure (Berlin, DST-safe)| Phase | Time (Berlin) | Description ||-------|---------------|-------------|| **Pre-Session Box** | 14:30 – 16:30 | High/Low of the box are collected as reference || **Trading 1** | 16:30 – 19:00 | First trading phase || **Pause** | 19:00 – 19:00 | Brief pause || **Trading 2** | 19:00 – 22:00 | Second trading phase |**Note:** Signal on the last candle of Trading 1 (18:55) → Entry only at the open of the first candle of Trading 2 (19:00).---## Entry Logic (Attempted Candle)**Long Signal:**- Current candle low Open)- Candle low Session Highest High (highest high since session start)- Candle closes bearish (Close Previous candle high (new high)**Entry:** At the open of the candle **after** the Attempted Candle (no entry on the ATP candle itself).---## Risk Management- **Stop Loss:** Low of the Attempted Candle (Long) or High (Short)- **Take Profit:** Entry ± (Risk × R), default R = 3.0- **Half-Wick SL:** With very long wicks, SL is set to half the candle body so TP remains reachable (threshold configurable)- **Position Size:** 1% of equity (adjustable)---## Trade Management- **Max Trades per Day:** 3 (default)- **After TP:** No further trades that day (unless "Allow opposite after TP" is enabled)- **After SL:** Opposite trade allowed if a counter-direction Attempted signal occurred while in position- **Reference Update:** After each trade, reference levels (Session High/Low) are updated---## Optional Filters**Williams %R Filter (default: off):**- Long only when Williams %R is in the Long zone (e.g. -75 to -25)- Short only when Williams %R is in the Short zone (e.g. -100 to 0)- Reduces trades in sideways conditions---## Integration**Pine Connector / Webhook:**- JSON alert with symbol, direction, entry, SL, TP, R and session label- For bots, trade copiers or webhooks**Telegram:**- Optional: Alert includes chat_id and HTML text for Telegram webhook- Signal format: Symbol, direction, SL, TP**Signal Tester:**- Periodic test alerts (e.g. every 15 min.) to verify connection---## Chart Settings- **Timeframe:** 5 minutes (required)- **Symbol:** XAUUSD recommended, works with any symbol- **Timezone:** Strategy uses Europe/Berlin (DST-safe)---## Visual Elements- **Pre-Session Box** (blue): High/Low of the Pre-Session- **Pause Box** (orange): High/Low during the pause- **Attempted Candles:** Green/red triangles below/above the candle- **Entry Markers:** Larger triangles at entry- **SL/TP Lines:** Red (SL) and green (TP) lines---## Notes- No hedging: Only one direction per day (except opposite trade after SL)- Trading days: Monday–Friday configurable (default: Mon–Fri)- Strategy designed for systematic trading and backtesting---*Not financial advice. Past performance is not indicative of future results. Trading involves risk.*

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView