Skip to content

Instantly share code, notes, and snippets.

@mlivingston40
Last active November 7, 2017 21:57
Show Gist options
  • Save mlivingston40/d28cec04071585c74c832852a4d2c510 to your computer and use it in GitHub Desktop.
Save mlivingston40/d28cec04071585c74c832852a4d2c510 to your computer and use it in GitHub Desktop.
@application.route('/meanreversion/result/<security>/<start_date>/<end_date>/<int:sma_>/<int:lma_>')
def meanreversion_result(security,start_date,end_date,sma_,lma_):
m = MeanReversion(security, start_date, end_date, sma_, lma_)
smadf = m.moving_average_df(m.sma_)
lmadf = m.moving_average_df(m.lma_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment