第1条均线M1 第2条均线M2 :
M1上穿M2做多 期间 每根K线只要碰到M1就做多
M2上穿M1做空 期间 每根K线只要碰到M1就做空
离场条件:
1:移动止损止盈P跳 (P=1~500) S手数(1~1000)
2:02:59所有持仓平仓,禁止开仓
第1条均线M1 第2条均线M2 :
M1上穿M2做多 期间 每根K线只要碰到M1就做多
M2上穿M1做空 期间 每根K线只要碰到M1就做空
离场条件:
1:移动止损止盈P跳 (P=1~500) S手数(1~1000)
2:02:59所有持仓平仓,禁止开仓
m1:=ma(c,5);
m2:=ma(c,10);
if cross(m1,m2) then buy(holding=0,1,marketr);
if holding>0 and h>=m1 and l<=m1 then buy(1,1,limitr,m1);
if cross(m2,m1) then buyshort(holding=0,1,marketr);
if holding<0 and h>=m1 and l<=m1 then buyshort(1,1,limitr,m1);
if holding>0 and c<=hhv(h,enterbars+1)-p then sell(1,s,marketr);
if holding<0 and c>=llv(l,enterbars+1)+p then sellshort(1,s,marektr);