通達信【短線牛妖主升浪】主圖指標源碼分享 主升浪1:=MEMA(EMA((((C-O)*2)+O),20),10) ; 主升浪2:=MEMA(MEMA((((C-O)*2)+O),3),10); DRAWBAND(主升浪1 ,RGB(0,0,255),主升浪2 ,RGB(255,100,228)); 趨勢多:crOSS(主升浪2,主升浪1) ,NODRAW,COLORRED; 趨勢空:CROSS(主升浪1,主升浪2) ,NODRAW,COLORGREEN; DRAWTEXT(趨勢空,主升浪1,'趨勢空'),COLORGREEN; DRAWTEXT(趨勢多,主升浪1,'趨勢多'),COLORRED; 短線看紅漲綠跌:EMA((MA(CLOSE,5)),3) ,LINETHICK3,COLORGREEN; IF(短線看紅漲綠跌 > REF(短線看紅漲綠跌,3),短線看紅漲綠跌,DRAWNULL),LINETHICK3,COLORRED; IF(短線看紅漲綠跌 < REF(短線看紅漲綠跌,3),短線看紅漲綠跌,DRAWNULL),LINETHICK3,COLORGREEN; 主升浪3:=EMA(C,5) ; 主升浪4:=EMA(SLOPE(C,21)*20+C,42); 主升浪5:=CROSS(主升浪3,主升浪4) ; 主升浪6:=CROSS(主升浪4,主升浪3) ; DRAWTEXT(主升浪5,LOW,'B'),COLORRED,LINETHICK4; DRAWTEXT(主升浪6,HIGH,'S'),COLORGREEN,LINETHICK4; 主升浪7:主升浪5,NODRAW,COLORRED; 主升浪8:主升浪6,NODRAW,COLORGREEN; STICKLINE(主升浪3>=主升浪4 AND O>0,CLOSE,OPEN,3,1),COLORRED; STICKLINE(主升浪3>=主升浪4 AND O>0,(IF(OPEN>CLOSE,CLOSE,OPEN)),LOW,0,0),COLORRED; STICKLINE(主升浪3>=主升浪4,(IF(OPEN<CLOSE,CLOSE,OPEN)),HIGH,0,0),COLORRED; STICKLINE(主升浪3<主升浪4,CLOSE,OPEN,3,0),COLOR00FF00; STICKLINE(主升浪3<主升浪4,LOW,HIGH,0,1),COLOR00FF00; STICKLINE(CROSS(主升浪3,主升浪4) AND O>0,OPEN,CLOSE,3,0),COLORRED; STICKLINE(CROSS(主升浪4,主升浪3) AND O>0,OPEN,CLOSE,3,0),COLORGREEN; 佛爺77:=((CLOSE - (MA(CLOSE,13))) / (MA(CLOSE,13))) * -100; 佛爺78:=((CLOSE - (LLV(LOW,13))) / ((HHV(HIGH,13)) - (LLV(LOW,13)))) * 100 ; 佛爺79:=SMA(佛爺78,3,2); 主升浪9:=SMA(佛爺79 ,3,2); 主升浪10:=SMA(主升浪9 ,5,1); 抄底黑馬:=(((REF(佛爺77,1)) >= 16) AND (((REF(佛爺77,1)) / 佛爺77) >= 1.23)) AND (CROSS(主升浪9,主升浪10)); DRAWTEXT(抄底黑馬,LOW,'★好股吧WWW.CJM99.COM黑馬'),COLORWHITE; 主升浪11:=MA(CLOSE,41)+MA(CLOSE,41)*10/100; 主升浪12:=MA(CLOSE,23)+MA(CLOSE,23)*5/100; 主升浪13:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; 主升浪14:=CLOSE>REF(CLOSE,1)*1.05 ; DRAWTEXT(CROSS(主升浪13,主升浪12) AND 主升浪14,LOW*0.98,'啟動上漲'),LINETHICK2,COLORMAGENTA; STICKLINE((CROSS(主升浪13,主升浪12) AND 主升浪14),OPEN,CLOSE,3,0),COLORMAGENTA; DRAWTEXT(CROSS(主升浪13,主升浪11) AND 主升浪14,LOW,'漲成牛妖'),LINETHICK2,COLORRED; STICKLINE((CROSS(主升浪13,主升浪11) AND 主升浪14),OPEN,CLOSE,3,0),COLORRED; 浪1:=100*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)); 浪2:=100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42)); macd:=((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2; TYP:=(HIGH+LOW+CLOSE)/3 ; CC:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); NO主升浪6:=IF((CROSS(浪1,20) AND CROSS(浪2,20)),0,1); cci買點:=CROSS(CC,250) AND CCI>REF(CCI,1) AND MACD>0 AND NO主升浪6 AND C>EMA(C,200); 突破線:=SMA(H,14,2)*1.08; 接力漲:FILTER((CCI買點 AND C>突破線) OR (REF(CCI買點,1) AND C>突破線),3),NODRAW,COLORYELLOW; DRAWTEXT(接力漲,L*0.99,' 接力漲'),LINETHICK2,COLORYELLOW; STICKLINE(接力漲,CLOSE,OPEN,3,0),COLORYELLOW,LINETHICK4; 主升62:=((CLOSE - (LLV(LOW,36))) / ((HHV(HIGH,36)) - (LLV(LOW,36)))) * 100 ; 主升63:=SMA(主升62 ,3,1); 主升64:=SMA(主升63 ,3,1); 主升65:=SMA(主升64 ,3,1); 主升67:=CROSS(主升65,主升64) AND 主升64>80; DRAWTEXT(((FILTER(主升67,5)) = 1),HIGH,'減倉或賣出'),LINETHICK2,COLORGREEN; STICKLINE(((FILTER(主升67,5)) = 1),OPEN,CLOSE,3,0),COLORGREEN; |
|