News Flat Economic Calendar News Filter
- 유틸리티
-
Keiki Ishii
Independent MQL5 developer from Japan.
I build tools for MetaTrader 5 traders: risk managers, indicators and Expert Advisors.
How I work:
- Every product is tested in the Strategy Tester and on demo accounts (hedging and netting) before release. - 버전: 1.0
- 활성화: 5
News Flat marks the minutes around economic releases on your MT5 chart, and can keep your account flat during them. It has no trading strategy.
It reads the economic calendar built into MetaTrader 5. For the currencies of your chart symbol, it shades a window from X minutes before to Y minutes after each important release. You choose the importance and the window length. What you do with the window is your choice: watch it, or let News Flat close trades opened inside it.
News Flat does not trade the news and does not predict its direction. It is a filter that you set.
What it does
-
News windows on the chart. A shaded band behind the bars, a dotted line at the release time and the release name at the top. Overlapping windows are joined. High and medium importance have different colours. The colours are mixed with your chart background, so the bars stay visible on dark and light charts.
-
Three modes.
-
Show and notify only. Bands, panel and alerts. Nothing is closed.
-
Close positions opened inside a window. Any new position on a watched currency that appears inside a window is closed: from other Expert Advisors and from manual trading. On netting accounts, volume added inside a window is reduced back.
-
Also close open positions when a window starts. Open positions on the watched currencies are closed X minutes before the release.
-
-
Optional: delete pending orders inside a window. Leave positions alone by magic number (manual trades are magic 0).
-
Currencies are matched to the symbol. Forex pairs watch both currencies (EURUSD: EUR and USD). Gold and silver watch USD. US index CFDs (US500, US100, US30) watch USD, JP225 watches JPY, DE40 watches EUR, UK100 watches GBP. A built-in table covers common index, metal and oil names, and you can add your own lines (for example US500=USD;JP225=JPY ).
-
All-positions mode. Watch the currencies of every position on the account. Each position is judged by its own symbol.
-
Alerts and push notifications a few minutes before a window and when it starts. Every action is written to the Experts journal.
Status panel
-
A coloured status band: FLAT (inside a window: red for high, orange for medium), CLEAR (green), WAITING (gray, data is loading), CALENDAR UNAVAILABLE (amber).
-
The next release: time, country, currency, name, importance, and the time left to the window and to the release.
-
Today's and tomorrow's releases for the watched currencies.
-
The last actions, for example 13:18:02 EURUSD #..361 NEW IN WINDOW closed 0.01 .
-
Times in server time, local time, or both.
When the calendar is missing
Some brokers do not provide the economic calendar, and right after start-up it may not be loaded yet. In that case News Flat shows CALENDAR UNAVAILABLE and sends an alert. It does not close anything while it does not know the schedule. It tries again every 30 seconds and tells you when the calendar is back.
Important
-
MT5 does not let one program stop another program from sending orders. In the closing modes, News Flat closes a position as soon as it appears. Spread and commission are paid on these positions. If another EA keeps opening trades inside windows, turn that EA off for the release.
-
AutoTrading must be on for the closing modes. If it is off, the panel says so and News Flat only shows the windows.
-
News Flat does not send orders while the market of a symbol is closed.
-
The calendar comes from MetaTrader and your broker. Release times can move, and some releases have no exact time; those are not used.
-
Avoiding releases is a choice you make. News Flat does not make a strategy profitable and does not promise better results. If your account rules forbid trading around news, check those rules and set the window with a margin.
Strategy Tester
Calendar functions do not work in the Strategy Tester. In the tester, News Flat uses test releases at times you set (default 12:30 and 14:00 server time on weekdays). It also opens small trades with a stop loss and a take profit outside the windows. This path exists for Market validation and for checking how News Flat works. It is not a trading strategy, and tester results say nothing about trading.
Set "Tester trade mode" to "Showcase" to also open one trade inside each window. In the visual tester you can watch News Flat close it.
Recommended use
-
Attach News Flat to one chart per symbol you trade, or to one chart with "All positions on the account".
-
Start with "Show and notify only" for a few days and compare the panel with the Calendar tab of your terminal. Then choose a closing mode.
Inputs (short)
Importance (high, or high and medium) · minutes before and after · ignore words · chart symbol or all positions · own symbol and currency maps · extra currencies · mode · delete pending orders · magic numbers to leave alone · server/local/both times · band colours and strength · alerts and push · panel position, font and list rows · calendar refresh · tester mode and test times.
Questions and bug reports: please send a private message on MQL5, with the Experts journal lines if possible.
