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

RE: Slope Code Help



PureBytes Links

Trading Reference Links

Here's a technique that is affected less by noise in the oscillator
caveat: slower to react to changes
----------------------------------------------------------------------------
---
vars: Len(14),OscSlope(0);

Osc = PercentR(Len); {for example}

OscSlope = LinearRegSlopeFC(Osc,Len); {determine the least squares fitted
slope}

If OscSlope < OscSlope[Len/2] then sell at close; {perform a half-period
slope comparison}

> -----Original Message-----
> From: Alex Matulich [mailto:alex@xxxxxxxxxxxxxx]
> Sent: Monday, February 25, 2002 12:33 PM
> To: omega-list@xxxxxxxxxx
> Subject: Re: Slope Code Help
>
>
> >   I need some EZ language help with a simple concept. How do I code
> >something like the following? TIA.
> >
> >If Slope of Osc is declining then sell on close;
>
> if osc[0] < osc[1] then sell close;
>
>
> --
>   ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
>  // +__>   Director of Research and Development
>  //  \
>  //___)    Unicorn Research Corporation -- http://unicorn.us.com
>
>