EA-20497 · Candlestick Pattern

Small Inside Bar Strategy

This EA trades the Inside Bar candlestick pattern, entering breakout trades when a smaller candle forms entirely within the range of the previous mother bar. It uses the high/low breakout of the inside bar as entry signals with stop loss placed beyond the mother bar extremes.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, M30, H1, H4, D1
IndicatorsInside Bar, ATR, Moving Average
AuthorMetaQuotes Software Corp.

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.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

  • Has no stop loss or trailing stop

On its own this is not a typical blow-up pattern, 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 centers on the classic Inside Bar breakout pattern from price action trading. Entry conditions require the current bar's high to be lower than the previous bar's high and its low to be higher than the previous bar's low, forming an inside bar; a buy is triggered when price breaks above the inside bar's high, and a sell when it breaks below the low. Exit conditions place stop loss beyond the mother bar's extremes (above the high for shorts, below the low for longs), with take profit set as a multiple of the stop loss distance or a fixed pip target. Position sizing typically uses a fixed lot size, though some versions may include percentage-based sizing. Money management is relatively straightforward without dynamic position adjustment. The overall logic is clean and represents a well-known price action methodology that profits from directional resolution after market consolidation.

Strengths

  • Strategy logic is simple and clear, based on a classic price action pattern that is easy to understand and verify
  • Inside bars represent market consolidation, and breakouts often carry strong momentum continuation
  • Stop loss placed beyond the mother bar extremes is logically sound with controllable risk-reward ratio

Weaknesses

  • Inside bar breakouts frequently produce false signals in ranging markets, leading to repeated stop losses
  • Lacks multi-timeframe confirmation, limiting signal reliability from a single timeframe perspective
  • Fixed lot sizing cannot dynamically adjust to market volatility, resulting in suboptimal capital utilization

Possible improvements

  • Add multi-timeframe filtering to only trade inside bar breakouts aligned with the higher timeframe trend
  • Introduce ATR-based dynamic stop loss, take profit, and position sizing to adapt to varying market volatility
  • Incorporate volume or momentum indicators as breakout confirmation filters to reduce false breakouts

Risk assessment

Overall risk: Medium

  • Lack of multi-timeframe confirmation may lead to counter-trend trades with increased loss probability
  • Frequent false breakouts in ranging markets can accumulate significant losses through consecutive stop hits

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.5

Parameters

ParameterDefaultDescription
LotSize0.1Fixed lot size per trade
StopLoss_Pips20Stop loss in pips (based on mother bar range or fixed)
TakeProfit_Pips40Take profit in points
MagicNumber12345Magic number identifier for EA orders
TimeFrameH1Trading timeframe
MaxSpread30Maximum allowed spread; no entry if exceeded
MinMotherBarPips10Minimum mother bar pip range, filters small patterns

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.