Skip to content

Instantly share code, notes, and snippets.

@mementum
Created July 19, 2019 08:50
Show Gist options
  • Save mementum/d70def1d45b3e7a1a92d32177e65e020 to your computer and use it in GitHub Desktop.
Save mementum/d70def1d45b3e7a1a92d32177e65e020 to your computer and use it in GitHub Desktop.
class MyMFIStrategy2(bt.Strategy):
def __init__(self):
wclose = self.data.close * 5.0
mfi = bt.MFI_Canonical(self.data.high, self.data.low, wclose, self.data.volume)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment