Class TakeProfitStopLossStrategy
- Namespace
- StockSharp.Algo.Strategies.Protective
- Assembly
- StockSharp.Algo.dll
The strategy protecting trades together by strategies TakeProfitStrategy and StopLossStrategy.
[Obsolete("Use ProtectiveController class.")]
public class TakeProfitStopLossStrategy : BasketStrategy, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, IDisposable, ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, ISecurityProvider, ISecurityMessageProvider, ITransactionProvider, IPositionProvider, IPortfolioProvider, IScheduledTask, IProtectiveStrategy
- Inheritance
-
TakeProfitStopLossStrategy
- Implements
-
IPersistableINotifyPropertyChangedExICloneable<Strategy>
- Inherited Members
- Extension Methods
Constructors
TakeProfitStopLossStrategy(TakeProfitStrategy, StopLossStrategy)
Initializes a new instance of the TakeProfitStopLossStrategy.
public TakeProfitStopLossStrategy(TakeProfitStrategy takeProfit, StopLossStrategy stopLoss)
Parameters
takeProfit
TakeProfitStrategyProfit protection strategy.
stopLoss
StopLossStrategyThe loss protection strategy.
Properties
ProtectivePrice
Protected position price.
public decimal ProtectivePrice { get; }
Property Value
ProtectiveSide
Protected position side.
public Sides ProtectiveSide { get; }
Property Value
ProtectiveVolume
Protected volume.
public decimal ProtectiveVolume { get; set; }
Property Value
Events
ProtectiveVolumeChanged
The protected volume change event.
public event Action ProtectiveVolumeChanged