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

Re: StdDevx function definition anyone



PureBytes Links

Trading Reference Links

stddevx code below

Ax

----------------------------------------------------------------

inputs : Price(NumericSeries),Length(NumericSimple);

vars    : SumSqr(0),Avg(0),Counter(0);



if Length <> 0

then begin

 Avg = Average(Price,Length);

 SumSqr = 0;

 for counter = 0 to Length - 1

 begin

  SumSqr = SumSqr + (Price[counter]-Avg) * (Price[counter]-Avg);

 end;

 StdDevX = SquareRoot(SumSqr / (Length-1));

end

else

 StdDevX = 0;



-----------------------------------------

----- Original Message ----- 
From: "Phil Bailey" <baileyp@xxxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Saturday, October 02, 2004 4:51 PM
Subject: StdDevx function definition anyone


Greetings:

I was looking at the Kase Peak Oscillator indicator and it had a StdDevx
function.
Probably would change it to Jurik's JMA anyway, but sometimes ema's function
is more appropriate.
Meantime, I'll just put Stddev in ema to try out.

Anyway, saw only this indicator and another by Mark Johnson on Google
looking for stddevx omega/tradestation.
Neither had function source code for stddevx. TSW didn't have it either when
searched.


Thanks,
Phil