- UID
- 2
- 积分
- 2892977
- 威望
- 1396520 布
- 龙e币
- 1496457 刀
- 在线时间
- 13326 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-26
|
【TDirec】
- Variables: var0(0), var1(0), var2(0);
- var0 = Average(High, 20);
- var1 = Average(Low, 20);
- var2 = Average(Close, 50);
- condition1 = (var0 > var0[1] AND var1 > var1[1] AND Close > var1)
- AND ((var0 > var2 AND var1 > var2) OR Close > var2);
- If condition1 Then
- TDirec = 1
- Else
- begin
- condition1 = (var0 < var0[1] AND var1 < var1[1] AND Close < var0)
- AND ((var0<var2 AND var1<var2) OR Close < var2);
- If condition1 Then
- TDirec = -1;
- end;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|