1.
if l<=hhv(h,enterbars+1)-10 then 平仓语句;
2.
variable:hh;=0;
if 开仓条件 and holding=0 then begin
开仓语句;
hh:=h;
end
if h>hh then hh:=h;
if l<hh-10 then 平仓语句;
上面的思路都是记录开仓后的最高价然后用当前的最低价做比对。
这个回落是一种思路,你要的了解是怎么用的,而不是记录所谓全部的写法。