老师你好,麻烦把下面的逐K线模式改写固定轮询模式,谢谢:
entertime:=time<=151000 and time>=091500;
exittime:=time>=151400;
smx:=ma(c,20);
long:=smx>ref(smx,1); //开多平空条件
short:=smx<ref(smx,1); //开空平多条件
if long then begin
sellshort(1,0,marketr),orderqueue;
buy(holding=0 and entertime,1,marketr),orderqueue;
end
if short then begin
sell(1,0,marketr),orderqueue;
buyshort(holding=0 and entertime,1,marketr),orderqueue;
end
if enterprice-c>=zs or exittime then sell(1,0,marketr),orderqueue;
if c-enterprice>=zs or exittime then sellshort(1,0,marketr),orderqueue;
怎么会不能改写呢?老师一看代码的意思,就可以改成轮询模型的,我相信你连C++都写得出来的
老师,我的意思就是不用新图表交易,用轮询模型,一到人价位就交易的那种,比如后台交易的那种轮询模型