通不过
input:stopnum(20,5,50,5);
runmode:1;
if tholding=0 then begin
extgbdataset('stopprice',low-stopnum*mindiff);
tbuy(1,1,lmt,close);
end;
if tholding>0 then begin
if low-stopnum*mindiff>extgbdata('stopprice') then
extgbdataset('stopprice',low-stopnum*mindiff);
if low<=extgbdata('stopprice') then begin
tsell(1,tholding,lmt,extgbdata('stopprice')),orderqueue;
tbuyshort(1,1,lmt,extgbdata('stopprice')),orderqueue;
end;
end;
if tholding<0 then begin
if high+stopnum*mindiff<extgbdata('stopprice') then
extgbdataset('stopprice',high+stopnum*mindiff);
if high>=extgbdata('stopprice') then begin
tsellshort(1,tholding,lmt,extgbdata('stopprice')),orderqueue;
tbuy(1,1,lmt,extgbdata('stopprice')),orderqueue;
end;
end;
无法通过!
大于号小于号都改成半角就好了。
哦,原来是这个问题
努力学习!看不懂!
只能是在后台运行啊。