Apply study "Overlay only at bar open" to the 6-range chart. Check in the input tab that the study to overlay is the "Bar Number (modulo 10)" of 1-tick chart.
Normally, you will see that the overlaid study just updates at each 6-range open.
How does it work?
The 6-range study is updated only when sc.Index is different from the value of sc.Index at last call (known through the use of a persistent variable).
(i) I do not know if SC systematically calls studies at the opening of new bar. If no, there could be a very short time difference between the actual open of the bar and the first call to the study. This time difference is 500ms or any shorter value defined by the user in Global Settings > General Settings
(ii) The correspondence between 1-tick chart and 6-range chart is made with function sc.GetContainingIndexForDateTimeIndex, which is not precise to the tick (timestamp effect). EDIT: This time difference is 1s maximum.
Perhaps it does not answer 100% to your need, but it could give you ideas.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
Last edited by Nicolas11; August 13th, 2012 at 09:02 AM.
Reason: Addition (visible)
The following user says Thank You to Nicolas11 for this post: