admin管理员组文章数量:1123047
I am building a strategy that is partially based on Renko bars. The strategy will produce decent results in backtesting, but then I will close the chart and reload it and it produces different results. I plotted the renko bars for debugging purposes and when I get bad results the bars are completely different. Someone from the Pine team suggested to use lookahead_on and close[1] when using the request.security() method. This causes massive delays, since I am accessing Renko from the same timeframe, and makes my strategy extremely unprofitable. It also doesn't fix the repainting issue when recompiling. The only fix I could see fixing it, would be to add an extra parameter for the Renko request function that specifies a starting bar or starting price level so the Renko calculations will remain consistent between compilations. Maybe the Renko logic already starts at a static level and it is a different problem I am missing. Let me know if someone else has seen this problem / drawback before.
Showing the difference between the start of the two re-compilations, one being normal and one being bad.
本文标签:
版权声明:本文标题:pine script - Is there a way to make Renko bars, retrieved from request.security(), consistent between re-compilations? - Stack 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736544042a1944423.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论