初始第一次平仓+1,第二次平仓则+2 ,
第三次平仓则+3, 继续平仓时,以此类推。et:=TENTERPRICE;//上次开仓价;
第一次平仓et+1;
第二次平仓et+2;
第三次平仓et+3---
----
variable:n=1;
if TAVGENTERPRICEEX2(0) then begin
if
et +1>
et then n:=1;
end
if mod(o-(et+n),2)=0 then tsell(1,1,lmt,(et+n),0),SLITHERMETHOD;
?
variable:n=1;
if TAVGENTERPRICEEX2(0) then begin
if et +1> et then n:=n+1;
end
if mod(o-(et+n),2)=0 then tsell(1,1,lmt,(et+n),0),SLITHERMETHOD;
?
自己在后台用模拟环境实验一下不就知道是否满足你要求了?客服也不是神仙