TEND:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))
*100,5,1)-2*Sma(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))
*100,5,1),3,1),COLORFF00FF;
TJ0:=IF(TEND<=10,12,0),LINETHICK2,COLORFF00FF;
VAR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
MW:=EMA(VAR2W,3);
VAR3W:=EMA(VAR2W,7);
M1:=EMA(VAR3W,5);
MB1:=crOSS(MW,M1) AND M1<20;
TJ2:=IF((MB1),20,0),LINETHICK2,COLORRED;
XG:TJ0 AND TJ2;