PureBytes Links
Trading Reference Links
|
suppose 20 days ago the close is 5$
and 2 days ago the close is 1$
the slope of the price must be negative 1$ is less than 5$
BUT
(5-1)/ (20-2) is positive
Stephane,
> I have less than a highschool education so that could be getting in
> the way but I think that the first part of the equation determines
if
> the slope is positive or negative, the last part of the equation
just
> establishes the period to divide by to get the slope. I just
> recently began studying this though so could be wrong.
>
> Thanks
> wdbaker
> --- In amibroker@xxxx, "Stephane Carrasset" <nenapacwanfr@xxxx>
wrote:
> >
> >
> > > the w & y issue, I think the equation goes slope=(endval-
> startval)/
> > > (time or bars) and the way you have it written would give me a
> > > negative # of bars I think.
> >
> > yes, negative and
> > if endval-startval is positive ( startval< endval)the slope is
> > negative and
> > if endval-startval is negative( startval>endval) the slope is
> positive
> >
> > why do you want that the slope is always positive??
> >
> > stephane
|