Example K2: Signals used for opening and closing trades
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 uses MACD crossings for both entry and exit signals, creating a complete trading system. Opposite crossings close existing positions, ensuring trades exit when momentum reverses. This symmetrical approach maintains consistent logic for both trade directions.
Signal-based exits differ from stop loss/take profit exits by responding to market conditions rather than fixed levels. This adaptive approach can capture larger moves in strong trends while exiting quickly when conditions change. The system remains fully automated without manual intervention.
Complete signal systems teach full trade lifecycle management. Understanding both entry and exit signal logic creates more coherent strategies than mixing different methodologies.
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 (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
Signal Generation - Indicator Combinations (MACD Main line & MACD Signal line)
- Signal in use = On
- Signal used for = Exit
- Input indicator 1 = MACD (Main line)
- Input indicator 2 = MACD (Signal line)
- Value relation = Value 2 cross value 1
Screenshots
