- UID
- 2
- 积分
- 2874604
- 威望
- 1387331 布
- 龙e币
- 1487273 刀
- 在线时间
- 13155 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
【UltimateOsc】
- Inputs: Avg1(NumericSimple), Avg2(NumericSimple), Avg3(NumericSimple);
- Variables: var0(0), var1(0), var2(0), var3(0), var4(0), var5(0), var6(0), var7(0), var8(0), var9(0), var10(0);
- var3 = Summation(TrueRange, Avg1);
- var4 = Summation(TrueRange, Avg2);
- var5 = Summation(TrueRange, Avg3);
- condition1 = MinList(var3, var4, var5) = 0 ;
- If condition1 Then
- UltimateOsc = 0
- Else
- begin
- condition1 = var3 <> 0 AND var4 <> 0 AND var5 <> 0 ;
- If condition1 Then
- Begin
- var0 = Summation(Close - TrueLow, Avg1);
- var1 = Summation(Close - TrueLow, Avg2);
- var2 = Summation(Close - TrueLow, Avg3);
- var8 = (var0 / var3) * 4;
- var9 = (var1 / var4) * 2;
- var10 = (var2 / var5);
- UltimateOsc = (var8 + var9 + var10) / 7;
- End;
- end;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|