Table of Contents

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
IPersistable
INotifyPropertyChangedEx
ICloneable<Strategy>
Inherited Members
Extension Methods

Constructors

TakeProfitStopLossStrategy(TakeProfitStrategy, StopLossStrategy)

Initializes a new instance of the TakeProfitStopLossStrategy.

public TakeProfitStopLossStrategy(TakeProfitStrategy takeProfit, StopLossStrategy stopLoss)

Parameters

takeProfit TakeProfitStrategy

Profit protection strategy.

stopLoss StopLossStrategy

The loss protection strategy.

Properties

ProtectivePrice

Protected position price.

public decimal ProtectivePrice { get; }

Property Value

decimal

ProtectiveSide

Protected position side.

public Sides ProtectiveSide { get; }

Property Value

Sides

ProtectiveVolume

Protected volume.

public decimal ProtectiveVolume { get; set; }

Property Value

decimal

Events

ProtectiveVolumeChanged

The protected volume change event.

public event Action ProtectiveVolumeChanged

Event Type

Action