看下http://www.weistock.com/bbs/dispbbs.asp?boardid=10&id=9439&authorid=0&page=0&star=2
第八点,提前下单,你这边改成固定这个时间即可
DYNAINFO(207) 和 CURRENTTIME可以获取即时时间,这两个函数只有最新值没有历史值不建议在图表中使用,
4楼写法不行
是要收盘前15秒平仓?下面这个
m15:(t0totime(timetot0(closetime(0))-15));
if time>=m15 and holding>0 then Sell(1,1,market);
m15:(t0totime(timetot0(closetime(0))-60)); if time>=m15 and holding>0 then Sell(1,1,market); 这样就是收市前1分钟平多?无论什么周期的图表程序化都有效?? 无论是走完一根K线模式还是轮询模式都可以? |
两种方法都可以,你自己指定145959这样也是没问题
但图表不建议使用这类只有最新值得使用,容易造成历史信号的不稳定
要使用也请配合上面给你的链接里这种 not(islastbar)
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);
if abb then begin