Class TakeProfitStrategy
- Namespace
- StockSharp.Algo.Strategies.Protective
- Assembly
- StockSharp.Algo.dll
Profit protection strategy.
[Obsolete("Use ProtectiveController class.")]
public class TakeProfitStrategy : ProtectiveStrategy, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, IDisposable, ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, ISecurityProvider, ISecurityMessageProvider, ITransactionProvider, IPositionProvider, IPortfolioProvider, IScheduledTask, ICustomTypeDescriptor, IProtectiveStrategy
- Inheritance
-
TakeProfitStrategy
- Implements
- Inherited Members
- Extension Methods
-
MarketRuleHelper.WhenPartiallyFinishedCandles<TCandle>(ISubscriptionProvider, Subscription, decimal)
Constructors
TakeProfitStrategy(MyTrade, Unit)
To create a strategy TakeProfitStrategy.
public TakeProfitStrategy(MyTrade trade, Unit protectiveLevel)
Parameters
tradeMyTradeProtected position.
protectiveLevelUnitThe protective level. If the Type type is equal to Limit, then the given price is specified. Otherwise, the shift value from the protected trade
tradeis specified.
TakeProfitStrategy(Sides, decimal, decimal, Unit)
To create a strategy TakeProfitStrategy.
public TakeProfitStrategy(Sides protectiveSide, decimal protectivePrice, decimal protectiveVolume, Unit protectiveLevel)
Parameters
protectiveSideSidesProtected position side.
protectivePricedecimalProtected position price.
protectiveVolumedecimalThe protected position volume.
protectiveLevelUnitThe protective level. If the Type type is equal to Limit, then the given price is specified. Otherwise, the shift value from
protectivePriceis specified.