通達(dá)信MACD頂?shù)妆畴x副圖指標(biāo),以及二次金叉公式
自用的一個副圖指標(biāo),MACD頂?shù)妆畴x指標(biāo),以及二次金叉,發(fā)現(xiàn)買入信號后,第二天以上一天收盤價以下價位買進(jìn),在未來一周內(nèi)絕對有5%-10%收益,希望大家能受益
源碼
{參數(shù):SHORT,2,200,12;LONG,2,200,26;MID,2,200,9;}
SHORT:=12;
LONG:=26;
MID:=9;
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),COLORBLUE,LINETHICK1.5;
DEA:EMA(DIFF,MID),COLORYELLOW,LINETHICK1.5;
MACD:(DIFF-DEA)*2,COLORSTICK;
低位金:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金,0,0.15,8,0),COLORYELLOW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,34)=1;
{股海網(wǎng)提供:www.}
STICKLINE(二次金,0,0.1,8,0),COLORFF80FF;
DRAWICON(二次金,DEA*0.85,1) ;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背離,0,0.05,8,0),COLORRED;
DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED,LINETHICK2;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK2;
|