QH:=SUMBARS(VOL,CAPITAL);
A5:=BACKSET(ISLASTBAR=1,5);
B5:=BARSLAST(A5=1);
COST5:COST(5)*(B5+1),colorFF00;
A10:=BACKSET(ISLASTBAR=1,10);
B10:=BARSLAST(A10=1);
COST10:COST(10)*(B10+1),colorCCFFFF;
A15:=BACKSET(ISLASTBAR=1,15);
B15:=BARSLAST(A15=1);
COST15:COST(15)*(B15+1),colorCCFFFF;
A20:=BACKSET(ISLASTBAR=1,20);
B20:=BARSLAST(A20=1);
COST20:COST(20)*(B20+1),colorCCFFFF;
A25:=BACKSET(ISLASTBAR=1,25);
B25:=BARSLAST(A25=1);
COST25:COST(25)*(B25+1),colorCCFFFF;
A30:=BACKSET(ISLASTBAR=1,30);
B30:=BARSLAST(A30=1);
COST30:COST(30)*(B30+1),colorCCFFFF;
A35:=BACKSET(ISLASTBAR=1,35);
B35:=BARSLAST(A35=1);
COST35:COST(35)*(B35+1),colorCCFFFF;
A40:=BACKSET(ISLASTBAR=1,40);
B40:=BARSLAST(A40=1);
COST40:COST(40)*(B40+1),colorCCFFFF;
A45:=BACKSET(ISLASTBAR=1,45);
B45:=BARSLAST(A45=1);
COST45:COST(45)*(B45+1),colorFF;
A50:=BACKSET(ISLASTBAR=1,50);
B50:=BARSLAST(A50=1);
COST50:COST(50)*(B50+1),colorCCFFFF;
A55:=BACKSET(ISLASTBAR=1,45);
B55:=BARSLAST(A45=1);
COST55:COST(55)*(B55+1),colorCCFFFF;
A60:=BACKSET(ISLASTBAR=1,40);
B60:=BARSLAST(A40=1);
COST60:COST(60)*(B60+1),colorCCFFFF;
A65:=BACKSET(ISLASTBAR=1,35);
B65:=BARSLAST(A35=1);
COST65:COST(65)*(B65+1),colorCCFFFF;
A70:=BACKSET(ISLASTBAR=1,30);
B70:=BARSLAST(A30=1);
COST70:COST(70)*(B70+1),colorCCFFFF;
A75:=BACKSET(ISLASTBAR=1,25);
B75:=BARSLAST(A25=1);
COST75:COST(75)*(B75+1),colorCCFFFF;
A80:=BACKSET(ISLASTBAR=1,20);
B80:=BARSLAST(A20=1);
COST80:COST(80)*(B80+1),colorCCFFFF;
A85:=BACKSET(ISLASTBAR=1,15);
B85:=BARSLAST(A15=1);
COST85:COST(85)*(B85+1),colorCCFFFF;
A90:=BACKSET(ISLASTBAR=1,10);
B90:=BARSLAST(A10=1);
COST90:COST(90)*(B90+1),colorCCFFFF;
A95:=BACKSET(ISLASTBAR=1,5);
B95:=BARSLAST(A5=1);
COST95:COST(95)*(B95+1),colorFFFF;
CB5:=SUM(AMOUNT,5)/(SUM(VOL*100,5));
CBB5:CB5*(B5+1),colorBBBBBB;
CB10:=SUM(AMOUNT,10)/(SUM(VOL*100,10));
CBB10:CB10*(B10+1),colorBBBBBB;
CB15:=SUM(AMOUNT,15)/(SUM(VOL*100,15));
CBB15:CB15*(B15+1),colorAAAAAA;
CB20:=SUM(AMOUNT,20)/(SUM(VOL*100,20));
CBB20:CB20*(B20+1),colorAAAAAA;
CB25:=SUM(AMOUNT,25)/(SUM(VOL*100,25));
CBB25:CB25*(B25+1),LINETHICK2,color999999;
CB30:=SUM(AMOUNT,30)/(SUM(VOL*100,30));
CBB30:CB30*(B30+1),LINETHICK2,color999999;
CB35:=SUM(AMOUNT,35)/(SUM(VOL*100,35));
CBB35:CB35*(B35+1),LINETHICK2,color777777;
CB40:=SUM(AMOUNT,40)/(SUM(VOL*100,40));
CBB40:CB40*(B40+1),LINETHICK2,color777777;
CB45:=SUM(AMOUNT,45)/(SUM(VOL*100,45));
CBB45:CB45*(B45+1),LINETHICK2,color888888;
CB50:=SUM(AMOUNT,50)/(SUM(VOL*100,50));
CBB50:CB50*(B50+1),LINETHICK3,color888888;
CB55:=SUM(AMOUNT,55)/(SUM(VOL*100,55));
CBB55:CB55*(B45+1),LINETHICK2,color888888;
CB60:=SUM(AMOUNT,60)/(SUM(VOL*100,60));
CBB60:CB60*(B40+1),LINETHICK2,color777777;
CB65:=SUM(AMOUNT,65)/(SUM(VOL*100,65));
CBB65:CB65*(B35+1),LINETHICK2,color777777;
CB70:=SUM(AMOUNT,70)/(SUM(VOL*100,70));
CBB70:CB70*(B30+1),LINETHICK2,color999999;
CB75:=SUM(AMOUNT,75)/(SUM(VOL*100,75));
CBB75:CB75*(B25+1),LINETHICK2,color999999;
CB80:=SUM(AMOUNT,80)/(SUM(VOL*100,80));
CBB80:CB80*(B20+1),colorAAAAAA;
CB85:=SUM(AMOUNT,85)/(SUM(VOL*100,85));
CBB85:CB85*(B15+1),colorAAAAAA;
CB90:=SUM(AMOUNT,90)/(SUM(VOL*100,90));
CBB90:CB90*(B10+1),colorBBBBBB;
CB95:=SUM(AMOUNT,95)/(SUM(VOL*100,95));
CBB95:CB95*(B5+1),colorBBBBBB;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5,0),colorFF;
STICKLINE(CLOSE STICKLINE(CLOSE>0,HIGH,LOW,1,0);