Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TALib.jl should support JuliaTS #6

Open
femtotrader opened this issue May 21, 2016 · 2 comments
Open

TALib.jl should support JuliaTS #6

femtotrader opened this issue May 21, 2016 · 2 comments

Comments

@femtotrader
Copy link
Owner

femtotrader commented May 21, 2016

JuliaTS (time series and relational algebra operations over NDSparseData) support may also be considered for level 2 API for this Julia TA-Lib wrapper.

see tanmaykm/JuliaTS.jl#4

@femtotrader
Copy link
Owner Author

femtotrader commented May 22, 2016

using DataFrames
using JuliaTS
using TimeSeries

# read as DataFrame from DataFrames.jl https://github.com/JuliaStats/DataFrames.jl
dfOHLCV = readtable("ford_2012.csv");
dfOHLCV[:Date] = Date(dfOHLCV[:Date]);

# read as timeseries
tsOHLCV = readtimearray("ford_2012.csv");

# dataframe to TArray
ta = TArray((:Date,), [n=>dfOHLCV[n] for n in names(dfOHLCV)]...)

# timeseries to TArray
ta = TArray((:Date,), :Date=>tsOHLCV.timestamp, [symbol(n)=>tsOHLCV[n].values for n in colnames(tsOHLCV)]...)

@femtotrader
Copy link
Owner Author

@femtotrader femtotrader changed the title JuliaTS support TALib.jl should support JuliaTS Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant