VAR1:=VOL; VAR2:=VOL; VAR3:=MAX(VAR1,MAX(VAR2,HHV(VOL,5))); VAR4:=MIN(VAR1,MIN(VAR2,LLV(VOL,5))); DRAWKLINE(VAR3,VAR1,VAR4,VAR2); VAR5:=REF(VAR4=VAR2,1) AND VAR3=VAR1 AND VAR3>REF(VAR3,1);