N:=14;TYP:=(HIGH+LOW+CLOSE)/3;:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));1:=CCI;AA:=REF(RSI1,N)=HHV(RSI1,2*N+1);BB:=BACKSET(AA,N+1);CC:=FILTER(BB,N) AND RSI1=HHV(RSI1,N+1);A1:=BARSLAST(REF(CC,1));:REF(CLOSE,A1+1)
RSI1 AND CC,;DRAWICON(顶,CCI*0.9,2);DRAWLINE(CC,RSI1,FILTER(顶背离>0,5),RSI1,0),COLORGREEN,LINETHICK1;AA2:=REF(RSI1,N)=LLV(RSI1,2*N+1);BB2:=BACKSET(AA2,N+1);CC2:=FILTER(BB2,N) AND RSI1=LLV(RSI1,N+1);A2:=BARSLAST(REF(CC2,1));:REF(CLOSE,A2+1)>CLOSE AND REF(RSI1,A2+1)0,5),RSI1,0),COLOR