TYP:=(IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
CCI1:(TYP-MA(TYP,42))/(0.015*AVEDEV(TYP,42))*1,colorred,LINETHICK2;
CCI2:(TYP-MA(TYP,42))/(0.015*AVEDEV(TYP,42))*(-1),colorlicyan,LINETHICK2;
DRAWBAND(CCI1,RGB(110,30,60),CCI2,RGB(10,60,30));
VAR11:=HHV(HIGH,42)-LLV(LOW,42);
VAR12:=HHV(HIGH,42)-CLOSE;
VAR13:=CLOSE-LLV(LOW,42);
VAR14:VAR12/VAR11*400-500,COLORFF8000,LINETHICK2;
WERRSV:=(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42))*(-500);
LWR1:SMA(werRSV,30,5),colormagenta,LINETHICK2;
LWR2:SMA(LWR1,15,2),colorgreen,LINETHICK1;
N:=42;
VAR21:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*550-150,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*550-150,5,1),3.2,1),coloryellow,LINETHICK2;
E:-150,colorblue;