止盈后不开仓,到了第二天再开吗
请问按照开仓后盈利最高值回撤10%止盈,止盈后不开仓的条件如何加到开仓条件里
variable:bj=0;
开仓条件加入bj=0;
if openprofit<=hhv(openprofit,enterbars+1)*0.9 and enterbars>0 and hhv(openprofit,enterbars+1)>0 and holding>0 then begin
sell(1,0,marketr);
bj:=1;
end
if time=closetime(0) then bj:=0;
variable:bj=0;
开仓条件加入bj=0;
if openprofit<=hhv(openprofit,enterbars+1)*0.9 and enterbars>0 and hhv(openprofit,enterbars+1)>0 and holding<>0 then begin
sell(1,0,marketr);
sellshort(1,0,marketr);
bj:=1;
end
if time=closetime(0) then bj:=0;
加上平空了
按照你思路写的,盈利太少一回落就平仓你就改下你的思路