SHORT:=12;LONG:=26;MID:=9;M:=30;DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,MID);:=(DIF-DEA)*2;H:=CONST(HHV(OBV,FROMOPEN));OBVL:=CONST(LLV(OBV,FROMOPEN));DIFH:=CONST(HHV(DIF,FROMOPEN));DIFL:=CONST(LLV(DIF,FROMOPEN));X:=(OBVH-OBVL)/(DIFH-DIFL); XBASE:=(OBVH+OBVL)/2;XDIF:DIF*X+XBASE,COLORWHITE;XDEA:EMA(XDIF,MID),COLORYELLOW;XMACD:=MACD*X;STICKLINE(XMACD>0,XBASE,XMACD+XBASE,0,1),COLORRED,LINETHICK2;STICKLINE(XMACD<0 XBASE,XMACD+XBASE,0,1),COLORFFFF00,LINETHICK2;VA:=IF(CLOSE>REF(CLOSE,1),,-);