大智慧逆市飘红指标公式
个股趋势: 3*SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*10,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*10,5,1),3,1),COLORRED,LINETHICK2;
大盘趋势: 3*SMA((INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34))*10,5,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34))*10,5,1),3,1),LINETHICK2,COLORYELLOW;
stICKLINE(个股趋势>大盘趋势,个股趋势,大盘趋势,0.5,0),COLORRED;
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;
DRAWTEXTAbs(5,5,'指标网 www.zhibiaow.com'),linethick1,COLOR00EEff;
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;
六十日飘红个数:COUNT(ZDF>=0 AND DPZDF<0,60),LINETHICK0;
六十日涨停个数:COUNT(ZDF>9.9,60),LINETHICK0;
试庄线:2;
反转线:5;
拉升线:8;