You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one is related in some sense to JuliaQuant/MarketData.jl#71 and #93. On one hand, we have few data types for time series and it's hard to say which one is better (actually it is possible that all of them are good just in different circumstances). On the other hand, we have few packages with similar functionality and developers' efforts and users' attention has diverged between them.
The idea is vague right now, but mainly, most of the indicators require rather simple input, most of the time something Vector or Matrix like, so algorithms on their own do not care about external data type and it should be utilized.
I think, that it is possible to do something like this
function indicator(input::T) where T
v_input = unwrap(input) # convert input to Vector
# ...
# do calculations
# ...
wrap(v_output, T) # convert resulting vector to the type of the initial structure
end
Probably we can even put this wrap/unwrap in a macro so only actual implementation will be left. Wrapping and unwrapping can depend on type (DataFrame, TimeArray, Temporal) thus making resulting alorithm type agnostic.
We can start small, with moving averages and see how it works out.
The text was updated successfully, but these errors were encountered:
How about implement the unwrap/wrap by applying Tables.jl API?
We can start small, with moving averages and see how it works out.
I guess the first problem is that the we might need to rewrite lots of time-related operations (which are already done in TimeSeries.jl) for Vector/Martrix, e.g. lag, lead, moving.
but yeah, we still can try it, then check out it's worthy or not.
This one is related in some sense to JuliaQuant/MarketData.jl#71 and #93. On one hand, we have few data types for time series and it's hard to say which one is better (actually it is possible that all of them are good just in different circumstances). On the other hand, we have few packages with similar functionality and developers' efforts and users' attention has diverged between them.
The idea is vague right now, but mainly, most of the indicators require rather simple input, most of the time something
Vector
orMatrix
like, so algorithms on their own do not care about external data type and it should be utilized.I think, that it is possible to do something like this
Probably we can even put this wrap/unwrap in a macro so only actual implementation will be left. Wrapping and unwrapping can depend on type (DataFrame, TimeArray, Temporal) thus making resulting alorithm type agnostic.
We can start small, with moving averages and see how it works out.
The text was updated successfully, but these errors were encountered: