mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 13:05:15 +00:00
Add new backtesting Metrics to freqUI
This commit is contained in:
parent
5a93424cdf
commit
47bb5bef71
|
@ -138,6 +138,24 @@ const backtestResultStats = computed(() => {
|
||||||
metric: 'CAGR',
|
metric: 'CAGR',
|
||||||
value: `${props.backtestResult.cagr ? formatPercent(props.backtestResult.cagr) : 'N/A'}`,
|
value: `${props.backtestResult.cagr ? formatPercent(props.backtestResult.cagr) : 'N/A'}`,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
metric: 'Sortino',
|
||||||
|
value: `${props.backtestResult.sortino ? props.backtestResult.sortino.toFixed(2) : 'N/A'}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
metric: 'Sharpe',
|
||||||
|
value: `${props.backtestResult.sharpe ? props.backtestResult.sharpe.toFixed(2) : 'N/A'}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
metric: 'Calmar',
|
||||||
|
value: `${props.backtestResult.calmar ? props.backtestResult.calmar.toFixed(2) : 'N/A'}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
metric: 'Expectancy',
|
||||||
|
value: `${
|
||||||
|
props.backtestResult.expectancy ? props.backtestResult.expectancy.toFixed(2) : 'N/A'
|
||||||
|
}`,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
metric: 'Profit factor',
|
metric: 'Profit factor',
|
||||||
value: `${
|
value: `${
|
||||||
|
|
|
@ -137,6 +137,10 @@ export interface StrategyBacktestResult {
|
||||||
|
|
||||||
csum_min: number;
|
csum_min: number;
|
||||||
csum_max: number;
|
csum_max: number;
|
||||||
|
sortino?: number;
|
||||||
|
sharpe?: number;
|
||||||
|
calmar?: number;
|
||||||
|
expectancy?: number;
|
||||||
|
|
||||||
winner_holding_avg: string;
|
winner_holding_avg: string;
|
||||||
winner_holding_avg_s: number;
|
winner_holding_avg_s: number;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user