Class StopLossStrategy
- Namespace
- StockSharp.Algo.Strategies.Protective
- Assembly
- StockSharp.Algo.dll
The loss protection strategy.
[Obsolete("Use ProtectiveController class.")]
public class StopLossStrategy : ProtectiveStrategy, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, IDisposable, ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, ISecurityProvider, ISecurityMessageProvider, ITransactionProvider, IPositionProvider, IPortfolioProvider, IScheduledTask, IProtectiveStrategy
- Inheritance
-
StopLossStrategy
- Implements
-
IPersistableINotifyPropertyChangedExICloneable<Strategy>
- Inherited Members
- Extension Methods
Constructors
StopLossStrategy(MyTrade, Unit)
To create a strategy StopLossStrategy.
public StopLossStrategy(MyTrade trade, Unit protectiveLevel)
Parameters
trade
MyTradeProtected position.
protectiveLevel
UnitThe 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.
StopLossStrategy(Sides, decimal, decimal, Unit)
To create a strategy StopLossStrategy.
public StopLossStrategy(Sides protectiveSide, decimal protectivePrice, decimal protectiveVolume, Unit protectiveLevel)
Parameters
protectiveSide
SidesProtected position side.
protectivePrice
decimalProtected position price.
protectiveVolume
decimalThe protected position volume.
protectiveLevel
UnitThe protective level. If the Type type is equal to Limit, then the given price is specified. Otherwise, the shift value from
protectivePrice
is specified.