I have a formula that creates a result for the next bar.
the formula utilizes a plottype_line and correctly plots the result but that is displayed on the most recently completed bar. The result being displayed on the current bar being built appropriately jumps around until that bar is completed.
I do not wish to change the formula to include anything along the lines of set compute on close.
Is there anyway to plot the resulting line forward by one bar (for the entire displayed history of the line and not just the current bar)?
My formula simply plots the one line as "return x" and does not include any parameters or any variable numbers that are passed into main (other than var xyz = whatevers in premain).
thanks in advance,
Christine
the formula utilizes a plottype_line and correctly plots the result but that is displayed on the most recently completed bar. The result being displayed on the current bar being built appropriately jumps around until that bar is completed.
I do not wish to change the formula to include anything along the lines of set compute on close.
Is there anyway to plot the resulting line forward by one bar (for the entire displayed history of the line and not just the current bar)?
My formula simply plots the one line as "return x" and does not include any parameters or any variable numbers that are passed into main (other than var xyz = whatevers in premain).
thanks in advance,
Christine
Comment