Time Filters, News Filters and Trading Pause Conditions in EAs
Many losses do not come from the strategy itself but from running it at the wrong time: thin liquidity hours, the moment a major news release hits, or after a losing streak. Filters make the EA stop or avoid entering in those situations.
MetaTraderOS — Request your project now
Time filter
- Define the allowed trading days and hours.
- Rely on the broker server time, not your computer time, and be aware of the offset.
- Close trades or block new ones before the end of the week or session.
MetaTraderOS — Request your project now
News filter
It prevents the EA from entering before and after important news for a period you set. MT5 has a built-in economic calendar the EA can read. MT4 has no built-in calendar, so the EA needs an external data source through WebRequest, with the address added to the allowed list in the platform settings.
MetaTraderOS — Request your project now
Pause conditions
- Reaching a daily or weekly loss limit.
- A set number of consecutive losing trades.
- Spread widening above a limit.
- Balance or margin falling below a set level.
MetaTraderOS — Request your project now
What to define before ordering
- Allowed days and hours, and their time zone.
- Which news importance and currencies to avoid, and the blocking window before and after.
- What happens to open trades: stay or close?
- Does the EA resume automatically or need manual action?
MetaTraderOS — Request your project now
Conclusion
Filters do not guarantee profit, but they reduce exposure to times known for volatility and add a layer of protection for the account.
Want a time or news filter added to your EA?
At MetaTraderOS we add time filters, news filters and pause conditions to your existing EA, or build them into a new one.. Request your project now.
Disclaimer: this content is for technical education only and is not investment advice. Trading financial markets involves risk and may result in loss of capital.
Comments
Post a Comment