TimeSeries.jl icon indicating copy to clipboard operation
TimeSeries.jl copied to clipboard

About the moving function

Open atthom opened this issue 6 years ago • 6 comments

Hello, I discovered your package and I was reading the documentation, looking for the features I could need for my specific use.

About the moving function, is it possible to use a timestamp instead of a int for the window ? My timeseries are not evenly sampled. It would be easier for me to set a time interval of 10min and perform the moving average without worrying of the sampling.

atthom avatar Feb 11 '19 20:02 atthom

hi @atthom you might want to check this: https://github.com/femtotrader/TimeSeriesResampler.jl

iblislin avatar Feb 14 '19 05:02 iblislin

and cc @femtotrader

iblislin avatar Feb 14 '19 05:02 iblislin

I think @atthom is looking for a moving function which could accept a TimeFrame (from https://github.com/femtotrader/TimeFrames.jl/ ) as a window argument.

Currently TimeSeries doesn't depend neither on TimeFrames.jl nor TimeSeriesResampler.jl so @iblis17 is right... it's probably in https://github.com/femtotrader/TimeSeriesResampler.jl that such a function should be implemented

femtotrader avatar Feb 14 '19 06:02 femtotrader

OK, I wasn't aware of these packages.

I guess there is a reason why TimeFrames.jl is not part of the TimeSeries.jl project.

Anyway, I'll try to implement it and maybe @femtotrader will have a pull request soon.

atthom avatar Feb 14 '19 09:02 atthom

I guess there is a reason why TimeFrames.jl is not part of the TimeSeries.jl project.

No reasonable reason. :p I'm just lack of time integrating them into TimeSeries.jl.

iblislin avatar Feb 14 '19 13:02 iblislin

TimeFrames.jl is not part of TimeSeries.jl so it can be used for other timeseries library such as Temporal.jl

My personal opinion is that code of TimeSeriesResampler.jl could be merged into TimeSeries.jl but I think TimeFrames.jl should be a separate package.

femtotrader avatar Feb 14 '19 19:02 femtotrader