PureBytes Links
Trading Reference Links
|
Try this formula
Ref(Mov(C,7,E),-5)
Manoj
----- Original Message -----
From: "Tom Sprunger" <tlsprunger@xxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Monday, November 20, 2000 5:48 AM
Subject: displaced moving average formula
> Need help from one of you wizards out there. I am trying to write a
formula
> for use in backtesting. I want to look at price crossing a moving average
> displaced forward by x bars. Let's assume I want a 7 bar average
displaced
> forward by 5 bars. Its no problem doing this on the charts because the
Mov
> Ave has a box in its properties window where you do this. However, I can't
> figure out how to do this in Formula language for use in backtesting and
> explorations. From my manual, I can't find a descriptor for displacing
the
> Mov ave.
>
> The code for flagging the price crossing above the 7 bar average is
>
> cross(mov(c,7,e))
>
> How do I modify this to displace the Mov Ave forward by 5 bars?
>
> Thanks
>
> Tom
>
|