IEmulationRandomizer

StockSharp.Algo.Testing

Provides random values for market emulation.

Métodos

NextSpreadStep
public int NextSpreadStep(int maxSpreadSize)
result = iEmulationRandomizer.NextSpreadStep(maxSpreadSize)

Gets next spread step multiplier for order book generation.

maxSpreadSize
Maximum spread size from settings.

Retorna: Spread step multiplier (1 to maxSpreadSize).

NextVolume
public decimal NextVolume()
result = iEmulationRandomizer.NextVolume()

Gets next random volume for synthetic order book generation.

Retorna: Random volume.

ShouldFail
public bool ShouldFail(double failingPercent)
result = iEmulationRandomizer.ShouldFail(failingPercent)

Determines whether operation should fail (for failure simulation).

failingPercent
Failing percentage from settings (0-100).

Retorna: True if should fail.

ShouldMatch
public bool ShouldMatch()
result = iEmulationRandomizer.ShouldMatch()

Determines whether order should be matched when processing order book changes.

Retorna: True if should match.