John,

Take another look at the PLOT command from the manual:
Plot( array, name, color/barcolor, style = styleLine, minvalue = {empty}, 
maxvalue = {empty}, XShift = 0, Zorder = 0 ) 

Play with the Xshift value.  Essentially from your description you would want 
the following (untested):

5sma = ma(close,5);
Plot(5sma, "5SMA", colorred, styleline, , , -5);  
// I think the -5 will move it back 5 bars
Plot(5sma, "Forward 5 SMA", colorblue, styleline, , , 5);
// I think the 5 will move it 5 bars into the future.


Play and learn....


--- In [email protected], "john10987654321" <john10987654...@...> wrote:
>
> The "forward line" is used by Charles Kirkpatrick in his work, working with 
> the simple moving average.
> 
> This example will use the 10-day SMA, though the parameter needs to be 
> configurable. 
> 
> 1) Plot the 10-day SMA 5 days earlier. 
> 
> 2) Now plot #1 ahead 10 days, or five days into the future.
> 
> I can't figure out how to write a formula to do this. Can anyone help?
> 
> Any help much appreciated.
>


Reply via email to