For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

It seems a bug("RateOfChange100") in, which doesn't pass period value to ROC

  • I reviewed the code("RateOfChange100") and found it doesn't pass period to ROC.

    def __init__(self):
        self.l.roc100 = 100.0 * ROC(    # not pass period to ROC
        super(RateOfChange100, self).__init__()

    Correct it:

    def __init__(self):
        self.l.roc100 = 100.0 * ROC(, period=self.p.period)
        super(RateOfChange100, self).__init__()

    If there is anything I misunderstand, pls feel free to let me know.

  • administrators