ma5:ma(c,5),linethick2,colorwhite;
ma10:ma(c,10),linethick2,colorgreen;
jc:=cross(ma5,ma10);
sc:=cross(ma10,ma5);
nn1:=barslast(jc);
nn2:=barslast(sc);
hh:=hhv(h,jc+1);
ll:=llv(l,sc+1);
if sc then hh1:=hh;
if jc then ll1:=ll;
hh1死叉到金叉的最高值
ll1就是死叉到金叉的最低值
ma5:ma(c,5),linethick2,colorwhite;
ma10:ma(c,10),linethick2,colorgreen;
jc:=cross(ma5,ma10);
sc:=cross(ma10,ma5);
nn1:=barslast(jc);
nn2:=barslast(sc);
hh:=hhv(h,nn1+1);
ll:=llv(l,nn2+1);
if sc then hh1:=hh;
if jc then ll1:=ll;
hh3:=ref(ref(hhv(h,nn1+1),nn2+1),nn1+1);
ll3:=ref(ref(hhv(h,nn1+1),nn2+1),nn1+1);
if sc then hhh:=hh3;
if jc then lll:=ll3;
hhh和lll就是了
这个没有前后台之分,要求这样的数据是必须要这样算的