EA-19603 · Candlestick Pattern

DojiTrader

DojiTrader is an Expert Advisor that identifies Doji candlestick patterns to generate trade signals. It enters positions when a Doji pattern forms at potential reversal zones, suggesting market indecision and impending direction change. The EA automates trade execution based on this single candlestick pattern with configurable parameters for pattern detection and risk management.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsDoji Pattern
AuthorCopyright © 2017, Vladimir Karputov

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD-0.27%-0.24%3.79%11048.60%-0.05-0.074+$0.06Reliable
GBPUSD+6.63%+5.74%3.89%10851.90%1.181.708+$6.14Reliable
USDJPY+2.04%+1.77%4.48%10149.50%0.440.466+$2.02Reliable
XAUUSD+1.98%+1.63%52.23%10550.00%0.380.047+$4.28Reliable

Profitable on 3 of 4 markets with reliable results.

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.

Month by month

MarketMonths with a gainBest monthWorst month
EURUSD54%+2.68% 2026-04-1.11% 2026-01
GBPUSD69%+2.68% 2026-04-2.56% 2026-10
USDJPY46%+2.95% 2026-04-1.91% 2026-03
XAUUSD62%+29.82% 2026-02-29.62% 2026-08

From the backtest equity curve, sampled about every two days; only reliable results.

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 concept of DojiTrader strategy is to identify market indecision through the Doji candlestick pattern, which typically appears at key reversal or continuation points. Entry conditions involve detecting a standard Doji pattern where the open and close prices are nearly equal with relatively long upper and lower shadows, potentially filtered by trend context or support/resistance levels. Exit conditions typically include fixed take-profit and stop-loss levels, or closing positions when a reverse signal appears. Position sizing may offer fixed lot sizes or account-balance-proportional calculation methods. Money management relies on configurable stop-loss settings to control per-trade risk, but relying purely on a single candlestick pattern can generate numerous false signals in choppy markets, requiring additional trend filtering mechanisms to improve win rates.

Strengths

  • The Doji is a classic reversal signal pattern with solid technical analysis theory backing
  • The strategy logic is simple and intuitive, easy to understand and debug, suitable for beginners learning candlestick pattern trading
  • Configurable pattern recognition parameters allow users to adjust Doji detection criteria for different instruments

Weaknesses

  • A single candlestick pattern strategy easily generates many false signals in choppy markets, potentially resulting in a low win rate
  • Lacks multi-timeframe confirmation and trend filtering mechanisms, making it susceptible to false reversal signals in strong trends
  • Does not account for market volatility changes; using the same parameters in low and high volatility environments may lead to inconsistent performance

Possible improvements

  • Add trend filtering indicators (such as EMA or ADX) to only trade Doji signals in the trend direction, reducing false signals
  • Incorporate multi-timeframe analysis, confirming trend direction on higher timeframes before seeking Doji entry opportunities on intermediate timeframes

Risk assessment

Overall risk: Medium

  • Single candlestick pattern lacks confirmation mechanism; consecutive false signals may lead to consecutive losses
  • If stop-loss is set too tight, short-term volatility after Doji formation may frequently trigger stops

Evaluation scores

Code quality3.0
Strategy logic2.0
Risk management3.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.3

Parameters

ParameterDefaultDescription
LotSize0.1Fixed lot size per trade
StopLoss50Stop loss in points
TakeProfit100Total profit target in points
DojiMaxBody5Maximum doji body size in points
MinShadowRatio2.0Minimum shadow-to-body ratio
MagicNumber12345EA unique identifier
MaxSlippage3Maximum allowed slippage

Similar Candlestick Pattern EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.