VA:=MAX(REF(C,1),REF(O,1));VA1:=MIN(REF(C,1),REF(O,1));
J:=SUM(AMOUNT/100,2)/SUM(V,2);
VOK:=IF(O
STICKLINE(VOK=1 ,O ,C ,8 ,0 ),COLORRED;
VOK1:=IF(REF(C,1)REF(C,1) AND L>REF(L,1) AND C>REF(C,1)
OR REF(C,1)REF(C,1) AND L>REF(L,1) AND C>REF(C,1),1,0);
STICKLINE(VOK1=1 ,O ,C ,8 ,0 ),COLORFF00FF;
VSJ1:=BArslAST(VOK=1 OR VOK1=1);
MMA2:SUM(AMOUNT/100,2)/SUM(vol,2),LINETHICK0;
ZS:IF(VOK=1 OR VOK1=1,L,REF(L,VSJ1)),COLORYELLOW;
MA2:=SUM(AMOUNT/100,2)/SUM(V,2);
MA3:=SUM(AMOUNT/100,3)/SUM(V,3);
MA4:=SUM(AMOUNT/100,4)/SUM(V,4);
MA5:=SUM(AMOUNT/100,5)/SUM(V,5);
MA6:=SUM(AMOUNT/100,6)/SUM(V,6);
MA7:=SUM(AMOUNT/100,7)/SUM(V,7);
MA8:=SUM(AMOUNT/100,8)/SUM(V,8);
MA9:=SUM(AMOUNT/100,9)/SUM(V,9);
MA10:=SUM(AMOUNT/100,10)/SUM(V,10);
MA11:=SUM(AMOUNT/100,11)/SUM(V,11);
MA12:=SUM(AMOUNT/100,12)/SUM(V,12);
MA13:=SUM(AMOUNT/100,13)/SUM(V,13);
MA14:=SUM(AMOUNT/100,14)/SUM(V,14);
MA15:=SUM(AMOUNT/100,15)/SUM(V,15);
MA16:=SUM(AMOUNT/100,16)/SUM(V,16);
MA17:=SUM(AMOUNT/100,17)/SUM(V,17);
MA18:=SUM(AMOUNT/100,18)/SUM(V,18);
MA19:=SUM(AMOUNT/100,19)/SUM(V,19);
A: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,MA19))))))))))))))))),LINETHICK0;
B: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,MA19))))))))))))))))),LINETHICK0;
DRAWICON(crOSS(C,A),L ,4);
DRAWICON(((A-B)/B)*100<10 AND CROSS(C,A),H+0.01,7);
STICKLINE( VOK1=1 AND CROSS(C,A) ,O ,C ,3 ,0 ),COLOR00FFFF;
STICKLINE( VOK=1 AND CROSS(C,A) ,O ,C ,3 ,0 ),COLOR00FFFF;