[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Percent Rate of Change?



PureBytes Links

Trading Reference Links

Ok, thanks Gary, then the Pring daily KST formula in ELA language is a
weighted average of rateofchange.
KST=Average(rateofchange(C,10),10)+2*Average(rateofchange(C,15),10)+3*Averag
e(rateofchange(C,20),10)+4*Average(rateofchange(C,30),15);
{reference Formula Research August 31, 1992}

If you want to run it on one tick charts for a wild ride, change the length
inputs to
12,10,20,10,30,8,40,15 instead of 10,10,15,10,20,10,30,15
{Reference Martin Pring's "Technician's Guide to Day Trading"

Pring made a point of using percent roc instead of point roc and I wasn't
sure if it was the same as the Formula Research code.  It is the same after
your explanation.

bobr


----- Original Message -----
From: "Gary Fritz" <fritz@xxxxxxxx>
To: "BobR" <bobrabcd@xxxxxxxxxxxxx>
Cc: <omega-list@xxxxxxxxxx>
Sent: Thursday, March 21, 2002 9:43 AM
Subject: Re: Percent Rate of Change?


> > What does the MetaStock PERCENT rate of change convert to in
> > easylanguage? roc(close,12,%) in MetaStock = what in easylanguage?
>
> That would be the built-in TS function RateOfChange:
>
> Inputs: Price(NumericSeries), Length(NumericSimple);
> If Price[Length] <> 0 Then
> RateOfChange = (Price / Price[Length] - 1) * 100
> Else
> RateOfChange = 0 ;
>
> Basically just dividing Price/Price[Length], then turning it into a
> percentage.  roc(close,12,%)  ==  RateOfChange(Close,12).
>
> > Likewise what does the MetaStock POINT rate of change convert to
> > in ELA? roc(close,12,$) in MS = what in ELA?
>
> Percentage is dividing, point change is subtraction.  TS provides a
> Momentum function for that, though it's hardly necessary:
>
> Inputs: Price(NumericSeries), Length(NumericSimple);
> Momentum = Price[0] - Price[Length];
>
> roc(close,12,$)  ==  Momentum(Close,12).  Or you could just use
> (Close-Close[12]).
>
> Gary
>