Trading robot · MT5

Crash 300 Jump Diffusion EA

by dinethlive

This MetaTrader 5 expert advisor is designed specifically for the Deriv Crash 300 Index synthetic market.

High risk

GitHub stars2
Forks2
Last update5 months ago19 Apr 2026
LicenceNone stated

Overview

Crash 300 Jump Diffusion EA employs a jump-diffusion model to detect price spikes and enters long positions during the subsequent recovery drift phase. The robot manages trades using fixed stop loss and take profit targets, with additional logic to exit positions early if a new spike is detected. Risk management includes fractional Kelly sizing and a bounded martingale recovery system with a 1.5x multiplier. It also incorporates UTC time filters, an equity floor protection, and a spread filter to ensure entries occur during optimal market conditions.

Details

Author

dinethlive on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion, Martingale

Markets

Any symbol

Timeframes

M1-M5

Risk profile

  • Uses martingale lot scaling: losses can grow fast

EA files

Topics

metatrader5mt5-eacrash-boomderiv-mt5

Input parameters

Read from Crash300EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
SPIKE_THRESHOLDdouble2.0Min price drop (units) to classify spike
CLUSTER_GAPint3Bars within which spikes = cluster
USE_TIME_FILTERbooltrue
TIER1_ONLYboolfalse
BLOCK_WORST_HOURSbooltrue
MAX_OPEN_TRADESint1
ENTRY_MAX_BARS_AFTER_SPIKEint3Enter on first bull non-spike within N bars of a spike (1 = strictest)
TP_DISTANCE_POINTSint1500015.0 price units
SL_DISTANCE_POINTSint30003.0 price units
MAX_HOLD_BARSint15
SPIKE_EXIT_MODEbooltrue
USE_TRAILINGboolfalse
Show all 40 inputs
NameTypeDefaultDescription
TRAIL_START_POINTSint5000
TRAIL_DISTANCE_POINTSint2000
SIZING_MODEENUM_SIZING_MODESIZING_AUTOAUTO picks MIN_LOT on tiny accounts, Kelly when affordable
FIXED_LOT_SIZEdouble0.50Used only when SIZING_MODE = SIZING_FIXED
USE_FIXED_RISKboolfalse
FIXED_RISK_PCTdouble1.0
KELLY_FRACTIONdouble0.1010% of full Kelly
MARGIN_SAFETYdouble0.50Max fraction of free margin per trade
ADAPTIVE_WINRATEbooltrue
ADAPTIVE_WINDOWint50
MIN_TRADES_ADAPTIVEint20
CALIBRATED_WINRATEdouble0.945
USE_MARTINGALEbooltrue
MARTINGALE_MULTIPLIERdouble1.51.5 is safer than 2.0 and survives low-margin symbols
MARTINGALE_MAX_STEPSint4cap escalation; with 97% wins, P(5 losses) ~ 1 in 25M
MARTINGALE_RESET_WINbooltrue
USE_DAILY_LOSS_LIMITboolfalseOFF by default — on small accounts, one trade can exceed the %
DAILY_LOSS_LIMIT_PCTdouble30.0Raised from 5% — set to 5.0 and USE_DAILY_LOSS_LIMIT=true for a conservative account
USE_MAX_DD_HALTboolfalseOFF by default — prevents mid-trade halts on volatile symbols
MAX_DD_PCTdouble50.0Raised from 15% — with margin-heavy positions, equity swings are normal
MAX_SPREAD_POINTSint25002.5 price units — post-spike spread widens; 800 is too tight on Deriv
EQUITY_FLOOR_USDdouble0.0Hard halt below this absolute equity (0 disables). Set e.g. 30 for a 100 USD account.
CALIBRATION_MODEboolfalse
CALIBRATION_BARSint5000
PARAMETER_MONITORbooltrue
MONITOR_WINDOW_BARSint500
SPIKE_RATE_ALERT_THRESHdouble0.20
MAGIC_NUMBERint300001

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone dinethlive/crash300_ea from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

RSI Martingale EA

by peefpee
10 stars

This Expert Advisor for MetaTrader 5 implements a martingale trading strategy triggered by the Relative Strength Index (RSI). It opens an initial position when RSI reaches overbought or oversold thresholds. If price continues to move against the initial trade, the EA layers additional orders at set point intervals, mul

MT5 Trading robot MartingaleMean reversionGrid High risk
7 stars

This MetaTrader 5 expert advisor executes a mean reversion strategy based on price deviation from a Simple Moving Average. It enters short positions when prices rise above the average and long positions when prices fall below. The algorithm utilizes an aggressive grid-based recovery system where both the entry distance

MT5 Trading robot Mean reversionMartingaleGrid High risk

Simba Sniper EA

by oriokie
6 stars

This MetaTrader 5 expert advisor focuses on XAUUSD using a multi-timeframe scalping approach based on Smart Money Concepts. It identifies institutional market structures by analyzing H4 trends, H1 supply and demand zones, and M5 entries. The logic incorporates order block detection, Fair Value Gaps (FVG), and liquidity

MT5 Trading robot SMC / ICT / price actionScalpingTrend following High risk
Updated 8 months ago Custom licence GitHub repository of Simba Sniper EA

Nolo Trading Bot

by festomanolo
4 stars

This expert advisor for MetaTrader 5 is a multi-strategy system that utilizes market regime detection to switch between trend following, range trading, and breakout modes. It incorporates a wide array of technical indicators, including Moving Averages, RSI, MACD, Ichimoku, and SuperTrend. The bot manages risk through v

MT5 Trading robot Trend followingMean reversionBreakout High risk
Updated 6 months ago MIT GitHub repository of Nolo Trading Bot
4 stars

This MetaTrader 5 expert advisor utilizes a combination of Bollinger Bands, Relative Strength Index, and Average Directional Index to identify entries. It supports multi-timeframe analysis for trend confirmation and provides optional filters for Average True Range and price action patterns such as hammers. Risk managem

MT5 Trading robot Trend followingMean reversionSMC / ICT / price action High risk
Updated 1 year ago None stated GitHub repository of Alif BB RSI ADX MTFA
4 stars

This high-frequency scalping robot for MetaTrader 5 is specifically designed for the gold market. It determines entry points using a combination of EMA trend filters, ADX trend strength, and dynamic RSI levels. To recover from losing positions, the EA utilizes an aggressive martingale grid system with a customizable lo

MT5 Trading robot ScalpingMartingaleGrid High risk

More trading robots

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers