ma5:=ma(c,5);
ma10:=ma(c,10);
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);
if abb then begin
if holding>0 and ma5<ma10 then sell(1,1,thisclose);
if holding<0 and ma5>ma10 then sellshort(1,1,thisclose);
if holding=0 and ma5>ma10 then buy(1,1,thisclose);
if holding=0 and ma5<ma10 then buyshort(1,1,thisclose);
end
可以提前下单。但time0在日线级别返回的是,无法在日线级别使用。还有其它方法可以在日线级别提前下单吗?金字塔专业版提前下单可以日线级别吗?
abb这句这样改:
abb:=(timetot0(closetime(0))-timetot0(dynainfo(207))<=tq) or not(islastbar);
可以日线上用,做过修改,但是没改函数说明
固定轮询1秒,不能用走完k线下单
abb这句这样改:
abb:=(timetot0(closetime(0))-timetot0(dynainfo(207))<=tq) or not(islastbar);
加入这样的语句后,本来日线级别有信号的,可是信号消失了,第二天开盘信号又出现了,这是什么原因?