以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://www.weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://www.weistock.com/bbs/list.asp?boardid=4)
----  请老师帮忙!急!  (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=29844)

--  作者:a290380438
--  发布时间:2012/10/15 18:17:47
--  请老师帮忙!急!

 

  

把914

 

下:

time1:= time>090300 and time<112700 or (time>133300 and time<145700);

time:= time> 112700 and time<113000 or (time>145700 and time<150000);

if c>均线 and time1 then begin

sellshort();

buy();

end//价在均线上平空开多

 

if c<均线 and time1  then begin

sell();

buyshort();

end//价在均线下平多开空

 

if c<0.99*enterprice and holding>0 then sell();//1%多头止损

if c>enterprice*1.01 and holding<0 then sellshort();//1%空头止损

 

if time2 then begin//收盘前平仓

sell();

sellshort();

end

 



--  作者:jzt3321
--  发布时间:2012/10/15 23:34:45
--  

这帖子见过无数次了,也给过答复 懒得再理你了


--  作者:a290380438
--  发布时间:2012/10/17 16:09:59
--  什么时候给过答复?
,
--  作者:lichenghu
--  发布时间:2012/10/17 16:19:51
--  

时间限制 和止损都出掉?