个股趋势和大盘趋势的比较。
源码
ZDF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
DPZDF:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100;
STICKLINE(ZDF>=0 AND DPZDF<0,0,2,8,0),colorred;
STICKLINE(ZDF>=0 AND DPZDF<-2,0,2,8,0),colormagenta;
STICKLINE(ZDF<0 AND DPZDF>=0,0,2,8,0),colorgreen;
STICKLINE(ZDF<0 AND DPZDF>=2,0,2,8,0),colorcyan;
STICKLINE(ZDF>9.9,2,4,8,0),coloryellow;
STICKLINE(ZDF<-9.9,2,4,8,0),colorblue;
个股趋势: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*10,5,1)-2*SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*10,5,1),3,1),colorred;
大盘趋势: 3*SMA((INDEXC-LLV(INDEXL,27))/(HHV(INDEXH,27)-LLV(INDEXL,27))*10,5,1)-
2*SMA(SMA((INDEXC-LLV(INDEXL,27))/(HHV(INDEXH,27)-LLV(INDEXL,27))
*10,5,1),3,1),coloryellow;
STICKLINE(个股趋势>大盘趋势,个股趋势,大盘趋势,0.5,0),colorred;
六十日飘红个数:COUNT(ZDF>=0 AND DPZDF<0,60),LINETHICK0;
六十日涨停个数:COUNT(ZDF>9.9,60),LINETHICK0;
试庄线:2;
反转线:5;
拉升线:8;