Table of Contents

Class SortinoRatioParameter

Namespace
StockSharp.Algo.Statistics
Assembly
StockSharp.Algo.dll

Sortino ratio (annualized return - risk-free rate / annualized downside deviation).

[Display(ResourceType = typeof(LocalizedStrings), Name = "SortinoRatio", Description = "SortinoRatioDesc", GroupName = "PnL", Order = 12)]
public class SortinoRatioParameter : RiskAdjustedRatioParameter, INotifyPropertyChangedEx, INotifyPropertyChanging, IStatisticParameter<decimal>, IPnLStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged, IRiskFreeRateStatisticParameter
Inheritance
SortinoRatioParameter
Implements
Inherited Members
Extension Methods

Constructors

SortinoRatioParameter()

Initialize a new instance of the SortinoRatioParameter class.

public SortinoRatioParameter()

Methods

AddRiskSample(decimal)

Adds a new sample to the risk accumulator.

protected override void AddRiskSample(decimal ret)

Parameters

ret decimal

The return value.

GetRisk(int, decimal)

Gets the risk value (e.g., stddev or downside deviation).

protected override decimal GetRisk(int count, decimal sumReturn)

Parameters

count int

Count of samples.

sumReturn decimal

Sum of all returns.

Returns

decimal

Risk value.

HasEnoughRiskSamples(int)

Checks if enough risk samples accumulated for calculation.

protected override bool HasEnoughRiskSamples(int count)

Parameters

count int

Count of samples.

Returns

bool

Check result.

Load(SettingsStorage)

To load the state of statistic parameter.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Storage.

Reset()

To reset the parameter value.

public override void Reset()

Save(SettingsStorage)

To save the state of statistic parameter.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Storage.