X_1:=7;
X_2:=3;
X_3:=HIGH-REF(HIGH,1);
X_4:=REF(LOW,1)-LOW;
X_5:=SUM(IF(X_3>0 AND X_3>X_4,X_3,0),X_1);
X_6:=SUM(IF(X_4>0 AND X_4>X_3,X_4,0),X_1);
X_7:=X_5*100/TR;
X_8:=X_6*100/TR;
X_9:=MA(Abs(X_8-X_7)/(X_8+X_7)*100,X_2);
X_10:=(X_9+REF(X_9,X_2))/2;
X_11:=IF(X_9>90 AND X_7=0,1,0);
REF(X_11,1)>0 AND X_11=0,COLORRED;