THISclose
实际就是对手价
具体交易报错日记
http://www.weistock.com/bbs/dispbbs.asp?boardid=2&id=63249&authorid=0&page=0&star=2
用你们的引用动态行情办法
会出现信号消失,已经出好多次错了,赔了不少钱了,实盘与模拟不一样的,八月份到期,现在在考虑换软件,是CTP还是别的软件
variable:j=0;
if j=0 and holding=0 then
begin
if (c=DYNAINFO(54) or c=DYNAINFO(55) ) then
begin
buy(kd,1,MARKETr,c);
j:=1;
end
else
begin
buy(kd,1,thisclose);
j:=1;
end
end
if j=0 and holding=0 then
begin
if (c=DYNAINFO(54) or c=DYNAINFO(55) ) then
begin
buyshort(kk,1,MARKETr,c);
j:=1;
end
else
begin
buyshort(kk,1,thisclose);
j:=1;
end
end
if j=1 then
begin
if (c=DYNAINFO(54) or c=DYNAINFO(55) ) then
begin
sellshort(pk,1,marketr,C);
j:=0;
end
else
begin
sellshort(PK,1,thisclose);
j:=0;
end
end
if j=1 then
begin
if (c=DYNAINFO(54) or c=DYNAINFO(55) ) then
begin
sell(pd,1,marketr,C);
j:=0;
end
else
begin
sell(pd,1,thisclose);
j:=0;
end
end
是不是以前THISCLOSE在停板时不好用对价,现在停板时可以用对价交易
就是现在停板时可以用THISCLOSE,这时这个下单就会转为自动最新价,这样不会因没有对手盘而出现下单失败。
是不是这样
是的