input:m(26,5,100,10);
input:k(2,0.4,10,1);
input:ss(1,1,100,1);
if07hc:=callstock('if07',vtclose,3);
if08hc:=callstock('if08',vtclose,3);
jc:=if08hc-if07hc;
daymid:=ma(jc,m);
dayupper:=daymid+k*std(jc,m);
daylower:=daymid-k*std(jc,m);
if jc>dayupper and holding<0 then sellshort(holding<0,0,limitr);
if jc<daylower and holding>0 then sell(holding>0,0,limitr);
if jc>dayupper and holding=0 then buy(holding=0,ss,limitr);
if jc<daylower and holding=0 then buyshort(holding=0,ss,limitr);
此主题相关图片如下:qq截图20140709222212.jpg
如图请教上述代码为什么会出现很多白色的箭头,实际的开平信号一个都没有
if jc>dayupper and holding<0 then sellshort(holding<0,0,limitr,c);
if jc<daylower and holding>0 then sell(holding>0,0,limitr,c);
if jc>dayupper and holding=0 then buy(holding=0,ss,limitr,c);
if jc<daylower and holding=0 then buyshort(holding=0,ss,limitr,c);