OPEN-SOURCE SCRIPT

Exit Strategy with 3 Trailing Stops

This strategy allows the user to define three trailing stops which are intended to exit a long position in incremental steps. There is no logic for opening a position, so the strategy settings require the manual input of the bar index number of the candle that is to be used for the long entry order. This number can be found in the data window, under the exit strategy value "bar index". The value will change as you mouse over the candle that you wish to use for the entry.

At each trailing stop, the user can define the percentage of the position that the strategy should close. The third and final value is intended to close the entire position, so it is set to 100.

Feragatname