Exp_3LineBreak
This EA trades based on the Three Line Break charting indicator, opening buy positions when the trend flips from bearish to bullish and sell positions when it flips from bullish to bearish. It includes configurable money management, stop loss/take profit, and separate controls for opening and closing positions on each side of the market.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
Why this EA never traded: no entry rule survived the conversion.
Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.
Blow-up risk: No blow-up pattern found
None of the usual blow-up patterns were found in the code, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.
High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →
Strategy analysis
The core strategy of this EA is the Three Line Break charting method, a trend-following approach that filters market noise by requiring significant price reversals to change direction. Entry conditions: when indicator buffer 2 transitions from 0 to 1, a buy signal is generated; when it transitions from 1 to 0, a sell signal is generated, essentially capturing trend reversal points. Exit conditions include: reverse signal triggers position closure (e.g., close sell on buy signal), fixed stop loss of 1000 points, and fixed take profit of 2000 points. Position sizing supports five modes: based on free margin, based on balance, based on free margin after losses, based on balance after losses, and fixed lot size. Money management is controlled via the MM parameter for risk proportion and MMMode for the calculation method. The EA uses a new bar detection mechanism (CIsNewBar class) to prevent repeated trading on the same bar, and the SignalBar parameter allows selecting which bar to read signals from. An additional closure logic exists: when both the open and close switches for the same direction are enabled and the previous signal bar is in the opposing state, an extra close signal is triggered.
Strengths
- The Three Line Break indicator effectively filters market noise and reduces false signals
- Supports multiple money management modes for high flexibility
- Buy and sell open/close controls are independent, allowing granular strategy configuration
- New bar detection mechanism prevents duplicate entries, showing solid logic design
- Configurable stop loss and take profit parameters provide basic risk control
Weaknesses
- Default SL of 1000 and TP of 2000 points are large and may not suit all instruments or volatility environments
- No spread filter included, which could lead to losses on high-spread instruments
- Depends on a custom indicator file (3LineBreak), requiring it to be available at deployment
- Lacks position state checking, potentially leading to duplicate openings or hedging
- The strategy is prone to frequent false reversal signals in ranging markets, causing consecutive losses
Possible improvements
- Add spread and volatility filters to avoid trading in high-cost environments
- Add position checking logic to prevent duplicate openings or unintended hedging
- Add trailing stop or dynamic SL/TP that adjusts based on ATR
Risk assessment
Overall risk: Medium
- Lacks position state checking, may open duplicate positions in the same direction
- Three Line Break generates frequent false signals in ranging markets, causing consecutive losses
- Depends on an external custom indicator; if missing, the EA cannot function properly
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or fixed lot size |
MMMode | LOT | Lot mode: free margin/balance/post-loss margin/post-loss balance/fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow reverse closing long positions |
SellPosClose | true | Allow reverse closing short positions |
InpInd_Timeframe | PERIOD_H12 | ASCtrend indicator timeframe |
Lines_Break | 3 | Number of lines for Three Line Break |
SignalBar | 1 | Signal bar index; 0=current, 1=last closed bar |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.