Skip to content

Commit

Permalink
hotfix rsi indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
BusinessDuck committed Feb 7, 2021
1 parent aeea8b2 commit b4cb8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/gain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class AvgChangeProvider {
arrLoss.push(localLoss);

if (!this.filled) {
return;
return { gain: undefined, loss: undefined, prev: value };
}

gain = avg(arrGain, this.period);
Expand Down

0 comments on commit b4cb8c5

Please sign in to comment.