源码如下:
B5:(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
B10:(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;
MB10:ma((CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100,3);
BN:(CLOSE-MA(CLOSE,n))/MA(CLOSE,n)*100;
MBN: MA(((CLOSE-MA(CLOSE,n))/MA(CLOSE,n)*100),8);
z:0;
stickline(MBN>0 and MBN>ref(MBN,1),MBN,0,2,0),colorred;
stickline(MBN<0 and MBN<ref(MBN,1),MBN,0,2,0),colorblue;
stickline(MBN>0 and MBN<ref(MBN,1),MBN,0,2,0),coloryellow;
stickline(MBN<0 and MBN>ref(MBN,1),MBN,0,2,0),colorgreen;
A1:=BARSLAST(REF(CROSS(BN,MBN),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND BN>REF(BN,A1+1) AND CROSS(BN,MBN);
STICKLINE(底背离,0,0.008,8,0),COLORRED,linethick3;
DRAWLINE(A1=0,MBN,底背离,MBN,0),COLORRED,linethick3
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(MBN,A2+1)>BN AND CROSS(MBN,BN);
DRAWLINE(A2=0,MBN,顶背离,MBN,0),COLORGREEN,linethick3 {顶尖财经网www.58188.com整理}
|
|
|
|
|