1.
variable:a=1,b=1;
if cross(d,k) and j<20 then a:=j;
if a>1 and 平空条件 and holding<0 then begin
sellshort........;
a:=0;
end
if cross(k,d) and j>100 then b:=j;
if b>1 and 平多条件 and holding>0 then begin
sell.........;
b:=0;
end
2,输出和读取文件参考GETINIFILE和WRITEINIFILE
比较大小就不行了
比较大小就是
jj:=valuewhen(cross(d,k),j);
j_ll:llv(jj,0);
j_hh:hhv(jj,0);
0表是比较全部的数值,想要限定周期改0就行了