PureBytes Links
Trading Reference Links
|
Gaston,
Here is the code to offset a moving average to the right.
Inputs: Price(Close), Length(9), Displace(-3);
If Displace >= 0 OR CurrentBar > AbsValue(Displace) Then Begin
Plot1[Displace](AverageFC(Price, Length), "SimpAvg1");
Several points, though:
1- Changing the input Displace to positive number displaces the plot to the
left. Changing the input Displace to a negative number displaces the plot to
the right.
2- If you want to displace the indicator to the right, you need to leave
space to the right of the chart. In TS2000i you do this by going to
"Format" and selecting "Bars to the right". Insert a number of bars at
least equal to the number of bars you want to displace the indicator.
Hope that helps.
Barry
----- Original Message -----
From: Gaston Lang <gastonlang@xxxxxxxxxxxxx>
To: Omega-List <omega-list@xxxxxxxxxx>
Sent: Friday, May 19, 2000 10:56 AM
Subject: Bars Forward
> Is there a function that projects an indicator whatever a certain number
of
> bars forward9 to the right).I thought there was one callde barsplus
however
> i cant find it.
>
> Thanks
> Gaston
>
|