Skip to main content
Version: 3.0

Example E1: Two trades with a pending order

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 trade splitting with pending orders. The system opens two positions from each signal - 100% volume immediately and another 50% at 80 % risk. This graduated entry approach allows adding to winning positions while limiting exposure on losing trades.

The pending order uses stop order mechanics with Standard Deviation-based pricing. If price moves to 80 % risk, the additional position triggers automatically. Both positions share the same stop loss and take profit logic, simplifying management despite multiple entries.

Position scaling represents professional money management, allowing traders to maximize profitable opportunities while controlling risk. This approach captures more profit from strong moves while maintaining reasonable exposure on failed signals.

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
  • Pending Order Settings
  • Mode = Stop
  • Price calculation method = Indicator value
  • Used indicator = STD
  • Expiration = 75

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 (MACD Main line)

  • Signal in use = On
  • Signal used for = Entry
  • Selected indicator = MACD
  • Line index = Main line
  • Draw in chart = On
  • Drawing slot = 1

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 = 2

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 1 cross value 2

Initial Stop Loss

  • Selection = Indicator
  • Used indicator = STD

Initial Take Profit

  • Selection = Risk ratio
  • Risk ratio = 1.40

Trade Splitting

  • Open volume = 100
  • Open position = 80
  • Close position = 0

Screenshots

Example E1: Two trades with a pending order.webp