mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
backtest: reformat sharpe/sortino report
This commit is contained in:
parent
ad1b9a53a1
commit
de59c1bd13
|
@ -120,15 +120,15 @@ func (r *SessionSymbolReport) Print(wantBaseAssetBaseline bool) {
|
|||
}
|
||||
|
||||
if r.Sharpe > 0.0 {
|
||||
color.Green("REALIZED SHARPE RATIO: +%v", r.Sharpe)
|
||||
color.Green("REALIZED SHARPE RATIO: %.4f", r.Sharpe)
|
||||
} else {
|
||||
color.Red("REALIZED SHARPE RATIO: +%v", r.Sharpe)
|
||||
color.Red("REALIZED SHARPE RATIO: %.4f", r.Sharpe)
|
||||
}
|
||||
|
||||
if r.Sortino > 0.0 {
|
||||
color.Green("REALIZED SORTINO RATIO: %v", r.Sortino)
|
||||
color.Green("REALIZED SORTINO RATIO: %.4f", r.Sortino)
|
||||
} else {
|
||||
color.Red("REALIZED SORTINO RATIO: %v", r.Sortino)
|
||||
color.Red("REALIZED SORTINO RATIO: %.4f", r.Sortino)
|
||||
}
|
||||
|
||||
if wantBaseAssetBaseline {
|
||||
|
|
Loading…
Reference in New Issue
Block a user