选股之后再自动下单,这个不行
只能选股之后手动下单或者选择好股票之后再自动下单
不是很明白,一共就两步,
1找出满足条件的股票
2涨停价买入
为啥分步可以,合起来就不行呢?
股票池是给定的,不用当日选的。
是根据选定的股票做交易啊。
我先试试思路,稍等
需求需要用后台来实现,但是后台不能实现百分比资金下单,所以设定了条件满足后下1手单
if DYNAINFO( 14)>=0.099 and extgbdata('jilu')=0 then begin
extgbdataset('biaoji',1);
extgbdataset('jilu',1);
extgbdataset('shijian',dynainfo(207));
end
if dynainfo(14)<0.099 then begin
extgbdataset('biaoji',0);
extgbdataset('jilu',0);
end
if extgbdata('biaoji')=1 and timetot0(dynainfo(207))-timetot0(extgbdata('shijian'))>5 and time<144500 and sum(vol,todaybar)>=ref(sum(vol,todaybar),ref(todaybar,todaybar)) then tbuy(tholding=0,1,lmt,DYNAINFO( 54));
想要改下单手数就修改上面加粗有下划线的1
把1改成
100000/dynainfo(7)/保证金比率
自定义下保证金比率就行