逻辑判断错误是什么原因? [金字塔]
- 咨询内容:
逻辑判断错误,明显b41>b42,系统确判断为b41<b42
b41:=stkindiex('','ke.a',0,3,0,50); b42:=stkindiex('','ke.b',0,3,0,50); debugfile('c:\keab.txt',' b41 %.2f',b41); debugfile('c:\keab.txt',' b42 %.2f',b42); bkcon:=b41>42; skcon:=b41<42; debugfile('c:\keab.txt',' bkcon %.2f',bkcon); debugfile('c:\keab.txt',' skcon %.2f',skcon); //t11:=stkindiex('','tcon.tcon',0,1,0); //timecon1:=(t11-timetot0(pctime)<d);// or not(islastbar) if bkcon then begin debugfile('c:\keab.txt',' b41>b42 %.2f',1); end if skcon then begin debugfile('c:\keab.txt',' b41<b42 %.2f',-1); end
2015-01-30 09:44:56.490 bkcon 0.002015-01-30 09:44:56.490 skcon 1.002015-01-30 09:44:56.490 b41<b42 -1.002015-01-30 09:44:57.479 b41 38.182015-01-30 09:44:57.479 b42 33.812015-01-30 09:44:57.479 bkcon 0.002015-01-30 09:44:57.479 skcon 1.002015-01-30 09:44:57.480 b41<b42 -1.002015-01-30 09:44:58.478 b41 38.182015-01-30 09:44:58.478 b42 33.812015-01-30 09:44:58.478 bkcon 0.002015-01-30 09:44:58.478 skcon 1.002015-01-30 09:44:58.478 b41<b42 -1.002015-01-30 09:44:59.477 b41 38.182015-01-30 09:44:59.477 b42 33.812015-01-30 09:44:59.477 bkcon 0.002015-01-30 09:44:59.477 skcon 1.002015-01-30 09:44:59.477 b41<b42 -1.002015-01-30 09:59:56.197 b41 40.812015-01-30 09:59:56.197 b42 34.312015-01-30 09:59:56.197 bkcon 0.002015-01-30 09:59:56.198 skcon 1.002015-01-30 09:59:56.198 b41<b42 -1.002015-01-30 09:59:56.511 b41 40.792015-01-30 09:59:56.511 b42 34.302015-01-30 09:59:56.511 bkcon 0.002015-01-30 09:59:56.512 skcon 1.002015-01-30 09:59:56.512 b41<b42 -1.002015-01-30 09:59:57.164 b41 40.792015-01-30 09:59:57.164 b42 34.302015-01-30 09:59:57.164 bkcon 0.002015-01-30 09:59:57.164 skcon 1.002015-01-30 09:59:57.165 b41<b42 -1.002015-01-30 09:59:57.463 b41 40.792015-01-30 09:59:57.463 b42 34.302015-01-30 09:59:57.463 bkcon 0.002015-01-30 09:59:57.463 skcon 1.002015-01-30 09:59:57.464 b41<b42 -1.002015-01-30 09:59:58.189 b41 40.792015-01-30 09:59:58.189 b42 34.302015-01-30 09:59:58.189 bkcon 0.002015-01-30 09:59:58.189 skcon 1.00 - 金字塔客服:
管理员在吗。
- 用户回复:
你k线图上看下 bkcon:=b41>42;
skcon:=b41<42;
b41
b42
这四个值的逻辑判断对吗
- 网友回复:
在图上显示是正确的。
- 网友回复: 在图上b41,b42的值显示是正确的。BKCON和SKCON不正确。
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容