RiskAdjustedRatioParameter
StockSharp.Algo.Statistics
Base class for risk-adjusted ratios (Sharpe/Sortino).
継承元: BasePnLStatisticParameter<decimal>
実装: IRiskFreeRateStatisticParameter
コンストラクター
RiskAdjustedRatioParameter(StatisticParameterTypes)
Initializes a new instance of the RiskAdjustedRatioParameter class.
- type
- Type
プロパティ
RiskFreeRate : decimal
Annual risk-free rate (e.g., 0.03 = 3%).
メソッド
Add(DateTime, decimal, decimal?)
To add new data to the parameter.
- marketTime
- The exchange time.
- pnl
- The profit-loss value.
- commission
- Commission.
GetRisk(int, decimal) : decimal
Gets the risk value (e.g., stddev or downside deviation).
- count
- Count of samples.
- sumReturn
- Sum of all returns.
戻り値: Risk value.
HasEnoughRiskSamples(int) : bool
Checks if enough risk samples accumulated for calculation.
- count
- Count of samples.
戻り値: Check result.
Reset()
Reset state.