8年打造指标通达信公式 副图 源码附图
SS:=19;
HP:=HHV(H,SS);
LP:=LLV(L,SS);
R:=(C-LP)/(HP-LP)*100;
K:SMA(R,3,1),COLORYELLOW,LINETHICK2;
D:SMA(K,3,1),COLORWHITE,LINETHICK2;
J:3*K-2*D,COLORFF9999,LINETHICK2;
DRAWBAND(K,RGB(200,50,55),D,RGB(50,100,10));
M:=MA(R,40);
S:=STD(R,40);
高:=M+2*S;
中:=M;
低:=M-2*S;
【高】: 高,COLOR0099FF;
【中】: 中,POINTDOT,COLORWHITE;
【低】: 低,COLOR00FF00;
DRAWTEXT(CROSS(高,J) ,J*1.2,'★'),COLORYELLOW;
DRAWTEXT(CROSS(中,J) AND M<=80 ,高,'高抛'),COLORRED;
DRAWTEXT(CROSS(J,低) ,J,'▲'),COLOR00FF00;
DRAWTEXT(CROSS(J,低) AND K<10 ,J,'▲'),COLORRED;
DRAWTEXT(CROSS(J,中) AND K>D ,K-0.05,'低吸'),COLORYELLOW;
DRAWTEXT(CROSS(D,K) AND (D>M OR D>=50),D,'★'),COLORYELLOW;
DRAWTEXT(CROSS(D,K) AND M>80,高,'逃顶'),COLORYELLOW;
DRAWTEXT(CROSS(D,K) AND D>85,D,'★'),COLORRED;
DRAWTEXT(CROSS(K,D) AND D<15,D,'▲'),COLORRED;
DRAWTEXT(中>80 ,中,'★'),COLORRED;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
SS赋值:19
HP赋值:SS日内H最高值
LP赋值:SS日内L最低值
R赋值:(C-LP)/(HP-LP)*100
R的3日[1日权重]移动平均
K的3日[1日权重]移动平均
输出J:3*K-2*D,COLORFF9999,LINETHICK2
DRAWBAND(K,RGB(200,50,55),D,RGB(50,100,10))
M赋值:R的40日简单移动平均
S赋值:R的40估算标准差
高赋值:M+2*S
中赋值:M
低赋值:M-2*S
【高】: 高,COLOR0099FF
【中】: 中,POINTDOT,COLORWHITE
【低】: 低,COLOR00FF00
DRAWTEXT(高上穿J ,J*1.2,'★'),COLORYEL最低价
DRAWTEXT(中上穿J AND M<=80 ,高,'高抛'),COLORRED
DRAWTEXT(J上穿低 ,J,'▲'),COLOR00FF00
DRAWTEXT(J上穿低 AND K<10 ,J,'▲'),COLORRED
DRAWTEXT(J上穿中 AND K>D ,K-0.05,'低吸'),COLORYEL最低价
DRAWTEXT(D上穿K AND (D>M OR D>=50),D,'★'),COLORYEL最低价
DRAWTEXT(D上穿K AND M>80,高,'逃顶'),COLORYEL最低价
DRAWTEXT(D上穿K AND D>85,D,'★'),COLORRED
DRAWTEXT(K上穿D AND D<15,D,'▲'),COLORRED
当满足条件中>80 时,在中和'★'位置书写文字