if c>zz and c>qs then begin
sellshort(holding<0,SS,MARKET),orderqueue;
buy(holding=0,SS,limitr,(open)),orderqueue,;
end
if c<zz and c<qs then begin
sell(holding>0,SS,MARKET),orderqueue;
buyshort(holding=0,SS,limitr,(open)),orderqueue;
end
if time>151300 then begin
收盘平空:SELLSHORT(HOLDING<0,HOLDING,market);
收盘平多:SELL(HOLDING>0,HOLDING,market);
end
if c>zz and c>qs then begin
sellshort(tholding<0,SS,mkt),orderqueue;
buy(tholding=0,SS,lmt,o),orderqueue,;
end
if c<zz and c<qs then begin
sell(tholding>0,SS,MARKET),orderqueue;
buyshort(tholding=0,SS,lmt,o),orderqueue;
end
if time>151300 then begin
收盘平空:tSELLSHORT(HOLDING<0,0,mkt);
收盘平多:tSELL(HOLDING>0,0,mkt);
end
老师:不是这样吗
if c>zz and c>qs then begin
Tsellshort(tholding<0,SS,mkt),orderqueue;
Tbuy(tholding=0,SS,lmt,o),orderqueue,;
end
if c<zz and c<qs then begin
Tsell(tholding>0,SS,MARKET),orderqueue;
Tbuyshort(tholding=0,SS,lmt,o),orderqueue;
end
对,buy之前要加t写成tbuy,我漏改了不好意思
谢谢!我的程序模型,在老师的支撑下已经很好了,接下来就是搞成后台模型了

此主题相关图片如下:未命名.jpg