X_1:=vol*CLOSE;
X_2:=SUM(X_1,1)/SUM(VOL,1);
X_3:=EMA(X_2,17);
X_4:=(X_2-X_3)*100/X_2;
X_5:=IF(X_4>0 AND 0>=REF(X_4,1),6,DRAWNULL);
X_6:=IF(REF(X_4,1)<3 AND REF(X_4,1)>0 AND X_4-REF(X_4,1)>6,6,DRAWNULL);
X_7:=(CLOSE+HIGH+LOW)/3;
X_8:=EMA(X_7,5);
X_9:=REF(X_8,1);
X_10:=IF(X_8>X_9,0,DRAWNULL);
X_11:=IF(EMA(CLOSE,3)>REF(EMA(CLOSE,3),1),3,DRAWNULL);
X_12:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
X_13:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
X_14:=100-MA(100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)),34);
X_15:=IF(CLOSE>(HIGH+LOW)/2,1,0)+IF(crOSS(X_13,MA(X_14,5)),2,0)+IF(X_11=3,1,0)+IF(X_10=0,1,0)+IF(X_5=6,2,0)+IF(X_6=6,2,0);
X_16:=X_15>=5;
X_17:=macd.DIF>REF(MacD.DIF,1) AND REF(MACD.DIF,1)X_18:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
X_19:=IF(CLOSEX_20:=IF(CLOSEX_21:=X_19=0 AND REF(X_19,1)=1 AND X_20=0 AND REF(X_20,1)=1;
X_22:=X_17 AND X_21;
XG:X_16 AND X_22,COLORCYAN;