我的代码如下,在条件满足情况下,保证金也满足下,系统只给我开仓14手,怎么回事啊?
if (Ref(ShortEnter1,1) or ShortEnter2 or ShortEnter3) and Holding>=0 then
//if ( ShortEnter1 or ShortEnter2 or ShortEnter3) and Holding>=0 then
begin
Sell( true, 0 ,market),ORDERQUEUE;
BuyShort( true, 45 ,market),ORDERQUEUE;
end
if (ShortExit or (Time=150000 and not(ShortEnter3))) and Holding<=-1 then
begin
SellShort(true, 0 ,market),ORDERQUEUE;
end
if (Ref(LongEnter1,1) or LongEnter2 or LongEnter3 ) and Holding<=0 then
//if ( LongEnter1 or LongEnter2 or LongEnter3 ) and Holding<=0 then
begin
SellShort( true, 0 ,market),ORDERQUEUE;
Buy( true, 45 ,market),ORDERQUEUE;
end
if (LongExit or (Time=150000 and not(LongEnter3))) and Holding>=1 then
begin
Sell(true,0,market),ORDERQUEUE;
end