StrategyShowcaseExtensions

StockSharp.Web.Common

Helpers to read statistics from a strategy backtest report for the product detail page. Nothing is denormalized — the report file is the source of truth.

Methods

CalcWinRate
public static decimal? CalcWinRate(StrategyStatParameter[] stats)
result = StrategyShowcaseExtensions.CalcWinRate(stats)

Win rate in percent (0..100) derived from winning vs total trades, or null when trade counts are unavailable.

GetStat
public static decimal? GetStat(StrategyStatParameter[] stats, StatisticParameterTypes type)
result = StrategyShowcaseExtensions.GetStat(stats, type)

Extracts a single statistic value as a decimal, or null when the parameter is absent or not numeric.