【通達(dá)信】金牛MACD背離指標(biāo)公式
攻城獅 2015.11.08 05:25
DIF:EMA(CLOSE,12)-EMA(CLOSE,27),COLORRED,LINETHICK2;
DEA:EMA(DIF,9),COLORWHITE,LINETHICK2;
持倉段:=0,COLOR00CFFF;
空倉段:=0,COLORFFCCFF;
STICKLINE(DIF>DEA,-0.5,-0.6,10,1),COLOR00CFFF;
STICKLINE(DIFMACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(((MACD0)),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趨勢強弱:IF(DIF>DEA,DEA,DEA),COLORFF937F,LINETHICK2;
{m.guangshenggb.com 概念股網(wǎng)_最新股票指標(biāo)公式}
AA:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:CROSS(DIF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1,COLORMAGENTA,NODRAW;
DRAWTEXT(二次金叉,0.25,’ 二次金叉’),COLORYELLOW;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背離:REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA),COLORMAGENTA,NODRAW;
STICKLINE(底背離,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED,LINETHICK4;
DRAWTEXT(底背離,0.12,’ 底背離’),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
頂背離:REF(CLOSE,A2+1)DIF AND CROSS(DEA,DIF),COLORMAGENTA,NODRAW;
頂背:DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK4;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.guangshenggb.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負(fù)責(zé),投資決策請建立在獨立思考之上。