Heikin-Ashi Candlesticks, 15 Minutes
Author: pestocat2
Creation Date: 7/3/2018 12:40 AM
profile picture

pestocat2

#1
I used the Code below to add Heikin-Ashi candlesticks in a new Chart pane. This works very good for Daily candlesticks, but when I set the Scale to 15 minutes, the chart displays non-sense. Attached are charts for both the daily and 15 minutes. One other item. I noticed that to display my added Heikin-Ashi chart I have to set the PricePane to regular candlesticks, otherwise the added Heikin-Ashi candlesticks are displayed wrong.

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Code above is set for Daily. You can adjust it for the time frame of your choice by replacing the line which contains BarScale as shown:
CODE:
Please log in to see this code.


Or better, here's an adaptive version which will adjust to chosen time frame dynamically:
CODE:
Please log in to see this code.


Please check out respective entry in the QuickRef (F11 key in WLP) to see what choices are available for other bar scales.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).