- UID
- 2
- 积分
- 2892977
- 威望
- 1396520 布
- 龙e币
- 1496457 刀
- 在线时间
- 13326 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-26
|
【CCIClassic】
- Inputs: Len(NumericSimple);
- Variables: var0(0),var1(0),var2(0),var3(0), var4(0);
- If Len > 0 Then Begin
- var4 = (High + Low + Close) / 3;
- var3 = Average(var4 , Len);
- var2 = 0;
- for var1 = 0 to Len - 1 Begin
- var2 = var2 + AbsValue(var4[var1] - var3);
- End;
- var2 = var2 / Len;
- If var2 = 0 Then
- CCIClassic = 0
- Else
- CCIClassic = (var4 - var3) / (0.015 * var2);
- End
- Else
- CCIClassic = 0;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|