以下是通达信周口人自用副图指标

通达信周口人自用副图指标

源码

LONG:=24;SHORT:=13;M:=6;
DIF:EMA(CLOSE,SHORT) – EMA(CLOSE,LONG);
DEA:EMA(DIF,M),COLOR85B559;
MACD:2*(DIF-DEA),COLORSTICK;
MACD2:2*(DEA-DIF),COLORFF9933;
A4:=BARSLAST(REF(CROSS(DIF,DEA),1));
B1:=REF(C,A4+1)>C AND REF(DIF,A4+1)<DIF AND CROSS(DIF,DEA);
DRAWTEXT(FILTER(B1>0,5),DIF+0.2,’背离‘),COLORYELLOW;
操盘:STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORRED{COLOR6058FF};
减仓:STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,1,0),COLORBLUE{COLOR6058FF};
反弹:STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORYELLOW{COLORFFFF00};
寻底:STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,1,0),COLORFFFF00;
空仓:0,COLOR0099FF;
IF(DIF<0,DIF,0),COLORYELLOW,LINETHICK2;
IF(DIF<0,0,DIF),COLORRED,LINETHICK2;
IF(DIF<DEA,DIF,DEA),COLORWHITE,LINETHICK2;
IF(DIF>DEA,DEA,DEA),COLORGREEN{COLORFF00FF},LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
周K:=MA(“KDJ.K#WEEK”(9,3,3) ,5);
周D:=MA(“KDJ.D#WEEK”(9,3,3) ,5);
周J:=MA(“KDJ.J#WEEK”(9,3,3) ,5);
周金:DRAWTEXT(CROSS(“KDJ.K#WEEK”(9,3,3),”KDJ.D#WEEK”(9,3,3)) ,MACD,’▲’),COLORRED;
周死:DRAWTEXT(CROSS(“KDJ.D#WEEK”(9,3,3),”KDJ.K#WEEK”(9,3,3)) ,MACD*1.5,’▼’),COLORFFFF00;

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