以下是看大盘做个股--自己用了多年的好副图源码贴图
{看大盘做个股}
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;{地板价}
评论(0)