【HMA】
[code]inputs:double Price( numericseries ),
int Length( numericsimple) ;
if Length > 1 then
HMA = WAverage( 2 * WAverage( Price, IntPortion( Length * 0.5 ) ) -
WAverage( Price, Length ), IntPortion( SquareRoot( Length ) ) )
else
RaiseRunTimeError( "HMA length input must be greater than 1." ) ;
[/code]
页:
[1]