Skip to content

Instantly share code, notes, and snippets.

@milktrader
Created January 11, 2014 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milktrader/8372146 to your computer and use it in GitHub Desktop.
Save milktrader/8372146 to your computer and use it in GitHub Desktop.
One liner backtest algorithm in Julia
julia> plot(cumsum(value(when(lead(percentchange(Op, method="log"), 2), index(istrue(sma(Cl,10) .> sma(Cl,30)))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment