Closed nicewookyes closed 6 months ago
Thanks for the hint and the fix. Do you have a little test case in place which I can use? I think I am fixing the issue with #679
Hi @nicewookyes, I found the issue and fixed it: https://github.com/bennycode/trading-signals/pull/679
I also added test cases for the EMA replace behaviour: https://github.com/bennycode/trading-signals/pull/683
Please install trading-signals@5.0.3 and let me know if it works. 😀
The function setResult In indicator.ts will export wrong value while the 'replace' parameter is true, beacuse 'this.previousResult' always replaced by 'this.result'. If 'replace' is true in continuous calls to 'update', you will get wrong result after second call
Got correct result after change to this