Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:求助

1楼
三朱一树 发表于:2012/7/29 12:57:12

if time>09300 and time<144500 then

begin

if 条件 then  

 begin
 buy(1,tn,THISCLOSE);
end

 

if 条件2 then

 begin
 sellshort(1,tn,THISCLOSE);
end

end

 

另外这样:

sj:=time>09300 and time<144500 then

 

if 条件 and sj then

 begin
 buy(1,tn,THISCLOSE);
end

if 条件2 and sj then

 begin
 sellshort(1,tn,THISCLOSE);
end

 

条件是一样的,为什么测试时,开仓的次数不一样,后者少了几十次,求解。

 

 

 

 

2楼
RogarZ 发表于:2012/7/29 13:29:01

条件不一样啊~

你第二个

“if 条件 and sj then ”

需要“条件”和"sj"同时成立,当然次数会变少

 
3楼
三朱一树 发表于:2012/7/29 13:36:22

呵呵!谢谢!

共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.04688 s, 3 queries.