Horizon Multi TP EA – User Guide
Overview
The Horizon Multi TP EA is an automated trading system for MetaTrader 5 that combines:
• Trendlines (Fractal-based)
• Fibonacci Extensions
• CCI Divergence Detection
It automatically opens trades when price touches a trendline and confirms with divergence
signals. The EA splits trades into 3 partial take-profits (TPs) based on Fibonacci extension
levels and manages risk using ATR-based or swing-based stop losses. A trailing stop function
is included.
Key Features
• Automatic Trendlines: Built from the last two fractal swing points.
• Fibonacci Extensions: Default targets are 127.2%, 161.8%, and 200%.
• CCI Divergence: Confirms bullish or bearish setups.
• Multi-TP Strategy: Splits volume into 3 portions with separate take-profits.
• ATR or Swing Stop-Loss: Choose between volatility-based or structure-based stops.
• Risk Management: Position size is calculated based on percentage risk.
• Spread and Cooldown Filters: Avoids bad trading conditions.
• Trailing Stop: Uses ATR to protect profits.
Inputs & Parameters
Filters
• Max Spread Points: Maximum allowed spread.
• Cooldown Bars: Number of bars to wait after a trade before opening a new one.
Indicators
• CCI_Period: Period for the CCI indicator (default: 20).
• ATR_Period: ATR length for stop-loss calculations (default: 14).
• ATR_Multiplier: Factor applied to ATR for stop-loss distance.Divergence & Trendline
• TrendTouchPoints: Maximum allowed distance (in points) from trendline for entry.
• DivLookbackBars: Number of bars checked for divergence.
• PivotLeftRight: Strength of pivot points used in divergence detection.
Multi-TP Settings
• Risk_Percent_Total: Total percentage of account balance risked per trade (default:
1.5%).
• TP1_Percent / TP2_Percent / TP3_Percent: Split of lot size between TP1, TP2, TP3.
• FibExt1 / FibExt2 / FibExt3: Fibonacci extension levels (default: 1.272 / 1.618 / 2.0).
Stop-Loss Mode
• SL_Mode: SL_ATR (ATR stop) or SL_SWING (swing low/high stop).
• UseTrailing: Enable/disable trailing stop.
• Trail_ATR_Mult: Multiplier for trailing ATR stop.
How It Works
1. Trendline Setup
The EA finds the last two fractal swing points and builds a trendline.
o Higher Lows → Uptrend
o Lower Highs → Downtrend
2. Entry Confirmation
o Price must be near the trendline (within TrendTouchPoints).
o A bullish/bearish divergence on CCI must occur.
3. Position Opening
o 3 partial positions are opened.
o Each has the same stop-loss, but different Fibonacci TP levels.
4. Risk Management
o Total risk is calculated from account balance × Risk_Percent_Total.
o Lot size is automatically adjusted to match SL distance.
5. Exit Management
o Partial TPs close trades gradually.
o Trailing stop activates once price moves in favor.
Example Recommended Settings
• EURUSD M15o Risk_Percent_Total = 1.5
o ATR_Period = 14, ATR_Multiplier = 2.0
o CCI_Period = 20
o TrendTouchPoints = 15–20 points
o TP1/TP2/TP3 = 40/35/25 split
o FibExt1/2/3 = 1.272 / 1.618 / 2.0
• XAUUSD H1
o Risk_Percent_Total = 1.0
o ATR_Period = 14, ATR_Multiplier = 2.5
o CCI_Period = 20
o TrendTouchPoints = 50 points
o TP1/TP2/TP3 = 50/30/20 split