Unify analytics calculations and fail closed on unavailable data
This commit is contained in:
parent
783b619846
commit
ccce401f72
31 changed files with 1978 additions and 1553 deletions
16
test/fixtures/analytics-golden.json
vendored
Normal file
16
test/fixtures/analytics-golden.json
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"drawdowns": { "equity": [100, 80, 110, 99, 120], "depths": [0.2, 0.1], "durations": [1, 1] },
|
||||
"daily": {
|
||||
"returns": [-0.01, 0.02, -0.03, 0.04],
|
||||
"annualVariance": 0.2436,
|
||||
"annualDownsideVariance": 0.063,
|
||||
"annualExcess": 1.26
|
||||
},
|
||||
"trades": {
|
||||
"pnl": [10, -4, 0, 20, -2, -3, 0, -1],
|
||||
"profitFactor": 3,
|
||||
"winRate": 0.25,
|
||||
"expectancy": 2.5,
|
||||
"maxConsecutiveLosses": 2
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue