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

[RT] Re: GEN - simple-minded use of the entropy system



PureBytes Links

Trading Reference Links

> I'm still trying to figure out Prosper's version.  Maybe Prosper and
others
> can give me some advice?
>

My version of Ron's and Clydes indicator is not a rocket scientist level
change. This is the same code as Clyde's except I changed
C[value1]*C[value1] to Square(C[value1]), which is equivalent and then I
added a plot (Plot2 in the code) that subtracts the average Entropy from
Entropy. You could eleminate plot1 and just use Plot2 or make any change you
want. Plot2 should oscilate above and below zero. Plot2 is the one that can
be used as a breakout indicator. No, it is not infallible, so for those
seeking perfection this isn't it.

Ok here is the EL code again.

  {the degree of disorder or uncertainty in a system - measurement of Chaos
E=((Average / Root Mean Square)+1)/2}

Input: Length(21);

Vars: ENTROPY(0), Avg(0), RMS(0);

Avg = Average(c,Length);

RMS = 0;
for value1=0 to length-1 begin
  rms=rms+Square(c[value1]);
end;
rms=SQUAREROOT(rms/length);

Entropy=(Avg/iff(rms<>0,rms,.001)+1)*.5;

Value1=-(Entropy-1);

 Plot1(Value1,"-ent");
  Plot2(Value1-Average(Value1,Length/2),"osc");

 Plot3(0,"0");

Prosper