Trendline Breakout EA
- Experts
- Paballo Justice Tsoako
- Versione: 1.0
- Attivazioni: 8
TB EA – Trendline Breakout Expert Advisor
Overview
TB EA 1.0 is a professional-grade automated trading system that detects and executes trades based on trendline breakouts using a "body break" confirmation methodology. The EA intelligently distinguishes between support and resistance trendlines, executing BUY orders on resistance breakouts and SELL orders on support breakouts. It works seamlessly on Forex pairs and CFD Indices.
Key Features
Trendline Breakout Detection
- Automatically detects all trendlines on the chart (or filter by custom prefix)
- Body Break Confirmation: Only executes when the candle BODY opens on one side of the trendline and closes on the other side (not just wick touches)
- Intelligent support/resistance detection based on price history analysis
- Delayed Breakout Confirmation: If a candle closes exactly on the trendline, the EA waits for the next candle to confirm direction before executing
- Each trendline is traded only once per day to prevent over-trading
Advanced Risk Management
- Max Drawdown Protection: Stops trading when overall drawdown exceeds your limit (persistent across sessions)
- Daily Loss Limit: Pauses trading if daily loss threshold is reached (resets at midnight when new trading day starts)
- Daily Profit Target: Optional equity multiplier target
- Max Positions Per Day: Limit total trades opened daily
- Max Positions Per Symbol/Setup: Control simultaneous positions per signal
- Smart Position Closing: Option to close ONLY losing trades when limits are hit (let winners run!)
- Max Spread Filter: Blocks trade execution during high spread conditions
ATR-Based Dynamic SL/TP
- Stop Loss calculated using ATR multiplier with configurable buffer
- Take Profit using Risk: Reward Ratio (e.g., 1:3.7) or traditional ATR multiplier
- Auto-Optimization Mode: Dynamically adjusts SL/TP multipliers based on current market volatility
Breakeven Management
- Moves stop loss to entry price + offset once trade reaches specified profit (in pips)
- Fully configurable trigger distance and offset
ATR-Based Trailing Stop Loss
- Trails stop loss at a dynamic ATR-based distance as price moves favorably
- Configurable activation threshold (e.g., after 80 pips profit)
- Option to activate trailing only AFTER breakeven is hit
ATR-Based Trailing Take Profit
- Extends take profit target as price continues in favorable direction
- Maximizes profit capture during strong trending moves
Partial Close
- Automatically close a percentage of position at a specified RR level
- Lock in partial profits while letting the remainder run
Simultaneous Entry Mode
- Open 2-5 identical trades per signal with one click
- On-chart button to toggle ON/OFF and adjust trade count
- Ideal for scaling into positions or managing multiple exit strategies
Comprehensive Alert System
- Breakout Detection Alerts: Notifies when valid breakouts are identified
- Trade Execution Alerts: Full details including entry, SL, TP, RR ratio, and execution reason
- Trade Close Alerts: Shows if closed by SL, TP, or manually with full P/L breakdown
- New Trading Day Alerts: Daily reset notifications
- Alert methods: Pop-up, Sound, Push Notification, Email
Real-Time Dashboard
On-screen panel showing:
- Current drawdown vs limits (Max DD & Daily DD)
- Spread monitoring with color indicators
- RR ratio and trailing settings status
- Win/Loss count and daily P&L
- Open positions count
- All detected trendlines with their current state (Above/Below/On Line)
- Support/Resistance classification for each trendline
Supported Instruments
- Forex Pairs: All major, minor, and exotic pairs (EURUSD, GBPJPY, etc.)
- Indices/CFDs: GER40, NAS100, US30, US500, UK100, JP225, AUS200, and CRYPTO
- Automatic symbol type detection with appropriate pip/point calculations
Input Parameters
| Group | Parameters |
|---|---|
| Risk Management | Fixed Lot Size, Max Drawdown %, Max Daily Loss %, Daily Profit Target, Close on Drawdown, Close Only Losers |
| Trade Management | Max Positions Per Setup, Max Positions Per Day, Slippage Range, Max Spread, Magic Number |
| ATR Settings | ATR Period, Min/Max ATR Filter, SL Multiplier Range, ATR SL Buffer, RR Ratio, TP Multiplier Range |
| Breakeven | Enable/Disable, Trigger Pips, Offset Pips |
| Trailing SL | Enable/Disable, ATR Multiplier, Start After X Pips, After Breakeven Only |
| Trailing TP | Enable/Disable, ATR Multiplier, Start After X Pips |
| Simultaneous Entry | Enable/Disable, Trade Count (2-5), Show Button |
| Partial Close | Enable/Disable, Close %, RR Target |
| Auto Optimization | Enable/Disable, Lookback Period |
| Trendline | Name Prefix Filter, Touch Tolerance |
| Display | Show Dashboard, Colors, Font Size |
| Alerts | Enable All, Breakout/Execution/Close/New Day Alerts, Sound/Push/Email |
How It Works
1. Draw trendlines on your chart (support and resistance)
2. Attach the EA – it automatically classifies each trendline as support or resistance
3. When a candle body breaks through a trendline:
- Resistance breakout → BUY order
- Support breakout → SELL order
4. SL/TP are calculated based on ATR and your RR ratio settings
5. The EA manages the trade with breakeven, trailing SL/TP, and partial close
6. Risk limits are monitored every tick to protect your capital
Requirements
- MetaTrader 5
- Minimum balance: As per your lot size and risk settings
- Works on any timeframe
- Requires manually drawn trendlines on the chart
Recommendations
- Use on H1 or H4 timeframes for more reliable breakout signals
- Start with demo testing to optimize ATR and RR settings for your instruments
- Set conservative drawdown limits (10-20%) initially
- Use trendline prefix filtering to control which lines the EA trades
