Rsi in Double data type ! #928
Replies: 2 comments
-
We've had a rather long prior conversation on using decimal vs. double. I'm sure there are a few inconsistencies in the library, but we prefer The convention we use prefers In version 2.0, we went further, to make all but pure price-based transforms results |
Beta Was this translation helpful? Give feedback.
-
If your question is "why isn't RSI an integer?", I'd say because it's not accurate enough as an integer, especially if re-used in chaining models. If you want it as an integer for your use case, you can convert it: // example, make RSI an integer
var results = quotes
.GetRsi(..)
.Select(x => new { x.Date, Rsi = (int)x.Rsi }); |
Beta Was this translation helpful? Give feedback.
-
i see that data type of rsi value has been changed to double , whats going on sma that has decimal point ?
Stock.Indicators/src/m-r/Rsi/Rsi.Models.cs
Line 11 in e64d14e
Beta Was this translation helpful? Give feedback.
All reactions