Click or drag to resize

TakeProfitStrategy Constructor (Sides, Decimal, Decimal, Unit)

To create a strategy TakeProfitStrategy.

Namespace:  StockSharp.Algo.Strategies.Protective
Assembly:  StockSharp.Algo.Strategies (in StockSharp.Algo.Strategies.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public TakeProfitStrategy(
	Sides protectiveSide,
	decimal protectivePrice,
	decimal protectiveVolume,
	Unit protectiveLevel
)

Parameters

protectiveSide
Type: StockSharp.MessagesSides
Protected position side.
protectivePrice
Type: SystemDecimal
Protected position price.
protectiveVolume
Type: SystemDecimal
The protected position volume.
protectiveLevel
Type: StockSharp.MessagesUnit
The protective level. If the Type type is equal to Limit, then the given price is specified. Otherwise, the shift value from protectivePrice is specified.
See Also