Skip to content

Instantly share code, notes, and snippets.

@milktrader
Created December 24, 2013 18:35
Show Gist options
  • Save milktrader/8116617 to your computer and use it in GitHub Desktop.
Save milktrader/8116617 to your computer and use it in GitHub Desktop.
Series.jl in action
julia> using Series
julia> high = readseries(Pkg.dir("Series/test/data/spx.csv"), value=3);
julia> low = readseries(Pkg.dir("Series/test/data/spx.csv"), value=4);
julia> percentrange = (high .- close) ./ high;
julia> head(ans)
3-element Array{SeriesPair{Date{ISOCalendar},Float64},1}:
1970-01-02 0.00577293136626049
1970-01-05 0.008381962864721551
1970-01-06 0.010553245922609627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment