Closed janckerchen closed 2 weeks ago
The invocation demonstrated in the documentation, Stats.sharpe(s, tf"1d", rfr=0.01)
, does not match the function signature.
function sharpe(s::Strategy, tf=tf"1d", rfr=0.0)
...
end
Changing it to the function signature will work.
julia> Stats.sharpe(s, tf"1d", 0.01)
-11.17254906151372
julia> Stats.sortino(s, tf"1d", 0.01)
-12.01871551753598
fix doc or signature
follow https://panifie.github.io/PingPong.jl/stats/#Performance-Metrics
output