主图
VAR1:=MA(CLOSE,5);
VAR7:=EMA(HHV(HIGH,1),8);
VAR8:=EMA(CLOSE,8);
VAR9:=VAR8<REF(VAR8,1) AND CLOSE<VAR8;
VAR10:=IF(VAR7<REF(VAR7,1) OR VAR9,1,0);
VAR11:=(COUNT(VAR10=1,4)=3 AND VAR10=0)*89;
VAR12:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR13:=IF(CLOSE>OPEN,VAR12*(HIGH-LOW),IF(CLOSE<OPEN,VAR12*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-VAR12*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR12*(HIGH-LOW),0-VOL/2));
VAR14:=VAR13/20/1.15;
VAR15:=VAR14*0.55+REF(VAR14,1)*0.33+REF(VAR14,2)*0.22;
VAR16:=EMA(VAR15,3);
VAR17:=VAR16<100;
VAR18:=COUNT(VAR17,9)<2;
VAR19:=CLOSE/REF(CLOSE,1)>1.09;
VAR20:=CLOSE=HIGH;
VAR21:=REF(VAR19,1) AND REF(VAR20,1);
VAR22:=COUNT(VAR21,11)>0;
VAR23:=MA(CLOSE,3);
VAR24:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR25:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR26:=REF(HHV(VOL,10),1);
VAR27:=MA(CLOSE,20);
VAR28:=(VAR23+VAR1)/2;
VAR29:=COUNT(COUNT(VAR24>9.9 AND CLOSE=HIGH,1)>=1,30)>0;
VAR30:=COUNT(COUNT(VAR24>9.9 AND CLOSE=HIGH,1)>=1,60)>0;
VAR31:=VAR27>REF(VAR27,1) AND VOL<VAR26 AND VAR29 AND VAR25>3 AND OPEN<=VAR1 AND CLOSE>VAR1 AND (COUNT(VAR28>REF(VAR28,1),3)>=3 OR COUNT(VAR1>REF(VAR1,1),3)>=3) AND COUNT(VAR27>REF(VAR27,1),25)>=16;
VAR32:=(CLOSE-OPEN)/OPEN*100;
VAR33:=VAR30 AND VOL<1.3*REF(VOL,1) AND COUNT(VAR32>0.5,6)>=5 AND COUNT(VAR23>VAR1,5)>=5 AND COUNT(HIGH>REF(HIGH,1),6)>=5 AND VAR25>4.5 AND OPEN<=VAR23 AND CLOSE>VAR23 AND OPEN>VAR1;
VAR34:=VAR31 OR VAR33;
VAR35:=VAR34=1 AND COUNT(VAR34,15)=1;
VAR36:=AMOUNT/VOL/7;
VAR37:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR38:=SUM(AMOUNT,10)/VAR36/7;
VAR39:=DMA(VAR37,VOL/VAR38);
VAR40:=(CLOSE-VAR39)/VAR39*100;
VAR41:=-VAR40;
VAR42:=VAR40>VAR41;
VAR43:=CROSS(VAR40,0.6) AND VAR42;
VAR44:=EMA(CLOSE/REF(CLOSE,1),5);
VAR45:=EMA(CLOSE/REF(CLOSE,1),10);
VAR46:=CROSS(VAR44,VAR45);
VAR47:=VAR43 AND VAR46;
VAR48:=VAR47 AND VAR35;
VAR49:=COUNT(VAR35,10)>0;
VAR50:=VAR47 AND VAR49 AND VAR22;
VAR51:=VAR47 AND VAR22 AND VAR11;
VAR52:=VAR48 AND VAR22;
VAR53:=VAR50 OR VAR52 OR VAR51;
VAR59:=EMA(EMA(EMA(CLOSE,12),12),12);
VAR60:=(VAR59-REF(VAR59,1))/REF(VAR59,1)*100;
VAR61:=MA(VAR60,9);
VAR62:=VAR60>VAR61;
VAR63:=CLOSE/REF(CLOSE,1)>1.09;
VAR64:=CLOSE=HIGH;
VAR65:=REF(VAR63,1) AND REF(VAR64,1);
VAR66:=COUNT(VAR65,4)>0;
VAR68:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR69:=(20*VAR68+19*REF(VAR68,1)+18*REF(VAR68,2)+17*REF(VAR68,3)+16*REF(VAR68,4)+15*REF(VAR68,5)+14*REF(VAR68,6)+13*REF(VAR68,7)+12*REF(VAR68,8)+11*REF(VAR68,9)+10*REF(VAR68,10)+9*REF(VAR68,11)+8*REF(VAR68,12)+7*REF(VAR68,13)+6*REF(VAR68,14)+5*REF(VAR68,15)+4*REF(VAR68,16)+3*REF(VAR68,17)+2*REF(VAR68,18)+REF(VAR68,20))/210;
VAR70:=MA(VAR69,6);
VAR71:=VAR69>VAR70;
VAR72:=CLOSE>1.02*REF(CLOSE,1);
VAR73:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100<(-6);
VAR75:=REF(CLOSE,1)<(REF(CLOSE,BARSLAST(VAR73))+REF(CLOSE,BARSLAST(VAR73)+1))/2 AND CLOSE>(REF(CLOSE,BARSLAST(VAR73))+REF(CLOSE,BARSLAST(VAR73)+1))/2;
VAR76:=BARSLAST(VAR73)<=7 AND VAR72 AND VAR75 AND COUNT(VAR72,BARSLAST(VAR73))=1 AND NOT(HIGH=LOW) AND REF(NOT(HIGH=LOW),BARSLAST(VAR73))=1;
VAR78:=((CLOSE-REF(MA(CLOSE,6),1))/6+MA(CLOSE,6))*1.004;
VAR79:=CROSS(CLOSE,VAR78) AND VAR78>REF(VAR78,1);
VAR80:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004;
VAR81:=CROSS(CLOSE,VAR80) AND VAR80>REF(VAR80,1);
VAR82:=VAR79 AND VAR81 AND VAR76 AND VAR71 AND VAR62;
VAR83:=VAR66 AND VAR76 AND VAR71 AND VAR62;
VAR84:=VAR82 OR VAR83;
VAR85:=VAR18 AND VAR53;
VAR86:=VAR84 OR VAR85;
STICKLINE(VAR86,LOW,OPEN,3,0),COLORYELLOW;
STICKLINE(VAR86,HIGH,OPEN,3,0),COLORLIMAGENTA,LINETHICK2;
DRAWTEXT(VAR86,LOW*0.99,'回眸笑懂牛模形'),COLORLIMAGENTA,LINETHICK4;
副图 选股 一体
ZQ_1:=MA(CLOSE,5);
ZQ_2:=MA(CLOSE,10);
ZQ_3:=MA(CLOSE,60);
ZQ_4:=MA(CLOSE,120);
ZQ_5:=REF(CLOSE,1)<REF(Z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