zq:=15;
tq:=2;
opentm:=openminutes(dynainfo(207));
lastopentm:=if(date<>ref(date,1),0,ref(openminutes(time),1));
abb:=(mod(currenttime,100)>=60-tq and islastbar and (opentm-lastopentm=zq-1 or time=091500 or time=093000 or time=094500 or time=100000 or time=101500 or time=104500 or time=110000 or time=111500 or time=113000 or time=134500 or time=140000 or time=141500 or time=143000 or time=144500 or time=150000)) or not(islastbar);
ENTERLONG:c>ma(c,10) and c>ma(c,5) and time<144500 and abb ,TFILTER;
EXITLONG:c<ma(c,10) and c<ma(c,5) and abb or time>144500 and abb,TFILTER;
ENTERSHORT:c<ma(c,10) and c<ma(c,5) and time<144500 and abb ,TFILTER;
EXITSHORT:c>ma(c,10) and c>ma(c,5) and abb or time>144500 and abb,TFILTER;
15分钟图怎么在10点55分开仓呢,模拟的!
你用的什么模式?逐K线 还是 固定轮询
容我三思
http://www.weistock.com/bbs/dispbbs.asp?BoardID=4&replyID=39117&ID=9006&skin=1
我就是参考这个帖子编的。
阿火写的两种方式你用不恰当的方法给融合了,要么都是逻辑计算方式,那么就是时间枚举方式,你写一起干嘛
比较好理解的是第二种10楼写的时间枚举法,你照着写就行了,不要写多余的