beyond202104 发表于 2023-8-28 15:25:53

擒牛抓妖捉马 好股绝不放过【指标公式】(含选股)

第一部分 副图公式 手机/电脑


G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
CAIH1:=EMA(G1,12)-EMA(G1,26);
CAIH2:=EMA(CAIH1,9);
CAIH3:=CAIH1>CAIH2;
CAIH4:=(G1-LLV(G2,12))/(HHV(G4,12)-LLV(G2,12))*100;
CAIH5:=SMA(CAIH4,3,1);
CAIH6:=SMA(CAIH5,3,1);
CAIH7:=CAIH5>CAIH6;
CAIH8:=REF(G1,1);
CAIH9:=SMA(MAX(G1-CAIH8,0),9,1)/SMA(ABS(G1-CAIH8),9,1)*100;
CAIH10:=SMA(MAX(G1-CAIH8,0),26,1)/SMA(ABS(G1-CAIH8),26,1)*100;
CAIH11:=CAIH9>CAIH10;
CAIH12:=SMA(CAIH4,3,1);
CAIH13:=SMA(CAIH12,3,1);
CAIH14:=CAIH12>CAIH13;
CAIH15:=(MA(G1,3)+MA(G1,9)+MA(G1,12)+MA(G1,26))/4;
CAIH16:=G1>CAIH15;
CAIH17:=G1-REF(G1,1);
CAIH18:=100*EMA(EMA(CAIH17,9),9)/EMA(EMA(ABS(CAIH17),9),3);
CAIH19:=100*EMA(EMA(CAIH17,26),12)/EMA(EMA(ABS(CAIH17),26),12);
CAIH20:=CAIH18>CAIH19;
CAIH21:=CAIH3 AND CAIH7 AND CAIH11 AND CAIH14 AND CAIH16 AND CAIH20;
CAIH22:=G1-REF(G1,1);
CAIH23:=IF(G1-REF(G1,1)>=0,CAIH22,0);
CAIH24:=REF(G1,1)-G1;
CAIH25:=IF(G1-REF(G1,1)=CAIH34,CAIH33,CAIH34);
CAIH36:=IF(CAIH34-CAIH33,CAIH34,CAIH33);
CAIH37:=EMA(G1,7)-EMA(G1,21);
CAIH38:=EMA(0.668*REF(CAIH37,1)+0.333*CAIH37,1);
CAIH39:=IF(CAIH37>=CAIH38,CAIH37,CAIH38);
CAIH40:=IF(CAIH38-CAIH37,CAIH38,CAIH37);
CAIH41:=CAIH35>CAIH36;
CAIH42:=CAIH35=CAIH36;
CAIH43:=CAIH39>CAIH40;
CAIH44:=CAIH39=CAIH40;
CAIH45:=CAIH44 AND CAIH42;
CAIH46:=CAIH43 AND CAIH41;
CAIH47:=EMA(G1,5);
CAIH48:=EMA(CAIH47,0);
CAIH49:=HHV(MA(G4,3),2);
CAIH50:=LLV(MA(G4,3),1);
CAIH51:=FILTER(CAIH48>REF(CAIH48,1) AND CAIH49REF(G1,1),11);
CAIH52:=CAIH51>=1 AND CAIH21 AND REF(CAIH50=CAIH49,1) AND REF(CAIH41,1);
CAIH53:=MA(G1,10);
CAIH54:=MA(G1,54);
CAIH55:=(REF(G1,3)-G1)/REF(G1,3)*100>5;
CAIH56:=FILTER(CAIH55,10);
CAIH57:=BARSLAST(CAIH56);
CAIH58:=REF(G4,CAIH57+2);
CAIH59:=REF(G4,CAIH57+1);
CAIH60:=REF(G4,CAIH57);
CAIH61:=MAX(CAIH58,CAIH59);
CAIH62:=MAX(CAIH61,CAIH60);
CAIH63:=(G1-REF(G1,1))/REF(G1,1)*100>5;
CAIH64:=CAIH57<150;
CAIH65:=(G3-CAIH62)/CAIH62*100<30;
CAIH66:=(G1-LLV(G2,CAIH57))/LLV(G2,CAIH57)*100<50;
CAIH67:=(G1-REF(G3,5))/REF(G3,5)*100<30;
CAIH68:=VOL/MA(VOL,5)<3.5;
CAIH69:=(G1-REF(G1,89))/REF(G1,89)*100<80;
CAIH70:=CAIH63 AND CAIH64 AND CAIH65 AND CAIH66 AND CAIH67 AND CAIH68 AND CAIH69;
CAIH71:=FILTER(CAIH70,15);
CAIH72:=(G1-CAIH54)/CAIH54<0.1;
CAIH73:=(G1-CAIH53)/CAIH531.05 AND G1/G3>1.05;
CAIH80:=VOL/REF(VOL,1)>1.2 AND COUNT(G1>G3,1) OR (G2>REF(G4,1) AND COUNT(G3>G1,1) AND VOL/REF(VOL,1)>1.2);
CAIH81:=MA(G1,5)>MA(G1,10) AND MA(G1,10)>REF(MA(G1,10),1) AND MA(G1,5)>REF(MA(G1,5),1);
CAIH82:=100*(1-WINNER(G1));
CAIH83:=100-CAIH82;
CAIH84:=CROSS(CAIH83,CAIH82);
CAIH85:=CAIH51>=1 AND CAIH84;
CAIH86:=CAIH84 AND CAIH21 AND (G1/REF(G1,1)-1)*100>9.97;
CAIH87:=MA(G1,5);
CAIH88:=MA(G1,13);
CAIH89:=MA(G1,34);
CAIH90:=CAIH87>REF(CAIH87,1) AND CAIH88>REF(CAIH88,1) AND CAIH89>REF(CAIH89,1);
CAIH91:=EMA(G1,3);
CAIH92:=EMA(SLOPE(G1,34)*5+G1,21);
CAIH93:=CROSS(CAIH91,CAIH92);
CAIH94:=CAIH93 AND REF(CAIH50=CAIH49,1) AND CAIH21 AND REF(CAIH41,1);
CAIH95:=CROSS(CAIH91,CAIH92) AND CAIH90;
CAIH96:=MA(G1,34);
CAIH97:=CAIH93>0 OR CAIH95>0;
CAIH98:=G1>CAIH96 AND REF(G1,1)
CAIH99:=CROSS(G1,MA(G1,250)) AND VOL>=REF(VOL,1)*2;
CAIH100:=(G1/REF(G1,1)-1)*100>9.97 AND CROSS(G1,MA(G1,250));
CAIH101:=CAIH99 OR CAIH100 OR CAIH98;
CAIH102:=CAIH97 AND CAIH21 AND CAIH46 AND REF(CAIH41,1);
CAIH103:=CAIH97 AND CAIH21 AND (G1/REF(G1,1)-1)*100>9.97;
CAIH104:=CAIH50=CAIH49 AND REF(CAIH49,1)>REF(CAIH50,1) AND (G1/REF(G1,1)-1)*100>9.97 AND CAIH97;
CAIH105:=(3*G1+G2+G3+G4)/6;
CAIH106:=(20*CAIH105+19*REF(CAIH105,1)+18*REF(CAIH105,2)+17*REF(CAIH105,3)+16*REF(CAIH105,4)+15*REF(CAIH105,5)+14*REF(CAIH105,6)+13*REF(CAIH105,7)+12*REF(CAIH105,8)+11*REF(CAIH105,9)+10*REF(CAIH105,10)+9*REF(CAIH105,11)+8*REF(CAIH105,12)+7*REF(CAIH105,13)+6*REF(CAIH105,14)+5*REF(CAIH105,15)+4*REF(CAIH105,16)+3*REF(CAIH105,17)+2*REF(CAIH105,18)+REF(CAIH105,20))/210;
CAIH107:=MA(CAIH106,6);
CAIH108:=MA(G1,60);
CAIH109:=EMA(SMA((G1-LLV(G2,19))/(HHV(G4,19)-LLV(G2,19))*100,8,1),3);
CAIH110:=MA(SUM(IF(G1>REF(G1,1),VOL,IF(G1
CAIH111:=EMA(CAIH110,12);
CAIH112:=EMA(CAIH110,26);
CAIH113:=100*EMA(EMA(CAIH17,6),6)/EMA(EMA(ABS(CAIH17),6),6);
CAIH114:=100*EMA(EMA(CAIH17,12),12)/EMA(EMA(ABS(CAIH17),12),12);
CAIH115:=100*EMA(EMA(CAIH17,26),26)/EMA(EMA(ABS(CAIH17),26),26);
CAIH116:=G1-REF(G1,1);
CAIH117:=100*EMA(EMA(CAIH116,9),9)/EMA(EMA(ABS(CAIH116),9),9);
CAIH118:=MA(CAIH117,5);
CAIH119:=VOL/CAPITAL*100;
CAIH120:=MA(CAIH119,30)/MA(INDEXA,10)*MA(INDEXA,60);
CAIH121:=MA(CAIH119,120)/MA(INDEXA,10)*MA(INDEXA,60);
CAIH122:=1;
CAIH123:=(G4+G3+G2+2*G1)/5;
CAIH124:=REF(CAIH123,1);
CAIH125:=MAX(CAIH123-CAIH124,0);
CAIH126:=ABS(CAIH123-CAIH124);
CAIH127:=SMA(CAIH125,10,1);
CAIH128:=SMA(CAIH126,10,1);
CAIH129:=COUNT(CAIH127/CAIH128REF(CAIH113,1) AND CAIH117>REF(CAIH117,1) AND CROSS(CAIH110,CAIH112) AND CAIH110>REF(CAIH110,1) AND CAIH111>REF(CAIH111,1) AND CAIH112>REF(CAIH112,1) AND G2>CAIH106 AND G2>CAIH108;
CAIH132:=CAIH110>CAIH112 AND CROSS(CAIH110,CAIH111) AND CROSS(CAIH117,CAIH118);
CAIH133:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CAIH113>CAIH115 AND CROSS(CAIH110,CAIH112);
CAIH134:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CROSS(CAIH113,CAIH115) AND CAIH110>REF(CAIH110,1);
CAIH135:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CAIH110>REF(CAIH110,1) AND CAIH113>CAIH115 AND CROSS(CAIH114,CAIH115) AND CAIH113>REF(CAIH113,1) AND CAIH114>REF(CAIH114,1) AND CAIH115>REF(CAIH115,1);
CAIH136:=CAIH110>CAIH112 AND CAIH117>CAIH118 AND CROSS(CAIH113,CAIH115) AND CAIH113>REF(CAIH113,1) AND CAIH114>REF(CAIH114,1) AND CAIH115>REF(CAIH115,1);
CAIH137:=CAIH133 OR CAIH134 OR CAIH135 OR CAIH136;
CAIH138:=CAIH137 AND G2>CAIH106 AND G2>CAIH108;
CAIH139:=CAIH110>CAIH112 AND CAIH113>CAIH115 AND CROSS(CAIH117,CAIH118) AND CAIH117>REF(CAIH117,1) AND CAIH118>REF(CAIH118,1) AND G2>CAIH106 AND G2>CAIH108;
CAIH140:=CAIH120CAIH115 AND CAIH110>CAIH111 AND CROSS(CAIH120,CAIH121) AND CAIH106>=CAIH107;
CAIH141:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CAIH110>CAIH112 AND CAIH117>CAIH118 AND CAIH106>=CAIH107;
CAIH142:=(G1-REF(G1,12))/REF(G1,12)*100;
CAIH143:=100*VOL/CAPITAL;
CAIH144:=CROSS(CAIH142,16) AND CAIH143>3.5;
CAIH145:=G1/REF(G1,1)>1.095 AND G4=G1;
CAIH146:=REF(EXIST(CAIH145,12),1);
CAIH147:=(REF(G4,1)-REF(G1,1))/REF(G4,1)>=0.04 AND REF(G1,1)>REF(G3,1);
CAIH148:=CAIH146 AND CAIH147 AND G1>REF(G4,1) AND G2>CAIH106 AND G2>CAIH108;
CAIH149:=CAIH52 AND CAIH138;
CAIH150:=CAIH84 AND CAIH97 AND CAIH131;
CAIH151:=CAIH50=CAIH49 AND REF(CAIH49,1)>REF(CAIH50,1);
CAIH152:=CAIH151 AND CAIH139 AND CAIH144;
CAIH153:=REF(CAIH151,1) AND CAIH144;
CAIH154:=REF(CAIH151,1) AND CAIH144 AND CAIH138;
CAIH155:=CAIH148 AND CAIH144;
CAIH156:=REF(CAIH84,1) AND CAIH144;
CAIH157:=REF(CAIH84,1) AND CAIH131;
擒牛:CAIH52 OR CAIH102 OR CAIH94 OR CAIH85 OR CAIH86 OR CAIH104 OR CAIH149,COLORYELLOW,LINETHICK2;
抓妖:CAIH77 AND G1/REF(G1,1)>1.095 AND CAIH80 AND CAIH79 OR CAIH103 OR CAIH150 OR CAIH152 OR CAIH153 OR CAIH156 OR CAIH155 OR CAIH154 OR CAIH157,COLORRED,LINETHICK2;
捉马:CAIH97 AND CAIH84 AND CAIH101 AND CAIH81,COLORMAGENTA,LINETHICK2;



第二部分 选股公式


{选股公式一:擒牛}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
CAIH1:=EMA(G1,12)-EMA(G1,26);
CAIH2:=EMA(CAIH1,9);
CAIH3:=CAIH1>CAIH2;
CAIH4:=(G1-LLV(G2,12))/(HHV(G4,12)-LLV(G2,12))*100;
CAIH5:=SMA(CAIH4,3,1);
CAIH6:=SMA(CAIH5,3,1);
CAIH7:=CAIH5>CAIH6;
CAIH8:=REF(G1,1);
CAIH9:=SMA(MAX(G1-CAIH8,0),9,1)/SMA(ABS(G1-CAIH8),9,1)*100;
CAIH10:=SMA(MAX(G1-CAIH8,0),26,1)/SMA(ABS(G1-CAIH8),26,1)*100;
CAIH11:=CAIH9>CAIH10;
CAIH12:=SMA(CAIH4,3,1);
CAIH13:=SMA(CAIH12,3,1);
CAIH14:=CAIH12>CAIH13;
CAIH15:=(MA(G1,3)+MA(G1,9)+MA(G1,12)+MA(G1,26))/4;
CAIH16:=G1>CAIH15;
CAIH17:=G1-REF(G1,1);
CAIH18:=100*EMA(EMA(CAIH17,9),9)/EMA(EMA(ABS(CAIH17),9),3);
CAIH19:=100*EMA(EMA(CAIH17,26),12)/EMA(EMA(ABS(CAIH17),26),12);
CAIH20:=CAIH18>CAIH19;
CAIH21:=CAIH3 AND CAIH7 AND CAIH11 AND CAIH14 AND CAIH16 AND CAIH20;
CAIH22:=G1-REF(G1,1);
CAIH23:=IF(G1-REF(G1,1)>=0,CAIH22,0);
CAIH24:=REF(G1,1)-G1;
CAIH25:=IF(G1-REF(G1,1)=CAIH34,CAIH33,CAIH34);
CAIH36:=IF(CAIH34-CAIH33,CAIH34,CAIH33);
CAIH37:=EMA(G1,7)-EMA(G1,21);
CAIH38:=EMA(0.668*REF(CAIH37,1)+0.333*CAIH37,1);
CAIH39:=IF(CAIH37>=CAIH38,CAIH37,CAIH38);
CAIH40:=IF(CAIH38-CAIH37,CAIH38,CAIH37);
CAIH41:=CAIH35>CAIH36;
CAIH42:=CAIH35=CAIH36;
CAIH43:=CAIH39>CAIH40;
CAIH44:=CAIH39=CAIH40;
CAIH45:=CAIH44 AND CAIH42;
CAIH46:=CAIH43 AND CAIH41;
CAIH47:=EMA(G1,5);
CAIH48:=EMA(CAIH47,0);
CAIH49:=HHV(MA(G4,3),2);
CAIH50:=LLV(MA(G4,3),1);
CAIH51:=FILTER(CAIH48>REF(CAIH48,1) AND CAIH49REF(G1,1),11);
CAIH52:=CAIH51>=1 AND CAIH21 AND REF(CAIH50=CAIH49,1) AND REF(CAIH41,1);
CAIH53:=MA(G1,10);
CAIH54:=MA(G1,54);
CAIH55:=(REF(G1,3)-G1)/REF(G1,3)*100>5;
CAIH56:=FILTER(CAIH55,10);
CAIH57:=BARSLAST(CAIH56);
CAIH58:=REF(G4,CAIH57+2);
CAIH59:=REF(G4,CAIH57+1);
CAIH60:=REF(G4,CAIH57);
CAIH61:=MAX(CAIH58,CAIH59);
CAIH62:=MAX(CAIH61,CAIH60);
CAIH63:=(G1-REF(G1,1))/REF(G1,1)*100>5;
CAIH64:=CAIH57<150;
CAIH65:=(G3-CAIH62)/CAIH62*100<30;
CAIH66:=(G1-LLV(G2,CAIH57))/LLV(G2,CAIH57)*100<50;
CAIH67:=(G1-REF(G3,5))/REF(G3,5)*100<30;
CAIH68:=VOL/MA(VOL,5)<3.5;
CAIH69:=(G1-REF(G1,89))/REF(G1,89)*100<80;
CAIH70:=CAIH63 AND CAIH64 AND CAIH65 AND CAIH66 AND CAIH67 AND CAIH68 AND CAIH69;
CAIH71:=FILTER(CAIH70,15);
CAIH72:=(G1-CAIH54)/CAIH54<0.1;
CAIH73:=(G1-CAIH53)/CAIH531.05 AND G1/G3>1.05;
CAIH80:=VOL/REF(VOL,1)>1.2 AND COUNT(G1>G3,1) OR (G2>REF(G4,1) AND COUNT(G3>G1,1) AND VOL/REF(VOL,1)>1.2);
CAIH81:=MA(G1,5)>MA(G1,10) AND MA(G1,10)>REF(MA(G1,10),1) AND MA(G1,5)>REF(MA(G1,5),1);
CAIH82:=100*(1-WINNER(G1));
CAIH83:=100-CAIH82;
CAIH84:=CROSS(CAIH83,CAIH82);
CAIH85:=CAIH51>=1 AND CAIH84;
CAIH86:=CAIH84 AND CAIH21 AND (G1/REF(G1,1)-1)*100>9.97;
CAIH87:=MA(G1,5);
CAIH88:=MA(G1,13);
CAIH89:=MA(G1,34);
CAIH90:=CAIH87>REF(CAIH87,1) AND CAIH88>REF(CAIH88,1) AND CAIH89>REF(CAIH89,1);
CAIH91:=EMA(G1,3);
CAIH92:=EMA(SLOPE(G1,34)*5+G1,21);
CAIH93:=CROSS(CAIH91,CAIH92);
CAIH94:=CAIH93 AND REF(CAIH50=CAIH49,1) AND CAIH21 AND REF(CAIH41,1);
CAIH95:=CROSS(CAIH91,CAIH92) AND CAIH90;
CAIH96:=MA(G1,34);
CAIH97:=CAIH93>0 OR CAIH95>0;
CAIH98:=G1>CAIH96 AND REF(G1,1)
CAIH99:=CROSS(G1,MA(G1,250)) AND VOL>=REF(VOL,1)*2;
CAIH100:=(G1/REF(G1,1)-1)*100>9.97 AND CROSS(G1,MA(G1,250));
CAIH101:=CAIH99 OR CAIH100 OR CAIH98;
CAIH102:=CAIH97 AND CAIH21 AND CAIH46 AND REF(CAIH41,1);
CAIH103:=CAIH97 AND CAIH21 AND (G1/REF(G1,1)-1)*100>9.97;
CAIH104:=CAIH50=CAIH49 AND REF(CAIH49,1)>REF(CAIH50,1) AND (G1/REF(G1,1)-1)*100>9.97 AND CAIH97;
CAIH105:=(3*G1+G2+G3+G4)/6;
CAIH106:=(20*CAIH105+19*REF(CAIH105,1)+18*REF(CAIH105,2)+17*REF(CAIH105,3)+16*REF(CAIH105,4)+15*REF(CAIH105,5)+14*REF(CAIH105,6)+13*REF(CAIH105,7)+12*REF(CAIH105,8)+11*REF(CAIH105,9)+10*REF(CAIH105,10)+9*REF(CAIH105,11)+8*REF(CAIH105,12)+7*REF(CAIH105,13)+6*REF(CAIH105,14)+5*REF(CAIH105,15)+4*REF(CAIH105,16)+3*REF(CAIH105,17)+2*REF(CAIH105,18)+REF(CAIH105,20))/210;
CAIH107:=MA(CAIH106,6);
CAIH108:=MA(G1,60);
CAIH109:=EMA(SMA((G1-LLV(G2,19))/(HHV(G4,19)-LLV(G2,19))*100,8,1),3);
CAIH110:=MA(SUM(IF(G1>REF(G1,1),VOL,IF(G1
CAIH111:=EMA(CAIH110,12);
CAIH112:=EMA(CAIH110,26);
CAIH113:=100*EMA(EMA(CAIH17,6),6)/EMA(EMA(ABS(CAIH17),6),6);
CAIH114:=100*EMA(EMA(CAIH17,12),12)/EMA(EMA(ABS(CAIH17),12),12);
CAIH115:=100*EMA(EMA(CAIH17,26),26)/EMA(EMA(ABS(CAIH17),26),26);
CAIH116:=G1-REF(G1,1);
CAIH117:=100*EMA(EMA(CAIH116,9),9)/EMA(EMA(ABS(CAIH116),9),9);
CAIH118:=MA(CAIH117,5);
CAIH119:=VOL/CAPITAL*100;
CAIH120:=MA(CAIH119,30)/MA(INDEXA,10)*MA(INDEXA,60);
CAIH121:=MA(CAIH119,120)/MA(INDEXA,10)*MA(INDEXA,60);
CAIH122:=1;
CAIH123:=(G4+G3+G2+2*G1)/5;
CAIH124:=REF(CAIH123,1);
CAIH125:=MAX(CAIH123-CAIH124,0);
CAIH126:=ABS(CAIH123-CAIH124);
CAIH127:=SMA(CAIH125,10,1);
CAIH128:=SMA(CAIH126,10,1);
CAIH129:=COUNT(CAIH127/CAIH128REF(CAIH113,1) AND CAIH117>REF(CAIH117,1) AND CROSS(CAIH110,CAIH112) AND CAIH110>REF(CAIH110,1) AND CAIH111>REF(CAIH111,1) AND CAIH112>REF(CAIH112,1) AND G2>CAIH106 AND G2>CAIH108;
CAIH132:=CAIH110>CAIH112 AND CROSS(CAIH110,CAIH111) AND CROSS(CAIH117,CAIH118);
CAIH133:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CAIH113>CAIH115 AND CROSS(CAIH110,CAIH112);
CAIH134:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CROSS(CAIH113,CAIH115) AND CAIH110>REF(CAIH110,1);
CAIH135:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CAIH110>REF(CAIH110,1) AND CAIH113>CAIH115 AND CROSS(CAIH114,CAIH115) AND CAIH113>REF(CAIH113,1) AND CAIH114>REF(CAIH114,1) AND CAIH115>REF(CAIH115,1);
CAIH136:=CAIH110>CAIH112 AND CAIH117>CAIH118 AND CROSS(CAIH113,CAIH115) AND CAIH113>REF(CAIH113,1) AND CAIH114>REF(CAIH114,1) AND CAIH115>REF(CAIH115,1);
CAIH137:=CAIH133 OR CAIH134 OR CAIH135 OR CAIH136;
CAIH138:=CAIH137 AND G2>CAIH106 AND G2>CAIH108;
CAIH149:=CAIH52 AND CAIH138;
擒牛:CAIH52 OR CAIH102 OR CAIH94 OR CAIH85 OR CAIH86 OR CAIH104 OR CAIH149,COLORYELLOW,LINETHICK2;

{选股公式二:捉妖}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
CAIH1:=EMA(G1,12)-EMA(G1,26);
CAIH2:=EMA(CAIH1,9);
CAIH3:=CAIH1>CAIH2;
CAIH4:=(G1-LLV(G2,12))/(HHV(G4,12)-LLV(G2,12))*100;
CAIH5:=SMA(CAIH4,3,1);
CAIH6:=SMA(CAIH5,3,1);
CAIH7:=CAIH5>CAIH6;
CAIH8:=REF(G1,1);
CAIH9:=SMA(MAX(G1-CAIH8,0),9,1)/SMA(ABS(G1-CAIH8),9,1)*100;
CAIH10:=SMA(MAX(G1-CAIH8,0),26,1)/SMA(ABS(G1-CAIH8),26,1)*100;
CAIH11:=CAIH9>CAIH10;
CAIH12:=SMA(CAIH4,3,1);
CAIH13:=SMA(CAIH12,3,1);
CAIH14:=CAIH12>CAIH13;
CAIH15:=(MA(G1,3)+MA(G1,9)+MA(G1,12)+MA(G1,26))/4;
CAIH16:=G1>CAIH15;
CAIH17:=G1-REF(G1,1);
CAIH18:=100*EMA(EMA(CAIH17,9),9)/EMA(EMA(ABS(CAIH17),9),3);
CAIH19:=100*EMA(EMA(CAIH17,26),12)/EMA(EMA(ABS(CAIH17),26),12);
CAIH20:=CAIH18>CAIH19;
CAIH21:=CAIH3 AND CAIH7 AND CAIH11 AND CAIH14 AND CAIH16 AND CAIH20;
CAIH22:=G1-REF(G1,1);
CAIH23:=IF(G1-REF(G1,1)>=0,CAIH22,0);
CAIH24:=REF(G1,1)-G1;
CAIH25:=IF(G1-REF(G1,1)=CAIH34,CAIH33,CAIH34);
CAIH36:=IF(CAIH34-CAIH33,CAIH34,CAIH33);
CAIH37:=EMA(G1,7)-EMA(G1,21);
CAIH38:=EMA(0.668*REF(CAIH37,1)+0.333*CAIH37,1);
CAIH39:=IF(CAIH37>=CAIH38,CAIH37,CAIH38);
CAIH40:=IF(CAIH38-CAIH37,CAIH38,CAIH37);
CAIH41:=CAIH35>CAIH36;
CAIH42:=CAIH35=CAIH36;
CAIH43:=CAIH39>CAIH40;
CAIH44:=CAIH39=CAIH40;
CAIH45:=CAIH44 AND CAIH42;
CAIH46:=CAIH43 AND CAIH41;
CAIH47:=EMA(G1,5);
CAIH48:=EMA(CAIH47,0);
CAIH49:=HHV(MA(G4,3),2);
CAIH50:=LLV(MA(G4,3),1);
CAIH51:=FILTER(CAIH48>REF(CAIH48,1) AND CAIH49REF(G1,1),11);
CAIH52:=CAIH51>=1 AND CAIH21 AND REF(CAIH50=CAIH49,1) AND REF(CAIH41,1);
CAIH53:=MA(G1,10);
CAIH54:=MA(G1,54);
CAIH55:=(REF(G1,3)-G1)/REF(G1,3)*100>5;
CAIH56:=FILTER(CAIH55,10);
CAIH57:=BARSLAST(CAIH56);
CAIH58:=REF(G4,CAIH57+2);
CAIH59:=REF(G4,CAIH57+1);
CAIH60:=REF(G4,CAIH57);
CAIH61:=MAX(CAIH58,CAIH59);
CAIH62:=MAX(CAIH61,CAIH60);
CAIH63:=(G1-REF(G1,1))/REF(G1,1)*100>5;
CAIH64:=CAIH57<150;
CAIH65:=(G3-CAIH62)/CAIH62*100<30;
CAIH66:=(G1-LLV(G2,CAIH57))/LLV(G2,CAIH57)*100<50;
CAIH67:=(G1-REF(G3,5))/REF(G3,5)*100<30;
CAIH68:=VOL/MA(VOL,5)<3.5;
CAIH69:=(G1-REF(G1,89))/REF(G1,89)*100<80;
CAIH70:=CAIH63 AND CAIH64 AND CAIH65 AND CAIH66 AND CAIH67 AND CAIH68 AND CAIH69;
CAIH71:=FILTER(CAIH70,15);
CAIH72:=(G1-CAIH54)/CAIH54<0.1;
CAIH73:=(G1-CAIH53)/CAIH531.05 AND G1/G3>1.05;
CAIH80:=VOL/REF(VOL,1)>1.2 AND COUNT(G1>G3,1) OR (G2>REF(G4,1) AND COUNT(G3>G1,1) AND VOL/REF(VOL,1)>1.2);
CAIH81:=MA(G1,5)>MA(G1,10) AND MA(G1,10)>REF(MA(G1,10),1) AND MA(G1,5)>REF(MA(G1,5),1);
CAIH82:=100*(1-WINNER(G1));
CAIH83:=100-CAIH82;
CAIH84:=CROSS(CAIH83,CAIH82);
CAIH85:=CAIH51>=1 AND CAIH84;
CAIH86:=CAIH84 AND CAIH21 AND (G1/REF(G1,1)-1)*100>9.97;
CAIH87:=MA(G1,5);
CAIH88:=MA(G1,13);
CAIH89:=MA(G1,34);
CAIH90:=CAIH87>REF(CAIH87,1) AND CAIH88>REF(CAIH88,1) AND CAIH89>REF(CAIH89,1);
CAIH91:=EMA(G1,3);
CAIH92:=EMA(SLOPE(G1,34)*5+G1,21);
CAIH93:=CROSS(CAIH91,CAIH92);
CAIH94:=CAIH93 AND REF(CAIH50=CAIH49,1) AND CAIH21 AND REF(CAIH41,1);
CAIH95:=CROSS(CAIH91,CAIH92) AND CAIH90;
CAIH96:=MA(G1,34);
CAIH97:=CAIH93>0 OR CAIH95>0;
CAIH98:=G1>CAIH96 AND REF(G1,1)
CAIH99:=CROSS(G1,MA(G1,250)) AND VOL>=REF(VOL,1)*2;
CAIH100:=(G1/REF(G1,1)-1)*100>9.97 AND CROSS(G1,MA(G1,250));
CAIH101:=CAIH99 OR CAIH100 OR CAIH98;
CAIH102:=CAIH97 AND CAIH21 AND CAIH46 AND REF(CAIH41,1);
CAIH103:=CAIH97 AND CAIH21 AND (G1/REF(G1,1)-1)*100>9.97;
CAIH104:=CAIH50=CAIH49 AND REF(CAIH49,1)>REF(CAIH50,1) AND (G1/REF(G1,1)-1)*100>9.97 AND CAIH97;
CAIH105:=(3*G1+G2+G3+G4)/6;
CAIH106:=(20*CAIH105+19*REF(CAIH105,1)+18*REF(CAIH105,2)+17*REF(CAIH105,3)+16*REF(CAIH105,4)+15*REF(CAIH105,5)+14*REF(CAIH105,6)+13*REF(CAIH105,7)+12*REF(CAIH105,8)+11*REF(CAIH105,9)+10*REF(CAIH105,10)+9*REF(CAIH105,11)+8*REF(CAIH105,12)+7*REF(CAIH105,13)+6*REF(CAIH105,14)+5*REF(CAIH105,15)+4*REF(CAIH105,16)+3*REF(CAIH105,17)+2*REF(CAIH105,18)+REF(CAIH105,20))/210;
CAIH107:=MA(CAIH106,6);
CAIH108:=MA(G1,60);
CAIH109:=EMA(SMA((G1-LLV(G2,19))/(HHV(G4,19)-LLV(G2,19))*100,8,1),3);
CAIH110:=MA(SUM(IF(G1>REF(G1,1),VOL,IF(G1
CAIH111:=EMA(CAIH110,12);
CAIH112:=EMA(CAIH110,26);
CAIH113:=100*EMA(EMA(CAIH17,6),6)/EMA(EMA(ABS(CAIH17),6),6);
CAIH114:=100*EMA(EMA(CAIH17,12),12)/EMA(EMA(ABS(CAIH17),12),12);
CAIH115:=100*EMA(EMA(CAIH17,26),26)/EMA(EMA(ABS(CAIH17),26),26);
CAIH116:=G1-REF(G1,1);
CAIH117:=100*EMA(EMA(CAIH116,9),9)/EMA(EMA(ABS(CAIH116),9),9);
CAIH118:=MA(CAIH117,5);
CAIH119:=VOL/CAPITAL*100;
CAIH120:=MA(CAIH119,30)/MA(INDEXA,10)*MA(INDEXA,60);
CAIH121:=MA(CAIH119,120)/MA(INDEXA,10)*MA(INDEXA,60);
CAIH122:=1;
CAIH123:=(G4+G3+G2+2*G1)/5;
CAIH124:=REF(CAIH123,1);
CAIH125:=MAX(CAIH123-CAIH124,0);
CAIH126:=ABS(CAIH123-CAIH124);
CAIH127:=SMA(CAIH125,10,1);
CAIH128:=SMA(CAIH126,10,1);
CAIH129:=COUNT(CAIH127/CAIH128REF(CAIH113,1) AND CAIH117>REF(CAIH117,1) AND CROSS(CAIH110,CAIH112) AND CAIH110>REF(CAIH110,1) AND CAIH111>REF(CAIH111,1) AND CAIH112>REF(CAIH112,1) AND G2>CAIH106 AND G2>CAIH108;
CAIH132:=CAIH110>CAIH112 AND CROSS(CAIH110,CAIH111) AND CROSS(CAIH117,CAIH118);
CAIH133:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CAIH113>CAIH115 AND CROSS(CAIH110,CAIH112);
CAIH134:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CROSS(CAIH113,CAIH115) AND CAIH110>REF(CAIH110,1);
CAIH135:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CAIH110>REF(CAIH110,1) AND CAIH113>CAIH115 AND CROSS(CAIH114,CAIH115) AND CAIH113>REF(CAIH113,1) AND CAIH114>REF(CAIH114,1) AND CAIH115>REF(CAIH115,1);
CAIH136:=CAIH110>CAIH112 AND CAIH117>CAIH118 AND CROSS(CAIH113,CAIH115) AND CAIH113>REF(CAIH113,1) AND CAIH114>REF(CAIH114,1) AND CAIH115>REF(CAIH115,1);
CAIH137:=CAIH133 OR CAIH134 OR CAIH135 OR CAIH136;
CAIH138:=CAIH137 AND G2>CAIH106 AND G2>CAIH108;
CAIH139:=CAIH110>CAIH112 AND CAIH113>CAIH115 AND CROSS(CAIH117,CAIH118) AND CAIH117>REF(CAIH117,1) AND CAIH118>REF(CAIH118,1) AND G2>CAIH106 AND G2>CAIH108;
CAIH140:=CAIH120CAIH115 AND CAIH110>CAIH111 AND CROSS(CAIH120,CAIH121) AND CAIH106>=CAIH107;
CAIH141:=CAIH129>=1 AND CAIH130>=1 AND G1>G3 AND REF(G1,1)>REF(G3,1) AND VOL>REF(VOL,1) AND CAIH110>CAIH112 AND CAIH117>CAIH118 AND CAIH106>=CAIH107;
CAIH142:=(G1-REF(G1,12))/REF(G1,12)*100;
CAIH143:=100*VOL/CAPITAL;
CAIH144:=CROSS(CAIH142,16) AND CAIH143>3.5;
CAIH145:=G1/REF(G1,1)>1.095 AND G4=G1;
CAIH146:=REF(EXIST(CAIH145,12),1);
CAIH147:=(REF(G4,1)-REF(G1,1))/REF(G4,1)>=0.04 AND REF(G1,1)>REF(G3,1);
CAIH148:=CAIH146 AND CAIH147 AND G1>REF(G4,1) AND G2>CAIH106 AND G2>CAIH108;
CAIH149:=CAIH52 AND CAIH138;
CAIH150:=CAIH84 AND CAIH97 AND CAIH131;
CAIH151:=CAIH50=CAIH49 AND REF(CAIH49,1)>REF(CAIH50,1);
CAIH152:=CAIH151 AND CAIH139 AND CAIH144;
CAIH153:=REF(CAIH151,1) AND CAIH144;
CAIH154:=REF(CAIH151,1) AND CAIH144 AND CAIH138;
CAIH155:=CAIH148 AND CAIH144;
CAIH156:=REF(CAIH84,1) AND CAIH144;
CAIH157:=REF(CAIH84,1) AND CAIH131;
抓妖:CAIH77 AND G1/REF(G1,1)>1.095 AND CAIH80 AND CAIH79 OR CAIH103 OR CAIH150 OR CAIH152 OR CAIH153 OR CAIH156 OR CAIH155 OR CAIH154 OR CAIH157,COLORRED,LINETHICK2;
{选股公式三:捉马}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
CAIH1:=EMA(G1,12)-EMA(G1,26);
CAIH2:=EMA(CAIH1,9);
CAIH3:=CAIH1>CAIH2;
CAIH4:=(G1-LLV(G2,12))/(HHV(G4,12)-LLV(G2,12))*100;
CAIH5:=SMA(CAIH4,3,1);
CAIH6:=SMA(CAIH5,3,1);
CAIH7:=CAIH5>CAIH6;
CAIH8:=REF(G1,1);
CAIH9:=SMA(MAX(G1-CAIH8,0),9,1)/SMA(ABS(G1-CAIH8),9,1)*100;
CAIH10:=SMA(MAX(G1-CAIH8,0),26,1)/SMA(ABS(G1-CAIH8),26,1)*100;
CAIH11:=CAIH9>CAIH10;
CAIH12:=SMA(CAIH4,3,1);
CAIH13:=SMA(CAIH12,3,1);
CAIH14:=CAIH12>CAIH13;
CAIH15:=(MA(G1,3)+MA(G1,9)+MA(G1,12)+MA(G1,26))/4;
CAIH16:=G1>CAIH15;
CAIH17:=G1-REF(G1,1);
CAIH18:=100*EMA(EMA(CAIH17,9),9)/EMA(EMA(ABS(CAIH17),9),3);
CAIH19:=100*EMA(EMA(CAIH17,26),12)/EMA(EMA(ABS(CAIH17),26),12);
CAIH20:=CAIH18>CAIH19;
CAIH21:=CAIH3 AND CAIH7 AND CAIH11 AND CAIH14 AND CAIH16 AND CAIH20;
CAIH22:=G1-REF(G1,1);
CAIH23:=IF(G1-REF(G1,1)>=0,CAIH22,0);
CAIH24:=REF(G1,1)-G1;
CAIH25:=IF(G1-REF(G1,1)=CAIH34,CAIH33,CAIH34);
CAIH36:=IF(CAIH34-CAIH33,CAIH34,CAIH33);
CAIH37:=EMA(G1,7)-EMA(G1,21);
CAIH38:=EMA(0.668*REF(CAIH37,1)+0.333*CAIH37,1);
CAIH39:=IF(CAIH37>=CAIH38,CAIH37,CAIH38);
CAIH40:=IF(CAIH38-CAIH37,CAIH38,CAIH37);
CAIH41:=CAIH35>CAIH36;
CAIH42:=CAIH35=CAIH36;
CAIH43:=CAIH39>CAIH40;
CAIH44:=CAIH39=CAIH40;
CAIH45:=CAIH44 AND CAIH42;
CAIH46:=CAIH43 AND CAIH41;
CAIH47:=EMA(G1,5);
CAIH48:=EMA(CAIH47,0);
CAIH49:=HHV(MA(G4,3),2);
CAIH50:=LLV(MA(G4,3),1);
CAIH51:=FILTER(CAIH48>REF(CAIH48,1) AND CAIH49REF(G1,1),11);
CAIH52:=CAIH51>=1 AND CAIH21 AND REF(CAIH50=CAIH49,1) AND REF(CAIH41,1);
CAIH53:=MA(G1,10);
CAIH54:=MA(G1,54);
CAIH55:=(REF(G1,3)-G1)/REF(G1,3)*100>5;
CAIH56:=FILTER(CAIH55,10);
CAIH57:=BARSLAST(CAIH56);
CAIH58:=REF(G4,CAIH57+2);
CAIH59:=REF(G4,CAIH57+1);
CAIH60:=REF(G4,CAIH57);
CAIH61:=MAX(CAIH58,CAIH59);
CAIH62:=MAX(CAIH61,CAIH60);
CAIH63:=(G1-REF(G1,1))/REF(G1,1)*100>5;
CAIH64:=CAIH57<150;
CAIH65:=(G3-CAIH62)/CAIH62*100<30;
CAIH66:=(G1-LLV(G2,CAIH57))/LLV(G2,CAIH57)*100<50;
CAIH67:=(G1-REF(G3,5))/REF(G3,5)*100<30;
CAIH68:=VOL/MA(VOL,5)<3.5;
CAIH69:=(G1-REF(G1,89))/REF(G1,89)*100<80;
CAIH70:=CAIH63 AND CAIH64 AND CAIH65 AND CAIH66 AND CAIH67 AND CAIH68 AND CAIH69;
CAIH71:=FILTER(CAIH70,15);
CAIH72:=(G1-CAIH54)/CAIH54<0.1;
CAIH73:=(G1-CAIH53)/CAIH531.05 AND G1/G3>1.05;
CAIH80:=VOL/REF(VOL,1)>1.2 AND COUNT(G1>G3,1) OR (G2>REF(G4,1) AND COUNT(G3>G1,1) AND VOL/REF(VOL,1)>1.2);
CAIH81:=MA(G1,5)>MA(G1,10) AND MA(G1,10)>REF(MA(G1,10),1) AND MA(G1,5)>REF(MA(G1,5),1);
CAIH82:=100*(1-WINNER(G1));
CAIH83:=100-CAIH82;
CAIH84:=CROSS(CAIH83,CAIH82);
CAIH85:=CAIH51>=1 AND CAIH84;
CAIH86:=CAIH84 AND CAIH21 AND (G1/REF(G1,1)-1)*100>9.97;
CAIH87:=MA(G1,5);
CAIH88:=MA(G1,13);
CAIH89:=MA(G1,34);
CAIH90:=CAIH87>REF(CAIH87,1) AND CAIH88>REF(CAIH88,1) AND CAIH89>REF(CAIH89,1);
CAIH91:=EMA(G1,3);
CAIH92:=EMA(SLOPE(G1,34)*5+G1,21);
CAIH93:=CROSS(CAIH91,CAIH92);
CAIH94:=CAIH93 AND REF(CAIH50=CAIH49,1) AND CAIH21 AND REF(CAIH41,1);
CAIH95:=CROSS(CAIH91,CAIH92) AND CAIH90;
CAIH96:=MA(G1,34);
CAIH97:=CAIH93>0 OR CAIH95>0;
CAIH98:=G1>CAIH96 AND REF(G1,1)
CAIH99:=CROSS(G1,MA(G1,250)) AND VOL>=REF(VOL,1)*2;
CAIH100:=(G1/REF(G1,1)-1)*100>9.97 AND CROSS(G1,MA(G1,250));
CAIH101:=CAIH99 OR CAIH100 OR CAIH98;
捉马:CAIH97 AND CAIH84 AND CAIH101 AND CAIH81,COLORMAGENTA,LINETHICK2;


玖就旧i 发表于 2023-9-4 16:59:53

沙发!沙发!

蓝胖子685 发表于 2023-9-16 12:24:38

非常好,赞一个!

云哥 发表于 2023-11-2 21:18:27

已收藏!

下雨的星期日窃 发表于 2024-2-5 12:10:48

我都想要,怎么办?

月下红拂痉 发表于 2024-2-17 09:57:32

不错的内容!

累了睡觉和 发表于 2024-3-3 07:32:25

多多点赞好好学习
页: [1]
查看完整版本: 擒牛抓妖捉马 好股绝不放过【指标公式】(含选股)