通达信主力进出量指标
DIF:=EMA(CLOSE,13)-EMA(CLOSE,28);
DEA:=EMA(DIF,8);
MACD:=(DIF-DEA)*2;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORB20000;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.8,0),COLOREC0000;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.5,0),COLORFF4600;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.2,0),COLORFF6300;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.9,0),COLORFF8B00;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.2,0),COLORFFAB00;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0),COLOR000055;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.8,0),COLOR000077;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.5,0),COLOR000099;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.2,0),COLOR0000BB;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.9,0),COLOR0000DD;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.3,0),COLOR0000FF;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR555555;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.7,0),COLOR777777;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.5,0),COLOR999999;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.2,0),COLORBBBBBB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.9,0),COLORDDDDDD;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.3,0),COLORFFFFFF;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0),COLORB20000;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.8,0),COLOREC0000;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.5,0),COLORFF4600;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.2,0),COLORFF6300;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.9,0),COLORFF8B00;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.3,0),COLORFFAB00;
VAR9:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
{股票指标网}
VAR10:=SMA(VAR9,3,1);
VAR11:=SMA(VAR10,3,1);
VAR12:=SMA(VAR11,3,1);
主力出现:DRAWICON(CROSS(VAR11,VAR12) AND (VAR11<40),0,1);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
DIF赋值:收盘价的13日指数移动平均-收盘价的28日指数移动平均
DEA赋值:DIF的8日指数移动平均
MACD赋值:(DIF-DEA)*2
STICKLINE(MACD<1日前的MACDAND MACD>0,0,MACD,2,0),COLORB20000
STICKLINE(MACD<1日前的MACDAND MACD>0,0,MACD,1.8,0),COLOREC0000
STICKLINE(MACD<1日前的MACDAND MACD>0,0,MACD,1.5,0),COLORFF4600
STICKLINE(MACD<1日前的MACDAND MACD>0,0,MACD,1.2,0),COLORFF6300
STICKLINE(MACD<1日前的MACDAND MACD>0,0,MACD,0.9,0),COLORFF8B00
STICKLINE(MACD<1日前的MACDAND MACD>0,0,MACD,0.2,0),COLORFFAB00
STICKLINE(MACD>=1日前的MACDAND MACD>0,0,MACD,2,0),COLOR000055
STICKLINE(MACD>=1日前的MACDAND MACD>0,0,MACD,1.8,0),COLOR000077
STICKLINE(MACD>=1日前的MACDAND MACD>0,0,MACD,1.5,0),COLOR000099
STICKLINE(MACD>=1日前的MACDAND MACD>0,0,MACD,1.2,0),COLOR0000BB
STICKLINE(MACD>=1日前的MACDAND MACD>0,0,MACD,0.9,0),COLOR0000DD
STICKLINE(MACD>=1日前的MACDAND MACD>0,0,MACD,0.3,0),COLOR0000FF
STICKLINE(MACD>1日前的MACDAND MACD<0,0,MACD,2,0),COLOR555555
STICKLINE(MACD>1日前的MACDAND MACD<0,0,MACD,1.7,0),COLOR777777
STICKLINE(MACD>1日前的MACDAND MACD<0,0,MACD,1.5,0),COLOR999999
STICKLINE(MACD>1日前的MACDAND MACD<0,0,MACD,1.2,0),COLORBBBBBB
STICKLINE(MACD>1日前的MACDAND MACD<0,0,MACD,0.9,0),COLORDDDDDD
STICKLINE(MACD>1日前的MACDAND MACD<0,0,MACD,0.3,0),COLORFFFFFF
STICKLINE(MACD<=1日前的MACDAND MACD<0,0,MACD,2,0),COLORB20000
STICKLINE(MACD<=1日前的MACDAND MACD<0,0,MACD,1.8,0),COLOREC0000
STICKLINE(MACD<=1日前的MACDAND MACD<0,0,MACD,1.5,0),COLORFF4600
STICKLINE(MACD<=1日前的MACDAND MACD<0,0,MACD,1.2,0),COLORFF6300
STICKLINE(MACD<=1日前的MACDAND MACD<0,0,MACD,0.9,0),COLORFF8B00
STICKLINE(MACD<=1日前的MACDAND MACD<0,0,MACD,0.3,0),COLORFFAB00
VAR9赋值:((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值))*(100)
VAR9的3日[1日权重]移动平均
VAR10的3日[1日权重]移动平均
VAR11的3日[1日权重]移动平均
输出
主力出现:DRAWICON(VAR11上穿VAR12 AND (VAR11<40),0,1)