-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Renko bars/chart [enhancement] #59
Comments
Here is my implementation; well, I know a lot about renko charts and used it with multiple timeframes and with many indicators in my bot and could get decent profits in trending markets. I can assure you that dumbly buying when green and selling when red works better than putting more bricks into account or combining it with indicators. Using atr mean value as brick size or period based atr give varying results but in general period based works better. If you want to see fixed bar chart of mean atr comment out the "if not np.isnan(row['atr'].." part. Another working combination is solely calculating macd by renko values and buy when macd > signal and sell when signal < macd. I used some genetic algorithms in my bot to find out that 5 - 15 min time frames work better but going to use this bot's hyperopt to check too. I am willing to work with anyone who is interested in renko charts and experienced in machine learning/ai. |
for the strategy you posted above- if you're willing to share it with a "wider" community - consider doing a PR against the strategy-repo... |
Transferring this issue to freqtrade, since it's about a renko strategy more than anything else. |
I was experimenting with this a bit, there are some methods to make the Renko charts out of the timeframe-based dataframe, for me the most complicated problem here is the keeping the starting point for Renko bars during dry-run/real-trade. Our time based dataframe is of 500 (well, almost) bars, "shifting" with every new candle arrives and Renko will always be repainted, calculating using new starting bar... The correct implementation should keep previously calculated Renko bars and the price limits that were used as the boundaries of the previous bars (or at least the first price boundary, for the first candle in the first ohlcv dataframe when the bot has just started and began calculating Renko's, used as the baseline for all upcoming ones) |
@xmatthias I did implement a version of Renko Strategy with ATR brick size.
I also did not implement the hints from @hroff-1902 which would be very valuable for dry-run/real-run. I publish the strategy here under MIT licenses, feel free to modify it and add it to the repo. RenkoAllCandles.py
|
Very sad this account and blobs deleted |
@iguy0 do you have shared files in here #59 (comment) |
I believe it would be a great enhancement to have Renko chart/bars as a feature in freqtrade. The nature of Renko charts will bring great filter capabilities to the "choppiness" of the crypto market.
Code reference:
https://github.com/ChillarAnand/stocktrends
https://www.backtrader.com/blog/posts/2017-06-26-renko-bricks/renko-bricks.html
https://machinelearningtrading.wordpress.com/2014/02/23/plotting-renko-bars-in-python/
Interesting article about optimization of renko charts:
https://towardsdatascience.com/renko-brick-size-optimization-34d64400f60e
What do you guys think ?
The text was updated successfully, but these errors were encountered: