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