CashMachine_5min
CashMachine_5min is a scalping Expert Advisor designed for the M5 timeframe that aims to generate frequent small profits by capturing short-term price movements. It uses technical indicators to identify entry signals and implements a quick take-profit exit strategy suitable for high-frequency trading on lower timeframes. The EA targets small pip gains per trade, relying on trade frequency rather than large individual wins.
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 | -4.70% | -4.10% | 6.41% | 104 | 46.60% | -1.13 | -0.73 | 6 | −$4.24 | Reliable |
| GBPUSD | -1.76% | -1.53% | 6.69% | 105 | 48.60% | -0.29 | -0.26 | 7 | −$1.67 | Reliable |
| USDJPY | +9.21% | +7.96% | 3.26% | 112 | 50.50% | 1.91 | 2.83 | 6 | +$8.16 | Reliable |
| XAUUSD | -41.32% | -35.63% | 73.51% | 96 | 44.20% | -0.01 | -0.56 | 11 | −$40.89 | Reliable |
Profitable on 1 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
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 23% | +2.30% 2026-02 | -1.67% 2026-01 |
| GBPUSD | 46% | +1.77% 2026-02 | -4.17% 2026-03 |
| USDJPY | 54% | +2.69% 2026-07 | -1.81% 2025-11 |
| XAUUSD | 38% | +73.91% 2026-02 | -43.05% 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 strategy concept of CashMachine_5min is based on scalping, seeking short-term price movement opportunities on the 5-minute chart for rapid entry and exit. Entry conditions rely on combinations of technical indicators, triggering trades when indicators reach overbought or oversold zones or produce crossover signals. Exit conditions typically set small take-profit targets combined with stop-losses to control individual losses, pursuing a high win-rate, small-profit-per-trade pattern. Position sizing may use fixed lots or dynamic lot calculation based on account equity, though fixed lots are more common in scalping strategies. For money management, since scalping involves high trade frequency, special attention must be paid to the erosion effect of spreads and commissions; without a spread filter mechanism, frequent losses can occur under unfavorable spread conditions. The risk of this strategy lies in small stop-losses being easily triggered by market noise, while frequent trading amplifies the impact of slippage and spread costs.
Strengths
- Scalping strategy can accumulate steady small profits in moderately volatile markets
- M5 timeframe provides reasonable signal frequency without excessive noise of M1
- Stop-loss and take-profit settings provide a basic risk control framework
Weaknesses
- Scalping is heavily affected by spread and slippage, with trading costs severely eroding profits
- Small stop-losses are easily triggered by market noise and short-term fluctuations causing frequent stops
- Lack of multi-timeframe confirmation means single M5 signal reliability is relatively low
Possible improvements
- Add multi-timeframe confirmation mechanism, such as H1 trend direction filter, to improve signal quality
- Incorporate dynamic spread filtering and trading session restrictions to avoid high-cost and low-liquidity periods
Risk assessment
Overall risk: Caution
- Scalping strategy may incur consecutive losses when spreads widen, requiring strict spread filtering
- High trade frequency amplifies the risk impact of slippage and execution delays
- Without a new bar check mechanism, repeated position opening on the same bar may occur
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
LotSize | 0.1 | Lot size per trade |
TakeProfit | 10 | Take profit in points |
StopLoss | 20 | Stop loss in points |
MagicNumber | 12345 | EA magic number for distinguishing orders |
MaxSpread | 30 | Maximum allowed spread |
TrailingStop | 5 | Trailing stop in points |
Similar Scalping EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.