Click or drag to resize

MarketEmulatorSettings Class

Settings of exchange emulator.
Inheritance Hierarchy

Namespace:  StockSharp.Algo.Testing
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: (4.4.17)
public class MarketEmulatorSettings : NotifiableObject, 

The MarketEmulatorSettings type exposes the following members.

Public methodMarketEmulatorSettings
Initializes a new instance of the MarketEmulatorSettings.
Public propertyBufferTime
Responses shall be sent in intervals by whole package. The network delay and buffered operation of exchange are emulated. The default is 0 ms.
Public propertyCheckMoney
Check money balance.
Public propertyCheckShortable
Can have short positions.
Public propertyCheckTradingState
Check trading state.
Public propertyConvertTime
To convert time for orders and trades into exchange time. By default, it is disabled.
Public propertyDepthExpirationTime
The maximal time, during which the order book is in the emulator, if no renewal during this time, the order book is deleted, This feature may be used to remove old order books if the are holes in data. By default is equal to 1 day.
Public propertyFailing
The percentage value of new orders registration error. The value may be from 0 (not a single error) to 100. By default is Off.
Public propertyIncreaseDepthVolume
To add the additional volume into order book at registering orders with greater volume. By default, it is enabled.
Public propertyInitialOrderId
The number, starting at which the emulator will generate identifiers for orders Id.
Public propertyInitialTradeId
The number, starting at which the emulator will generate identifiers fir trades Id.
Public propertyInitialTransactionId
The number, starting at which the emulator will generate numbers for order trades TransactionId.
Public propertyIsSupportAtomicReRegister
Gets a value indicating whether the re-registration orders as a single transaction. By default is enabled.
Public propertyLatency
The minimal value of the registered orders delay. By default, it is Zero, which means instant adoption of registered orders by exchange.
Public propertyMatchOnTouch
At emulation of clearing by trades, to perform clearing of orders, when trade price touches the order price (is equal to order price), rather than only when the trade price is better than order price. Is On by default (optimistic scenario).
Public propertyMaxDepth
The maximal depth of order book, which will be generated from ticks. It used, if there is no order book history. By default equals to 5.
Public propertyPortfolioRecalcInterval
The interval for recalculation of data on portfolios. If interval equals Zero, recalculation is not performed.
Public propertyPriceLimitOffset
The price shift from the previous trade, determining boundaries of maximal and minimal prices for the next session. Used only if there is no saved information Level1ChangeMessage. By default, it equals to 40%.
Public propertySpreadSize
The size of spread in price increments. It used at determination of spread for generation of order book from tick trades. By default equals to 2.
Public propertyTimeZone
Information about the time zone where the exchange is located.
Public propertyVolumeMultiplier
The number of volume increments, at which the order exceeds the tick trade. It used at testing on tick trades. By default equals to 2.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
To load the state of paper trading parameters.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyChanged (Inherited from NotifiableObject.)
Protected methodNotifyChanging (Inherited from NotifiableObject.)
Public methodNotifyPropertyChanged (Inherited from NotifiableObject.)
Public methodSave
To save the state of paper trading parameters.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public eventPropertyChanged (Inherited from NotifiableObject.)
Public eventPropertyChanging (Inherited from NotifiableObject.)
See Also