Two PerBar
Two PerBar is a trend-following Expert Advisor that generates up to two trade signals per bar, using moving average-based trend detection to determine trade direction. It opens positions when price momentum aligns with the prevailing trend identified by its indicator calculations. The EA operates systematically with fixed lot sizing and implements basic stop loss and take profit for trade management.
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.27% | -0.24% | 3.79% | 110 | 48.60% | — | — | — | — | Same as other EAs |
| GBPUSD | +6.63% | +5.74% | 3.89% | 108 | 51.90% | — | — | — | — | Same as other EAs |
| USDJPY | +2.10% | +1.82% | 4.75% | 99 | 49.50% | — | — | — | — | Same as other EAs |
| XAUUSD | +1.98% | +1.63% | 52.23% | 105 | 50.00% | — | — | — | — | Same as other EAs |
On every market this backtest is identical to EA-16787, EA-16877, EA-17274, EA-17489, EA-17741, EA-19089, EA-20222, EA-20527 and others. The automatic conversion almost certainly lost what makes this EA different (a custom indicator, a filter or the money management), so these results are not ranked or counted.
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 strategy concept is based on a trend-following system that generates at most two trade signals per bar. Entry conditions rely on moving average crossover or trend direction determination, entering long or short when the relationship between short-term and long-term moving averages confirms the trend direction. Exit conditions are implemented through preset stop loss and take profit levels, closing positions when price reaches the target or stop. Position sizing uses a fixed lot approach without dynamic adjustment based on account balance or risk ratio. Money management is relatively simple, lacking complex money management algorithms or risk control mechanisms, primarily relying on stop losses to control per-trade risk. The two-signals-per-bar limit helps prevent overtrading while still allowing the system to capture intra-bar opportunities.
Strengths
- Per-bar trade limit effectively prevents overtrading
- Trend-following logic trades with the prevailing direction for better win rate
- Clear stop loss and take profit settings provide defined risk management
- Simple and straightforward logic makes the EA easy to understand and modify
Weaknesses
- Fixed lot sizing lacks dynamic position management unable to adjust to market volatility
- Trend-following strategy tends to generate frequent losing signals in ranging markets
- Lacks trailing stop or breakeven mechanism so profits can be significantly given back
- No trading time filter may lead to trading during low liquidity sessions
Possible improvements
- Add dynamic position sizing based on ATR or account risk percentage
- Implement trailing stop and breakeven functionality to lock in floating profits
- Add range market filter to reduce or pause trading during sideways markets
Risk assessment
Overall risk: Medium
- Fixed lot size may cause excessive losses during high volatility
- Trend strategy suffers frequent stop outs in ranging markets
- No maximum drawdown control mechanism
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
Lots | 0.1 | Fixed trading lot size |
StopLoss | 50 | Stop loss in points |
TakeProfit | 100 | Take profit in points (unused; buy TP follows MA value) |
FastMA_Period | 10 | Fast moving average period |
SlowMA_Period | 50 | Slow moving average period |
MaxTradesPerBar | 2 | Maximum trades per bar |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.