Skip to main content
Version: 3.0

Example K3: Signal OR combination

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 demonstrates OR logic for signal combination, where any positive signal triggers trades. The two moving averages operate independently - either crossing generates valid signals. This inclusive approach increases signal frequency compared to AND logic requiring both.

OR logic suits diverse market conditions by allowing different indicators to capture various opportunity types. Fast SMA crossings catch quick moves while slower EMA crossings identify larger trends. The visual signals show which indicator triggered each trade.

Logical operators fundamentally change strategy behavior. Understanding OR versus AND logic helps traders design systems matching their trading philosophy and risk tolerance.

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 logic = Logical OR

Signal Generation - Indicators - STD

  • Signal in use = On
  • Signal used for = Forward
  • Selected indicator = STD
  • Draw in chart = Off
  • Forward adjustment = 3.50

Signal Generation - Indicators - SMA

  • Signal in use = On
  • Signal used for = Entry
  • Selected indicator = SMA
  • Period = 50
  • Gradient condition = Cross Limit 1
  • Gradient limit 1 = 0.00000000
  • Draw in chart = On
  • Drawing slot = 1

Signal Generation - Indicators - EMA

  • Signal in use = On
  • Signal used for = Entry
  • Selected indicator = EMA
  • Period = 100
  • Gradient condition = Cross Limit 1
  • Gradient limit 1 = 0.00000000
  • Draw in chart = On
  • Drawing slot = 2

Initial Stop Loss

  • Selection = Indicator
  • Used indicator = STD

Initial Take Profit

  • Selection = Risk ratio
  • Risk ratio = 1.40

Screenshots

Example K3: Signal OR combination.webp