Class TakeProfitStopLossStrategy
Стратегия, защищающая сделки одновременно стратегиями TakeProfitStrategy и 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 TakeProfitStopLossStrategy : BasketStrategy, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, ISecurityProvider, ICandleManager, ICandleSource<Candle>, IDisposable, ITransactionProvider, IPositionProvider, IPortfolioProvider, IScheduledTask, IProtectiveStrategy
Constructors
TakeProfitStopLossStrategy(TakeProfitStrategy, StopLossStrategy)
Создать TakeProfitStopLossStrategy.
Declaration
public TakeProfitStopLossStrategy(TakeProfitStrategy takeProfit, StopLossStrategy stopLoss)
Parameters
Type | Name | Description |
---|---|---|
TakeProfitStrategy | takeProfit | Стратегия защиты прибыли. |
StopLossStrategy | stopLoss | Стратегия защиты убытка. |
Properties
ProtectivePrice
Цена защищаемой позиции.
Declaration
public Decimal ProtectivePrice { get; }
Property Value
Type | Description |
---|---|
Decimal |
ProtectiveSide
Направление защищаемой позиции.
Declaration
public Sides ProtectiveSide { get; }
Property Value
Type | Description |
---|---|
Sides |
ProtectiveVolume
Защищаемый объем.
Declaration
public Decimal ProtectiveVolume { get; set; }
Property Value
Type | Description |
---|---|
Decimal |
Events
ProtectiveVolumeChanged
Событие об изменении защищаемого объема.
Declaration
public event Action ProtectiveVolumeChanged
Event Type
Type | Description |
---|---|
Action |
Implements
Ecng.Serialization.IPersistable
Ecng.ComponentModel.INotifyPropertyChangedEx
Ecng.Common.ICloneable<>