Skip to content

Commit

Permalink
fix PR
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Dec 12, 2024
1 parent a6884aa commit 7d24276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/BBANDS/BollingerBands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class BollingerBands implements Indicator<BandsResult> {

updates(prices: BigSource[]) {
prices.forEach(price => this.update(price));
return this.result;
}

update(price: BigSource): void | BandsResult {
Expand Down
3 changes: 2 additions & 1 deletion src/Indicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export interface Indicator<Result = Big, Input = BigSource> {

update(input: Input): void | Result;

// TODO: Implement this function once for all indicators, make sure all indicators return "this.result" here
// TODO: Implement this function for all indicators, ensuring each returns "this.result"
// TODO: Add support for the "replace" parameter in the future
updates(input: Input[]): void | Result;
}

Expand Down

0 comments on commit 7d24276

Please sign in to comment.