Ma2=SUM(AMOUNT,2)/SUM(vol,2),colorred,LINETHICK2;
Ma3=SUM(AMOUNT,3)/SUM(VOL,3),color88888;
Ma4=SUM(AMOUNT,4)/SUM(VOL,4),color88888;
Ma5=SUM(AMOUNT,5)/SUM(VOL,5),color88888;
Ma6=SUM(AMOUNT,6)/SUM(VOL,6),color88888;
Ma7=SUM(AMOUNT,7)/SUM(VOL,7),color88888;
Ma8=SUM(AMOUNT,8)/SUM(VOL,8),color88888;
Ma9=SUM(AMOUNT,9)/SUM(VOL,9),color88888;
Ma10=SUM(AMOUNT,10)/SUM(VOL,10),color88888;
Ma11=SUM(AMOUNT,11)/SUM(VOL,11),color88888;
Ma12=SUM(AMOUNT,12)/SUM(VOL,12),color88888;
Ma13=SUM(AMOUNT,13)/SUM(VOL,13),color88888;
Ma14=SUM(AMOUNT,14)/SUM(VOL,14),color88888;
Ma15=SUM(AMOUNT,15)/SUM(VOL,15),color88888;
Ma16=SUM(AMOUNT,16)/SUM(VOL,16),color88888;
Ma17=SUM(AMOUNT,17)/SUM(VOL,17),colorgray;
Ma18=SUM(AMOUNT,18)/SUM(VOL,18),color88888;
Ma19=SUM(AMOUNT,19)/SUM(VOL,19),color88888;
MA20=SUM(AMOUNT,20)/SUM(VOL,20),colorgray;
MA21=SUM(AMOUNT,21)/SUM(VOL,21),colorgray;
MA22=SUM(AMOUNT,22)/SUM(VOL,22),colorgray;
MA23=SUM(AMOUNT,23)/SUM(VOL,23),colorgray;
MA24=SUM(AMOUNT,24)/SUM(VOL,24),colorgray;
MA25=SUM(AMOUNT,25)/SUM(VOL,25),colorgray;
MA26=SUM(AMOUNT,26)/SUM(VOL,26),colorgray;
Ma27=SUM(AMOUNT,27)/SUM(VOL,27),colorgray;
Ma28=SUM(AMOUNT,28)/SUM(VOL,28),colorgray;
Ma29=SUM(AMOUNT,29)/SUM(VOL,29),coloryellow,Linethick2;
Mah=MAX(ma2,MAX(ma3,MAX(ma4,MAX(ma5,MAX(ma6,MAX(ma7,MAX(ma8,MAX(ma9
,MAX(ma10,MAX(ma11,MAX(ma12,MAX(ma13,MAX(ma14,MAX(ma15,MAX(ma16,MAX(ma17,
MAX(ma18,MAX(ma19,MAX(ma20,MAX(ma21,MAX(ma22,MAX(ma23,MAX(ma24,MAX(ma25,
MAX(ma26,MAX(ma27,MAX(ma28,ma29))))))))))))))))))))))))))),linethick3; coloryellow;
Mal=MIN(ma2,MIN(ma3,MIN(ma4,MIN(ma5,MIN(ma6,MIN(ma7,MIN(ma8,MIN(ma9,
MIN(ma10,MIN(ma11,MIN(ma12,MIN(ma13,MIN(ma14,MIN(ma15,MIN(ma16,
MIN(ma17,MIN(ma18,MIN(ma19,MIN(ma20,MIN(ma21,MIN(ma22,MIN(ma23,MIN(ma24,MIN(ma25,
MIN(ma26,MIN(ma27,MIN(ma28,ma29))))))))))))))))))))))))))),linethick3; colorgreen;
MA240=SUM(AMOUNT,240)/SUM(VOL,240),colorgray;
MA60=SUM(AMOUNT,60)/SUM(VOL,60),colorblue;
MA120=SUM(AMOUNT,120)/SUM(VOL,120),colorgreen;
MA1=AMOUNT/VOL,colorwhite;
a:MAh-MAl;
a1:LLV(a,29)*1.2;
a2:HHV(a,29)*0.85;
STICKLINE(a<=a1,a,a1,8,0),colorred;
STICKLINE(a>=a2,a2,a,8,0),colorgreen;