以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://weistock.com/bbs/list.asp?boardid=2)
----  出现这样的成交?  (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=3689)

--  作者:panjian
--  发布时间:2010/11/4 11:07:11
--  出现这样的成交?


 

2010-11-04 10:38:45
77022 : SR109 - 已成交 1 价格:6860 开 买

2010-11-04 10:45:02
77022 : SR109 - 综合交易平台:平仓量超过持仓量

2010-11-04 10:45:02
77022 : SR109 - 已报单 1 价格:0 平 卖

2010-11-04 10:45:02
77022 : SR109 - 已成交 1 价格:6855 平 卖

 以上是我的成交记录 上面提醒我平仓量超过持仓量 其实提醒是不对的 我确实买了一手糖 也只平了一手糖 下面看来也确实只成交了一手糖 应该没有错误 后来也确实平了1手 怎么会出现上面的提醒


--  作者:admin
--  发布时间:2010/11/4 11:21:22
--  

2010-11-04 10:45:02
77022 : SR109 - 综合交易平台:平仓量超过持仓量

2010-11-04 10:45:02
77022 : SR109 - 已报单 1 价格:0 平 卖

 

从这个记录来看,你是连续报了两次平仓指令,当然只有一次才会是有效的


--  作者:panjian
--  发布时间:2010/11/4 11:31:00
--  

 


Variable:BuyCon=1;
Variable:duo=1;
Variable:kong=1;
variable:w=1;
s:=tenterbars;
variable:z=1;
 z:=a;
 w:=b;
BuyCon: =c);
duo:=d;
kong:=e;
If BuyCon and duo and tholding=0 then begin
tbuy(1,1,mkt);
end
if BuyCon and kong and tholding=1 then begin
tSELL(1,0,MKT);
tBUYSHORT(1, 1,MKT);
end
if s=1 and tholding=1 then
begin
tsell(1,0,mkt);
end
if s=1 and tholding=-1 then
begin
tSELLSHORT(1,0,MKT);
end

if BuyCon and kong and tholding=0 then
begin
tbuyshort(1,1,mkt);
end
if BuyCon and duo and tholding=-1 then
begin
tSELLSHORT(1,0,MKT);
tBUY(1,1,MKT);
end
if s=1 and tholding=1 then
begin
tsell(1,0,mkt);
end
if s=1 and tholding=-1 then
begin
tSELLSHORT(1,0,MKT);
end
if  currenttime>145955  then
begin
tsell(1,0,mkt);
end
if currenttime>145955   then
begin
tsellshort(1,0,mkt);
end

 

以上是我的指令框架 版主帮我分析一下 或者帮我改一下 框架 让我避免两次报单