Class StopLossStrategy
Стратегия защиты убытка.
Inheritance
StopLossStrategy
Implements
Ecng.Serialization.IPersistable
Ecng.ComponentModel.INotifyPropertyChangedEx
Ecng.Common.ICloneable<Strategy>
Inherited Members
Namespace: StockSharp.Algo.Strategies.Protective
Assembly: StockSharp.Algo.Strategies.dll
Syntax
public class StopLossStrategy : ProtectiveStrategy, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, ISecurityProvider, ICandleManager, ICandleSource<Candle>, IDisposable, ITransactionProvider, IPositionProvider, IPortfolioProvider, IScheduledTask, IProtectiveStrategy
Constructors
StopLossStrategy(MyTrade, Unit)
Создать стратегию StopLossStrategy.
Declaration
public StopLossStrategy(MyTrade trade, Unit protectiveLevel)
Parameters
Type | Name | Description |
---|---|---|
MyTrade | trade | Защищаемая позиция. |
Unit | protectiveLevel | Защитный уровень. Если тип Type равен Limit, то задается конкретная цена. Иначе, указывается величина сдвига от защищаемой сделки |
StopLossStrategy(Sides, Decimal, Decimal, Unit)
Создать стратегию StopLossStrategy.
Declaration
public StopLossStrategy(Sides protectiveSide, Decimal protectivePrice, Decimal protectiveVolume, Unit protectiveLevel)
Parameters
Type | Name | Description |
---|---|---|
Sides | protectiveSide | Направление защищаемой позиции. |
Decimal | protectivePrice | Цена защищаемой позиции. |
Decimal | protectiveVolume | Объем защищаемой позиции. |
Unit | protectiveLevel | Защитный уровень. Если тип Type равен Limit, то задается конкретная цена. Иначе, указывается величина сдвига от |
Implements
Ecng.Serialization.IPersistable
Ecng.ComponentModel.INotifyPropertyChangedEx
Ecng.Common.ICloneable<>