mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
feature: implement omega, sharp, sortino related functions
This commit is contained in:
parent
b26d3005a3
commit
36127a6332
1
pkg/statistics/omega.go
Normal file
1
pkg/statistics/omega.go
Normal file
|
@ -0,0 +1 @@
|
|||
package statistics
|
14
pkg/statistics/sharp.go
Normal file
14
pkg/statistics/sharp.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package statistics
|
||||
|
||||
import (
|
||||
"github.com/c9s/bbgo/pkg/types"
|
||||
)
|
||||
|
||||
// Sharpe: Calcluates the sharpe ratio of access returns
|
||||
//
|
||||
// @param rf (float): Risk-free rate expressed as a yearly (annualized) return
|
||||
// @param periods (int): Freq. of returns (252/365 for daily, 12 for monthy)
|
||||
// @param annualize (bool): return annualize sharpe?
|
||||
// @param smart (bool): return smart sharpe ratio
|
||||
func Sharpe(returns types.Series, rf float64, periods int, annualize bool, smart bool) {
|
||||
}
|
1
pkg/statistics/sortino.go
Normal file
1
pkg/statistics/sortino.go
Normal file
|
@ -0,0 +1 @@
|
|||
package statistics
|
Loading…
Reference in New Issue
Block a user