macd:="MacD.MACD"*3;
VA1:=HHVBARS(MACD,BArslAST(MACD<0)+1);
VA2:=crOSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
前高:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1);
STICKLINE(MACD>前高,MACD,前高,0.0001,0),COLORYELLOW;
macd:="MacD.MACD"*3;
VA1:=HHVBARS(MACD,BArslAST(MACD<0)+1);
VA2:=crOSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
前高:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1);
STICKLINE(MACD>前高,MACD,前高,0.0001,0),COLORYELLOW;