Skip to content

Instantly share code, notes, and snippets.

@mementum
Created July 19, 2019 12:30
Show Gist options
  • Save mementum/eb903a89275991c50bb099b5157a744a to your computer and use it in GitHub Desktop.
Save mementum/eb903a89275991c50bb099b5157a744a to your computer and use it in GitHub Desktop.
if neg_period == 0:
self.lines.mfi[0] = 100
return
self.lines.mfi[0] = 100 - 100 / (1 + pos_period / neg_period)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment