New issue
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
STOCHASTIC Plotting doesn't work #31
Comments
Hey Lewis, the The preferred way to plot this would be using self.indicators = {"RSI": {"type": "RSI", "data": self.stoch_rsi},
"STOCHASTIC": {"type": "multi",
"K": {"data": self.stoch_rsi_k, "color": "blue"},
"D": {"data": self.stoch_rsi_d, "color": "red"},
},
} I think I decided to remove the STOCHASTIC type as the As per your other questions:
|
When using 1 leverage I get |
I can't seem to replicate the issue (tried the macd demo strategy active in the demo runfile), and partial trades are allowed by default. Looking into the code a bit deeper, I think this is coming from the Basically what it looks like is happening, is that your stop losses are too tight (whether true, or not true due to an incorrect Sorry about the bug, but I can suggest a work around in the meantime: copy the |
Thanks, I will give it a try. I can give you the exact data/strategy if you would like to use it for debugging, its only a simple one |
No problem, let me know how you go. And sure, feel free to email it to me: kemackle98@gmail.com |
It seems to be a problem with RISK_PC using the macd strategy from the demo (latest version) with leverage set to 1 and RISK_PC set to 3 it gets all cancelled trades on |
Describe the bug
When using the key
STOCHASTIC
in the indicators dictionary an error is thrown.To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Plot the two stochastic lines below the chart in one section.
Screenshots
n/a
Version of AutoTrader being used
autotrader==0.6.2
Additional context
Few other questions:
The text was updated successfully, but these errors were encountered: