Skip to content

Instantly share code, notes, and snippets.

@icexelloss
Created October 18, 2018 19:17
Show Gist options
  • Save icexelloss/9decfe72e7a1f54f0f4edf17d35cd391 to your computer and use it in GitHub Desktop.
Save icexelloss/9decfe72e7a1f54f0f4edf17d35cd391 to your computer and use it in GitHub Desktop.
FlintCase4
from ts.flint import summarizers
sp500_decayed_return = sp500_joined_return.summarizeWindows(
window = windows.past_absolute_time('7day'),
summarizer = summarizers.ewma('previous_day_return', alpha=0.5)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment