以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://weistock.com/bbs/list.asp?boardid=2)
----  为什么后台运行的dynainfo(7)显示成这个样子,不是最新价?  (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=48014)

--  作者:淡月映梅
--  发布时间:2013/1/23 13:12:02
--  为什么后台运行的dynainfo(7)显示成这个样子,不是最新价?

2013-01-23 13:03:46.977    dk:= 0
2013-01-23 13:03:46.978    kk:= 0
2013-01-23 13:03:46.978    openprice:= 2590
2013-01-23 13:03:46.978    mark:= 1
2013-01-23 13:03:46.978    DZSX:= 2588.3999
2013-01-23 13:03:46.979    KZSX:= 2592.3999
2013-01-23 13:03:46.983    c:= 3992.0000

 

上面监控的是if品种?

为什么后台运行的dynainfo(7)显示成这个样子,不是最新价,而是其它策略应用在rb的最新价?


--  作者:淡月映梅
--  发布时间:2013/1/23 13:41:01
--  

想再多问一下,这段代码为什么不能止损平仓?

if DYNAINFO(7)>=(TENTERPRICE+zyd) and tbuyholding(1)>0 then
   begin
     tsell(tholding>0,tbuyholding(1),lmt,tenterprice+zyd);
     rumark:=0;
   end;
if DYNAINFO(7)<=(tenterprice-zsd) and tbuyholding(1)>0 then
   begin
     tsell(tholding>0,tbuyholding(1),stp,tenterprice-zsd);
     rumark:=0;
   end;


--  作者:jinzhe
--  发布时间:2013/1/23 14:13:09
--  

http://www.weistock.com/bbs/dispbbs.asp?BoardID=4&ID=1246&replyID=&skin=1

自行调试下吧