【Standardize】
[code]inputs: PriceValue( numericseries ), Len( numericsimple ), NumDevs( numericsimple ) ;variables: var0( 0 ) ;
var0 = NumDevs * StandardDev( PriceValue, Len, 2 ) ;
if var0 > 0 then
Standardize = ( PriceValue - Average( PriceValue, Len ) ) / var0
else
Standardize = 0 ;
[/code]
页:
[1]