同花顺顶底背离副图公式 源码
-
相关简介:同花顺顶底背离副图公式 源码 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,3,1),colorwhite; D:SMA(K,3,1),coloryellow; J:3*K-2*D,coloryellow; 金叉:IF(SUM(CROSS(K,D)AND D23,15)=2 AND CROSS(K,D)AND CO,10,0),COLORFFFF00; PARTLINE(J,JD,RGB(250,0,0),JD,R
-
文章来源:股海网作者:股海网发布时间:2016-06-17浏览次数:
同花顺顶底背离副图公式
源码
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),colorwhite;
D:SMA(K,3,1),coloryellow;
J:3*K-2*D,coloryellow;
金叉:IF(SUM(CROSS(K,D)AND D<23,15)>=2 AND CROSS(K,D)AND C>O,10,0),COLORFFFF00;
PARTLINE(J,J>D,RGB(250,0,0),J<D,RGB(0,250,0)),LINETHICK3;
FILLRGN(K,D,K>D,RGB(155,50,50),K<D,RGB(0,100,50));
STICKLINE((J>100 AND K>=60),100,J,9,0),coloryellow;
STICKLINE(K>92,100,K,1,1),colorgreen;
STICKLINE((J<=0 AND K<=30),0,J,9,0),coloryellow;
STICKLINE(K<=9,0,K,1,1),colorred;
A1:=BARSLAST(REF(CROSS(J,K),1));
底背:=REF(CLOSE,A1+1)>CLOSE AND J>REF(J,A1+1) AND CROSS(J,K);
底:DRAWLINE(A1=0,D,底背,D,0),colorred,POINTDOT;
DRAWTEXT(底背,D,'底B'),colorred;
A2:=BARSLAST(REF(CROSS(K,J),1));
顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(J,A2+1)>J AND CROSS(K,J);
顶:DRAWLINE(A2=0,D,顶背,D,0),colorblue,POINTDOT;
DRAWTEXT(顶背,D,'顶B'),colorblue;
压力线:DRAWLINE(D>=HHV(D,21),D,D<=LLV(D,21),D,1),colorblue;