以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [求助]求证  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=12035)

--  作者:zk7777777
--  发布时间:2012/5/30 18:21:56
--  [求助]求证

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

 


--  作者:rushtaotao
--  发布时间:2012/5/31 8:47:08
--  
Sellshort(holding<0,holding,market);
 

Buy(holding=0,market);    请问这2条是反手的意思吗?  

 

 

平空开多(算是反手吧)

 

 

orderqueue;蓝色部分有用吗?

 

顺序委托下单指令(具体可查询函数说明)



--  作者:jinzhe
--  发布时间:2012/5/31 8:51:41
--  

1.先平后开是反手

2.只有一句下单语句的话,顺序下单没作用