通达信《菊K》主图指标公式源码:

ZZ:=C/REF(C,1)>1.093 AND H=C;
STICKLINE(ZZ,O,C,1,0),COLORYELLOW;
STICKLINE(ZZ,O,L,0,0),COLORYELLOW;
TY:=H;
AA1:=REF(TY,10)=HHV(TY,2*10+1);
BA1:=FILTER(AA1,10);
CA1:=BACKSET(BA1,10+1);
HD:=FILTER(CA1,10);
AA2:=REF(TY,10)=LLV(TY,2*10+1);
BA2:=FILTER(AA2,10);
CA2:=BACKSET(BA2,10+1);
LD:=FILTER(CA2,10);
前期高位:REF(H,BARSLAST(HD)),COLORWHITE,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,-1), COLOR008000;

DRAWTEXT_FIX(1,0,100,0,'★指标网★'),COLORYELLOW;
B1:=MA(C,1);
B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);
SMA2:=MA(B2,3);
个股红:=B2>SMA2;
个股绿:=B2<SMA2;
IF(个股红,B2,DRAWNULL),COLORRED,LINETHICK2;
IF(个股绿,B2,DRAWNULL),COLORGREEN,LINETHICK1;
王子控盘线:HHV(MA(B2,1),13),COLORYELLOW,DOTLINE;

HM1:=ABS((3.48*C+H+L)/4-EMA(C,20)/EMA(C,20)); HM2:=DMA((2.15*C+L+H)/4,HM1);
王子强弱线:EMA(HM2,200)*1.118,LINETHICK2,COLORMAGENTA;

{}
MA500:=MA(CLOSE,500);
MA250:=MA(CLOSE,250);
MA120:=MA(CLOSE,120);
MA30:=MA(CLOSE,33),LINETHICK2;
MA60:=MA(CLOSE,55),LINETHICK2;
MAA3:=MA(CLOSE,33);
MA35:=MA(CLOSE,35);
MAA5:=MA(CLOSE,55);
MA1:=EMA(CLOSE,14);
MA2:=EMA(CLOSE,25);
MA3:=EMA(CLOSE,99);
MA4:=EMA(CLOSE,144);
MA5:=EMA(CLOSE,318);
MA6:=EMA(CLOSE,453);
MA7:=EMA(CLOSE,550);
MA8:=EMA(CLOSE,610);
MA9:=EMA(CLOSE,730);
MA10:=EMA(CLOSE,888);
涨停收盘:=(C-REF(C,1))*100/REF(C,1)>=4.8 AND H-C<0.04;
PP:=DATE<1151001;
HD30:=FILTER(BACKSET(FILTER(REF(H,30)=HHV(H,2*30+1),30),30+1),30);
LD30:=FILTER(BACKSET(FILTER(REF(H,30)=LLV(H,2*30+1),30),30+1),30);
AX30:=REF(H,BARSLAST(HD30));
T30:=BARSLAST(HD30)<BARSLAST(LD30) AND NOT(HD30);
顶30:=IF(T30,AX30,AX30);
HD20:=FILTER(BACKSET(FILTER(REF(H,20)=HHV(H,2*20+1),20),20+1),20);
LD20:=FILTER(BACKSET(FILTER(REF(H,20)=LLV(H,2*20+1),20),20+1),20);
AX20:=REF(H,BARSLAST(HD20));
T20:=BARSLAST(HD20)<BARSLAST(LD20) AND NOT(HD20);
顶20:=IF(T20,AX20,AX20);
HD10:=FILTER(BACKSET(FILTER(REF(H,10)=HHV(H,2*10+1),10),10+1),10);
LD10:=FILTER(BACKSET(FILTER(REF(H,10)=LLV(H,2*10+1),10),10+1),10);
A10:=REF(H,BARSLAST(HD10));
AX10:=REF(H,BARSLAST(HD10));
T10:=BARSLAST(HD10)<BARSLAST(LD10) AND NOT(HD10);
顶10:=IF(T10,AX10,A10);
B20:=REF(CLOSE,BARSLAST(LD20));
底20:=IF(T20,B20,B20);
B30:=REF(CLOSE,BARSLAST(LD30));
底30:=IF(T30,B30,B30);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
量:=VOL;
HD0:=FILTER(BACKSET(FILTER(REF(H,20)=HHV(H,2*20+1),20),20+1),20);
LD0:=FILTER(BACKSET(FILTER(REF(H,20)=LLV(H,2*20+1),20),20+1),20);
AX0:=REF(量,BARSLAST(HD0));
T0:=BARSLAST(HD0)<BARSLAST(LD0) AND NOT(HD0);
顶O:=IF(T0,AX0,AX0);
高:=O>REF(C,1);
LC1 := REF(CLOSE,1);
TYP:=(HIGH+LOW+CLOSE)/3;
VOLUME:=VOL;
B5:=MA(VOLUME,5);
B33:=MA(VOLUME,33);
B55:=MA(VOLUME,55);
B135:=MA(VOLUME,135);
CCI:=(TYP-MA(TYP,43))/(0.015*AVEDEV(TYP,43));
LONMA := MA(LON,10);
LONT := LON;
CR1:=(REF(C,1)-REF(C,2))/REF(C,2)*100<2.8;
VAR1X:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2X:=EMA(VAR1X,13)-EMA(VAR1X,34);
VAR3X:=EMA(VAR2X,5);
VAR4X:=2*(VAR2X-VAR3X)*5.5;
主力:=VAR4X;
十字星停板:=REF(C,1)/REF(C,2)>1.09 AND REF(C,1)=REF(OPEN,1);
高开:=O>REF(C,1)*1.03 ;
XG1:=C>MA5 AND C> MA6 AND LON>20 AND 顶20=顶30 AND LON<730 AND DIF>=0.01
AND DIF<=0.20 AND CROSS(C,顶20) AND MA30>MA60 AND MA120>MA250
AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10
AND ABS((顶20-底20)/顶20*100)<25 AND ABS((MA1-MA250)/MA1*100)<20 AND CCI<351
AND 高开 AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120))
AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((MA1-MA250)/MA1*100)<20;
XG2:=高 AND ABS((顶30 - 顶20)/ 顶30*100)<15 AND MA3>MA4 AND MA4>MA5 AND MA5>MA6 AND MA6>MA7
AND MA7>MA8 AND MA8>MA9 AND MA9>MA10 AND ABS((MA1-MA10)/MA1*100)<25 AND CROSS(C,顶20)
AND CROSS(C,MA1) AND CCI>70 AND CCI<90 AND MA30>MA60 AND MA120>MA250 AND MA30>MA60
AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10
AND ABS((顶20-底20)/顶20*100)<30 AND ABS((MA1-MA250)/MA1*100)<20 ;
XG3:=C>MA1 AND C>MA2 AND C>MA3 AND C>MA4 AND C>MA5 AND C>MA5 AND C> MA6 AND C>MA7
AND C>MA8 AND C>MA9 AND C>MA10 AND LON>20 AND 顶20=顶30 AND LON<730 AND DIF>=0.01
AND DIF<=0.20 AND CROSS(C,顶20) AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120))
AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((MA1-MA250)/MA1*100)<20 AND CCI>60 AND CCI<91
AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10
AND ABS((顶20-底20)/顶20*100)<25 AND ABS((MA1-MA250)/MA1*100)<20 AND 涨停收盘;
XG:=XG1 OR XG2 OR XG3;
收盘涨9:=(C-REF(C,1))*100/REF(C,1)>=5.2 AND H-C<0.019 ;
STAR:=EVERY(CLOSE<OPEN,2);
AAX:=HIGH<(REF(LOW,1)-0.001) AND STAR;
买点3:=REF(REF(OPEN,1),BARSLAST(AAX)) ;
买点1:=REF(REF(LOW,1),BARSLAST(AAX)) ;
买点2:=REF(HIGH,BARSLAST(AAX)) ;
涨停收盘6.3:=(C-REF(C,1))*100/REF(C,1)>=6.3 AND H-C<=0.04;
停板:= 涨停收盘6.3 AND (C-REF(C,1))*100/REF(C,1)<9;
黑马:= 主力>-0.7 AND (MAA3-MAA5)<0.36 AND MAA3>MA120 AND MACD>-0.8 AND MACD<0.18 AND DIF>=-0.19 ;
黑马2:=黑马 AND 涨停收盘 AND CROSS(C,MAA3) AND CCI>25 AND CR1 AND MAA3>MAA5 AND MAA3>REF(MAA3,1)
AND MAA3-MAA5>0.02 AND B5>B55 AND MTM>-0.13 AND DIF<0.10 AND B33>=B55 AND CCI<38 AND LON<300 ;
牛股基因:=收盘涨9 AND LON>-10 AND LON<286 AND DIF>=-0.08 AND DEA<=0.06;
牛股2:=牛股基因 AND CCI>92 AND MA120>MA250 AND ABS((顶30-底30)/顶30*100)<25 AND CCI<95 ;
牛股3:=牛股基因 AND CCI>108 AND MA120>MA250 AND ABS((顶30-底30)/顶30*100)<25 AND CCI<113 ;
牛股4:=牛股基因 AND CCI>90 AND ABS((顶10-底30)/顶10*100)<20 AND CROSS(C,顶10) AND LOW< MA35 AND CCI<99;
牛股5:=牛股基因 AND CCI>48 AND ABS((MA250-顶10)/MA250*100)<2 AND CROSS(C,买点3) AND CCI<99 AND 高开;
菊黄K:=( 牛股2 OR 牛股3 OR 牛股4 OR 牛股5 OR 黑马2 OR XG)*PP;
粉K:=(CROSS(C,顶30) AND MA30>MA60 AND (CROSS(C,MA30)OR CROSS(C,MA120)OR CROSS(C,MA250)OR CROSS(C,MA500) OR LOW< MA30)) AND MA30- MA60<0.7 AND 涨停收盘 AND ABS((顶30-MA30)/顶30*100)<10 ;
菊粉战法:=菊黄K OR 粉K;
DRAWTEXT(菊粉战法,L*0.97,'菊黄K')COLOR00FFFF;
STICKLINE(菊粉战法,(C+O)/2,CLOSE,5,0),COLOR0099FF;
STICKLINE(菊粉战法,O,(C+O)/2,5,0),COLOR0099FF;
STICKLINE(菊粉战法,CLOSE,OPEN,1.5,0),COLORWHITE;
DRAWICON(菊粉战法,L,1);

TJ:=HHVBARS(V,60)+1;
年平台:REF(H,BARSSINCE(BACKSET(ISLASTBAR,TJ)));

通达信《菊K》选股指标公式源码一:

MA500:=MA(CLOSE,500);
MA250:=MA(CLOSE,250);
MA120:=MA(CLOSE,120);
MA30:=MA(CLOSE,33),LINETHICK2;
MA60:=MA(CLOSE,55),LINETHICK2;
MAA3:=MA(CLOSE,33);
MA35:=MA(CLOSE,35);
MAA5:=MA(CLOSE,55);
MA1:=EMA(CLOSE,14);
MA2:=EMA(CLOSE,25);
MA3:=EMA(CLOSE,99);
MA4:=EMA(CLOSE,144);
MA5:=EMA(CLOSE,318);
MA6:=EMA(CLOSE,453);
MA7:=EMA(CLOSE,550);
MA8:=EMA(CLOSE,610);
MA9:=EMA(CLOSE,730);
MA10:=EMA(CLOSE,888);
涨停收盘:=(C-REF(C,1))*100/REF(C,1)>=4.8 AND H-C<0.04;

HD30:=FILTER(BACKSET(FILTER(REF(H,30)=HHV(H,2*30+1),30),30+1),30);
LD30:=FILTER(BACKSET(FILTER(REF(H,30)=LLV(H,2*30+1),30),30+1),30);
AX30:=REF(H,BARSLAST(HD30));
T30:=BARSLAST(HD30)<BARSLAST(LD30) AND NOT(HD30);
顶30:=IF(T30,AX30,AX30);
HD20:=FILTER(BACKSET(FILTER(REF(H,20)=HHV(H,2*20+1),20),20+1),20);
LD20:=FILTER(BACKSET(FILTER(REF(H,20)=LLV(H,2*20+1),20),20+1),20);
AX20:=REF(H,BARSLAST(HD20));
T20:=BARSLAST(HD20)<BARSLAST(LD20) AND NOT(HD20);
顶20:=IF(T20,AX20,AX20);
HD10:=FILTER(BACKSET(FILTER(REF(H,10)=HHV(H,2*10+1),10),10+1),10);
LD10:=FILTER(BACKSET(FILTER(REF(H,10)=LLV(H,2*10+1),10),10+1),10);

A10:=REF(H,BARSLAST(HD10));
AX10:=REF(H,BARSLAST(HD10));
T10:=BARSLAST(HD10)<BARSLAST(LD10) AND NOT(HD10);
顶10:=IF(T10,AX10,A10);
B20:=REF(CLOSE,BARSLAST(LD20));

底20:=IF(T20,B20,B20);
B30:=REF(CLOSE,BARSLAST(LD30));

底30:=IF(T30,B30,B30);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
量:=VOL;
HD0:=FILTER(BACKSET(FILTER(REF(H,20)=HHV(H,2*20+1),20),20+1),20);
LD0:=FILTER(BACKSET(FILTER(REF(H,20)=LLV(H,2*20+1),20),20+1),20);
AX0:=REF(量,BARSLAST(HD0));
T0:=BARSLAST(HD0)<BARSLAST(LD0) AND NOT(HD0);
顶O:=IF(T0,AX0,AX0);

高:=O>REF(C,1);
LC1 := REF(CLOSE,1);
TYP:=(HIGH+LOW+CLOSE)/3;
VOLUME:=VOL;
B5:=MA(VOLUME,5);
B33:=MA(VOLUME,33);
B55:=MA(VOLUME,55);
B135:=MA(VOLUME,135);
CCI:=(TYP-MA(TYP,43))/(0.015*AVEDEV(TYP,43));
LONMA := MA(LON,10);
LONT := LON;
CR1:=(REF(C,1)-REF(C,2))/REF(C,2)*100<2.8;
VAR1X:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2X:=EMA(VAR1X,13)-EMA(VAR1X,34);
VAR3X:=EMA(VAR2X,5);
VAR4X:=2*(VAR2X-VAR3X)*5.5;
主力:=VAR4X;
十字星停板:=REF(C,1)/REF(C,2)>1.09 AND REF(C,1)=REF(OPEN,1);
高开:=O>REF(C,1)*1.03 ;
XG1:=C>MA5 AND C> MA6 AND LON>20 AND 顶20=顶30 AND LON<730 AND DIF>=0.01
AND DIF<=0.20 AND CROSS(C,顶20) AND MA30>MA60 AND MA120>MA250
AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10
AND ABS((顶20-底20)/顶20*100)<25 AND ABS((MA1-MA250)/MA1*100)<20 AND CCI<351
AND 高开 AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120))
AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((MA1-MA250)/MA1*100)<20;
XG2:=高 AND ABS((顶30 - 顶20)/ 顶30*100)<15 AND MA3>MA4 AND MA4>MA5 AND MA5>MA6 AND MA6>MA7
AND MA7>MA8 AND MA8>MA9 AND MA9>MA10 AND ABS((MA1-MA10)/MA1*100)<25 AND CROSS(C,顶20)
AND CROSS(C,MA1) AND CCI>70 AND CCI<90 AND MA30>MA60 AND MA120>MA250 AND MA30>MA60
AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10
AND ABS((顶20-底20)/顶20*100)<30 AND ABS((MA1-MA250)/MA1*100)<20 ;
XG3:=C>MA1 AND C>MA2 AND C>MA3 AND C>MA4 AND C>MA5 AND C>MA5 AND C> MA6 AND C>MA7
AND C>MA8 AND C>MA9 AND C>MA10 AND LON>20 AND 顶20=顶30 AND LON<730 AND DIF>=0.01
AND DIF<=0.20 AND CROSS(C,顶20) AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120))
AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((MA1-MA250)/MA1*100)<20 AND CCI>60 AND CCI<91
AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10
AND ABS((顶20-底20)/顶20*100)<25 AND ABS((MA1-MA250)/MA1*100)<20 AND 涨停收盘;
XG:=XG1 OR XG2 OR XG3;
收盘涨9:=(C-REF(C,1))*100/REF(C,1)>=5.2 AND H-C<0.019 ;
STAR:=EVERY(CLOSE<OPEN,2);
AAX:=HIGH<(REF(LOW,1)-0.001) AND STAR;
买点3:=REF(REF(OPEN,1),BARSLAST(AAX)) ;
买点1:=REF(REF(LOW,1),BARSLAST(AAX)) ;
买点2:=REF(HIGH,BARSLAST(AAX)) ;
涨停收盘6.3:=(C-REF(C,1))*100/REF(C,1)>=6.3 AND H-C<=0.04;
停板:= 涨停收盘6.3 AND (C-REF(C,1))*100/REF(C,1)<9;
黑马:= 主力>-0.7 AND (MAA3-MAA5)<0.36 AND MAA3>MA120 AND MACD>-0.8 AND MACD<0.18 AND DIF>=-0.19 ;
黑马2:=黑马 AND 涨停收盘 AND CROSS(C,MAA3) AND CCI>25 AND CR1 AND MAA3>MAA5 AND MAA3>REF(MAA3,1)
AND MAA3-MAA5>0.02 AND B5>B55 AND MTM>-0.13 AND DIF<0.10 AND B33>=B55 AND CCI<38 AND LON<300 ;
牛股基因:=收盘涨9 AND LON>-10 AND LON<286 AND DIF>=-0.08 AND DEA<=0.06;
牛股2:=牛股基因 AND CCI>92 AND MA120>MA250 AND ABS((顶30-底30)/顶30*100)<25 AND CCI<95 ;
牛股3:=牛股基因 AND CCI>108 AND MA120>MA250 AND ABS((顶30-底30)/顶30*100)<25 AND CCI<113 ;
牛股4:=牛股基因 AND CCI>90 AND ABS((顶10-底30)/顶10*100)<20 AND CROSS(C,顶10) AND LOW< MA35 AND CCI<99;
牛股5:=牛股基因 AND CCI>48 AND ABS((MA250-顶10)/MA250*100)<2 AND CROSS(C,买点3) AND CCI<99 AND 高开;
菊黄K:( 牛股2 OR 牛股3 OR 牛股4 OR 牛股5 OR 黑马2 OR XG);
菊粉战法:=菊黄K;

通达信《菊K》选股指标公式源码二:

MA500:=MA(CLOSE,500);
MA250:=MA(CLOSE,250);
MA120:=MA(CLOSE,120);
MA30:=MA(CLOSE,33),LINETHICK2;
MA60:=MA(CLOSE,55),LINETHICK2;
MAA3:=MA(CLOSE,33);
MA35:=MA(CLOSE,35);
MAA5:=MA(CLOSE,55);
MA1:=EMA(CLOSE,14);
MA2:=EMA(CLOSE,25);
MA3:=EMA(CLOSE,99);
MA4:=EMA(CLOSE,144);
MA5:=EMA(CLOSE,318);
MA6:=EMA(CLOSE,453);
MA7:=EMA(CLOSE,550);
MA8:=EMA(CLOSE,610);
MA9:=EMA(CLOSE,730);
MA10:=EMA(CLOSE,888);
涨停收盘:=(C-REF(C,1))*100/REF(C,1)>=4.8 AND H-C<0.04;
PP:=DATE<1151001;
HD30:=FILTER(BACKSET(FILTER(REF(H,30)=HHV(H,2*30+1),30),30+1),30);
LD30:=FILTER(BACKSET(FILTER(REF(H,30)=LLV(H,2*30+1),30),30+1),30);
AX30:=REF(H,BARSLAST(HD30));
T30:=BARSLAST(HD30)<BARSLAST(LD30) AND NOT(HD30);
顶30:=IF(T30,AX30,AX30);
HD20:=FILTER(BACKSET(FILTER(REF(H,20)=HHV(H,2*20+1),20),20+1),20);
LD20:=FILTER(BACKSET(FILTER(REF(H,20)=LLV(H,2*20+1),20),20+1),20);
AX20:=REF(H,BARSLAST(HD20));
T20:=BARSLAST(HD20)<BARSLAST(LD20) AND NOT(HD20);
顶20:=IF(T20,AX20,AX20);
HD10:=FILTER(BACKSET(FILTER(REF(H,10)=HHV(H,2*10+1),10),10+1),10);
LD10:=FILTER(BACKSET(FILTER(REF(H,10)=LLV(H,2*10+1),10),10+1),10);

A10:=REF(H,BARSLAST(HD10));
AX10:=REF(H,BARSLAST(HD10));
T10:=BARSLAST(HD10)<BARSLAST(LD10) AND NOT(HD10);
顶10:=IF(T10,AX10,A10);
B20:=REF(CLOSE,BARSLAST(LD20));

底20:=IF(T20,B20,B20);
B30:=REF(CLOSE,BARSLAST(LD30));

底30:=IF(T30,B30,B30);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
量:=VOL;
HD0:=FILTER(BACKSET(FILTER(REF(H,20)=HHV(H,2*20+1),20),20+1),20);
LD0:=FILTER(BACKSET(FILTER(REF(H,20)=LLV(H,2*20+1),20),20+1),20);
AX0:=REF(量,BARSLAST(HD0));
T0:=BARSLAST(HD0)<BARSLAST(LD0) AND NOT(HD0);
顶O:=IF(T0,AX0,AX0);

高:=O>REF(C,1);
LC1 := REF(CLOSE,1);
TYP:=(HIGH+LOW+CLOSE)/3;
VOLUME:=VOL;
B5:=MA(VOLUME,5);
B33:=MA(VOLUME,33);
B55:=MA(VOLUME,55);
B135:=MA(VOLUME,135);
CCI:=(TYP-MA(TYP,43))/(0.015*AVEDEV(TYP,43));
LONMA := MA(LON,10);
LONT := LON;
CR1:=(REF(C,1)-REF(C,2))/REF(C,2)*100<2.8;
VAR1X:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2X:=EMA(VAR1X,13)-EMA(VAR1X,34);
VAR3X:=EMA(VAR2X,5);
VAR4X:=2*(VAR2X-VAR3X)*5.5;
主力:=VAR4X;
十字星停板:=REF(C,1)/REF(C,2)>1.09 AND REF(C,1)=REF(OPEN,1);
高开:=O>REF(C,1)*1.03 ;
XG1:=C>MA5 AND C> MA6 AND LON>20 AND 顶20=顶30 AND LON<730 AND DIF>=0.01
AND DIF<=0.20 AND CROSS(C,顶20) AND MA30>MA60 AND MA120>MA250
AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10
AND ABS((顶20-底20)/顶20*100)<25 AND ABS((MA1-MA250)/MA1*100)<20 AND CCI<351
AND 高开 AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120))
AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((MA1-MA250)/MA1*100)<20;
XG2:=高 AND ABS((顶30 - 顶20)/ 顶30*100)<15 AND MA3>MA4 AND MA4>MA5 AND MA5>MA6 AND MA6>MA7
AND MA7>MA8 AND MA8>MA9 AND MA9>MA10 AND ABS((MA1-MA10)/MA1*100)<25 AND CROSS(C,顶20)
AND CROSS(C,MA1) AND CCI>70 AND CCI<90 AND MA30>MA60 AND MA120>MA250 AND MA30>MA60
AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10
AND ABS((顶20-底20)/顶20*100)<30 AND ABS((MA1-MA250)/MA1*100)<20 ;
XG3:=C>MA1 AND C>MA2 AND C>MA3 AND C>MA4 AND C>MA5 AND C>MA5 AND C> MA6 AND C>MA7
AND C>MA8 AND C>MA9 AND C>MA10 AND LON>20 AND 顶20=顶30 AND LON<730 AND DIF>=0.01
AND DIF<=0.20 AND CROSS(C,顶20) AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120))
AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((MA1-MA250)/MA1*100)<20 AND CCI>60 AND CCI<91
AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10
AND ABS((顶20-底20)/顶20*100)<25 AND ABS((MA1-MA250)/MA1*100)<20 AND 涨停收盘;
XG:=XG1 OR XG2 OR XG3;
收盘涨9:=(C-REF(C,1))*100/REF(C,1)>=5.2 AND H-C<0.019 ;
STAR:=EVERY(CLOSE<OPEN,2);
AAX:=HIGH<(REF(LOW,1)-0.001) AND STAR;
买点3:=REF(REF(OPEN,1),BARSLAST(AAX)) ;
买点1:=REF(REF(LOW,1),BARSLAST(AAX)) ;
买点2:=REF(HIGH,BARSLAST(AAX)) ;
涨停收盘6.3:=(C-REF(C,1))*100/REF(C,1)>=6.3 AND H-C<=0.04;
停板:= 涨停收盘6.3 AND (C-REF(C,1))*100/REF(C,1)<9;
黑马:= 主力>-0.7 AND (MAA3-MAA5)<0.36 AND MAA3>MA120 AND MACD>-0.8 AND MACD<0.18 AND DIF>=-0.19 ;
黑马2:=黑马 AND 涨停收盘 AND CROSS(C,MAA3) AND CCI>25 AND CR1 AND MAA3>MAA5 AND MAA3>REF(MAA3,1)
AND MAA3-MAA5>0.02 AND B5>B55 AND MTM>-0.13 AND DIF<0.10 AND B33>=B55 AND CCI<38 AND LON<300 ;
牛股基因:=收盘涨9 AND LON>-10 AND LON<286 AND DIF>=-0.08 AND DEA<=0.06;
牛股2:=牛股基因 AND CCI>92 AND MA120>MA250 AND ABS((顶30-底30)/顶30*100)<25 AND CCI<95 ;
牛股3:=牛股基因 AND CCI>108 AND MA120>MA250 AND ABS((顶30-底30)/顶30*100)<25 AND CCI<113 ;
牛股4:=牛股基因 AND CCI>90 AND ABS((顶10-底30)/顶10*100)<20 AND CROSS(C,顶10) AND LOW< MA35 AND CCI<99;
牛股5:=牛股基因 AND CCI>48 AND ABS((MA250-顶10)/MA250*100)<2 AND CROSS(C,买点3) AND CCI<99 AND 高开;
菊黄K:( 牛股2 OR 牛股3 OR 牛股4 OR 牛股5 OR 黑马2 OR XG)*PP;
粉K:=(CROSS(C,顶30) AND MA30>MA60 AND (CROSS(C,MA30)OR CROSS(C,MA120)OR CROSS(C,MA250)OR CROSS(C,MA500) OR LOW< MA30)) AND MA30- MA60<0.7 AND 涨停收盘 AND ABS((顶30-MA30)/顶30*100)<10 ;
菊粉战法:=菊黄K OR 粉K ;

----------------------------------------------------------------------------------------

通达信《菊K》副图指标公式源码:

DRAWTEXT_FIX(1,0,100,0,'★指标网★'),COLORYELLOW;
MA500:=MA(CLOSE,500);
MA250:=MA(CLOSE,250);
MA120:=MA(CLOSE,120);
MA30:=MA(CLOSE,33),LINETHICK2;
MA60:=MA(CLOSE,55),LINETHICK2;
MAA3:=MA(CLOSE,33);
MA35:=MA(CLOSE,35);
MAA5:=MA(CLOSE,55);
MA1:=EMA(CLOSE,14);
MA2:=EMA(CLOSE,25);
MA3:=EMA(CLOSE,99);
MA4:=EMA(CLOSE,144);
MA5:=EMA(CLOSE,318);
MA6:=EMA(CLOSE,453);
MA7:=EMA(CLOSE,550);
MA8:=EMA(CLOSE,610);
MA9:=EMA(CLOSE,730);
MA10:=EMA(CLOSE,888);
涨停收盘:=(C-REF(C,1))*100/REF(C,1)>=4.8 AND H-C<0.04;
PP:=DATE<1151001;
HD30:=FILTER(BACKSET(FILTER(REF(H,30)=HHV(H,2*30+1),30),30+1),30);
LD30:=FILTER(BACKSET(FILTER(REF(H,30)=LLV(H,2*30+1),30),30+1),30);
AX30:=REF(H,BARSLAST(HD30));
T30:=BARSLAST(HD30)<BARSLAST(LD30) AND NOT(HD30);
顶30:=IF(T30,AX30,AX30);
HD20:=FILTER(BACKSET(FILTER(REF(H,20)=HHV(H,2*20+1),20),20+1),20);
LD20:=FILTER(BACKSET(FILTER(REF(H,20)=LLV(H,2*20+1),20),20+1),20);
AX20:=REF(H,BARSLAST(HD20));
T20:=BARSLAST(HD20)<BARSLAST(LD20) AND NOT(HD20);
顶20:=IF(T20,AX20,AX20);
HD10:=FILTER(BACKSET(FILTER(REF(H,10)=HHV(H,2*10+1),10),10+1),10);
LD10:=FILTER(BACKSET(FILTER(REF(H,10)=LLV(H,2*10+1),10),10+1),10);

A10:=REF(H,BARSLAST(HD10));
AX10:=REF(H,BARSLAST(HD10));
T10:=BARSLAST(HD10)<BARSLAST(LD10) AND NOT(HD10);
顶10:=IF(T10,AX10,A10);
B20:=REF(CLOSE,BARSLAST(LD20));

底20:=IF(T20,B20,B20);
B30:=REF(CLOSE,BARSLAST(LD30));

底30:=IF(T30,B30,B30);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
量:=VOL;
HD0:=FILTER(BACKSET(FILTER(REF(H,20)=HHV(H,2*20+1),20),20+1),20);
LD0:=FILTER(BACKSET(FILTER(REF(H,20)=LLV(H,2*20+1),20),20+1),20);
AX0:=REF(量,BARSLAST(HD0));
T0:=BARSLAST(HD0)<BARSLAST(LD0) AND NOT(HD0);
顶O:=IF(T0,AX0,AX0);

高:=O>REF(C,1);
LC1 := REF(CLOSE,1);
TYP:=(HIGH+LOW+CLOSE)/3;
VOLUME:=VOL;
B5:=MA(VOLUME,5);
B33:=MA(VOLUME,33);
B55:=MA(VOLUME,55);
B135:=MA(VOLUME,135);
CCI:=(TYP-MA(TYP,43))/(0.015*AVEDEV(TYP,43));
LONMA := MA(LON,10);
LONT := LON;
CR1:=(REF(C,1)-REF(C,2))/REF(C,2)*100<2.8;
VAR1X:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2X:=EMA(VAR1X,13)-EMA(VAR1X,34);
VAR3X:=EMA(VAR2X,5);
VAR4X:=2*(VAR2X-VAR3X)*5.5;
主力:=VAR4X;
十字星停板:=REF(C,1)/REF(C,2)>1.09 AND REF(C,1)=REF(OPEN,1);
高开:=O>REF(C,1)*1.03 ;
XG1:=C>MA5 AND C> MA6 AND LON>20 AND 顶20=顶30 AND LON<730 AND DIF>=0.01 AND DIF<=0.20 AND CROSS(C,顶20) AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((顶20-底20)/顶20*100)<25 AND ABS((MA1-MA250)/MA1*100)<20 AND CCI<351 AND 高开 AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((MA1-MA250)/MA1*100)<20 ;
XG2:=高 AND ABS((顶30 - 顶20)/ 顶30*100)<15 AND MA3>MA4 AND MA4>MA5 AND MA5>MA6 AND MA6>MA7 AND MA7>MA8 AND MA8>MA9 AND MA9>MA10 AND ABS((MA1-MA10)/MA1*100)<25 AND CROSS(C,顶20) AND CROSS(C,MA1) AND CCI>70 AND CCI<90 AND MA30>MA60 AND MA120>MA250 AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((顶20-底20)/顶20*100)<30 AND ABS((MA1-MA250)/MA1*100)<20 ;
XG3:=C>MA1 AND C>MA2 AND C>MA3 AND C>MA4 AND C>MA5 AND C>MA5 AND C> MA6 AND C>MA7 AND C>MA8 AND C>MA9 AND C>MA10 AND LON>20 AND 顶20=顶30 AND LON<730 AND DIF>=0.01 AND DIF<=0.20 AND CROSS(C,顶20) AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((MA1-MA250)/MA1*100)<20 AND CCI>60 AND CCI<91 AND MA30>MA60 AND MA120>MA250 AND (CROSS(C,MA1)OR CROSS(C,MA120)) AND ABS((顶20-MA30)/顶20*100)<10 AND ABS((顶20-底20)/顶20*100)<25 AND ABS((MA1-MA250)/MA1*100)<20 AND 涨停收盘;
XG:=XG1 OR XG2 OR XG3;
收盘涨9:=(C-REF(C,1))*100/REF(C,1)>=5.2 AND H-C<0.019 ;
STAR:=EVERY(CLOSE<OPEN,2);
AAX:=HIGH<(REF(LOW,1)-0.001) AND STAR;
买点3:=REF(REF(OPEN,1),BARSLAST(AAX)) ;
买点1:=REF(REF(LOW,1),BARSLAST(AAX)) ;
买点2:=REF(HIGH,BARSLAST(AAX)) ;
涨停收盘6.3:=(C-REF(C,1))*100/REF(C,1)>=6.3 AND H-C<=0.04;
停板:= 涨停收盘6.3 AND (C-REF(C,1))*100/REF(C,1)<9;
黑马:= 主力>-0.7 AND (MAA3-MAA5)<0.36 AND MAA3>MA120 AND MACD>-0.8 AND MACD<0.18 AND DIF>=-0.19 ;
黑马2:=黑马 AND 涨停收盘 AND CROSS(C,MAA3) AND CCI>25 AND CR1 AND MAA3>MAA5 AND MAA3>REF(MAA3,1) AND MAA3-MAA5>0.02 AND B5>B55 AND MTM>-0.13 AND DIF<0.10 AND B33>=B55 AND CCI<38 AND LON<300 ;
牛股基因:=收盘涨9 AND LON>-10 AND LON<286 AND DIF>=-0.08 AND DEA<=0.06;
牛股2:=牛股基因 AND CCI>92 AND MA120>MA250 AND ABS((顶30-底30)/顶30*100)<25 AND CCI<95 ;
牛股3:=牛股基因 AND CCI>108 AND MA120>MA250 AND ABS((顶30-底30)/顶30*100)<25 AND CCI<113 ;
牛股4:=牛股基因 AND CCI>90 AND ABS((顶10-底30)/顶10*100)<20 AND CROSS(C,顶10) AND LOW< MA35 AND CCI<99;
牛股5:=牛股基因 AND CCI>48 AND ABS((MA250-顶10)/MA250*100)<2 AND CROSS(C,买点3) AND CCI<99 AND 高开;
菊K:( 牛股2 OR 牛股3 OR 牛股4 OR 牛股5 OR 黑马2 OR XG)*PP;

DRAWTEXT(菊K,0.8,'▲菊K'),COLORRED;