sdcoffey / techan

Technical Analysis Library for Golang
https://godoc.org/github.com/sdcoffey/techan
MIT License
838 stars 142 forks source link

Cashing in indicators #53

Open konrin opened 2 years ago

konrin commented 2 years ago

Hey! I had a problem recalculating the last value of a series due to result caching. I want to propose to take out the need to use the cache for the flag. What do you think of it?

for example

konrin commented 2 years ago

In my fork, I implemented the cache reset interface by index. This works for me, if you find this change useful I can make a PR