Click or drag to resize

TakeProfitStrategy Constructor (MyTrade, Unit)

To create a strategy TakeProfitStrategy.

Namespace:  StockSharp.Algo.Strategies.Protective
Assembly:  StockSharp.Algo.Strategies (in StockSharp.Algo.Strategies.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public TakeProfitStrategy(
	MyTrade trade,
	Unit protectiveLevel
)

Parameters

trade
Type: StockSharp.BusinessEntitiesMyTrade
Protected position.
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 the protected trade trade is specified.
See Also