龙听期货论坛's Archiver

龙听 发表于 2022-11-2 14:05

【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]