{金牛回调-副图}
GHC1:=(CLOSE-EMA(CLOSE,5))/EMA(CLOSE,5)*100;
GHC2:=(CLOSE-EMA(CLOSE,10))/EMA(CLOSE,10)*100;
GHC3:=(CLOSE-EMA(CLOSE,20))/EMA(CLOSE,20)*100;
GHC4:=(CLOSE-EMA(CLOSE,60))/EMA(CLOSE,60)*100;
GHC5:=(CLOSE-EMA(CLOSE,120))/EMA(CLOSE,120)*100;
GHC6:=GHC1>4 AND GHC2>6 AND GHC3>8 AND GHC4>10 AND GHC5>12;
GHC7:=AMOUNT/REF(AMOUNT,BARSLAST(CROSS(AMOUNT,REF(HHV(AMOUNT,30),1))));
GHC8:=REF(GHC7,1)>1 AND REF(GHC7,2)>1 AND REF(GHC7,3)>1;
GHC9:=CLOSE/REF(CLOSE,1)>1.01 OR CLOSE/OPEN>1.04;
GHC10:=EMA(CLOSE,5)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,20) AND EMA(CLOSE,5)>EMA(CLOSE,20);
GHC11:=GHC8 AND LOW<EMA(CLOSE,10) AND REF(EXIST(GHC6,5),1) AND GHC9 AND GHC10;
GHC12:=EXIST(AMOUNT/REF(AMOUNT,1)>1.1,3) OR CLOSE>EMA(CLOSE,10);
XG:FILTER(GHC11 AND GHC12,2);
GHC13:=FINDHIGH(HIGH,1,BARSLAST(XG),1);
GHC14:=FINDLOW(LOW,1,BARSLAST(XG),1);
GHC15:=REF(HHV(HIGH,BARSLAST(XG)),1);
GHC16:=REF(LLV(LOW,BARSLAST(XG)),1);
GHC17:=GHC13/GHC14<1.23;
GHC18:=BARSLAST(XG)>=5 AND BARSLAST(XG)<20;
GHC19:=CLOSE>REF(CLOSE,BARSLAST(XG)) OR CROSS(CLOSE,REF(LOW,BARSLAST(XG)));
GHC20:=REF(GHC17,1) OR REF(GHC17,2) AND VOL>REF(HHV(VOL,4),1) AND GHC18 AND GHC19;
STICKLINE(FILTER(GHC20,2),0.6,0,1,1),COLORRED;
DRAWTEXT(XG,0.8,' "金牛回调"'),COLORYELLOW;