内部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;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:(收盘价的30日指数移动平均-1日前的收盘价的30日指数移动平均)/1日前的收盘价的30日指数移动平均*100
DRAWBAND(E2的X_1日累和的5日简单移动平均,RGB(120,0,0),E2的X_1日累和的5日简单移动平均的5日简单移动平均,RGB(0,0,200))
STICKLINE(X_1<1日前的X_1 AND X_1>0,0,X_1,3,0),COLOR00AAFF
STICKLINE(X_1<1日前的X_1 AND X_1>0,0,X_1,2.2,0),COLOR00BBFF
STICKLINE(X_1<1日前的X_1 AND X_1>0,0,X_1,1.8,0),COLOR00CCFF
STICKLINE(X_1<1日前的X_1 AND X_1>0,0,X_1,1.3,0),COLOR00DDFF
STICKLINE(X_1<1日前的X_1 AND X_1>0,0,X_1,0.9,0),COLOR00EEFF
STICKLINE(X_1<1日前的X_1 AND X_1>0,0,X_1,0.5,0),画黄色
STICKLINE(X_1>=1日前的X_1 AND X_1>0,0,X_1,3,0),COLOR0000AA
STICKLINE(X_1>=1日前的X_1 AND X_1>0,0,X_1,3,0),COLOR0011BB
STICKLINE(X_1>=1日前的X_1 AND X_1>0,0,X_1,2.2,0),COLOR0022CC
STICKLINE(X_1>=1日前的X_1 AND X_1>0,0,X_1,1.65,0),COLOR0033DD
STICKLINE(X_1>=1日前的X_1 AND X_1>0,0,X_1,1.1,0),COLOR0044EE
STICKLINE(X_1>=1日前的X_1 AND X_1>0,0,X_1,0.55,0),COLOR0055FF
STICKLINE(X_1>1日前的X_1 AND X_1<0,0,X_1,3,0),COLORAA00BB
STICKLINE(X_1>1日前的X_1 AND X_1<0,0,X_1,3,0),COLORBB11BB
STICKLINE(X_1>1日前的X_1 AND X_1<0,0,X_1,2.2,0),COLORCC22BB
STICKLINE(X_1>1日前的X_1 AND X_1<0,0,X_1,1.65,0),COLORDD33BB
STICKLINE(X_1>1日前的X_1 AND X_1<0,0,X_1,1.1,0),COLOREE44BB
STICKLINE(X_1>1日前的X_1 AND X_1<0,0,X_1,0.55,0),COLORFF55BB
STICKLINE(X_1<=1日前的X_1 AND X_1<0,0,X_1,3,0),COLORFFAA00
STICKLINE(X_1<=1日前的X_1 AND X_1<0,0,X_1,3,0),COLORFFBB11
STICKLINE(X_1<=1日前的X_1 AND X_1<0,0,X_1,2.2,0),COLORFFCC22
STICKLINE(X_1<=1日前的X_1 AND X_1<0,0,X_1,1.65,0),COLORFFDD33
STICKLINE(X_1<=1日前的X_1 AND X_1<0,0,X_1,1.1,0),COLORFFEE44
STICKLINE(X_1<=1日前的X_1 AND X_1<0,0,X_1,0.55,0),COLORFFFF55
输出DIF2:E2的X_1日累和的5日简单移动平均,画黄色, 线宽为2
输出入1:IF(DIF2>1日前的DIF2,DIF2,DRAWNULL),画红色, 线宽为2
输出入2:IF(DIF2<1日前的DIF2,DIF2,DRAWNULL),画绿色, 线宽为2
输出DEA2:DIF2的5日简单移动平均,画白色
{股票指标网}
X_2赋值:(收盘价的30日指数移动平均-1日前的收盘价的30日指数移动平均)/1日前的收盘价的30日指数移动平均*100