以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [求助]怪了!没信号!帮我看看!哪里写错了  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=50394)

--  作者:carl9186
--  发布时间:2013/3/29 9:11:55
--  [求助]怪了!没信号!帮我看看!哪里写错了

//日内第一根K线为阴线,第二根K线开空 3分钟周期
position:barslast(date<>ref(date,1)),noaxis,nodraw;

firstyin:=ref(c,1)<ref(o,1);

if time>=091500 and time<=093000 and  firstyin and position=1 then sell(1,1,limitr,open);


--  作者:jinzhe
--  发布时间:2013/3/29 9:40:37
--  
if todaybar=2 and ref(o,1)>ref(c,1) then buyshort(holding=0,1,limitr,o);
--  作者:carl9186
--  发布时间:2013/3/29 10:26:33
--  

也没有信号。 测试过吗?