【CCI】
[code]inputs:Len( numericsimple ) ;
variables:
var0( 0 ),
var1( 0 ),
var2( 0 ) ;
var0 = Average( H + L + C, Len ) ;
var1 = 0 ;
for var2 = 0 to Len - 1
begin
var1 = var1 + AbsValue( ( H + L + C )[var2] - var0 ) ;
end ;
var1 = var1 / Len ;
if var1 = 0 then
CCI = 0
else
CCI = ( H + L + C - var0 ) / ( .015 * var1 ) ;
[/code]
页:
[1]