【TriAverage_Gen】
[code]inputs: PriceValue( numericseries ), Len( numericsimple ) ;variables: var0( 0 ), var1( 0 ) ;
var0 = Floor( ( Len + 1 ) * .5 ) ;
var1 = Ceiling( ( Len + 1 ) * .5 ) ;
TriAverage_Gen = Average( Average( PriceValue, var0 ), var1 ) ;
[/code]
页:
[1]