[大智慧1 通達信]三浪啟動 主副圖指標源碼
1.三浪啟動主圖指標源碼:
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA30:MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA65:MA(CLOSE,65);
MA250:MA(CLOSE,250),colorred;
均線流:=(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 0.3);
PL1:=(((CLOSE - MA60) / MA60) < 0.1);
PL2:=(((CLOSE - MA250) / MA250) < 0.3);
偏離率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD超跌:=(COUNT((DIFF < DEA),10) = 10);
MACD:=(MACD超跌 * "MACD.MACD"(26,12,9))*(-1);
目標:=if(均線流=0.3 AND macd and 偏離率=0.2 ,0.8,0);
DRAWTEXT(目標 ,l,'▲'),color008fff;
MBSJ:=BARSLAST((目標 = 0.8));
放量上漲:=(((VOL / REF(VOL,1)) >= 1.1) AND ((CLOSE / REF(CLOSE,1)) >= 1.01));
SZSJ:=BARSLAST((放量上漲 = 1));
MACD金叉:=CROSS(DIFF,DEA);
JCSJ:=BARSLAST((MACD金叉 = 1));
關(guān)注:=((MACD金叉 AND (REF(MACD,1) < 0)) * -0.1);
DRAWTEXT(關(guān)注,l,'◆'),color00ff00;
啟動:=((((MBSJ <= 20) AND (SZSJ <= 1)) AND (JCSJ <= 1)) * 1);
DRAWTEXT(啟動,l,'●'),coloryellow;
突破:=((((偏離率 = 0) AND (REF(偏離率,1) = 0.2)) AND (REF((COUNT((偏離率 = 0.2),10) = 10),1) = 1)) * -0.1);
DRAWTEXT(突破,l,'★'),coloryellow;
2.三浪啟動副圖指標源碼:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA65:=MA(CLOSE,65);
MA250:=MA(CLOSE,250);
均線流:(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 0.3),POINTDOT,LINETHICK3;
PL1:=(((CLOSE - MA60) / MA60) < 0.1);
PL2:=(((CLOSE - MA250) / MA250) < 0.3);
偏離率:(((PL1 = 1) AND (PL2 = 1)) * 0.2),STICK,LINETHICK1,colorFF00FF;
STICKLINE((偏離率 = 0.2),0,0.2,5,1),colorFF00FF;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD超跌:=(COUNT((DIFF < DEA),10) = 10);
MACD:(MACD超跌 * "MACD.MACD"(26,12,9))*(-1),STICK,LINETHICK2,colorFFFF00;
目標:if(均線流=0.3 AND macd and 偏離率=0.2 ,0.8,0),LINETHICK2,colorFFFFFF;
MBSJ:=BARSLAST((目標 = 0.8));
放量上漲:=(((VOL / REF(VOL,1)) >= 1.1) AND ((CLOSE / REF(CLOSE,1)) >= 1.01));
SZSJ:=BARSLAST((放量上漲 = 1));
MACD金叉:=CROSS(DIFF,DEA);
JCSJ:=BARSLAST((MACD金叉 = 1));
啟動:((((MBSJ <= 20) AND (SZSJ <= 1)) AND (JCSJ <= 1)) * 1),LINETHICK2,coloryellow;
DRAWTEXT(啟動,0.8,'★買'),colorred;
關(guān)注:((MACD金叉 AND (REF(MACD,1) < 0)) * -0.1),colorff8918;
DRAWTEXT(關(guān)注,-0.01,'關(guān)●注'),colorff8918;
突破:((((偏離率 = 0) AND (REF(偏離率,1) = 0.2)) AND (REF((COUNT((偏離率 = 0.2),10) = 10),1) = 1)) * -0.1),colorred;
DRAWTEXT(突破,-0.01,'突●破'),colorred;