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.