Close Trade

<< <%SKIN-STRTRANS-SYNTOC%> >>

Navigation:  Strategy Workspace >

Close Trade

Close Trade conditions are created in the same way as Open Trade conditions.

 

clip0160

 

 

Example: Open trade outside Bollinger Bands, close trade in the middle

 

We are going to modify the example from the Indicator topic by creating closing conditions. We have already created conditions to open a trade outside the Bollinger Bands:

 

clip0158

 

The middle of the Bollinger Bands is actually the Moving Average with the same period as the Bollinger Bands. We will close the trade when price crosses the Moving Average.

 

clip0159

 

Here is a visual backtest:

 

clip0157

 

To prevent multiple trades from opening within a few ticks, check the Maximum Open Trades.