Example A6: Avoiding high impact calendar events
This is not a ready-to-use trading strategy. A trading strategy requires adjustment to the timeframe and symbol, along with thorough backtesting. The example is intended as a foundation for your own custom strategy and to help you get familiar with the Expert Advisor Builder web application. To import and use an example, please follow the instructions provided here.
Description
This example illustrates defensive news trading by avoiding high-impact events rather than trading them. The signal inversion feature reverses the logic, generating entry signals only during calm periods without major news. The extended 2-hour buffer before and after events ensures complete avoidance of news-related volatility.
The MACD crossing system provides the primary entry signals during these quiet periods. The ATR-based stop loss and trailing system adapt to lower volatility conditions typical of non-news periods. This approach suits conservative traders who prefer predictable market conditions over potentially profitable but risky news events.
By combining technical analysis with news filtering, this strategy captures steady trends while avoiding unpredictable spikes. The visual signal lines help traders see exactly when the system blocks trades due to upcoming events, providing transparency in the decision-making process.
Recreate the Example
You can either import this example directly or set it up manually. To manually replicate the trading module, make sure a newly added module includes the following key settings and that the professional mode is activated:
Trade Basics
- Operation type = Long
Signal Generation - Indicators (ATR)
- Signal in use = On
- Signal used for = Forward
- Selected indicator = ATR
- Drawing in chart = On
- Drawing slot = 1
- Forward adjustment = 2.50
Signal Generation - Indicators (MACD Main line)
- Signal in use = On
- Signal used for = Entry
- Selected indicator = MACD
- Line index = Main line
- Draw in chart = On
- Drawing slot = 2
Signal Generation - Indicators (MACD Signal line)
- Signal in use = On
- Signal used for = Entry
- Selected indicator = MACD
- Line index = Signal line
- Draw in chart = On
- Drawing slot = 3
Signal Generation - Indicator Combinations (MACD Main line & MACD Signal line)
- Signal in use = On
- Signal used for = Entry
- Input indicator 1 = MACD (Main line)
- Input indicator 2 = MACD (Signal line)
- Value relation = Value x cross value x
Signal Generation - News
- Signal in use = On
- Signal used for = Entry
- Signal visualization = On
- Draw table with upcoming events = Off
- Signal inversion = On
- Pre event signal time = 7200
- Post event signal time = 7200
- Signals for ALL regions = On
- Signals for AUD region = On
- Signals for BRL region = On
- Signals for CAD region = On
- Signals for CHF region = On
- Signals for CNY region = On
- Signals for EUR region = On
- Signals for GBP region = On
- Signals for HKD region = On
- Signals for INR region = On
- Signals for JPY region = On
- Signals for KRW region = On
- Signals for MXN region = On
- Signals for NOK region = On
- Signals for NZD region = On
- Signals for SEK region = On
- Signals for SGD region = On
- Signals for USD region = On
- Signals for ZAR region = On
- Signals for undefined importance = Off
- Signals for low importance = Off
- Signals for moderate importance = Off
- Signals for high importance = On
Initial Stop Loss
- Selection = Indicator value
- Used indicator = ATR
Stop Loss Trailing - Indicator value
- Activation position = 0
- Type = Indicator value
- Used indicator = ATR
Initial Take Profit
- Selection = Risk ratio
- Risk ratio = 1.40
Screenshots
