FINAL EA STRATEGY DOCUMENT (Chandelier Exit + EMA Breakout System)
------------------------------------
CORE INDICATOR
- Chandelier Exit (MAIN LOGIC)
- ATR Period: Editable (Default 22)
- ATR Multiplier: Editable (Default 3)
IMPORTANT:
- ATR must NOT be shown as a separate indicator
- ATR must be used ONLY internally inside Chandelier Exit
- All SL & trailing must strictly follow Chandelier Exit line
------------------------------------
EMA FILTER (Optional ON/OFF)
- EMA 9
- EMA 15
------------------------------------
ENTRY LOGIC (BREAKOUT SYSTEM)
BUY:
1. EMA 9 > EMA 15 (if enabled)
2. Signal candle must be GREEN
3. Candle must close above EMA
4. Price crosses above Chandelier SELL line
5. Mark signal candle HIGH
6. Place BUY STOP at signal candle HIGH
7. Next candle breaks HIGH → Trade activates
SELL:
1. EMA 9 < EMA 15
2. Signal candle must be RED
3. Candle must close below EMA
4. Price crosses below Chandelier BUY line
5. Mark signal candle LOW
6. Place SELL STOP at signal candle LOW
7. Next candle breaks LOW → Trade activates
------------------------------------
STOP LOSS (User Selectable)
Option 1:
- BUY → Signal candle LOW
- SELL → Signal candle HIGH
Option 2:
- Chandelier Exit line (previous closed candle value)
------------------------------------
INSTANT SL & TP EXECUTION
- As soon as trade activates:
1. SL must be placed immediately
2. TP levels must be calculated and placed instantly:
- TP1 (1:1)
- TP2 (1:2)
- TP3 (1:3)
OR (if selected):
- Fixed points / Candle-based TP
------------------------------------
PARTIAL BOOKING SYSTEM
- User defines % quantity:
- TP1 → % close
- TP2 → % close
- TP3 → % close
- When price reaches TP level:
→ Auto partial booking must happen instantly
- Remaining quantity:
→ Must continue with Chandelier trailing
------------------------------------
VISUAL DISPLAY (IMPORTANT)
- Show on chart:
- Entry line
- SL line
- TP1 / TP2 / TP3 lines
- Chandelier Exit line
- EMA 9 & EMA 15
------------------------------------
TRAILING STOP (STRICT RULE)
- SL = previous closed candle Chandelier value
- Update ONLY on candle close
- Current candle MUST NOT affect SL
- SL must follow Chandelier line EXACTLY
- Up/down movement allowed
------------------------------------
TRAILING START CONTROL
User option:
- Start trailing immediately
OR
- Start after:
- 1:1
- 1:2
- 1:3
------------------------------------
NO TARGET MODE
- TP will still be placed
- BUT trailing starts immediately
- No need to wait for TP hit
------------------------------------
RE-ENTRY LOGIC
BUY:
1. SL hit
2. SL candle must close GREEN
3. EMA must be bullish (if enabled)
4. If SL candle is RED → IGNORE
5. Next candle breaks HIGH → Re-entry
SELL:
1. SL hit
2. SL candle must close RED
3. EMA must be bearish
4. If SL candle is GREEN → IGNORE
5. Next candle breaks LOW → Re-entry
------------------------------------
TRADE RULES
- Only ONE active trade per symbol
- No multiple entries at same time
- Use unique magic number
------------------------------------
RISK MANAGEMENT
- Fixed Lot OR Risk %
- Max drawdown limit
- Daily loss limit
- Spread filter (max spread input)
- Slippage control
- Time filter (session control)
------------------------------------
EXECUTION RULES
- Use STOP ORDERS only (no market entry)
- SL & TP must be placed instantly
- Retry if order fails
- All logic must use CLOSED candles only
------------------------------------
BACKTEST REQUIREMENT
- Minimum 1 year data
- Every tick model preferred
- Results must match live logic
------------------------------------
PLATFORM
- Must work on:
- MT5
- Exness
- Vantage
------------------------------------
STRICT RULES
- NO repaint
- ONLY closed candle logic
- NO current candle usage
------------------------------------
NOTE
This is a FULLY AUTOMATED EA.
Not just an indicator.
Chandelier Exit line is the core trailing system.