【FastDCustomOrig】
[code]inputs:PriceValueH( numericseries ),
PriceValueL( numericseries ),
PriceValueC( numericseries ),
StochLen( numericsimple ),
SmoothingLen( numericsimple ) ;
variables:
var0( 0 ),
var1( 0 ) ;
var0 = Average( PriceValueC - Lowest( PriceValueL, StochLen ), SmoothingLen ) ;
var1 = Average( Highest( PriceValueH, StochLen ) - Lowest( PriceValueL, StochLen ),
SmoothingLen ) ;
if var1 > 0 then
FastDCustomOrig = var0 / var1 * 100
else
FastDCustomOrig = 0 ;
[/code]
页:
[1]