通达信MACD+KDJ共振指标公式源码 - 股窜网-系统学习股票知识

              本文重点:通达信MACD+KDJ共振指标公式源码 - 股窜网-系统学习股票知识

              通达信MACD+KDJ共振指标公式源码时间:2019-07-0300:03来源:股窜网作者:gucuan阅读:次股窜网()提醒您,以下是:通达信+KDJ共振指标公式源码DIF:(EMA(CLOSE,6)-EMA(CLOSE,13))*100;DEA:EMA(DIF,5);MACD:(DIF-DEA)*2,COLORSTICK;DRAWICON(CROSS(DIF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIF),DEA,2);IF(DIFDEA,DIF,DRAWNULL),COLORGREEN;DD:=C=HHV(C,180);EE:=DEAREF(DEA,1)ANDREF(DEAREF(DEA,1),1)=1;CC:=CREF(C,1)ANDREF(CREF(C,1),1)=1;顶背离:=(DDANDEEANDDEAHHV(DEA,180))*DEA;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORBROWN,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,9,3),COLORMAGENTA;D:SMA(K,9,3),COLORBLUE;J:3*K-2*D,COLORGRAY;IF(JD,J,DRAWNULL),COLORFFEE44;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));B1:=REF(C,A1+1)CANDREF(DIF,A1+1)DIFANDCROSS(DIF,DEA);A22:=BARSLAST(REF(CROSS((9,3,3),(9,3,3)),1));B2:=REF(C,A22+1)CANDREF((9,3,3),A22+1)(9,3,3)ANDCROSS((9,3,3),(9,3,3));A3:=BARSLAST(REF(CROSS((6,12,24),(6,12,24)),1));B3:=REF(C,A3+1)CANDREF((6,12,24),A3+1)(6,12,24)ANDCROSS((6,12,24),(6,12,24));DRAWTEXT(B1,,▲MACD底背),COLORWHITE;DRAWTEXT(B2,,●KDJ底背),COLORYELLOW;DJ:=CROSS(J,D)ANDDDRAWTEXT(DJ,,低金叉),COLORMAGENTA;MDJ:=CROSS(DIF,DEA)ANDDEADRAWTEXT(MDJ,,低金叉),COLORRED;DRAWTEXT(CROSS(DEA,DIF),DIF+,死叉),COLORCYAN;DRAWTEXT(CROSS(D,J),J+,死叉),COLORGREEN;A:=CROSS(DIF,DEA)ANDCROSS(K,D)ANDCROSS(J,D);DRAWICON(A,LOW*,1);B4:CROSS(DIF,DEA)ANDCROSS((9,3,3),(9,3,3));DRAWTEXT(B4,,★金叉共振),COLOR0099FF;DRAWICON(CROSS(K,D),D,1);DRAWICON(CROSS(D,K),D,2);BA:=DEAREF(DEA,1);BB:=SUM(BA,5)BC:=CBD:=SUM(BC,5)BXG:FILTER(BBANDBDANDJREF(J,1)ANDREF(J,1)REF(J,2),3);STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORRED;SS:=EMA(C,11);LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));(CROSS(AA,)-1);。