【通达信源码分享】放量涨停指标源码-彻底打开上涨空间

MA05:MA(C,5)LINETHICK3,COLOR00CCFF;


MA10:=MA(C,10);


MA20:=MA(C,20);


MA30:=MA(C,30);


VAR1:=MA(CLOSE,5),COLOR00FFFF;


VAR6:=MA(CLOSE,54),COLORFF9900;


VAR8:= DMA(EMA(CLOSE,12),SUM(VOL/CAPITAL,5)/3),LINETHICK2;


VARA:=REF(CLOSE,1);


VARE:=SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100;


DRAWTEXT(DATE>700101 AND CROSS(84,VARE),HIGH,'注意'),COLORGREEN;


VARF:=(2*CLOSE+HIGH+LOW)/4;


VAR10:=LLV(LOW,23);


VAR11:=HHV(HIGH,23);


VAR12:=EMA((VARF-VAR10)/(VAR11-VAR10)*100,6);


VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,4);


DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VAR12>VAR13,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),LOW,'注意'),COLORYELLOW;


RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;


K:=SMA(RSV,3,1);


D:=SMA(K,3,1);


J:=3*K-2*D;


RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;


K24:=SMA(RSV24,3,1);


D24:=SMA(K24,3,1);


J24:=3*K24-2*D24;


压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLOR00FFFF,LINETHICK1;


支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORFFFF00,LINETHICK1;


支撑价:LLV(LOW,34) ,COLORFF00FF,LINETHICK3;


阻力价:HHV(HIGH,19),COLORFF9900, LINETHICK3;


十日均价:MA(C,5),COLOR00FFFF,LINETHICK2;


涨:IF(MA(CLOSE,5)>REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORRED,LINETHICK2;


平:IF(MA(CLOSE,5)=REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLOR00FFFF,LINETHICK3;


跌:IF(MA(CLOSE,5)<REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORGREEN,LINETHICK2;


DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)>C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")>0,L-0.02,'★M底背'),COLOR00FFFF;{MACD底背离}


DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)<C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")>0,H+0.16,'★M顶背'),COLOR00FF00;{MACD顶背离};


五日乖离率:=(C-MA05)/MA05*100;


BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;


速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);


加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;


BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;


三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;


VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);


BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;


强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);


加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)


AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;


清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10<REF(MA10,1),10);


DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORRED;


JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10>REF(MA10,1) ;


减仓:=FILTER(JC,10);


MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;


买入:=FILTER(MR,10);


DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;


DRAWTEXT(买入,LOW*0.98,'←买底'),COLORYELLOW;


DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;


DRAWTEXT(强势狙击,LOW*0.98,'←强势狙击'),COLORYELLOW;


VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));


VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);


MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;


LC:=REF(CLOSE,1);


RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);


DRAWTEXT(CROSS(88,RSI),(HIGH * 1.01),'R背'),COLOR00FF00;


X1:=(C+L+H)/3;


BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;


上:=EMA(C,3),COLORBLUE,LINETHICK1;


中:=EMA(C,5),COLORWHITE,LINETHICK1;


下:=EMA(中,5),COLOR00FF00,LINETHICK1;


QQ:= C<中;


MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;


V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); 


V2:=(1-7/100)*(DMA(CLOSE,V1));


V3:=(1+7/100)*(DMA(CLOSE,V1));


V5:=MA((LOW+HIGH+CLOSE)/3,5);


{收盘价=4日内收盘价的最高值 AND 昨收=4日内收盘价的最低值}


VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR 


REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND 


REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND 


C<REF(C,1) AND C<REF(C,2);


{收盘价=4日内收盘价的最低值 AND (昨收<2日前的收盘价}


VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND 


REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);


{昨收=4日内收盘价的最低值 AND 收盘价>=2日前的收盘价}


VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND


REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND 


REF(C,2)>=REF(C,4) AND C<REF(C,1);


{昨收=4日内收盘价的最高值 AND 收盘价<2日前的收盘价}


VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);


{今日V5向上形成拐点}


VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;


VAR08:=VAR07 AND COUNT(VAR06,2);


VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);


{涨停}


STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),


COLOR00FFFF;


{跌停}


STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),


COLORGREEN;


TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;


立桩量:=FILTER(TJ1,5);


TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));


突破:=TJ2=1;


TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));


三天法则:=TJ3=1;


成立:=三天法则 AND 突破;


条件成立:=FILTER(成立,3);


DRAWTEXT(条件成立,L*0.99,'成立'),COLOR00FFFF;


DRAWTEXT(立桩量,L*0.99,'桩量'),COLOR0000FF;


{绿} 


STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.0,0),COLOR00CC00;


STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.7,0),COLOR003300;


STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.1,0),COLOR006600;


STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLOR009900;


STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.9,0),COLOR00CC00;


STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.3,0),COLOR00FF00;


{红}


STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.1,0),COLOR0000FF; 


STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.0,0),COLOR0000FF;


STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.7,0),COLOR000077; 


STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.1,0),COLOR000099; 


STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000BB;


STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.9,0),COLOR0000DD;


STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.3,0),COLOR0000FF;


{蓝色} 


STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,3.0,0),COLORFFFF33;


STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.7,0),COLORFF3333;


STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.1,0),COLORFF6633;


STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORFF9933;


STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.9,0),COLORFFCC33;


STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.3,0),COLORFFFF33;


{灰} 


STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,3.0,0),COLOR00FFFF;


STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,2.7,0),COLOR0033FF;


STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,2.1,0),COLOR0066FF;


STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR0099FF;


STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,0.9,0),COLOR00CCFF;


STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,0.3,0),COLOR00FFFF; 

30-1P124140436.png

相关阅读

服务热线

18020657357

微信客服

微信客服