分享

通达信【活跃个股选】副图选股指标-手机电脑版

 指标公社 2023-08-01 发布于江苏

  

  

  

  

  

  

{副图指标源码}

GSKZ1:=MA(CLOSE,5);

GSKZ2:=MA(CLOSE,10);

GSKZ3:=MA(CLOSE,20);

GSKZ4:=EMA(CLOSE,60);

GSKZ5:=IF(BARSCOUNT(CLOSE)+1>100,GSKZ4,GSKZ3);

GSKZ6:=(GSKZ2-GSKZ4)/GSKZ4;

GSKZ7:=CLOSE/REF(CLOSE,20)<1.2 AND GSKZ2>REF(GSKZ2,1) AND CLOSE<LLV(LOW,80)*1.5;

GSKZ8:=(CLOSE-GSKZ2)/GSKZ2;

GSKZ9:=(CLOSE-GSKZ3)/GSKZ3;

GSKZ10:=(CLOSE-GSKZ4)/GSKZ4;

GSKZ11:=0.01*AMOUNT/VOL;

GSKZ12:=VOL/CAPITAL;

GSKZ13:=MA(GSKZ12,5);

GSKZ14:=MA(GSKZ12,20);

GSKZ15:=EMA(GSKZ12,60);

GSKZ16:=CLOSE/REF(CLOSE,1)>1.099 AND CLOSE=HIGH AND LOW<CLOSE;

GSKZ17:=CLOSE/REF(CLOSE,1)>1.099 AND LOW=HIGH;

GSKZ18:=HIGH/REF(CLOSE,1)>1.099 OR CLOSE/REF(CLOSE,1)>1.09 AND CLOSE/REF(CLOSE,1)>1.065 AND CLOSE/REF(CLOSE,1)<1.0992 AND CLOSE>GSKZ11;

GSKZ19:=CLOSE/REF(CLOSE,1)>1.05 AND (GSKZ12>REF(GSKZ12,1) OR GSKZ12>MAX(GSKZ13,GSKZ15)) AND CLOSE>GSKZ11 AND GSKZ8<0.12;

GSKZ20:=GSKZ16 OR GSKZ18 OR GSKZ19;

GSKZ21:=BARSLAST(GSKZ20);

GSKZ22:=REF(GSKZ11,GSKZ21);

GSKZ23:=REF(LOW,1)<MAX(REF(GSKZ2,1),REF(GSKZ3,1)) AND CLOSE>GSKZ2;

GSKZ24:=INDEXC;

GSKZ25:=(INDEXC-MA(INDEXC,10))/MA(INDEXC,10);

GSKZ26:=3*(GSKZ8-GSKZ25);

GSKZ27:=GSKZ26>0 OR (GSKZ26>(-0.1) AND GSKZ26>REF(GSKZ26,1));

GSKZ28:=SUM(GSKZ26,10);

GSKZ29:=10;

GSKZ30:=3;

GSKZ31:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

GSKZ32:=GSKZ31+GSKZ30*STD(GSKZ31,GSKZ29);

GSKZ33:=GSKZ31-GSKZ30*STD(GSKZ31,GSKZ29);

GSKZ34:=(GSKZ32-GSKZ33)/10;

GSKZ35:=GSKZ34<0.4 AND LLV(GSKZ34,5)<3*LLV(GSKZ34,100) OR GSKZ34<0.2;

GSKZ36:=CLOSE/REF(CLOSE,1)>1.03 AND CLOSE/REF(CLOSE,1)<1.11 AND CLOSE/GSKZ2<1.13;

GSKZ37:=GSKZ12<MAX(GSKZ13,GSKZ14);

GSKZ38:=COUNT(GSKZ37,7)>=4;

GSKZ39:=GSKZ12>1.35*REF(GSKZ12,1) AND GSKZ12<7*REF(GSKZ12,1) AND GSKZ12>1.5 AND GSKZ12>GSKZ13 AND REF(GSKZ38,1);

GSKZ40:=GSKZ23 AND GSKZ39 AND GSKZ36 AND GSKZ27 AND GSKZ35;

GSKZ41:=0.6*(GSKZ2>GSKZ3 OR GSKZ2>REF(GSKZ2,1) OR GSKZ11>GSKZ2 AND GSKZ26>(-0.02));

GSKZ42:=0.5*(COUNT(CLOSE/REF(CLOSE,1)>1.06,60)>=6 OR COUNT(GSKZ16,60)>=2 OR COUNT(GSKZ16 OR GSKZ19,30)>=1 OR COUNT(GSKZ26>0.1,120)>20);

GSKZ43:=0.2*(GSKZ12>MAX(GSKZ15,GSKZ13) OR GSKZ13>GSKZ15 OR GSKZ16) OR GSKZ16 OR GSKZ19 AND (GSKZ12>MIN(GSKZ15,GSKZ13) AND CLOSE>GSKZ2 OR GSKZ26>0) OR GSKZ13>=REF(GSKZ13,1) AND CLOSE>REF(CLOSE,1);

GSKZ44:=0.5*(GSKZ43 OR GSKZ41 AND GSKZ42);

GSKZ45:=GSKZ16 OR GSKZ19 AND GSKZ44 AND GSKZ26>0 AND GSKZ6<0.23 AND GSKZ10<0.25 AND GSKZ7;

GSKZ46:=BARSLAST(GSKZ45);

活跃区间1:=GSKZ44 AND EVERY(GSKZ44,GSKZ46+1);

GSKZ47:=COUNT(GSKZ45,0);

GSKZ48:=GSKZ45 AND 活跃区间1 AND COUNT(GSKZ45,0)=1;

GSKZ49:=GSKZ45 AND 活跃区间1 AND REF(活跃区间1!=1,1) AND COUNT(GSKZ45,0)>1;

GSKZ50:=GSKZ45 AND 活跃区间1 AND REF(GSKZ44=0,1) AND COUNT(GSKZ45,0)<=1;

启动1:=IF(COUNT(GSKZ45,0)>1,GSKZ49,GSKZ48 OR (GSKZ50 AND GSKZ7));

GSKZ51:=BARSLAST(GSKZ49);

GSKZ52:=REF(GSKZ11,GSKZ51);

GSKZ53:=REF(OPEN,GSKZ51);

GSKZ54:=REF(LOW,GSKZ51);

GSKZ56:=GSKZ52*0.95;

GSKZ57:=IF(GSKZ53<GSKZ52*0.98,MAX(GSKZ54,GSKZ56),GSKZ56);

GSKZ58:=0.2*(HHV(CLOSE,5)/CLOSE>1.06 AND HHV(GSKZ8,6)>0.08 AND CLOSE>0.95*GSKZ2 AND CLOSE<1.09*GSKZ2 AND LOW/GSKZ2<1.01 AND 活跃区间1);

XG:=(启动1{ OR 关注区间>0});

STICKLINE(XG,0,3,1,0),COLORMAGENTA;

DRAWTEXT(XG,2.5,'活跃个股'),COLORYELLOW;

公:DRAWNULL,COLORCCCCCC;众:DRAWNULL,COLORCCCCCC;号:DRAWNULL,COLORCCCCCC;股市客栈:DRAWNULL,COLORCCCCCC;

{选股指标}

GSKZ1:=MA(CLOSE,5);

GSKZ2:=MA(CLOSE,10);

GSKZ3:=MA(CLOSE,20);

GSKZ4:=EMA(CLOSE,60);

GSKZ5:=IF(BARSCOUNT(CLOSE)+1>100,GSKZ4,GSKZ3);

GSKZ6:=(GSKZ2-GSKZ4)/GSKZ4;

GSKZ7:=CLOSE/REF(CLOSE,20)<1.2 AND GSKZ2>REF(GSKZ2,1) AND CLOSE<LLV(LOW,80)*1.5;

GSKZ8:=(CLOSE-GSKZ2)/GSKZ2;

GSKZ9:=(CLOSE-GSKZ3)/GSKZ3;

GSKZ10:=(CLOSE-GSKZ4)/GSKZ4;

GSKZ11:=0.01*AMOUNT/VOL;

GSKZ12:=VOL/CAPITAL;

GSKZ13:=MA(GSKZ12,5);

GSKZ14:=MA(GSKZ12,20);

GSKZ15:=EMA(GSKZ12,60);

GSKZ16:=CLOSE/REF(CLOSE,1)>1.099 AND CLOSE=HIGH AND LOW<CLOSE;

GSKZ17:=CLOSE/REF(CLOSE,1)>1.099 AND LOW=HIGH;

GSKZ18:=HIGH/REF(CLOSE,1)>1.099 OR CLOSE/REF(CLOSE,1)>1.09 AND CLOSE/REF(CLOSE,1)>1.065 AND CLOSE/REF(CLOSE,1)<1.0992 AND CLOSE>GSKZ11;

GSKZ19:=CLOSE/REF(CLOSE,1)>1.05 AND (GSKZ12>REF(GSKZ12,1) OR GSKZ12>MAX(GSKZ13,GSKZ15)) AND CLOSE>GSKZ11 AND GSKZ8<0.12;

GSKZ20:=GSKZ16 OR GSKZ18 OR GSKZ19;

GSKZ21:=BARSLAST(GSKZ20);

GSKZ22:=REF(GSKZ11,GSKZ21);

GSKZ23:=REF(LOW,1)<MAX(REF(GSKZ2,1),REF(GSKZ3,1)) AND CLOSE>GSKZ2;

GSKZ24:=INDEXC;

GSKZ25:=(INDEXC-MA(INDEXC,10))/MA(INDEXC,10);

GSKZ26:=3*(GSKZ8-GSKZ25);

GSKZ27:=GSKZ26>0 OR (GSKZ26>(-0.1) AND GSKZ26>REF(GSKZ26,1));

GSKZ28:=SUM(GSKZ26,10);

GSKZ29:=10;

GSKZ30:=3;

GSKZ31:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

GSKZ32:=GSKZ31+GSKZ30*STD(GSKZ31,GSKZ29);

GSKZ33:=GSKZ31-GSKZ30*STD(GSKZ31,GSKZ29);

GSKZ34:=(GSKZ32-GSKZ33)/10;

GSKZ35:=GSKZ34<0.4 AND LLV(GSKZ34,5)<3*LLV(GSKZ34,100) OR GSKZ34<0.2;

GSKZ36:=CLOSE/REF(CLOSE,1)>1.03 AND CLOSE/REF(CLOSE,1)<1.11 AND CLOSE/GSKZ2<1.13;

GSKZ37:=GSKZ12<MAX(GSKZ13,GSKZ14);

GSKZ38:=COUNT(GSKZ37,7)>=4;

GSKZ39:=GSKZ12>1.35*REF(GSKZ12,1) AND GSKZ12<7*REF(GSKZ12,1) AND GSKZ12>1.5 AND GSKZ12>GSKZ13 AND REF(GSKZ38,1);

GSKZ40:=GSKZ23 AND GSKZ39 AND GSKZ36 AND GSKZ27 AND GSKZ35;

GSKZ41:=0.6*(GSKZ2>GSKZ3 OR GSKZ2>REF(GSKZ2,1) OR GSKZ11>GSKZ2 AND GSKZ26>(-0.02));

GSKZ42:=0.5*(COUNT(CLOSE/REF(CLOSE,1)>1.06,60)>=6 OR COUNT(GSKZ16,60)>=2 OR COUNT(GSKZ16 OR GSKZ19,30)>=1 OR COUNT(GSKZ26>0.1,120)>20);

GSKZ43:=0.2*(GSKZ12>MAX(GSKZ15,GSKZ13) OR GSKZ13>GSKZ15 OR GSKZ16) OR GSKZ16 OR GSKZ19 AND (GSKZ12>MIN(GSKZ15,GSKZ13) AND CLOSE>GSKZ2 OR GSKZ26>0) OR GSKZ13>=REF(GSKZ13,1) AND CLOSE>REF(CLOSE,1);

GSKZ44:=0.5*(GSKZ43 OR GSKZ41 AND GSKZ42);

GSKZ45:=GSKZ16 OR GSKZ19 AND GSKZ44 AND GSKZ26>0 AND GSKZ6<0.23 AND GSKZ10<0.25 AND GSKZ7;

GSKZ46:=BARSLAST(GSKZ45);

活跃区间1:=GSKZ44 AND EVERY(GSKZ44,GSKZ46+1);

GSKZ47:=COUNT(GSKZ45,0);

GSKZ48:=GSKZ45 AND 活跃区间1 AND COUNT(GSKZ45,0)=1;

GSKZ49:=GSKZ45 AND 活跃区间1 AND REF(活跃区间1!=1,1) AND COUNT(GSKZ45,0)>1;

GSKZ50:=GSKZ45 AND 活跃区间1 AND REF(GSKZ44=0,1) AND COUNT(GSKZ45,0)<=1;

启动1:=IF(COUNT(GSKZ45,0)>1,GSKZ49,GSKZ48 OR (GSKZ50 AND GSKZ7));

GSKZ51:=BARSLAST(GSKZ49);

GSKZ52:=REF(GSKZ11,GSKZ51);

GSKZ53:=REF(OPEN,GSKZ51);

GSKZ54:=REF(LOW,GSKZ51);

GSKZ56:=GSKZ52*0.95;

GSKZ57:=IF(GSKZ53<GSKZ52*0.98,MAX(GSKZ54,GSKZ56),GSKZ56);

GSKZ58:=0.2*(HHV(CLOSE,5)/CLOSE>1.06 AND HHV(GSKZ8,6)>0.08 AND CLOSE>0.95*GSKZ2 AND CLOSE<1.09*GSKZ2 AND LOW/GSKZ2<1.01 AND 活跃区间1);

XG:(启动1{ OR 关注区间>0});

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约