In the MACD.ts file, within the update(_price: BigSource, replace: boolean = false): void | MACDResult method, the replace argument is not being applied correctly. Specifically, the line:
const signal = this.signal.update(macd);
should be updated to:
const signal = this.signal.update(macd, replace);
This change ensures that the replace flag is properly passed to the update method of this.signal.
In the MACD.ts file, within the update(_price: BigSource, replace: boolean = false): void | MACDResult method, the replace argument is not being applied correctly. Specifically, the line:
should be updated to:
This change ensures that the replace flag is properly passed to the update method of this.signal.