Skip to main content
Version: 3.0

Example I2: One indicator line with time exclusion used

caution

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 adds time exclusion to indicator signals, blocking signals during specific hours. The 22:00-09:00 exclusion removes overnight and early morning periods when spreads may be wider and liquidity lower. This temporal filtering improves signal quality by focusing on optimal trading hours.

Time exclusion differs from the timing component by completely disabling signal processing during excluded periods. Even if perfect indicator conditions occur, no signals are generated. This hard filter ensures strategies only operate during intended market sessions.

The combination of technical indicators and time filtering creates more robust strategies. By eliminating unfavorable periods, the remaining signals have higher success probability due to better market conditions.

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 signals only drawn
  • General signal visualization = On

Signal Generation - Indicators - SMA

  • Signal in use = On
  • Signal used for = Entry
  • Selected indicator = SMA
  • Gradient condition = Cross Limit 1
  • Gradient limit 1 = 0.00000000
  • Draw in chart = On
  • Drawing slot = 1
  • Exclusion time range = 22:00:00-09:00:00

Screenshots

Example I2: One indicator line with time exclusion used.webp