Class BestByPriceQuotingStrategy
Котирование по лучшей цене. Для данного котирования указывается отступ от лучшей цены BestPriceOffset, на который может уйти котируемая заявка.
Inheritance
Implements
Inherited Members
Namespace: StockSharp.Algo.Strategies.Quoting
Assembly: StockSharp.Algo.Strategies.dll
Syntax
public class BestByPriceQuotingStrategy : QuotingStrategy, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, ISecurityProvider, ICandleManager, ICandleSource<Candle>, IDisposable, ITransactionProvider, IPositionProvider, IPortfolioProvider, IScheduledTask
Constructors
BestByPriceQuotingStrategy()
Создать BestByPriceQuotingStrategy.
Declaration
public BestByPriceQuotingStrategy()
BestByPriceQuotingStrategy(Order, Unit)
Создать BestByPriceQuotingStrategy.
Declaration
public BestByPriceQuotingStrategy(Order order, Unit bestPriceOffset)
Parameters
Type | Name | Description |
---|---|---|
Order | order | Заявка, которую необходимо котировать. |
Unit | bestPriceOffset | Отступ от лучшей цены, на который может уйти котируемая заявка. |
BestByPriceQuotingStrategy(Sides, Decimal)
Создать BestByPriceQuotingStrategy.
Declaration
public BestByPriceQuotingStrategy(Sides quotingDirection, Decimal quotingVolume)
Parameters
Type | Name | Description |
---|---|---|
Sides | quotingDirection | Направление котирования. |
Decimal | quotingVolume | Объем, который необходимо скотировать. |
Properties
BestPriceOffset
Отступ от лучшей цены, на который может уйти котируемая заявка.
Declaration
public Unit BestPriceOffset { get; set; }
Property Value
Type | Description |
---|---|
Unit |
Methods
NeedQuoting(Nullable<Decimal>, Nullable<Decimal>, Decimal)
Нужно ли котировать заявку.
Declaration
protected override Nullable<Decimal> NeedQuoting(Nullable<Decimal> currentPrice, Nullable<Decimal> currentVolume, Decimal newVolume)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Decimal> | currentPrice | Текущая цена. Если значение равно null, то заявка пока не зарегистрирована. |
Nullable<Decimal> | currentVolume | Текущий объем. Если значение равно null, то заявка пока не зарегистрирована. |
Decimal | newVolume | Новый объем. |
Returns
Type | Description |
---|---|
Nullable<Decimal> | Цена, по которой будет выставлена заявка. Если значение равно null, то котировать не требуется. |