通达信看大盘做个股副图指标 源码 贴图

[复制链接]
查看23 | 回复0 | 2022-7-11 11:10:57 | 显示全部楼层 |阅读模式
qsqr:ma(100*(c-llv(c,43))/(hhv(h,43)-llv(l,43)),5)-20,colorstick;{趋势强弱}
ggqs:3*sma((c-llv(l,43))/(hhv(h,43)-llv(l,43))*100,20,1)-2*sma(sma((c-llv(l,43))/(hhv(h,43)-llv(l,43))*100,20,1),15,1),color00dddd; {个股趋势}
dpqs:3*sma((indexc-llv(indexl,43))/(hhv(indexh,43)-llv(indexl,43))*100,20,1)-2*sma(sma((indexc-llv(indexl,43))/(hhv(indexh,43)-llv(indexl,43))*100,20,1),15,1),colordd22dd;{大盘趋势}
dpwx:dpqs>80,color44aa44,nodraw; {大盘危险}
stickline(dpqs>80,dpqs,80,3,0),color44aa44;
ggwx:ggqs>80,color888888,nodraw; {个股危险}
drawband(ggqs,rgb(60,60,60),80,rgb(0,0,0));
if(1,dpqs,dpqs),colordd22dd;
if(1,ggqs,ggqs),color00dddd;
cb:if(ggqs<ref(ggqs,1),ggqs,drawnull),linethick2,coloraaaa00;{持币}
cg:if(ggqs>ref(ggqs,1) and dpqs>ref(dpqs,1),ggqs,drawnull),linethick2,color0000aa;{持股}
yq:cross(dpqs,ggqs) and ggqs<3 or longcross(ggqs,0,3),colorff55ff,nodraw;{预警}
stickline(cross(dpqs,ggqs)and ggqs<3 or longcross(ggqs,0,3),0,20,1,0),colorff55ff;
dbj:if(count(ggqs<0,3)=3 and ggqs>ref(ggqs,1),10,0),colorff6600,linethick2;{地板价}


201752612272185617.png

201752612272185617.png


201752612272646549.png

201752612272646549.png

20175261228750417.rar

2.81 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

20175261228750417.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则