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.
Post-spike bull candle entry logic
Fractional Kelly and fixed risk position sizing
Bounded martingale recovery with configurable multiplier
Spike-exit mode to close trades during sudden drops
Integrated dashboard for real-time monitoring and calibration
Read from Crash300EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
SPIKE_THRESHOLD
double
2.0
Min price drop (units) to classify spike
CLUSTER_GAP
int
3
Bars within which spikes = cluster
USE_TIME_FILTER
bool
true
TIER1_ONLY
bool
false
BLOCK_WORST_HOURS
bool
true
MAX_OPEN_TRADES
int
1
ENTRY_MAX_BARS_AFTER_SPIKE
int
3
Enter on first bull non-spike within N bars of a spike (1 = strictest)
TP_DISTANCE_POINTS
int
15000
15.0 price units
SL_DISTANCE_POINTS
int
3000
3.0 price units
MAX_HOLD_BARS
int
15
SPIKE_EXIT_MODE
bool
true
USE_TRAILING
bool
false
Show all 40 inputs
Name
Type
Default
Description
TRAIL_START_POINTS
int
5000
TRAIL_DISTANCE_POINTS
int
2000
SIZING_MODE
ENUM_SIZING_MODE
SIZING_AUTO
AUTO picks MIN_LOT on tiny accounts, Kelly when affordable
FIXED_LOT_SIZE
double
0.50
Used only when SIZING_MODE = SIZING_FIXED
USE_FIXED_RISK
bool
false
FIXED_RISK_PCT
double
1.0
KELLY_FRACTION
double
0.10
10% of full Kelly
MARGIN_SAFETY
double
0.50
Max fraction of free margin per trade
ADAPTIVE_WINRATE
bool
true
ADAPTIVE_WINDOW
int
50
MIN_TRADES_ADAPTIVE
int
20
CALIBRATED_WINRATE
double
0.945
USE_MARTINGALE
bool
true
MARTINGALE_MULTIPLIER
double
1.5
1.5 is safer than 2.0 and survives low-margin symbols
MARTINGALE_MAX_STEPS
int
4
cap escalation; with 97% wins, P(5 losses) ~ 1 in 25M
MARTINGALE_RESET_WIN
bool
true
USE_DAILY_LOSS_LIMIT
bool
false
OFF by default — on small accounts, one trade can exceed the %
DAILY_LOSS_LIMIT_PCT
double
30.0
Raised from 5% — set to 5.0 and USE_DAILY_LOSS_LIMIT=true for a conservative account
USE_MAX_DD_HALT
bool
false
OFF by default — prevents mid-trade halts on volatile symbols
MAX_DD_PCT
double
50.0
Raised from 15% — with margin-heavy positions, equity swings are normal
MAX_SPREAD_POINTS
int
2500
2.5 price units — post-spike spread widens; 800 is too tight on Deriv
EQUITY_FLOOR_USD
double
0.0
Hard halt below this absolute equity (0 disables). Set e.g. 30 for a 100 USD account.
CALIBRATION_MODE
bool
false
CALIBRATION_BARS
int
5000
PARAMETER_MONITOR
bool
true
MONITOR_WINDOW_BARS
int
500
SPIKE_RATE_ALERT_THRESH
double
0.20
MAGIC_NUMBER
int
300001
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone dinethlive/crash300_ea from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
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