从平仓后开始算n次吗?
站上10MA 算一次 反复N次再开仓
那就距离当前K ,REF 30根K以内?
ma5:=ma(c,5);
ma10:=ma(c,10);
n:=3;
if count(cross(c,ma10),30)>=n then buy(holding=0,10,market);
if cross(ma5,c) then sell(1,0,market);
这里补上两个止损条件 :开仓的K前后30根K的阶段低点止损 OR 开仓的K之前的5根K的低点止损 ,这两个条件是任一条件达成就止损。 这样怎么写呢?谢谢
ma10:=ma(c,10);
n:=3;
if count(cross(c,ma10),30)>=n then buy(holding=0,10,market);
if cross(ma5,c) then sell(1,0,market);
if l<ref(llv(l,5),enterbars) then sell(1,0,market);
if enterbars>1 and l<ref(llv(l,30),1) then sell(1,0,market);
怎么没显示交易信号呢? 我要显示的做多的信号看不到呢