以下是同花顺黑马挖坑公式

同花顺黑马挖坑公式

源码

DIF:EMA(CLOSE,12)-EMA(CLOSE,26),colorred,LINETHICK2;

DEA:EMA(DIF,9),colorwhite,LINETHICK2;

持仓段:=0,COLOR00CFFF;

空仓段:=0,COLORFFCCFF;

STICKLINE(DIF>DEA,-0.5,-0.6,10,1),COLOR00CFFF;

STICKLINE(DIF<DEA,-0.5,-0.6,10,1),COLORFFCCFF;

MACD:(DIF-DEA)*2,COLORSTICK;

STICKLINE(((MACD<REF(MACD,1)) AND (MACD>0)),0,MACD,1,0),colorliblue,LINETHICK2;

STICKLINE(((MACD>REF(MACD,1)) AND (MACD<0)),0,MACD,1,0),COLORFF00FF,LINETHICK2;

建仓: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),COLORFF937F,LINETHICK2;

AA:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));

二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1;

DRAWTEXT(二次金叉,0.2,’ 二次金叉’),coloryellow;

A1:=BARSLAST(REF(CROSS(DIF,DEA),1));

背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);

STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;

底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),colorred,LINETHICK4;

DRAWTEXT(底背离,0.12,’ 底背离’),COLORFF00FF;

顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);

顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen,LINETHICK4;

同花顺黑马挖坑公式

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