linting
This commit is contained in:
parent
9d38f9a7b6
commit
eeae192872
26 changed files with 532 additions and 186 deletions
|
|
@ -326,7 +326,9 @@ export class VectorEngine {
|
|||
let peak = equity[0];
|
||||
|
||||
for (const eq of equity) {
|
||||
if (eq > peak) {peak = eq;}
|
||||
if (eq > peak) {
|
||||
peak = eq;
|
||||
}
|
||||
drawdown.push((peak - eq) / peak);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue