上
if BP then
begin
Tsellshort(BP,Tholding<0,0,LMT,C);
end
if BK then
begin
Tsellshort(BP,Tholding<0,0,LMT,C);
Tbuy(BK and THOLDING=0,1,LMT,C);
end
if SP then
begin
Tsell(SP,Tholding>0,0,LMT,C);
end
if SK then
begin
Tsell(BP,Tholding<0,0,LMT,C);
Tbuyshort(SK and THOLDING=0,1,LMT,C);
end
下
if BP then
begin
Tsellshort(BP and Tholding<0,0,LMT,C);
end
if BK then
begin
Tsellshort(BP and Tholding<0,0,LMT,C);
Tbuy(BK and THOLDING=0,1,LMT,C);
end
if SP then
begin
Tsell(SP and Tholding>0,0,LMT,C);
end
if SK then
begin
Tsell(BP and Tholding<0,0,LMT,C);
Tbuyshort(SK and THOLDING=0,1,LMT,C);
end
上下两段代码那段是正确的,上能开仓,但不能平仓,请老师改正,要求开仓平仓分开,尽量不要反手,谢谢!
2009-12-09 10:43:47
88944 : m1009 - 已提交
2009-12-09 10:43:49
88944 : m1009 - 已撤单报单被拒绝不被支持的报单类型