Range Breakout EA with Range Filters
- エキスパート
- Jimmy Peter Eriksson
- バージョン: 1.0
- アクティベーション: 10
This bot utilizes a proven trading concept: markets often see significant movements during active periods, particularly around the London and New York sessions. Instead of predicting market direction, the strategy sets a range during the quieter Asian session hours and trades the breakout, riding the momentum until the New York session slows down.
Using the 1-minute timeframe, the bot enters trades at the start of the next candle after a breakout, ensuring realistic backtesting results without the need for specialized tick data. It also includes filters to avoid trading in exhausted markets, following the principle that breakouts are stronger after smaller price movements—a concept used by renowned trader Andrea Unger.
This strategy is especially effective in trending markets with significant intraday moves, such as XAU/USD and USD/JPY, but can be applied to many other markets as well.
Optimization Tips:
To achieve the best results with this EA, aim to create the range during the low-volatility hours of the Asian session. Then, set the bot to trade breakouts during the London session and close positions at the end of the New York session.
For convenience, screenshots are provided showing optimal settings for XAU/USD and USD/JPY, both optimized for GMT +3. Ensure you adjust your settings according to your local time zone to align with the recommended hours.
<General Inputs>
Trade Comment: A label for all trades made by the EA.
Magic Number: Unique identifier for the EA's trades.
Range Color: Color of the price range on the chart.
Entry Timeframe: Timeframe used for trade entries (recommended M1).
Chart Comments: Enables or disables comments on the chart.
<Risk Management>
Base Money: Reference account balance for calculating risk.
Risk Type: Method for calculating trade risk (Lots, underlying price percent, or percent based on stop loss distance).
Risk Percent/Lots: Amount of risk per trade (Percentage or fixed lots).
Stop Loss Type: Method for setting stop loss (Daily ATR value, underlying price percent, or range-based stop loss).
Stop Loss Multiplier: Sets the stop loss distance based on a percentage of the underlying price or ATR.
Allow 2 Trades Per Day: Enables up to two trades per day (if enabled, one buy and one sell trade are allowed; if disabled, only one trade is allowed).
<Range Start/End Time>
Range Start Hour: Hour when the EA starts identifying the price range.
Range Start Min: Minute when the EA starts identifying the price range.
Range End Hour: Hour when the EA stops identifying the price range.
Range End Min: Minute when the EA stops identifying the price range.
<Trading Session End Time>
Trading Session End Hour: Hour when no more trades will be entered for the day.
Trading Session End Minute: Minute when no more trades will be entered for the day.
<Trade Close Time>
Trade Close Hour: Hour when open trade is closed.
Trade Close Minute: Minute when open trades is closed.
<Filters>
Breakout Range Filter: Blocks trades if the current day’s breakout range is too large or small.
Yesterday Range Filter: Blocks trades if yesterday's total range is too large or small.
Previous Day ATR Filter: Prevents trading if yesterday's total range exceeded the daily ATR.
<Filter Settings>
Breakout Range Mix Size: Minimum range size compared to the underlying price in percent.
Breakout Range Man Size: Maximum range size compared to the underlying price in percent.
Yesterday Range Min Size: Minimum size of yesterdays total range compared to the underlying price in percent.
Yesterday Range Max Size: Maximum size of yesterdays total range compared to the underlying price in percent.