13 EMA Breakout + Liquidity Sweep + BOS Confirmation (A / A+) — Strategy by dominiccaldwell13
By dominiccaldwell13
Performance Metrics
- Author: dominiccaldwell13
- Symbol: COMEX_MINI:MGC1!
- Timeframe: 5 minutes
- Net P&L: +6,770.66 USD (+6.77%)
- Win Rate: 54.7%
- Profit Factor: 1.575
- Max Drawdown: 3,374.96 USD (3.10%)
- Total Trades: 64
Description
========================================================CORE STRATEGY LOGIC========================================================A trade is valid ONLY if it satisfies one of these qualification paths:--------------------------------------------------------PATH 1 — A+ Setup (Liquidity Sweep + EMA + BOS)--------------------------------------------------------1) LIQUIDITY SWEEP (REQUIRED)Price must sweep a key level BEFORE entry.Key level options (user selectable):- Previous Day High/Low (default)- Previous Session High/Low (Asia/London/NY)- First N-bar session range high/lowSweep Definition (user adjustable):- Price trades beyond level by: max(X ticks OR ATR(14)*Y)- AND closes back inside level within Z barsUser inputs:- ATR multiplier- Minimum tick distance- Bars allowed to confirm sweep--------------------------------------------------------2) 13 EMA CONFIRMATION (REQUIRED)--------------------------------------------------------Long:- Close crosses above EMA13- EMA13 slope positive (optional toggle)Short:- Close crosses below EMA13- EMA13 slope negative (optional toggle)Entry mode (user selectable):- Breakout close- EMA13 retest entry- Structure retest entry--------------------------------------------------------3) BREAK OF STRUCTURE (BOS) — REQUIRED--------------------------------------------------------BOS is mandatory for BOTH A and A+ setups.STRUCTURE DEFINITION (non-repainting):- Use ta.pivothigh(high, leftBars, rightBars)- Use ta.pivotlow(low, leftBars, rightBars)- Only confirmed after rightBarsTrack latest confirmed swingHigh and swingLow.Bullish BOS:- Close breaks above most recent confirmed swingHighBearish BOS:- Close breaks below most recent confirmed swingLowBOS Timing Modes (input dropdown):1) EMA Break THEN BOS (default)2) BOS THEN EMA Break3) Either order within N barsOptional BOS Retest Toggle:- After break, require retest of broken level before entryDefault pivot settings:leftBars = 3rightBars = 3--------------------------------------------------------PATH 2 — A Setup (Pattern + EMA + BOS)--------------------------------------------------------If NO sweep, then a pattern must be detected.Pattern options (user selectable):- Double Top / Double Bottom (M/W)- Range breakout (box of N bars)- Wedge compression proxy (converging pivots)EMA confirmation required.BOS confirmation required.If no sweep AND no pattern → NO TRADE.========================================================CONFLUENCE FILTERS========================================================Optional filters (user toggles):- EMA50 directional filter- EMA200 directional filter- Stacked EMA alignment filter- Volume above SMA filter- ATR volatility filter- Session time filter (timezone input)- One-trade-at-a-time toggleDefaults:EMA50 filter ONEMA200 filter OFFSession filter ON========================================================RISK MANAGEMENT========================================================Stop Methods (selectable):1) Pivot structure stop (+ buffer)2) ATR stop3) Fixed tick stopTP1:- Exactly 1:1 RAfter TP1:- Move stop to breakeven- Close X% of position (default 50%)Runner TP2 options:- 2R- 3R- Opposite liquidity level- ATR trailing stop- EMA13 trailing stopInclude:- Commission input- Slippage input- Pyramiding input (default 0)========================================================DAILY LOSS KILL SWITCH========================================================User input:- Max daily loss in $OR- Max % of equityIf exceeded:- No new trades until new exchange day========================================================VISUALS & DEBUG========================================================Plot:- EMA13- EMA50- EMA200- Active swingHigh / swingLow- Key liquidity levelsLabel:- Sweep detected- BOS detected- Pattern detected- Entry path used (A+ or A)- Stop method- R targetsInclude a small table on chart displaying:- Current session- Daily PnL- Kill switch status- Active filters========================================================EXECUTION RULES========================================================- Use barstate.isconfirmed- Use confirmed pivots only- No repainting logic- No future-looking code- Trades only when full conditions met- No fallback entries- If conditions not satisfied → NO TRADE========================================================DELIVERABLE========================================================Runner TP2 options:- 2R- 3R- Opposite liquidity level- ATR trailing stop- EMA13 trailing stopInclude:- Commission input- Slippage input- Pyramiding input (default 0)