RiskAdjustedRatioParameter

StockSharp.Algo.Statistics

リスク調整比率(シャープ/ソルトノ)のベースクラス。

継承元: BasePnLStatisticParameter<decimal>

実装: IRiskFreeRateStatisticParameter

コンストラクター

RiskAdjustedRatioParameter
protected RiskAdjustedRatioParameter(StatisticParameterTypes type)
riskAdjustedRatioParameter = RiskAdjustedRatioParameter(type)

RiskAdjustedRatioParameterクラスの新しいインスタンスを初期化します。

type
仕様

プロパティ

Period
public TimeSpan Period { get; set; }
value = riskAdjustedRatioParameter.Period
riskAdjustedRatioParameter.Period = value

計算期間を返還する。

RiskFreeRate
public decimal RiskFreeRate { get; set; }
value = riskAdjustedRatioParameter.RiskFreeRate
riskAdjustedRatioParameter.RiskFreeRate = value

年間リスクフリーレート(e.g., 0.03 = 3%)。

メソッド

Add
public override void Add(DateTime marketTime, decimal pnl, decimal? commission)
riskAdjustedRatioParameter.Add(marketTime, pnl, commission)

パラメータに新しいデータを追加する。

marketTime
交換時間。
pnl
利益損失の価値。
commission
委員会。
AddRiskSample
protected abstract void AddRiskSample(decimal ret)
riskAdjustedRatioParameter.AddRiskSample(ret)

リスクアキュメンテーションに新しいサンプルを追加。

ret
戻り値。
GetRisk
protected abstract decimal GetRisk(int count, decimal sumReturn)
result = riskAdjustedRatioParameter.GetRisk(count, sumReturn)

リスク値(e.g., stddev, 欠点の偏差)を取得します。

count
サンプルのカウント。
sumReturn
すべてのリターンのSum。

戻り値: リスク値。

HasEnoughRiskSamples
protected abstract bool HasEnoughRiskSamples(int count)
result = riskAdjustedRatioParameter.HasEnoughRiskSamples(count)

計算のために蓄積された十分なリスクサンプルがないかチェックします。

count
サンプルのカウント。

戻り値: 結果をチェックする。

Load
public override void Load(SettingsStorage storage)
riskAdjustedRatioParameter.Load(storage)

設定をロードします。

storage
設定ストレージ。
Reset
public override void Reset()
riskAdjustedRatioParameter.Reset()

リセット状態。

Save
public override void Save(SettingsStorage storage)
riskAdjustedRatioParameter.Save(storage)

設定を保存します。

storage
設定ストレージ。