通达信2024主升浪主图指标公式
主升浪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,'★抄底黑马'),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;