Study based on two time scales
Hi there - I have a study based on two time scales (e.g. 5 minute and daily). How can I access both types of bars ? Are there examples?
Adminlaurie (Admin, CQG) commented
In a custom study, if you just use "Close(@)" then the interval will change with the bar interval of the chart on which it is displayed. If you add an interval qualifier, such as the daily "D" as in "Close(@),D" or a 5 minute interval as in "High(@),5" then the charted interval will be overridden with the study interval.
If you want to access the Daily high 2 days ago in a study for placement on any chart, you can use "Close(@)[-2],D."