News Straddle Panel MT4
- Utilities
- Version: 1.0
- Activations: 5
A MetaTrader 4 panel for news trading: pick a calendar event or your own time, check the suggested orders and place a straddle by button or automatically before the release.
What it does
News Straddle Panel prepares and manages a straddle around a scheduled release: a Buy Stop above and a Sell Stop below the price. You choose the event and check the values. The panel places the orders when you press a button, or by itself a few seconds before the release. After the fill it manages the trade.
Setup (MetaTrader 4 has no economic calendar)
The panel lists events from two sources, and you can always add your own time. Each source is optional.
- ForexFactory weekly calendar (recommended). In MetaTrader 4 open Tools > Options > Expert Advisors, tick "Allow WebRequest for listed URL" and add https://nfs.faireconomy.media. The panel then downloads the calendar of the current week, at most once every 4 hours. If the address is not allowed, the second status line of the panel says so. ForexFactory publishes one week at a time, so events of the next week appear when that week's calendar is out.
- The MT5 version on the same computer. If News Straddle Panel runs in MetaTrader 5, it writes the coming events of all currencies to the common Files folder of all terminals. The MT4 panel reads them from there automatically.
- Custom event: enter a date and time (your local time) in the panel and press Set event. This works for any release, also without the sources above.
How to use
- Pick the event: the coming releases for the currencies of the chart symbol (or currencies you choose), with a minimum importance (high, medium, low). Browse them with the arrows. The panel shows the local time, currency and importance, plus a countdown that turns orange in the last five minutes.
- Check the proposal: Suggest fills in the buy and sell distance, Stop Loss, Take Profit, break-even and trailing values in points, from a percent of the daily ATR, which you set in the inputs. It also fills in the lot for your risk percent at the stop. Every value can be changed in the panel. Type a lot and the panel shows the risk it means; type a risk and it computes the lot. The entry levels are drawn on the chart and can be dragged.
- Place the orders. MANUAL: BUY STOP, SELL STOP or STRADDLE (both) place the orders at once. AUTO: the panel places both orders itself, the set number of seconds before the selected release (default 30). If the trade server refuses, it tries again every 2 seconds. A maximum spread can stop the placement. AUTO covers the selected event only: afterwards the panel switches back to MANUAL, so it never trades the next event of the list unless you select it (an input keeps AUTO on for the following events). Unfilled orders are deleted a set number of seconds after the release. DELETE ORDERS and CLOSE ALL are always available.
- After the fill: one cancels the other (the second order is deleted at once; this can be switched off). If both sides filled before the delete, the later trade is closed. Break-even at a set profit, with a small locked profit. Five trailing modes: Off, Steps, Distance, ATR M1, M1 bar. The trade is closed after a set number of minutes. Closing is retried with a fresh price after a requote or "off quotes".
Key features
- The panel values, the mode and the selected event are kept for each chart, also after a timeframe change or a terminal restart.
- Strategy Tester: the tester has no calendar and allows no web requests, and nobody can press buttons there. The panel therefore trades every listed event automatically with the suggested values. Events come from a CSV file of past releases (if present in the common Files folder) or from a built-in US Nonfarm Payrolls schedule.
Inputs
- Calendar: ForexFactory on/off, CSV of the MT5 version on/off, currencies, minimum importance, days ahead, tester CSV file, tester server GMT offset and daylight saving rule.
- Suggested values (% of the daily ATR): entry distance, Stop Loss, Take Profit, break-even, trailing start, step and lock, risk percent.
- Defaults: mode at start, seconds before, Auto for the following events, expiry, time limit, trailing mode, ATR multiplier, one cancels the other, maximum spread.
- Panel: position, dark or light.
- Other: magic number, slippage for closing, automatic trading in the tester.
Platform, symbols and timeframes
- MetaTrader 4 utility (Expert Advisor). A MetaTrader 5 version is available as News Straddle Panel MT5. MetaTrader 4 has no stop-limit orders, so the MT4 panel uses stop orders only.
Notes and limits
- Not every release is worth a straddle. In our tests with real tick data on EURUSD, GBPUSD, USDJPY and XAUUSD (2019-2026), the US Nonfarm Payrolls release gave the most consistent moves. FOMC decisions, CPI and PMI releases often reversed the first spike. The panel does not choose for you. Test your events on a demo account first.
- Spreads widen and stop orders slip at news releases on every broker. Some brokers and prop firms limit or forbid trading around news. Check their rules.
- No DLL. The only web request is the ForexFactory calendar, and only when you allow it.
Questions and suggestions are welcome in the comments or by private message on MQL5.
