HistoryEmulationConnector

StockSharp.Algo.Testing

Die Emulationsverbindung verwendet historische Daten und/oder wird gelegentlich erzeugt.

Erbt von: BaseEmulationConnector

Konstruktoren

HistoryEmulationConnector
public HistoryEmulationConnector(IMessageAdapter innerAdapter, bool ownInnerAdapter, IMessageChannel inChannel, ISecurityProvider securityProvider, IPortfolioProvider portfolioProvider, IExchangeInfoProvider exchangeInfoProvider)
historyEmulationConnector = HistoryEmulationConnector(innerAdapter, ownInnerAdapter, inChannel, securityProvider, portfolioProvider, exchangeInfoProvider)

Initialisiert eine neue Instanz von HistoryEmulationConnector.

innerAdapter
Unterliegender Adapter.
ownInnerAdapter
Kontrolllebensdauer.
inChannel
Kanal für eingehende Nachrichten.
securityProvider
Der Anbieter von Informationen über Instrumente.
portfolioProvider
Das Portfolio, das zur Registrierung von Aufträgen verwendet wird. Wird der Wert nicht angegeben, wird das Portfolio mit dem Standardnamen Simulator erstellt.
exchangeInfoProvider
Börsen und Handelsbörsen Anbieter.
HistoryEmulationConnector
public HistoryEmulationConnector(ISecurityProvider securityProvider, IPortfolioProvider portfolioProvider, IExchangeInfoProvider exchangeInfoProvider, IStorageRegistry storageRegistry)
historyEmulationConnector = HistoryEmulationConnector(securityProvider, portfolioProvider, exchangeInfoProvider, storageRegistry)

Initialisiert eine neue Instanz von HistoryEmulationConnector.

securityProvider
Der Anbieter von Informationen über Instrumente.
portfolioProvider
Das Portfolio, das zur Registrierung von Aufträgen verwendet wird. Wird der Wert nicht angegeben, wird das Portfolio mit dem Standardnamen Simulator erstellt.
storageRegistry
Marktdatenspeicherung.
exchangeInfoProvider
Börsen und Handelsbörsen Anbieter.
HistoryEmulationConnector
public HistoryEmulationConnector(ISecurityProvider securityProvider)
historyEmulationConnector = HistoryEmulationConnector(securityProvider)

Initialisiert eine neue Instanz von HistoryEmulationConnector.

securityProvider
Der Anbieter von Informationen über Instrumente.
HistoryEmulationConnector
public HistoryEmulationConnector(ISecurityProvider securityProvider, IEnumerable<Portfolio> portfolios)
historyEmulationConnector = HistoryEmulationConnector(securityProvider, portfolios)

Initialisiert eine neue Instanz von HistoryEmulationConnector.

securityProvider
Der Anbieter von Informationen über Instrumente.
portfolios
Portfolios, wird die Operation mit durchgeführt werden.
HistoryEmulationConnector
public HistoryEmulationConnector(IEnumerable<Security> securities, IEnumerable<Portfolio> portfolios, IStorageRegistry storageRegistry)
historyEmulationConnector = HistoryEmulationConnector(securities, portfolios, storageRegistry)

Initialisiert eine neue Instanz von HistoryEmulationConnector.

securities
Instrumente, wird die Operation mit durchgeführt werden.
portfolios
Portfolios, wird die Operation mit durchgeführt werden.
storageRegistry
Marktdatenspeicherung.
HistoryEmulationConnector
public HistoryEmulationConnector(IEnumerable<Security> securities, IEnumerable<Portfolio> portfolios)
historyEmulationConnector = HistoryEmulationConnector(securities, portfolios)

Initialisiert eine neue Instanz von HistoryEmulationConnector.

securities
Instrumente, die über das SecurityReceived-Event gesendet werden.
portfolios
Portfolios, die über die PortfolioReceived Veranstaltung gesendet werden.
HistoryEmulationConnector
public HistoryEmulationConnector(ISecurityProvider securityProvider, IPortfolioProvider portfolioProvider, IStorageRegistry storageRegistry)
historyEmulationConnector = HistoryEmulationConnector(securityProvider, portfolioProvider, storageRegistry)

Initialisiert eine neue Instanz von HistoryEmulationConnector.

securityProvider
Der Anbieter von Informationen über Instrumente.
portfolioProvider
Das Portfolio, das zur Registrierung von Aufträgen verwendet wird. Wird der Wert nicht angegeben, wird das Portfolio mit dem Standardnamen Simulator erstellt.
storageRegistry
Marktdatenspeicherung.
HistoryEmulationConnector
public HistoryEmulationConnector(ISecurityProvider securityProvider, IPortfolioProvider portfolioProvider, IExchangeInfoProvider exchangeInfoProvider)
historyEmulationConnector = HistoryEmulationConnector(securityProvider, portfolioProvider, exchangeInfoProvider)

Initialisiert eine neue Instanz von HistoryEmulationConnector.

securityProvider
Der Anbieter von Informationen über Instrumente.
portfolioProvider
Das Portfolio, das zur Registrierung von Aufträgen verwendet wird. Wird der Wert nicht angegeben, wird das Portfolio mit dem Standardnamen Simulator erstellt.
exchangeInfoProvider
Börsen und Handelsbörsen Anbieter.

Eigenschaften

CommissionRules
public IEnumerable<ICommissionRule> CommissionRules { get; set; }
value = historyEmulationConnector.CommissionRules
historyEmulationConnector.CommissionRules = value

Vorschriften der Kommission.

EmulationSettings
public MarketEmulatorSettings EmulationSettings { get; }
value = historyEmulationConnector.EmulationSettings

Einstellungen

HistoryMessageAdapter
public HistoryMessageAdapter HistoryMessageAdapter { get; }
value = historyEmulationConnector.HistoryMessageAdapter

Der Adapter, empfangende Nachrichten bilden den Speicher IStorageRegistry.

IsFinished
public bool IsFinished { get; private set; }
value = historyEmulationConnector.IsFinished
historyEmulationConnector.IsFinished = value

Hat der Emulator seinen Betrieb wegen des Endes der Daten beendet oder wurde er durch die Disconnect-Methode unterbrochen?

MarketTimeChangedInterval
public override TimeSpan MarketTimeChangedInterval { set; }
historyEmulationConnector.MarketTimeChangedInterval = value

Das Intervall der Nachricht TimeMessage Generation.

MaxMessageCount
public int MaxMessageCount { get; set; }
value = historyEmulationConnector.MaxMessageCount
historyEmulationConnector.MaxMessageCount = value

Maximale Anzahl von Nachrichten, die während des Backtestings verarbeitet werden. Negativer Wert bedeutet, dass die Option ignoriert wird.

RiskManager
public override IRiskManager RiskManager { get; }
value = historyEmulationConnector.RiskManager

Risikomanager.

State
public ChannelStates State { get; private set; }
value = historyEmulationConnector.State
historyEmulationConnector.State = value

Der Emulatorzustand.

StopOnSubscriptionError
public bool StopOnSubscriptionError { get; set; }
value = historyEmulationConnector.StopOnSubscriptionError
historyEmulationConnector.StopOnSubscriptionError = value

Rufen Sie Disconnect an, wenn ein Abonnement fehlgeschlagen ist.

SupportSnapshots
public override bool SupportSnapshots { get; }
value = historyEmulationConnector.SupportSnapshots

Verwenden Sie SnapshotHolderMessageAdapter.

Methoden

ClearCacheAsync
public override ValueTask ClearCacheAsync(CancellationToken cancellationToken)
result = historyEmulationConnector.ClearCacheAsync(cancellationToken)

Cache freigeben.

DisposeManaged
protected override void DisposeManaged()
historyEmulationConnector.DisposeManaged()

Ressourcen freigeben.

OnConnectAsync
protected override ValueTask OnConnectAsync(CancellationToken cancellationToken)
result = historyEmulationConnector.OnConnectAsync(cancellationToken)

Verbinden Sie sich mit dem Handelssystem.

OnDisconnectAsync
protected override ValueTask OnDisconnectAsync(CancellationToken cancellationToken)
result = historyEmulationConnector.OnDisconnectAsync(cancellationToken)

Trennen Sie sich vom Handelssystem.

OnProcessMessage
protected override ValueTask OnProcessMessage(Message message, CancellationToken cancellationToken)
result = historyEmulationConnector.OnProcessMessage(message, cancellationToken)

Prozessmeldung.

message
Nachricht.
cancellationToken
CancellationToken
RaiseSubscriptionFailed
protected override void RaiseSubscriptionFailed(Subscription subscription, Exception error, bool isSubscribe)
historyEmulationConnector.RaiseSubscriptionFailed(subscription, error, isSubscribe)
StartAsync
public ValueTask StartAsync(CancellationToken cancellationToken)
result = historyEmulationConnector.StartAsync(cancellationToken)

Um die Emulation zu starten.

SuspendAsync
public ValueTask SuspendAsync(CancellationToken cancellationToken)
result = historyEmulationConnector.SuspendAsync(cancellationToken)

Um die Emulation auszusetzen.

Ereignisse

ProgressChanged
public event Action<int> ProgressChanged
historyEmulationConnector.ProgressChanged += handler

Fortschritt verändertes Ereignis.

StateChanged
public event Action StateChanged
historyEmulationConnector.StateChanged += handler

Das Ereignis auf dem Emulatorzustand ändert den Zustand.

StateChanged2
public event Action<ChannelStates> StateChanged2
historyEmulationConnector.StateChanged2 += handler

Das Ereignis auf dem Emulatorzustand ändert den Zustand.