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
201752612272646549.png
|