cinar/indicator

Snapshot Volume also float64 instead of int64 !?

heiningair opened this issue · 5 comments

Is your feature request related to a problem? Please describe.
When using indicators, like e.g. trend.NewVwmafloat64 and executing a Compute on it, channels need to be passed in (per Type definition) they need to match float64 in this case for closings and volume.

Describe the solution you'd like
When giving the Volume in the Snapshot type a float64 value instead of the int64 it would make things easier to work with, wouldnt it?

Let me see.. I should be able to change it.

that would be awesome. I assume that various ohlc structures out there handling that differently, but for calculations within this library structure aka the indicators, it might be easier...

Thanks cinar!

Changing the volume data type to float64 would be immensely useful for assets traded in fractions (e.g. cryptocurrencies).

I'll take care of it today quickly. I feel it will be an easy one.

I made the change. You can use it starting from Release v2.1.0. Please let me know if I missed anything.