Dual Trendline Breakout EA for MT5
- Эксперты
- Версия: 2.2
- Активации: 5
Prop Firm Friendly
Dual Trendline Breakout EA has been specifically designed to be fully compatible with modern proprietary trading firm requirements.
Instant Stop Loss Protection
Many prop firms require every position to have a Stop Loss immediately after execution.
The EA automatically:
✅ Calculates the correct Stop Loss
✅ Places the Stop Loss instantly
✅ Calculates Take Profit automatically
✅ Applies risk management before the order is sent
This helps traders remain compliant with prop firm risk rules.
High-Speed Execution Panel
One of the biggest problems during volatile market conditions is losing valuable seconds while manually entering:
Position size
Stop Loss
Take Profit
Risk calculations
By the time all values are entered, the opportunity may already be gone.
Dual Trendline Breakout EA solves this problem through its integrated trading panel.
One Click Execution
The BUY and SELL buttons instantly:
✅ Calculate the lot size
✅ Calculate risk percentage
✅ Calculate Stop Loss
✅ Calculate Take Profit
✅ Send the order
✅ Apply protection immediately
All in a single action.
Built For Fast Markets
Especially useful for:
Gold (XAUUSD)
Indices
BTCUSD
News volatility
London Open
New York Open
Prop Firm Challenges
The objective is simple:
Less time entering orders. More time focusing on market analysis.
Why Traders Use It
Unlike standard MT5 trading panels, Dual Trendline Breakout EA combines:
Trendline breakout trading
RSI confirmation
Automatic risk management
Prop Firm compliance
One-click execution
inside a single professional trading environment.
## Professional Semi-Automatic and Automatic Trading System
Dual Trendline Breakout EA is an advanced MetaTrader 5 Expert Advisor that combines price action, trendline breakouts, RSI analysis and automated risk management into a single professional trading solution.
Unlike traditional EAs based solely on indicators, this system allows traders to use their own manually drawn trendlines on both price and RSI while the EA automatically executes trades when breakout conditions are confirmed.
---
## Core Trading Concept
The EA monitors:
### Price Trendline Breakouts
* Bullish breakout above user-defined trendline
* Bearish breakout below user-defined trendline
* Optional breakout confirmation distance
* Trendline age validation
### RSI Trendline Breakouts
* Breakout of RSI trendlines
* RSI moving average cross confirmation
* Configurable synchronization window
### Combined Confirmation Logic
The EA can trade:
* Price breakouts only
* RSI breakouts only
* Combined RSI + Price confirmation
* Independent signals
This flexibility allows the trader to adapt the strategy to any market condition.
---
## Four Trading Modes
### Combined Mode
Trades only when:
* Price breakout confirmed
* RSI breakout confirmed
* RSI moving average cross confirmed
Highest quality entries.
### RSI Only Mode
Trades only RSI breakout and RSI MA confirmation.
### Price Only Mode
Trades only price trendline breakouts.
### Independent Mode
Price and RSI systems operate separately.
Maximum trading frequency.
---
## Advanced Risk Management
### Fixed Lot
Traditional position sizing.
### Dynamic Risk Percentage
Automatic lot calculation based on:
* Account balance
* Stop loss distance
* User-defined risk percentage
The EA automatically adjusts position size according to market volatility.
---
## Pivot Based Stop Loss
Stop Loss is automatically calculated using recent market structure.
Benefits:
* Adaptive protection
* Market-based stop placement
* No arbitrary stop loss values
---
## Risk Reward Management
User-defined Risk Reward ratio.
Example:
* 1:1
* 1:1.5
* 1:2
* 1:3
The EA automatically calculates Take Profit based on stop distance.
---
## Smart Trailing Stop
Includes:
* Trailing activation level
* Trailing distance
* Trailing step
Designed to protect profits while allowing trades to develop.
---
## Semi-Automatic Trading Panel
Built-in trading panel with:
### BUY
Instant market buy.
### SELL
Instant market sell.
### CLOSE
Close all EA positions.
### REVERSE
Close current position and immediately open opposite direction.
Perfect for discretionary traders who want professional trade management.
---
## Additional Features
* Multi-symbol compatible
* Multi-timeframe compatible
* Magic Number management
* Slippage control
* Pending signal processing
* Trendline age filtering
* Automatic button recovery after reconnection
* Optimized for MT5
---
## Recommended Markets
* XAUUSD
* BTCUSD
* EURUSD
* GBPUSD
* USDJPY
* Indices
---
## Recommended Timeframes
* M5
* M15
* M30
* H1
---
## Suitable For
* Manual traders
* Semi-automatic traders
* Trendline traders
* Breakout traders
* Swing traders
* Professional money management users
---
Dual Trendline Breakout EA for MT5
User Manual & Input Settings Guide
This Expert Advisor combines RSI Trendline Breakouts, RSI/MA Crossovers, Price Trendline Breakouts, Automatic Risk Management, Auto Stop Loss, Auto Take Profit and One-Click Trading Buttons.
The EA can operate in:
-
Fully Automatic Mode
-
Semi-Automatic Mode
-
Manual Trading Mode
| Parameter | Description | Recommended Use |
|---|---|---|
| UseFixedLot | Use fixed lot size instead of risk-based position sizing | Recommended for beginners |
| FixedLot | Fixed lot size used for every trade | Example: 0.01, 0.05, 0.10 |
| RiskPercent | Percentage of account balance to risk per trade | Used only when UseFixedLot = false |
| CloseOnly | Signals are confirmed only after candle close | Recommended = true |
These settings are used only to pass automatic MQL5 Market validation.
| Parameter | Description |
|---|---|
| TesterAssistMode | Allows trades during Market validation even when no trendlines exist |
| TesterAssistFirstTradeBars | Number of bars before first validation trade |
| TesterAssistMinBarsBetween | Minimum distance between validation trades |
Recommended:
-
Leave all default values unchanged.
| Parameter | Description |
|---|---|
| EntryMode | Selects how signals are generated |
Available Modes:
MODE_COMBINED
Trade only when BOTH RSI and Price Breakout confirm.
Best for:
-
Conservative traders
-
Prop Firm accounts
-
High-quality entries
MODE_RSI_ONLY
Trade only RSI Trendline Breakouts + RSI/MA Cross.
Best for:
-
RSI traders
-
Momentum setups
MODE_PRICE_ONLY
Trade only Price Trendline Breakouts.
Best for:
-
Pure price action traders
MODE_INDEPENDENT
RSI and Price systems work independently.
Best for:
-
Higher trade frequency
-
Active traders
| Parameter | Description |
|---|---|
| BuyLineName | Name of RSI trendline used for BUY setups |
| SellLineName | Name of RSI trendline used for SELL setups |
Default names:
BUY trendline:
BUY
SELL trendline:
SELL
Important:
These trendlines must be drawn inside the RSI indicator window.
| Parameter | Description |
|---|---|
| PriceUpLineName | Name of bullish breakout trendline |
| PriceDownLineName | Name of bearish breakout trendline |
Default names:
Bullish trendline:
SU
Bearish trendline:
GIU
These trendlines must be drawn on the main chart.
6. Price Breakout Confirmation| Parameter | Description |
|---|---|
| UsePriceBreakConfirm | Enables breakout distance confirmation |
| PriceBreakConfirmPoints | Minimum breakout distance beyond trendline |
| MinTrendAgeBars | Trendline must exist for at least X bars |
Higher values:
-
Fewer trades
-
Better quality setups
Lower values:
-
More trades
-
More aggressive trading
| Parameter | Description |
|---|---|
| RSIPeriod | RSI calculation period |
| MAPeriodRSI | Moving Average period applied to RSI |
| ComboMaxBars | Maximum bars between RSI breakout and RSI/MA crossover |
Default:
14 / 14
These settings work well for most markets.
8. Price Moving Average Filter| Parameter | Description |
|---|---|
| PriceMAPeriod | Price MA period |
| PriceMAMethod | SMA or EMA |
Purpose:
Filters trades in the direction of the current market structure.
BUY trades:
Price must be above MA.
SELL trades:
Price must be below MA.
| Parameter | Description |
|---|---|
| BaseMagic | Unique identifier used by the EA |
Use different values if running multiple copies of the EA.
10. Stop Loss & Take Profit| Parameter | Description |
|---|---|
| PivotLookbackBars | Number of candles used to find SL pivot |
| TakeProfitRR | Risk/Reward ratio |
Example:
Risk = 100 points
TakeProfitRR = 1.5
TP = 150 points
11. Trailing Stop| Parameter | Description |
|---|---|
| UseTrailingStop | Enable trailing stop |
| TrailStartPoints | Profit required before trailing starts |
| TrailDistancePoints | Distance between price and SL |
| TrailStepPoints | Minimum movement before updating SL |
Recommended for trend-following strategies.
12. Pending Retry System| Parameter | Description |
|---|---|
| EnablePending | Retry trade if initial entry fails |
| PendingBars | Number of bars signal remains valid |
Useful when filters temporarily block a valid setup.
13. Alerts| Parameter | Description |
|---|---|
| EnableAlerts | Show popup notifications and warnings |
Recommended:
ON for monitoring.
OFF for VPS operation.
| Parameter | Description |
|---|---|
| EnableButtons | Show trading panel |
| BtnX | Horizontal position |
| BtnY | Vertical position |
| BtnW | Button width |
| BtnH | Button height |
Panel Buttons:
BUY
SELL
CLOSE
REVERSE
| Parameter | Description |
|---|---|
| ManualAlwaysOpenIgnoringFilters | Manual trades ignore automatic filters |
| ManualAllowMultiple | Allow multiple manual positions |
| CloseAllEAPositionsOnSymbol | CLOSE button closes all EA positions on symbol |
Recommended:
All set to TRUE.
| Parameter | Description |
|---|---|
| UseButtonWatchdog | Automatically rebuilds buttons after refresh or reconnection |
| ButtonWatchdogSeconds | Check interval |
Recommended:
Enabled.
Manual Trading
-
Attach EA to chart.
-
Click BUY or SELL.
-
EA automatically calculates:
-
Position size
-
Stop Loss
-
Take Profit
-
Risk
-
-
Use CLOSE to exit.
-
Use REVERSE to flip position direction.
Price Trendline Trading
-
Draw a bullish trendline named:
SU -
Draw a bearish trendline named:
GIU -
Select:
MODE_PRICE_ONLY
or
MODE_INDEPENDENT
The EA will trade confirmed breakouts.
RSI Trendline Trading
-
Add RSI indicator.
-
Draw RSI trendlines.
-
Name them:
BUY
SELL
The EA waits for:
-
RSI trendline breakout
-
RSI/MA crossover
Both must occur within ComboMaxBars.
Combined Mode
-
Draw Price Trendlines.
-
Draw RSI Trendlines.
-
Select:
MODE_COMBINED
The EA enters only when BOTH systems confirm.
This is the highest-quality and most selective mode.
Why This EA Is Ideal For Prop FirmsMany proprietary trading firms require every trade to have a Stop Loss immediately after execution.
This EA automatically:
✓ Calculates position size
✓ Calculates Stop Loss
✓ Calculates Take Profit
✓ Applies Risk Management
✓ Opens the trade instantly
✓ Eliminates manual order entry delays
✓ Helps avoid missing fast market opportunities
Instead of manually typing SL and TP during execution, traders can enter the market with a single click while maintaining strict risk control.
This improves:
-
Execution speed
-
Consistency
-
Discipline
-
Prop Firm compliance
## Disclaimer
Trading involves risk. Past performance does not guarantee future results. Always test the EA on a demo account before trading live funds.
