%>
TYP:=(HIGH+LOW+CLOSE)/3;LL:=LLV(LOW,N);HH:=HHV(HIGH,N);WR:TYP+(TYP-LL);MR:TYP+(HH-LL);SR:2*HH-LL;WS:TYP-(HH-TYP);MS:TYP-(HH-LL);SS:2*LL-HH