News Straddle Panel MT5
- Utilities
- Version: 1.0
- Activations: 5
A MetaTrader 5 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.
How to use
- Pick the event: the panel lists the coming releases of the MetaTrader 5 economic calendar for the currencies of the chart symbol (or currencies you choose), with a minimum importance. 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. For a release that is not in the calendar, or any other moment, enter a date and time (your local time) and press Set event.
- 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. The stop and target levels are shown as dotted lines.
- 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 until the release. 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. You can use stop orders, or stop-limit orders that never fill worse than the limit (fast moves can be missed).
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.
- The coming events of all currencies are also written to the common Files folder. The MT4 version of the panel on the same computer can read them there.
- Strategy Tester: the tester has no calendar, 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. The visual tester shows the panel.
Inputs
- Calendar: 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, stop-limit orders, one cancels the other, maximum spread.
- Panel: position, dark or light.
- Other: magic number, automatic trading in the tester.
Platform, symbols and timeframes
- MetaTrader 5 utility (Expert Advisor). A MetaTrader 4 version is available as News Straddle Panel MT4. The MT5 panel can use stop-limit orders; the MT4 version uses stop orders only.
Notes and limits
- Not every release is worth a straddle. In our tests with real ticks 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 and no web requests.
Questions and suggestions are welcome in the comments or by private message on MQL5.
