R1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; R:=SMA(R1,3,1); BLUE:=R<=30; GREEN:=R>=70; BLUETJ:BLUE;