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

Re: CoefficientR



PureBytes Links

Trading Reference Links

At 4:14 PM +0100 5/24/02, Ian Waugh wrote:

>Can one of you clever programming types give me a function I can use in
>2000, please?

I posted the following to the list on 4/24/02.

Bob Fulks

---

I modified the Omega CoeffR code (actually the CoeffR_a code) to
accept two price series (as your code seems to require) and called
the revised version "CoeffR.S".

I then wrote an indicator to compare the result with the rpbPearson
code provide several years ago by Bob Brickey (of TradeLab fame). The
results were almost identical. The Brickey code is much more
numerically stable so should be more accurate. (The Omega code
subtracts nearly equal very large numbers so is much more susceptible
to errors.)

The indicator and the two functions are attached as an ELA file.

Bob Fulks

Attachment: Description: "CORRTEST.ELA"

Attachment: Description: "%CORRTEST.ELA"