通达信强势二号副图指标 个股底部 抄底逃顶 操盘控盘 源码附图
N:=5;
BB:=REF(CLOSE,N);
CC:=SMA(MAX(CLOSE-BB,0),2,1)/SMA(ABS(CLOSE-BB),2,1)*100-50;
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*500/EMA(CLOSE,26);
DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);
DRAWBAND(-40,RGB(5,100,50),CC,0);
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,0,2,0),COLORDDDD00;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,0,2,0)COLOR00DD00;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,0,2,0),COLOR00DDEE;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,0,2,0),COLOR0000DD;
线:CC,COLOR0099CC;
蓝天:STICKLINE(C,40,40,0.5,0.5),COLOREEEE00;
绿地:STICKLINE(C,-40,-40,0.5,0.5),COLOR00EE00;
涨家数:INDEXADV,COLOR0000EE,NODRAW;
跌家数:INDEXDEC,COLOR00EE00,NODRAW;
大盘成交:INDEXV,COLOR00EEEE,NODRAW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:5
BB赋值:N日前的收盘价
CC赋值:SMA(收盘价-BB和0较大值,2,1)/SMA(收盘价-BB的绝对值,2,1)*100-50
DIFF赋值:(收盘价的12日指数移动平均-收盘价的26日指数移动平均)*500/收盘价的26日指数移动平均
DEA赋值:DIFF的9日指数移动平均
MACD赋值:2*(DIFF-DEA)
DRAWBAND(-40,RGB(5,100,50),CC,0)
STICKLINE(MACD<1日前的MACDAND MACD>0,0,0,2,0),COLORDDDD00
STICKLINE(MACD<1日前的MACDAND MACD<0,0,0,2,0)COLOR00DD00
STICKLINE(MACD>1日前的MACDAND MACD,0,0,2,0),COLOR00DDEE
STICKLINE(MACD>1日前的MACDAND MACD>0,0,0,2,0),COLOR0000DD
输出线:CC,COLOR0099CC
当满足条件C时,在40和40之间画柱状线
当满足条件C时,在-40和-40之间画柱状线
输出涨家数:INDEXADV,COLOR0000EE,NODRAW
输出跌家数:INDEXDEC,COLOR00EE00,NODRAW
输出大盘成交:INDEXV,COLOR00EEEE,NODRAW