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

[RT] Re: Gen:OEX Entropy



PureBytes Links

Trading Reference Links

At 4:47 PM -0500 6/3/00, Clyde Lee wrote:
>
>But do I like the one with the bust in it better than
>the "correct" one.

At 11:03 AM -0500 6/3/00, Clyde Lee wrote:

>Here is an indicator that I wrote using his ideas.
>Note that I did a bit of flipping for display purposes.
>I'm not bothering with  .ela   since this is so simple.
>
>Avg = Average(c,Length);
>
>RMS = 0;
>for value1=0 to length-1 begin
>  rms=rms+c*c;
>end;
>rms=SQUAREROOT(rms/length);
>
>Entropy=(Avg/iff(rms<>0,rms,.001)+1)*.5;
>
>Value1=-(Entropy-1);
>
>if Value1>0 then
> Plot1(Value1,"-ent")
>else
>  Plot2(Value1,"+ent");
>
> Plot3(0,"0");

Trying to figure out what this does, I think it reduces to the following:

rms = length * C * C
rms = SQUAREROOT(length * C * C / length);
rms = C

Entropy = (Avg/C + 1) * 0.5 = 0.5 * Ave / C + 0.5
Value1 = -(Entropy - 1) = -(0.5 * Ave / C - 0.5) = - 0.5 * (Ave / C - 1)
Value1 = (C - Ave) / (2 * C)

Did I do this correctly?

Bob Fulks