龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2022-11-2 09:55

【HarmonicMean】

[code]inputs: PriceValue( numericseries ), Len( numericsimple ) ;

condition1 = Lowest( PriceValue, Len ) > 0 ;
if condition1 then
        HarmonicMean = Len / Summation( 1 / PriceValue, Len )
else
        HarmonicMean = -1 ;
[/code]

页: [1]