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