Open Yccc0903 opened 9 months ago
Sorry, I'm poor in coding, and have some question.
Thanks for your help!
[TCO.py]
class TCO1(TCO): def init(self, type="reversal", kwargs): self.type = type super().init(min_history=1, kwargs)
def predict(self, p, history): if self.type == "reversal": return history.iloc[-2] / p elif self.type == "trend": return p / history.iloc[-2] else: raise NotImplementedError()
Sorry, I'm poor in coding, and have some question.
Thanks for your help!
[TCO.py]
class TCO1(TCO): def init(self, type="reversal", kwargs): self.type = type super().init(min_history=1, kwargs)