内部MACD 指标副图公式 源码 红色持股 黄色变盘 绿色持币
X_1:=(EXPMA(CLOSE,30)-REF(EXPMA(CLOSE,30),1))/REF(EXPMA(CLOSE,30),1)*100;
DRAWBAND(EMA(SUM(X_1,2),5),RGB(120,0,0),MA(EMA(SUM(X_1,2),5),5),RGB(0,0,200));
STICKLINE(X_1<REF(X_1,1) AND X_1>0,0,X_1,3,0),COLOR00AAFF;
STICKLINE(X_1<REF(X_1,1) AND X_1>0,0,X_1,2.2,0),COLOR00BBFF;
STICKLINE(X_1<REF(X_1,1) AND X_1>0,0,X_1,1.8,0),COLOR00CCFF;
STICKLINE(X_1<REF(X_1,1) AND X_1>0,0,X_1,1.3,0),COLOR00DDFF;
STICKLINE(X_1<REF(X_1,1) AND X_1>0,0,X_1,0.9,0),COLOR00EEFF;
STICKLINE(X_1<REF(X_1,1) AND X_1>0,0,X_1,0.5,0),COLORYELLOW;
STICKLINE(X_1>=REF(X_1,1) AND X_1>0,0,X_1,3,0),COLOR0000AA;
STICKLINE(X_1>=REF(X_1,1) AND X_1>0,0,X_1,3,0),COLOR0011BB;
STICKLINE(X_1>=REF(X_1,1) AND X_1>0,0,X_1,2.2,0),COLOR0022CC;
STICKLINE(X_1>=REF(X_1,1) AND X_1>0,0,X_1,1.65,0),COLOR0033DD;
STICKLINE(X_1>=REF(X_1,1) AND X_1>0,0,X_1,1.1,0),COLOR0044EE;
STICKLINE(X_1>=REF(X_1,1) AND X_1>0,0,X_1,0.55,0),COLOR0055FF;
STICKLINE(X_1>REF(X_1,1) AND X_1<0,0,X_1,3,0),COLORAA00BB;
STICKLINE(X_1>REF(X_1,1) AND X_1<0,0,X_1,3,0),COLORBB11BB;
STICKLINE(X_1>REF(X_1,1) AND X_1<0,0,X_1,2.2,0),COLORCC22BB;
STICKLINE(X_1>REF(X_1,1) AND X_1<0,0,X_1,1.65,0),COLORDD33BB;
STICKLINE(X_1>REF(X_1,1) AND X_1<0,0,X_1,1.1,0),COLOREE44BB;
STICKLINE(X_1>REF(X_1,1) AND X_1<0,0,X_1,0.55,0),COLORFF55BB;
STICKLINE(X_1<=REF(X_1,1) AND X_1<0,0,X_1,3,0),COLORFFAA00;
STICKLINE(X_1<=REF(X_1,1) AND X_1<0,0,X_1,3,0),COLORFFBB11;
STICKLINE(X_1<=REF(X_1,1) AND X_1<0,0,X_1,2.2,0),COLORFFCC22;
STICKLINE(X_1<=REF(X_1,1) AND X_1<0,0,X_1,1.65,0),COLORFFDD33;
STICKLINE(X_1<=REF(X_1,1) AND X_1<0,0,X_1,1.1,0),COLORFFEE44;
STICKLINE(X_1<=REF(X_1,1) AND X_1<0,0,X_1,0.55,0),COLORFFFF55;
DIF2:EMA(SUM(X_1,2),5),COLORYELLOW,LINETHICK2;
入1:IF(DIF2>REF(DIF2,1),DIF2,DRAWNULL),COLORRED,LINETHICK2;
入2:IF(DIF2<REF(DIF2,1),DIF2,DRAWNULL),COLORGREEN,LINETHICK2;
DEA2:MA(DIF2,5),COLORWHITE;
X_2:=(EXPMA(CLOSE,30)-REF(EXPMA(CLOSE,30),1))/REF(EXPMA(CLOSE,30),1)*100;