VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL);
OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2 0,OBV2,0),3);
MAC3:=MA(C,3);
DIF:EMA(CLOSE,12)-EMA(CLOSE,26)COLORYELLOW ;
DEA:EMA(DIF,9)COLORFF9900 ;
MACD:=(DIF-DEA)*2;
STICKLINE(OBV3 REF(OBV3,1) AND MAC3 REF(MAC3,1),0,MACD,2,0),COLORYELLOW;
持币:STICKLINE((SAR(10,2,20) =H),MACD,0,1.5,0),COLORGREEN;
持股:STICKLINE((SAR(10,2,20) =L),0,MACD,1.5,0),COLORYELLOW;
吸:=XLPL.NOTEXT吸,COLORLIRED,CIRCLEDOT,LINETHICK3;
拉:=XLPL.NOTEXT拉,COLORRED,CIRCLEDOT,LINETHICK3;
派:=XLPL.NOTEXT派,COLORGREEN,CIRCLEDOT,LINETHICK3;
落:=XLPL.NOTEXT落,COLORWHITE,CIRCLEDOT,LINETHICK3;
STICKLINE(吸,0,MACD,1,0),COLORMAGENTA;
STICKLINE(拉,0,MACD,1,0),COLORRED;
STICKLINE(派,0,MACD,1,0),COLORGREEN;
STICKLINE(落,0,MACD,1,0),COLORBLUE;
抄底:ABS((CROSS(DIF,DEA) AND DEA =-0.07)*DIF),COLORYELLOW;
DRAWICON(抄底 0,抄底*1.1,5);
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
IF(DIF DEA,DIF,DRAWNULL),COLORRED;
IF(DEA DIF,DEA,DRAWNULL),COLORMAGENTA;