通达信筹码峰MACD副图指标公式源码
通达信筹码峰MACD副图指标公式源码
DRAWBAND(MACD.DIF,RGB(120,0,0),MACD.DEA,RGB(0,0,200));
MACD:(MACD.DIF-MACD.DEA)*2,COLORSTICK;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,1.5,0),COLOR00AAFF;
STICKLINE(MACD>=REF(MACD.MACD,1) AND MACD>0,0,MACD,1.5,0),COLOR0044CC;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.5,0),COLORAA00BB;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.5,0),COLORFFAA00;
DIF:MACD.DIF;
DEA:MACD.DEA;
DRAWICON(CROSS(DIF,DEA) AND CURRBARSCOUNT<10000,DEA-0.02,1);
DRAWICON(CROSS(DEA,DIF) AND CURRBARSCOUNT<10000,DEA+0.02,2);
IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
{DRAWTEXT_FIX(1,0.0,5,0,'指标网WWW.ZHIBIAOW.COM'),COLORYELLOW;}
【筹码峰%】:WINNER(CLOSE)*100,NODRAW,COLORWHITE;
上涨家数:INDEXADV,NODRAW;
下跌家数:INDEXDEC,NODRAW;
X_1:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
X_2:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(X_1=2,21)=1;
DRAWTEXT(X_2,DEA*0.9,5);