N:=10;
A:=MA(-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),19);
D:=EMA(-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),4);
DIF:D+100,COLOR9933FF;
DEA:A+100,COLOR00FF00;
macd:50+(DIF-DEA),COLORFF00FF,NODRAW;
DRAWBAND(DIF,RGB(150,50,50),DEA,RGB(0,0,255));
STICKLINE(MacD>50,MACD,50,0,0),COLORFF00FF;
STICKLINE(MACD<=50,MACD,50,0,0),COLORFFFF00;
STICKLINE(20,20,20,0.1,0),COLOR00FF00;
STICKLINE(80,80,80,0.1,0),COLOR00FF00;
STICKLINE(50,50,50,10,0),COLOR00FFFF;
STICKLINE(100,100,100,10,0),COLORFFCC00;
STICKLINE(10,0,0,10,0),COLORFFCC00;
wr:100-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),COLORFFFFFF;
STICKLINE(WR=100,110,100,3,0),COLORFFFF00;
STICKLINE(WR=0,0,-10,3,0),COLOR0000FF;