Skip to content

Instantly share code, notes, and snippets.

@milktrader
Created January 17, 2014 04:13
Show Gist options
  • Save milktrader/8468295 to your computer and use it in GitHub Desktop.
Save milktrader/8468295 to your computer and use it in GitHub Desktop.
long macro
julia> using TradeModels, MarketData
julia> @long cl rsi (.>) 50 nextday op
0.3999243140318183
@milktrader
Copy link
Author

Or this?

julia> rsi50 = tradesignal(rsi(cl), 50, .>)

julia> @long op rsi50

@milktrader
Copy link
Author

Well, you can't loop over the last one, so that's out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment