M1:=5;M2:=10;M3:=20;M4:=60;M5:=120;M6:=250;MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA5:MA(CLOSE,M5);MA6:MA(CLOSE,M6);M:=30; N:=30;TJ:=HHV(H,M)=H;TJT:=BARSLAST(TJ);TJ1:=LLV(L,N)=L;TJ1T:=BARSLAST(TJ1);DRAWLINE(H=HHV(H,M),HHV(H,M),L=LLV(L,N),LLV(LOW,N),0)COLORYELLOW;NOTEXT2:DRAWLINE(H=HHV(H,M),HHV(H,M),L=LLV(L,N),REF(H,TJT),0)COLORYELLOW;STICKLINE(NOTEXT2 AND L=LLV(L,N) AND FILTERX(L=LLV(L,N),TJT+1),REF(L,TJ1T),REF(H,TJT),0,0)COLORYELLOW;:SUM(CLOSE*,FROMOPEN)/SUM(,FROMOP