N:=9; M:=3;
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:EMA(RSV,M);
D:MA(K,M);
上穿10:CROSS(k,10),LINETHICK0;
上穿20:CROSS(k,20),LINETHICK0;
//www.8 8 g s.com
10;
20;
K1:=BARSLAST(REF(CROSS(K,D),1));
K2:=REF(C,K1+1)>C AND REF(K,K1+1)<K AND CROSS(K,D);
底背离:K2>0 AND D<25,coloryellow,LINETHICK0;
DRAWTEXT(K2>0 AND D<25,18,'底背离'),coloryellow;
M1:=BARSLAST(REF(CROSS(D,K),1));
M2:=REF(C,M1+1)<C AND REF(K,M1+1)>K AND CROSS(D,K);
顶背离:M2>0 AND D>75,colorgreen,LINETHICK0;
DRAWTEXT(M2>0 AND D>75,K*1.15,'顶背离'),colorgreen;
机会:CROSS(k,d),LINETHICK0;
|
