Definition
Generates a limit profit target order to exit a position. Profit target orders are real working orders submitted immediately to the market upon receiving an execution from an entry order.
Syntax
SetProfitTarget(double currency)
SetProfitTarget(CalculationMode mode, double value)
SetProfitTarget(string fromEntrySignal, CalculationMode mode, double value)
|
Parameters |
|
|
currency |
Sets the profit target amount in currency ($500 profit for example) |
|
mode |
CalculationMode.Percent (0.01 = 1%) CalculationMode.Price CalculationMode.Ticks |
|
value |
The value the profit target order is offset from the position entry price (exception is using .Price mode where 'value' will represent the actual price) |
|
fromEntrySignal |
The entry signal name. This ties the profit target exit to the entry and exits the position quantity represented by the actual entry. |
Examples
|
protected override void Initialize()
|
Tips (also see Overview)