标题:
【AverageFC2】
[打印本页]
作者:
龙听
时间:
2022-11-2 14:55
标题:
【AverageFC2】
Inputs: Price ( numericseries ) ,
Length ( numericseries ) ; { this input is assumed to be constant }
Vars: Sum( 0 ) ;
If Currentbar = 1 then
Begin
For Value1 = 0 to Length - 1
begin
Sum = Sum + Price[Value1] ;
end ;
End
Else
Sum = Sum[1] + Price - Price[Length] ;
if Length <> 0 then
AverageFC2 = Sum / Length
else
AverageFC2 = 0 ;
复制代码
欢迎光临 龙听期货论坛 (http://qhlt.club/)
Powered by Discuz! 7.2