amv-dev / yata

Yet Another Technical Analysis library [for Rust]
Apache License 2.0
321 stars 49 forks source link

Fix a bug that BollingerBands returns wrong action #10

Closed phynalle closed 3 years ago

phynalle commented 3 years ago

I fixed range condition to calculate relative right.

And if range is zero, it would be your intention to produce Action::None. so relative would be 0.5, not zero