以下是同花顺阳光选股指标公式

DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
 DEA:EMA(DIF,9);
 MACD:(DIF-DEA)*2,COLORSTICK;
 DRAWICON(CROSS(DIF,DEA),DEA,1);
 DRAWICON(CROSS(DEA,DIF),DEA,2);
 IF(DIF<DEA,DIF,DRAWNULL),colorgreen;
 DD:=C=HHV(C,180);
 EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
 CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;
 A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
 DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorred,LINETHICK2;
 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:SMA(RSV,9,3),coloryellow;
 D:SMA(K,9,3),colorwhite;
 J:3*K-2*D,colormagenta;
 A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);
 DRAWICON(A,LOW*0.98,1);
 B4:CROSS(DIF,DEA) AND CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3));
 DRAWTEXT(B4,L-0.20,’★金叉共振‘),COLOR0099FF;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。