如题,我的程序如下,加载在15分钟的K线上为什么不能实现每隔10s加仓一手的目标呢?
if c>0 && CURRENTTIME-extgbdata('timezzh4')>=10 then begin
extgbdataset('timezzh4', CURRENTTIME);
tbuy(1,1,lmt,DYNAINFO( 54),0,'606753');
end
if c>0 && CURRENTTIME-extgbdata('timezzh4')>=10 then begin
extgbdataset('timezzh4', CURRENTTIME);
tbuy(1,1,lmt,DYNAINFO( 54),0,'606753'),
allowrepeat;
end
这个要加allowrepeat,不加的话根据金字塔的交易模式,一根k线只会下单一次