STICKLINE(MACDREF(MACD,1),MACD,0,3,0),COLORFFFFFF;
STICKLINE(MACDREF(MACD,1),MACD,0,3,0 ),COLORFFAA00;
STICKLINE(MACDREF(MACD,1),MACD,0,3.3 ,0 ),COLORFFBB11;
STICKLINE(MACDREF(MACD,1),MACD,0,2.2,0 ),COLORFFCC22;
STICKLINE(MACDREF(MACD,1),MACD,0,1.65 ,0 ),COLORFFDD33;
STICKLINE(MACDREF(MACD,1),MACD,0,1.1 ,0 ),COLORFFEE44;
STICKLINE(MACDREF(MACD,1),MACD,0,0.55 ,0 ),COLORFFFF55;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,0,0 ),COLOR00E600;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,3.5,0 ),COLOR007700;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,2.7,0 ),COLOR008E00;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,2.1,0 ),COLOR009900;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,1.5,0 ),COLOR00B500;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,0.9,0 ),COLOR00D500;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,0.3,0 ),COLOR00E600;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,0,1 ),COLOR00E600;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.5,0),COLOR0044AA;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.4,0),COLOR0055AA;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.2,0),COLOR0066BB;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.0,0),COLOR0077BB;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,2.7,0),COLOR0088CC;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,2.4,0),COLOR0099CC;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,2.1,0),COLOR00AADD;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,1.8,0),COLOR00BBDD;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,1.4,0),COLOR00CCEE;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,1.0,0),COLOR00DDEE;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,0.6,0),COLOR00EEEE;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,0.2,0),COLOR00F0F3;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,0.05,0),COLOR00F6F3;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.5,0) ,COLOR00005A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.4,0) ,COLOR00006A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.3,0) ,COLOR00007A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.2,0) ,COLOR00008A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.1,0) ,COLOR00009A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,2.8,0) ,COLOR0000AA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,2.5,0) ,COLOR0000BA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,2.1,0) ,COLOR0000CA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,1.7,0) ,COLOR0000DA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,1.2,0) ,COLOR0000EA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,0.7,0) ,COLOR0000F5;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,0.2,0) ,COLOR0000FC;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,0.05,0),COLOR0000FF;
A:=BARSLAST(FILTERX(MACD=HHV(MACD,BARSLAST(MACD<0)),BARSLAST(MACD<0)));
B:=REF(MACD,A);
STICKLINE(A,B*1.05,B,4,0);
A1:=BARSLAST(FILTERX(MACD=LLV(MACD,BARSLAST(MACD>0)),BARSLAST(MACD>0)));
B1:=REF(MACD,A1);
STICKLINE(A1,B1*1.1,B1,4,2);