通达信行情监测副图,指标源码分享
RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
k=SMA(RSV,3,1);
d=SMA(k,3,1);
J:(3*k-2*d),nodraw;
MD:=2*(K-D),nodraw;
DF : EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
DA : EMA(DF,9),colorliblue;
MACD:2*(DF-DA),nodraw;
STICKLINE(MACD<0 ,0,MACD,8,1),colorligreen;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND MD>=REF(MD,1),0,MACD,8,0),colorred;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND MD<=REF(MD,1),0,MACD,8,1),colorred;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) ,0,MACD,8,0),colorliblue;
STICKLINE(j<20 ,0,MACD,8,0),colorgreen;
换手率:VOL/CAPITAL*100,colorgreen,nodraw;
b:=(ZDMRJE[-1]+BDMRJE[-1]);
s:=(ZDMCJE[-1]+BDMCJE[-1]);
r:=(b-s)/100000000;
大单金额亿元:r,nodraw,coloryellow;
STICKLINE( r>0.1 ,0,MACD,8,0),colormagenta;
STICKLINE(j>80 AND j<98 ,MACD,MACD,8,0),colorwhite,linethick2;
STICKLINE(j>=98 ,MACD,MACD,8,0),colorgreen,linethick2;
量比1:=V/REF(MA(V,5),1),coloryellow;
量比2:=V/MA(V,35);
STICKLINE(量比1<0.5 AND 量比2<0.5 AND ABS(C/O)>1 ,-MACD,MACD,4,0),colorred;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
RSV=(CLOSE-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
输出J:(3*K-2*D),NODRAW
MD赋值:2*(K-D),NODRAW
DF : CLOSE的12日指数移动平均 - CLOSE的26日指数移动平均,COLORWHITE
DA : DF的9日指数移动平均,COLORLIBLUE
输出MACD:2*(DF-DA),NODRAW
当满足条件MACD<0 时,在0和MACD之间画柱状线
STICKLINE(MACD>0 AND MACD>=1日前的MACD AND MD>=1日前的MD,0,MACD,8,0),COLORRED
STICKLINE(MACD>0 AND MACD>=1日前的MACD AND MD<=1日前的MD,0,MACD,8,1),COLORRED
STICKLINE(MACD>0 AND MACD<=1日前的MACD ,0,MACD,8,0),COLORLIBLUE
当满足条件J<20 时,在0和MACD之间画柱状线
输出换手率:成交量/当前流通股本*100,COLORGREEN,NODRAW
B赋值:(ZDMRJE[-1]+BDMRJE[-1])
S赋值:(ZDMCJE[-1]+BDMCJE[-1])
R赋值:(B-S)/100000000
输出大单金额亿元:R,NODRAW,COLORYEL最低价
当满足条件 R>0.1 时,在0和MACD之间画柱状线
当满足条件J>80 AND J<98 时,在MACD和MACD之间画柱状线
当满足条件J>=98 时,在MACD和MACD之间画柱状线
量比1赋值:V/REF(V的5日简单移动平均,1),COLORYEL最低价
量比2赋值:V/V的35日简单移动平均
STICKLINE(量比1<0.5 AND 量比2<0.5 AND C/O的绝对值>1 ,-MACD,MACD,4,0),COLORRED