Exp_CandlesticksBW
This EA trades based on signals from the custom CandlesticksBW indicator, opening buy positions when bullish candlestick patterns are detected and sell positions when bearish patterns are confirmed. It uses a dual-buffer signal system (buffer 4) with threshold comparisons to generate entry and exit signals, and employs fixed Stop Loss/Take Profit levels with configurable money 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.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 EA's strategy concept is based on candlestick pattern signals identified by the CandlesticksBW indicator for directional trading. Entry conditions: a buy position opens when indicator buffer 4's previous value is less than 2 and current value exceeds 1; a sell position opens when the previous value exceeds 3 and current value is less than 4. Exit conditions: a buy signal simultaneously triggers closing of sell positions, and a sell signal simultaneously triggers closing of buy positions, implementing a simple reversal-based exit logic. Position sizing is controlled by the MM parameter which sets the trading lot ratio, with MMMode selecting between fixed lot size or margin-based proportional calculation. Money management uses fixed Stop Loss (1000 points) and Take Profit (2000 points) with a 2:1 reward-to-risk ratio, but lacks dynamic adjustment based on market volatility. The strategy defaults to H4 timeframe using SMA as the indicator's calculation method with a 1-bar signal delay.
Strengths
- Clear and concise strategy logic based on candlestick pattern signals, easy to understand and maintain
- Provides complete toggle controls allowing independent management of buy/sell open and close operations
- Uses a 2:1 reward-to-risk ratio, meeting basic positive-expectancy trading requirements
- Includes new bar detection mechanism to prevent repeated trades within the same bar
- SignalBar=1 parameter ensures signals are generated only after bar close confirmation, reducing false signals
Weaknesses
- Fixed SL of 1000 points and TP of 2000 points without ATR-based dynamic adjustment may not suit varying market conditions
- Lacks spread filter mechanism, may open positions during high-spread conditions increasing trading costs
- Depends on the custom CandlesticksBW indicator whose internal logic is not visible, reducing strategy transparency
- No maximum position count or maximum drawdown control, creating risk of sustained losses
- Signal logic uses hardcoded threshold comparisons (2 and 3) without adaptive optimization mechanism
Possible improvements
- Replace fixed SL/TP with ATR-based dynamic SL/TP to adapt risk control to varying market volatility
- Add spread filter and maximum position count limits to improve overall risk management
Risk assessment
Overall risk: Medium
- Fixed SL/TP does not adapt to market volatility changes, may be easily stopped out in high-volatility markets
- Lacks maximum drawdown control and position count limits, no protection during consecutive losses
- Depends on custom indicator with invisible logic, reducing strategy verifiability
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Capital allocation ratio per trade |
MMMode | LOT | Margin mode: free margin/balance/drawdown free margin/drawdown balance/fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowedslippage(points) |
BuyPosOpen | true | Allow buy positions |
SellPosOpen | true | Sell position opening signal mode |
BuyPosClose | true | Allow buy position close on reverse signal |
SellPosClose | true | Allow sell position close on reverse signal |
InpInd_Timeframe | PERIOD_H4 | CandlesticksBW indicator timeframe |
Length | 2 | CandlesticksBW indicator length parameter |
MAType | MODE_SMA | Moving average type |
SignalBar | 1 | Signal detection bar index position |
Similar Candlestick Pattern EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.