龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2022-11-2 14:12

【VarianceP】

[code]Inputs: PriceValue(Numeric), Len(Numeric);
Variables: var0(0), var1(0);

var0 = Len * Summation(Square(PriceValue), Len) - Square(Summation(PriceValue, Len));
var1 = Square(Len);

condition1 = Len > 1 OR Len < 0;
IF condition1 Then
        VarianceP = var0 / var1;
[/code]

页: [1]