通达信亲测可用 N:=6;{N是背离参数,自设} MTM:CLOSE-REF(CLOSE,6);{12和6是软件默认参数,自调} C1:=MTM; AA1:=REF(C1,N)=HHV(C1,2*N+1); BB1:=BACKSET(AA1,N+1); CC1:=FILTER(BB1,N) AND C1=HHV(C1,N+1); A1:=BARSLAST(REF(CC1,1)); 顶背离:=REF(CLOSE,A1+1)<CLOSE AND REF(C1,A1+1)>C1 AND CC1; DRAWLINE……
MTM指标的顶底背离
0