【AvgDeviation】
[code]inputs:PriceValue( numericseries ),
Len( numericsimple ) ;
variables:
var0( 0 ),
var1( 0 ) ;
var0 = 0 ;
var1 = Average( PriceValue, Len ) ;
for Value1 = 0 to Len - 1
begin
var0 = var0 + AbsValue( PriceValue[Value1] - var1 ) ;
end ;
AvgDeviation = var0 / Len ;
[/code]
页:
[1]