空头止损:valuewhen(波动>aa and holding<0,high);
多头止损:valuewhen(波动>aa and holding>0,low);
日线系统吗?
if c>ref(c,1)>100 then 开仓语句;
然后止损是昨收?
if c<ref(c,1) then 平仓语句;
类似这样的吗?
variable:zs=0;
rr:=ref(c,1);
if c-rr>r and holding=0 then begin
buy.....;
zs:=rr;
end
if c-ref(c,1)>r and holding>0 then zs:=rr;
if holding>0 and c<zs then sell........;