VAR1:=100*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));
VAR2:=100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42));
ABC3:=MA(CLOSE,41)+MA(CLOSE,41)*10/100;
ABC4:=MA(CLOSE,23)+MA(CLOSE,23)*5/100;
ABC5:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
ABC6:=CLOSE>REF(CLOSE,1)*1.05;
macd:=((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2;
合力加速:=(HIGH+LOW+CLOSE)/3 ;
CC:=(合力加速-MA(合力加速,14))/(0.015*AVEDEV(合力加速,14));
NOSEL:=IF((crOSS(VAR1,20) AND CROSS(VAR2,20)),0,1);
cciB:=CROSS(CC,250) AND CCI>REF(CCI,1) AND MACD>0 AND NOSEL AND C>EMA(C,200);
CCIS:=((CROSS(VAR1,20) AND CROSS(VAR2,20)) OR (CROSS(VAR1,25) AND CROSS(VAR2,25)) OR (CROSS(VAR1,10) AND CROSS(VAR2,10))) AND ( CROSS(600,CC) OR CROSS(350,CC) OR CROSS(200,CC) OR CROSS(100,CC));
突破线:=SMA(H,14,2)*1.08 ;
一致1:=FILTER((CCIB AND C>突破线) OR (REF(CCIB,1) AND C>突破线),3),COLORYELLOW;
一致2:=CROSS(ABC5,ABC4) AND ABC6,COLORMAGENTA;
一致3:=CROSS(ABC5,ABC3) AND ABC6,COLORRED;
一致加速:BARSLASTCOUNT((一致1 OR 一致2) OR 一致2 OR 一致3)=1;