c1:=条件1
c2:=条件2
c3:=条件3
c4:=条件4
c5:=条件5
c6:=条件6
if c1 and ref(count(c1,30)=0,1) and ref(count(c1,100)=1,1) then
begin
Sellshort(holding<0,holding,market);
Buy(holding=0,market); 请问这2条是反手的意思吗?
End
//开多时止盈
if holding>0 and c6 then
begin
Sell(1,0,market),orderqueue;
end
if c2 and ref(count(c2,30)=0,1) and ref(count(c2,100)=1,1) then
begin
Sell(holding>0,holding,market);
buyshort(holding=0,market);
end
//开空时止盈
if
holding<0 and enterprice>c and c5 then
begin
Sellshort(holding<0,holding,market),orderqueue;蓝色部分有用吗?
end
Buy(holding=0,market); 请问这2条是反手的意思吗?
平空开多(算是反手吧)
orderqueue;蓝色部分有用吗?
顺序委托下单指令(具体可查询函数说明)
1.先平后开是反手
2.只有一句下单语句的话,顺序下单没作用