Table of Contents

Class LevelQuotingStrategy

Namespace
StockSharp.Algo.Strategies.Quoting
Assembly
StockSharp.Algo.dll

The quoting by specified level in the order book.

public class LevelQuotingStrategy : QuotingStrategy, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, IDisposable, ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, ISecurityProvider, ISecurityMessageProvider, ITransactionProvider, IPositionProvider, IPortfolioProvider, IScheduledTask
Inheritance
LevelQuotingStrategy
Implements
IPersistable
INotifyPropertyChangedEx
ICloneable<Strategy>
Inherited Members
Extension Methods

Constructors

LevelQuotingStrategy()

Initializes a new instance of the LevelQuotingStrategy.

public LevelQuotingStrategy()

LevelQuotingStrategy(Sides, decimal)

Initializes a new instance of the LevelQuotingStrategy.

public LevelQuotingStrategy(Sides quotingDirection, decimal quotingVolume)

Parameters

quotingDirection Sides

Quoting direction.

quotingVolume decimal

Total quoting volume.

Properties

Level

The level in the order book. It specifies the number of quotes to the deep from the best one. By default, it is equal to {0:0} which means quoting by the best quote.

public Range<int> Level { get; set; }

Property Value

Range<int>

OwnLevel

To create your own price level in the order book, if there is no quote with necessary price yet. The default is disabled.

public bool OwnLevel { get; set; }

Property Value

bool

Methods

NeedQuoting(DateTimeOffset, decimal?, decimal?, decimal)

Should the order be quoted.

protected override decimal? NeedQuoting(DateTimeOffset currentTime, decimal? currentPrice, decimal? currentVolume, decimal newVolume)

Parameters

currentTime DateTimeOffset

Current time.

currentPrice decimal?

The current price. If the value is equal to null then the order is not registered yet.

currentVolume decimal?

The current volume. If the value is equal to null then the order is not registered yet.

newVolume decimal

New volume.

Returns

decimal?

The price at which the order will be registered. If the value is equal to null then the quoting is not required.