We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Sorry, I'm poor in coding, and have some question.
I study the paper, they use "1/xt" to predict next price relatives in TCO1.
Thanks for your help!
[TCO.py]
class TCO1(TCO):
def init(self, type="reversal", **kwargs):
self.type = type
super().init(min_history=1, **kwargs)
The text was updated successfully, but these errors were encountered: