{n=14,1,100,n1=24,1,100} TYP := (HIGH + LOW + CLOSE)/3; typi1:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)); typi2:(TYP-MA(TYP,N1))/(0.015*AVEDEV(TYP,N1)); A3:=BARSLAST(ref(cross(typi1,typi2),1)); B3:=ref(c,A3+1)>c and ref(typi1,A3+1)<typi1 and cross(typi1,typi2); DRAWTEXT(FILTER(B3>0,5),typi1*0.985,'CCI 底背'),COLORCYAN; C3:=BARSLAST(ref(cross(typi2,typi1),1)); D3:=ref(c,C3+1)<c and ref(typi1,C3+1)>typi1 and cross(typi2,typi1); DRAWTEXT(FILTER(D3>0,5),typi1*1.015,'CCI 頂背'),COLORMAGENTA; |
联系客服