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