STICKLINE(DEF =0 AND DEF =REF(DEF,1),0,DEF,2,1),COLORRED;
STICKLINE(DEF =0 AND DEF REF(DEF,1),0,DEF,2,1),COLORred;
STICKLINE(DEF 0 AND DEF =REF(DEF,1),0,DEF,2,1),COLORcyan;
STICKLINE(DEF 0 AND DEF REF(DEF,1),0,DEF,2,1),COLORcyan;
BV:=SUM(DEF,0);
BA:=IF(MAX(BV,REF(BV,2)) REF(BV,1) OR MIN(BV,REF(BV,2)) REF(BV,1),1,0);
BC:=BARSLAST(BA)+1;
VAR3:=IF(DEF 0,HHV(ABS(DEF),bc),LLV(DEF,bc));
VAR4:=(DEF)/20;
VAR5:=BV-REF(BV,BC);
DRAWNUMBER(REF(VAR4,1) 0 and VAR4 =0 ,REF(VAR3,1),REF(VAR5,1),0),coloryellow;
DRAWNUMBER(REF(VAR4,1) 0 and VAR4 =0 ,REF(VAR3,1),REF(ABS(VAR5),1),0),colorwhite;
DRAWNUMBER(ISLASTBAR and VAR4 0,REF(VAR3,1),ABS(VAR5),0),align2,colorwhite;
DRAWNUMBER(ISLASTBAR and VAR4 0,REF(VAR3,1),VAR5,0),align2,coloryellow;
M1:=REF(DEF,1);
M2:= MACD-dif;
绿柱面积:IF (DEF 0,SUM(DEF,BARSLAST(M2 0)),0),linethick0,colorblue;
红柱面积:IF (DEF 0,SUM(DEF,BARSLAST(M2 0)),0),linethick0,colorred;