AB:=(SUM(CLOSE*AMOUNT,360)/SUM(AMOUNT,360));
A1:=(SUM(CLOSE*AMOUNT,300)/SUM(AMOUNT,300));
A2:=(SUM(CLOSE*AMOUNT,240)/SUM(AMOUNT,240));
A3:=(SUM(CLOSE*AMOUNT,180)/SUM(AMOUNT,180));
A4:=(SUM(CLOSE*AMOUNT,120)/SUM(AMOUNT,120));
A5:=(SUM(CLOSE*AMOUNT,90)/SUM(AMOUNT,90));
A6:=(SUM(CLOSE*AMOUNT,60)/SUM(AMOUNT,60));
A7:=(SUM(CLOSE*AMOUNT,30)/SUM(AMOUNT,30));
B1:(A1+A2+A3)/3;
B2:(A3+A4+A5)/3;
B3:(A6+A7+A5)/3;
B4:(AB+A1)/2,LINETHICK2;