Spike Hunt EA
- Experts
- Noppadon Boonpromuppatham
- Versione: 1.40
- Aggiornato: 13 ottobre 2025
- Attivazioni: 5
Spike Hunt EA: A Strategy to Capture Reversals After Sharp Price Spikes (((-----Introductory Price for the first 10 buyers only!!!----)))
The Spike Hunt EA is an Expert Advisor specifically designed to profit from a common market behavior: a rapid reversal following a strong and sudden price spike.
This EA employs a robust logic to identify high-probability reversal "Spike" candles. It uses Bollinger Bands breakouts as an initial alert and
then performs a detailed candlestick analysis to pinpoint precise counter-trend entry points.
How Does the Core Strategy Work?
-
Scanning for Price Spikes: The EA constantly monitors for a candle that pierces the outer Bollinger Band, which indicates an overbought or oversold market condition.
-
Confirming the Reversal: A signal is triggered when the price closes back inside the Bollinger Bands, suggesting the initial momentum is fading.
-
Candlestick Analysis: The EA verifies that the candle has the true characteristics of a "Spike"—a long wick and a comparatively small body. This pattern signifies strong price rejection.
-
Counter-Trend Entry: Once all conditions are met, the EA opens a trade in the opposite direction of the spike, aiming to profit from the subsequent price reversal.
Key Features
-
Precise Spike Hunt Logic: A well-tested core strategy focused exclusively on capturing price reversals.
-
Automated Risk Management:
-
Dynamic Stop Loss & Take Profit: SL/TP levels are calculated based on the length of the signal spike candle, making them adaptive to current market volatility.
-
Automatic Lot Sizing: Risk can be set as a percentage of the account balance, allowing the trade size to grow with your portfolio.
-
Max Lot Safety Cap: A built-in protection mechanism to prevent opening excessively large positions.
-
-
Advanced Filters for Higher Accuracy:
-
ADX Filter: Filter market conditions to trade only in trending or ranging markets.
-
RSI Filter: Confirms signals with RSI overbought/oversold conditions.
-
Volume Filter: Checks for a surge in trading volume to validate the strength of the spike.
-
Candle Size Filter: Filters out spikes that are too large or too small relative to the average volatility (ATR).
-
-
Flexible Position Management:
-
Trailing Stop: Automatically moves the Stop Loss to lock in profits as the trade moves in your favor.
-
Break-Even: Shifts the Stop Loss to the entry price once a specified profit target is reached.
-
-
Advanced Time Filters: Allows you to restrict the EA's operation to specific trading hours and days of the week.
Important Recommendation: To ensure compliance with MQL5 Market validation requirements, the Trailing Stop, Break-Even, and all Advanced Filters are disabled ( false) by default. Users are strongly encouraged to backtest and enable these features to find the optimal settings for their preferred trading style and instruments.
Recommended Settings
-
Pairs: Best suited for major pairs with good volatility, such as GBPUSD, EURUSD, and XAUUSD (Gold).
-
Timeframe: M15, M30, H1.
-
Initial Setup: The EA is delivered with safe, ready-to-use default settings. Users are advised to perform their own optimizations to discover the best parameters for each specific pair.
Optimization Parameters Guide for Spike Hunt EA
For the Spike Hunt EA, optimization should focus on parameters that directly impact the Entry/Exit Logic and Risk/Trade Management.
Below are the recommended parameter groups for optimization, complete with suggested Start, Step, and Stop values for the MetaTrader 5 Strategy Tester.
## Group 1: Core Strategy & SL/TP Parameters
This is the most important group. Always start your optimization here to define the fundamental entry and exit logic.
| Parameter Name | Start | Step | Stop | Description |
| InpBBPeriod | 15 | 5 | 50 | Bollinger Bands period to match price behavior. |
| InpBBDeviation | 1.8 | 0.2 | 3.0 | Bollinger Bands deviation to adjust band width. |
| InpWickToBodyRatio | 1.5 | 0.5 | 5.0 | Ratio of the wick to the body to filter spike strength. |
| InpOppositeWickRatio | 0.3 | 0.1 | 1.0 | Maximum allowed size of the opposite wick (smaller is better). |
| InpSL_ATR_Multiplier | 1.0 | 0.5 | 3.0 | Multiplier to set the Stop Loss distance from the signal candle's size. |
| InpTP_ATR_Multiplier | 1.5 | 0.5 | 5.0 | Multiplier to set the Take Profit distance (find a good ratio to SL). |
## Group 2: Signal Filter Parameters
After finding the best values from Group 1, fix them and then optimize this group to improve the quality of your trade signals. It's recommended to test one filter at a time.
Note: To test a filter, you must first enable it (e.g., set InpEnableRSIFilter to true ).
| Parameter Name | Start | Step | Stop | Description |
| ADX Filter | ||||
| InpADXPeriod | 10 | 2 | 20 | The calculation period for the ADX indicator. |
| InpADXLevel | 20 | 5 | 35 | The ADX level used to separate trending vs. sideways markets. |
| RSI Filter | ||||
| InpRSIPeriod | 7 | 7 | 21 | The calculation period for the RSI indicator. |
| InpRSIOversold | 20 | 5 | 35 | The oversold level for confirming buy signals. |
| InpRSIOverbought | 65 | 5 | 80 | The overbought level for confirming sell signals. |
| Candle Size Filter | ||||
| InpMaxCandleATRRatio | 2.0 | 0.5 | 5.0 | The maximum allowed candle size as a multiple of ATR. |
| Volume Filter | ||||
| InpVolumeRatio | 1.2 | 0.2 | 2.0 | The required volume surge compared to the previous candle. |
## Group 3: Trade Management Parameters
Use the best settings from the first two groups, then optimize these parameters to see if features like Break-Even or Trailing Stop can improve overall performance.
| Parameter Name | Start | Step | Stop | Description |
| Break-Even | ||||
| InpBE_TriggerPips | 100 | 50 | 500 | The profit in points required to trigger the break-even function. |
| InpBE_LockPips | 20 | 20 | 100 | The amount of profit in points to lock in. |
| Trailing Stop | ||||
| InpTrailingStopPips | 150 | 50 | 600 | The distance in points for the trailing stop. |
| InpTrailingStepPips | 20 | 10 | 100 | The step in points for moving the trailing stop. |
## Group 4: Time Filter Parameters 🕒
This group is excellent for finding the most profitable trading sessions by testing periods where trading should be disabled.
| Parameter Name | Start | Step | Stop | Description |
| InpOptNoTradeStartHour | 0 | 1 | 23 | The server hour to start the "no-trade" period. |
| InpOptNoTradeDurationHours | 4 | 2 | 12 | The duration in hours for the "no-trade" period. |
Reminder: To use this feature during optimization, you must set InpEnableOptNoTrade to true .
## Recommendations for Optimization
-
Don't optimize everything at once. This takes too long and can lead to "over-fitted" results that don't perform well in live trading. Optimize in phases as suggested above.
-
Use the right algorithm. In the MT5 Strategy Tester, select the "Fast generic based algorithm" for an efficient and effective optimization process.
-
Test for your specific market. The best settings for EURUSD H1 will likely not be the best for XAUUSD M15. Each instrument and timeframe requires its own optimization.
-
Parameters you should NOT optimize:
-
InpMagicNumber
-
InpOrderComment
-
InpSlippage
-
InpRiskPercent (This should be based on your personal risk tolerance, not what the backtest shows as most profitable).
-
Disclaimer
-
Trading involves substantial risk and is not suitable for every investor. An investor could potentially lose all or more than the initial investment.
-
Past performance is not indicative of future results. The backtest results shown are for informational purposes only and do not guarantee future performance.
-
It is highly recommended to run this EA on a demo account first before using it on a live account to ensure you understand its behavior and performance.
-
The developer is not responsible for any financial losses that may occur from using this software.
The Spike Hunt EA is a powerful tool for traders who want to capitalize on market reversals. With its comprehensive risk management and flexible filtering system, this EA is an excellent assistant for building sustainable profits.
