EA-20836 · Scalping

Coin Flip

Coin Flip is a simple scalping EA that uses a probabilistic coin-flip approach to determine trade direction, entering buy or sell positions randomly on each new bar. It applies basic stop loss and take profit levels with optional lot sizing, making it essentially a random entry system with fixed risk-reward management. The EA serves as a baseline or experimental tool rather than a strategy-driven trading system.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryScalping
RiskHigh risk
Blow-up riskLow
Rating★☆☆☆☆
TypeTrading EA
TimeframesM1, M5, M15, M30
IndicatorsNone
AuthorVladimir Gribachev

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

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 concept of Coin Flip EA is based on random probability to determine trade direction, similar to flipping a coin — on each new bar, the EA randomly selects to go long or short. Entry conditions are simply a new bar formation with a randomly generated direction signal, without any technical indicator or price action analysis as a filter. Exit conditions rely on fixed stop loss and take profit settings, with no trailing stop or other dynamic exit mechanisms. Position sizing uses a fixed lot approach where the user can set the initial lot size. Money management lacks dynamic position adjustment based on account balance or risk percentage, relying solely on static stop loss to control per-trade risk. The overall strategy lacks trend identification, volatility filtering, and market state recognition, making it a purely random entry system.

Strengths

  • Clean code structure, easy to understand and modify, suitable as an introductory example for learning EA programming
  • Fixed stop loss and take profit provide clear risk control boundaries, preventing unlimited single-trade losses
  • Random entry system can serve as a benchmark to validate whether other strategies truly outperform randomness
  • Simple implementation with minimal system resource consumption, suitable for long-term operation
  • Magic number mechanism ensures accurate order identification without conflict with other EAs

Weaknesses

  • Strategy is entirely based on random entry without any market analysis or technical indicator filtering, long-term expected value approaches zero
  • Lacks money management mechanism, does not dynamically adjust position size based on account balance or risk ratio
  • No trailing stop function, unable to lock in profits during winning trades, easily turning floating gains into losses
  • Does not account for spread and commission costs, which in scalping scenarios could consume most of the profit
  • No trading session filter, may generate unfavorable trades during low liquidity or high volatility periods

Possible improvements

  • Add technical indicator filters (such as MA direction, RSI overbought/oversold) to improve entry quality and avoid pure random trading
  • Implement dynamic position sizing based on account risk, automatically calculating lot size from stop loss distance and risk ratio
  • Add trailing stop and break-even stop functions to protect profits when trades are in profit
  • Add trading session filter and spread check to avoid opening positions under unfavorable trading conditions

Risk assessment

Overall risk: High risk

  • Pure random entry has no market basis, long-term trading results depend entirely on luck rather than strategic edge
  • Fixed lot size does not adapt to account changes, consecutive losses could rapidly deplete account funds
  • No spread or trading cost check, scalping mode may frequently generate negative-expectancy trades

Evaluation scores

Code quality3.0
Strategy logic1.0
Risk management2.0
Robustness2.0
Innovation1.0
Documentation2.0
Overall1.8

Parameters

ParameterDefaultDescription
Lots0.1Fixed trading lot size
StopLoss500Stop loss in points
TakeProfit500Take profit in points
MagicNumber12345EA magic number for identifying orders
TimeframeM15Trading timeframe

Similar Scalping 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.