C1:=10000*CLOSE/INDEXC;
O1:=10000*OPEN/INDEXO;
H1:=10000*HIGH/INDEXH;
L1:=10000*LOW/INDEXL;
LL:=IF(L1<C1 AND L1<O1,L1,MIN(C1,O1));
HH:=IF(H1>C1 AND H1>O1,H1,MAX(C1,O1));
STICKLINE(C1>=O1,HH,C1,0,0),COLORRED;
STICKLINE(C1>=O1,C1,O1,2.5,1),COLORRED;
STICKLINE(C1>=O1,LL,O1,0,0),COLORRED;
STICKLINE(C1<O1,HH,O1,0,0),COLORCYAN;
STICKLINE(C1<O1,C1,O1,2.5,1),COLORCYAN;
STICKLINE(C1<O1,LL,C1,0,0),COLORCYAN;
M5:MA(C1,5);
MA2:MA(C1,10);
MA3:MA(C1,20);
MA4:MA(C1,30);