Click or drag to resize

ProtectiveStrategy Constructor

Initialize ProtectiveStrategy.

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

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.
isUpTrend
Type: SystemBoolean
To track price increase or falling.
See Also