一个可同时看到macd的量与价的副图指标
N1:=16; N2:=26; N3:=9;
价DIF:EMA(C,N1)-EMA(C,N2);
价DEA:EMA(价DIF,N3);
价MACD:(价DIF-价DEA)*2,COLORSTICK;
论坛:=V/CAPITAL*100;
量DIF:EMA(论坛,N1)-EMA(论坛,N2),colorred;
量DEA:EMA(量DIF,N3),Colorff9933;
量MACD:(量DIF-量DEA)*2,linethick0;
STICKLINE(量MACD>0,0,量MACD,0.3,-1),COLORMAGENTA,linethick2;
STICKLINE(量MACD<=0,0,量MACD,0.3,-1),COLORGREEN,linethick2;
STICKLINE(价DIF>价DEA,价DIF,价DEA,0.5,-1),COLORF580F5;
STICKLINE(价DIF<=价DEA,价DIF,价DEA,0.5,-1),COLORCCDD33;
STICKLINE(量DIF>量DEA,量DIF,量DEA,0.5,-1),COLORYELLOW;
STICKLINE(量DIF<=量DEA,量DIF,量DEA,0.5,-1),COLORGRAY;