FRangeBreakOut
- Experts
- Versione: 1.1
- Attivazioni: 5
FRangeBreakOut trades the breakout of a daily time range. It measures the high and low of a time window you define, for example the first hours of a session. When the window closes, it places a Buy Stop above the high and a Sell Stop below the low. It was developed for index and commodity futures, but it works on any symbol and timeframe because the range is always calculated from M1 bars.
The EA does not use grid, martingale or averaging. Each range produces at most one Buy Stop and one Sell Stop, the stop loss and take profit are attached to the order when it is placed, and untriggered orders are deleted at a set time.
How it works
- Range: high and low of the M1 bars between the start and end time.
- Filter: the range can be skipped if it is too small or too large, measured as a percentage of price or relative to the average of the previous days.
- Entry: Buy Stop and Sell Stop at the range edges plus an optional buffer in ticks. With OCO enabled, the opposite order is deleted when one is triggered.
- Exit: stop loss, take profit, a daily close time and an optional end date, for example before a futures rollover.
All times can be set in server time, London time, New York time or UTC. Once the server offset is set, daylight saving changes are applied automatically, so the window stays aligned with the real session all year.
An on-chart panel shows the average daily range, the average size of the window range over the last days and the status of the last range, including why it was rejected by the filter.
Input parameters
Time zone: reference time for all inputs (server, London, New York or UTC), server GMT offset in winter and server daylight saving schedule (none, US or EU).
Range: start and end hour and minute, and a buffer in ticks added above the high and below the low.
Range size filter: off, fixed percentage of price (minimum and maximum), or relative to the average (minimum and maximum as a multiple of the average, and number of days used for the average).
Orders: enable Buy Stop and Sell Stop separately, OCO, cancellation time for untriggered orders, and option to skip a new range while a position is still open.
Position size: fixed lots, or a percentage of the balance risked per trade based on the stop loss distance.
Stop loss: none, fixed ticks, percentage of the range, or opposite side of the range.
Take profit: none, fixed ticks, percentage of the range, or a multiple of the risk (R:R).
Time exit: close hour and minute, on the same day or a number of calendar days after the range, and an optional end date that closes everything and stops trading.
Trading days: days of the week on which a range may be traded.
Other: magic number, maximum deviation for market closes, drawing the range on the chart, showing the panel and number of days used for its averages.
Order checks
Before placing an order, the EA checks free margin, symbol volume limits, the minimum stop distance and the expiration modes allowed by the symbol. If the margin is not enough for the configured volume, the volume is reduced to the maximum possible or the order is skipped. Orders are not deleted and positions are not closed inside the freeze level.
Recommendations
Test the EA in the Strategy Tester with "Every tick based on real ticks" on your broker's data, and adjust the time window to the session of the instrument you trade. Past results do not guarantee future results.
The EA does not use grid, martingale or averaging. Each range produces at most one Buy Stop and one Sell Stop, the stop loss and take profit are attached to the order when it is placed, and untriggered orders are deleted at a set time.
How it works
- Range: high and low of the M1 bars between the start and end time.
- Filter: the range can be skipped if it is too small or too large, measured as a percentage of price or relative to the average of the previous days.
- Entry: Buy Stop and Sell Stop at the range edges plus an optional buffer in ticks. With OCO enabled, the opposite order is deleted when one is triggered.
- Exit: stop loss, take profit, a daily close time and an optional end date, for example before a futures rollover.
All times can be set in server time, London time, New York time or UTC. Once the server offset is set, daylight saving changes are applied automatically, so the window stays aligned with the real session all year.
An on-chart panel shows the average daily range, the average size of the window range over the last days and the status of the last range, including why it was rejected by the filter.
Input parameters
Time zone: reference time for all inputs (server, London, New York or UTC), server GMT offset in winter and server daylight saving schedule (none, US or EU).
Range: start and end hour and minute, and a buffer in ticks added above the high and below the low.
Range size filter: off, fixed percentage of price (minimum and maximum), or relative to the average (minimum and maximum as a multiple of the average, and number of days used for the average).
Orders: enable Buy Stop and Sell Stop separately, OCO, cancellation time for untriggered orders, and option to skip a new range while a position is still open.
Position size: fixed lots, or a percentage of the balance risked per trade based on the stop loss distance.
Stop loss: none, fixed ticks, percentage of the range, or opposite side of the range.
Take profit: none, fixed ticks, percentage of the range, or a multiple of the risk (R:R).
Time exit: close hour and minute, on the same day or a number of calendar days after the range, and an optional end date that closes everything and stops trading.
Trading days: days of the week on which a range may be traded.
Other: magic number, maximum deviation for market closes, drawing the range on the chart, showing the panel and number of days used for its averages.
Order checks
Before placing an order, the EA checks free margin, symbol volume limits, the minimum stop distance and the expiration modes allowed by the symbol. If the margin is not enough for the configured volume, the volume is reduced to the maximum possible or the order is skipped. Orders are not deleted and positions are not closed inside the freeze level.
Recommendations
Test the EA in the Strategy Tester with "Every tick based on real ticks" on your broker's data, and adjust the time window to the session of the instrument you trade. Past results do not guarantee future results.
