Class SlippageManager
Менеджер проскальзывания.
Namespace: StockSharp.Algo.Slippage
Assembly: StockSharp.Algo.dll
Syntax
public class SlippageManager : Object, ISlippageManager, IPersistable
Constructors
SlippageManager()
Создать SlippageManager.
Declaration
public SlippageManager()
Properties
CalculateNegative
Считать отрицательное проскальзывание. По умолчанию расчет выключен.
Declaration
public bool CalculateNegative { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Slippage
Total slippage.
Declaration
public virtual Decimal Slippage { get; }
Property Value
Type | Description |
---|---|
Decimal |
Methods
Load(SettingsStorage)
Загрузить настройки.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Storage. |
ProcessMessage(Message)
Рассчитать проскальзывание.
Declaration
public Nullable<Decimal> ProcessMessage(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | Message. |
Returns
Type | Description |
---|---|
Nullable<Decimal> | Проскальзывание. Если проскальзывание рассчитать невозможно, то будет возвращено null. |
Reset()
Сбросить состояние.
Declaration
public virtual void Reset()
Save(SettingsStorage)
Сохранить настройки.
Declaration
public void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Storage. |
Implements
Ecng.Serialization.IPersistable