Skip to content

Instantly share code, notes, and snippets.

@mementum
Created July 19, 2019 12:31
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 mementum/abac6e79fa8c108b954b6c9646bca095 to your computer and use it in GitHub Desktop.
Save mementum/abac6e79fa8c108b954b6c9646bca095 to your computer and use it in GitHub Desktop.
mfiratio = bt.ind.DivByZero(flowpos, flowneg, zero=100.0)
self.l.mfi = 100.0 - 100.0 / (1.0 + mfiratio)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment