Created
December 27, 2013 22:55
-
-
Save milktrader/8153802 to your computer and use it in GitHub Desktop.
wat a mess in the one-liner at the end ... searching for a piping method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> Pkg.checkout("MarketTechnicals", "series") | |
julia> using MarketTechnicals | |
julia> op = readseries(Pkg.dir("MarketTechnicals/test/data/spx.csv"), value=2); | |
julia> hi = readseries(Pkg.dir("MarketTechnicals/test/data/spx.csv"), value=3); | |
julia> lo = readseries(Pkg.dir("MarketTechnicals/test/data/spx.csv"), value=4); | |
julia> cl = readseries(Pkg.dir("MarketTechnicals/test/data/spx.csv"), value=5); | |
julia> daysdojiregistered = index(cl[value(doji(op,hi,lo,cl))]) | |
13-element Array{Date{ISOCalendar},1}: | |
1970-03-31 | |
1970-06-02 | |
1970-06-09 | |
1970-08-05 | |
1970-09-02 | |
1971-02-02 | |
1971-02-04 | |
1971-03-25 | |
1971-05-05 | |
1971-07-02 | |
1971-08-10 | |
1971-08-25 | |
1971-11-12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or, if you want to know what dates were there dojis in the month of February,