Last active
July 19, 2019 08:55
-
-
Save mementum/bdf69773d4502a4d1e2efaa55b6ee2fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MFI_Canonical(bt.Indicator): | |
lines = ('mfi',) | |
params = dict(period=14) | |
def __init__(self): | |
psum = self.data.close + self.data.low + self.data.high | |
tprice = psum / 3.0 | |
mfraw = tprice * self.data.volume | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment