Follow the EA installation and activation guide for file locations, chart setup and troubleshooting. Use this tool’s own inputs and dependencies.
Already have a compatible account? You can use it. Otherwise, compare broker eligibility, platforms and costs.
TF Session Breakout Research EA
Inspect an opening-range breakout on closed M5 bars with explicit session time zones, broker clock settings and demo-only order controls.
MQL5 source, EX5, README and SHA-256 checksums. Research beta.

What this MT5 EA does
- Builds a complete M5 opening range and looks for a closed-bar cross beyond its high or low plus a buffer.
- Supports London, New York or UTC session clocks and an explicit broker winter UTC offset and DST rule.
- Uses the opposite range edge as a stop, risk-sized volume and a configurable reward/risk target.
- Checks spread, existing positions and same-day entry history; reads the matching guard pause signal.
Inputs and default settings
These are the defaults in the supplied source. Review them for your account, exact broker symbol and intended test. They are not optimised trading recommendations.
| Input | Default |
|---|---|
EnableDemoOrders | false |
SessionZone | SESSION_LONDON |
RangeStartLocalHour | 8 |
RangeHours | 1 |
EntryEndLocalHour | 12 |
BrokerWinterUTCOffset | 2 |
BrokerDST | TF_DST_EU |
RiskPercent | 0.5 |
RewardRisk | 2 |
RoundTripCommissionPerLot | 7 |
MaximumSpreadPoints | 30 |
BreakoutBufferPoints | 5 |
MagicNumber | 260917 |
Limitations and failure conditions
- EnableDemoOrders is false by default. No edge, backtest or forward performance has been established.
- DST rules implement the current EU rule and the US rule used since 2007; broker historical clock changes must be checked manually.
- The broker UTC offset is an input, never guessed. An incorrect setting changes the strategy.
- Commission is an estimate; news, market gaps, financing and variable execution costs are not modelled as strategy filters.
- Use one instance per symbol and magic number. Complete M5 history is required for the range; no overnight ranges are supported.
Install in MetaTrader 5
- Extract the ZIP and read its README before attaching any file.
- In MT5, choose File → Open Data Folder. Copy the MQ5, EX5 and TFCommon.mqh files together into MQL5/Experts/TradeForex.
- Refresh Navigator and attach the EA to a chart in an isolated demo or tester. Review its inputs and data requirements.
- Use one instance per chart. Reattach after changing accounts; retain the documented state files and settings when testing restarts.
No broker password, web API key or DLL permission is required by this package.
Acceptance checks before relying on it
The following checklist is pending. It is not a report of passed runtime tests.
- Visually verify opening ranges and session cut-offs across March and October/November clock changes.
- Check a buy breakout, sell breakout, missing history, spread rejection and the one-entry-per-session rule in the tester.
- Use realistic costs and an untouched out-of-sample period; retain full tester settings and reports.
- Verify no orders with default settings, on a real account, after an account change or while paused by the guard.
Download contents and integrity
The ZIP contains MQL5 source, the compiled EX5, TFCommon.mqh, README.md, MIT licence, TEST-STATUS.json and SHA256SUMS.txt.
ZIP size: 30,241 bytes. SHA-256: 97d5d29e5b5366eff3b4a2bd96ad024462fddc0729df4ca55ca6ba5786a88116.
See how we distinguish compilation, demo testing and trading evidence.
Frequently asked questions
Does this tool work in MT4?
No. This package contains MQL5 source and an EX5 build for MetaTrader 5 desktop. MT4 requires a different codebase; mobile and web charts do not run this desktop file.
What has been tested?
MetaEditor build 6180 compiled the supplied release with zero errors and zero warnings. The runtime acceptance checklist, backtests and forward tests are still pending.
Can it trade on a live account?
Order-changing functions in this release refuse real accounts and are disabled by default. Use an isolated demo or the Strategy Tester. The Execution Logger only records events and never sends orders.
Related tools and guides
Educational research, not personal investment advice. CFDs are leveraged products and can cause rapid losses. A calculation, indicator or stop cannot guarantee an account outcome.
