个股:((((C-MA(C,6))/MA(C,6)+(C-MA(C,24))/MA(C,24)+(C-MA(C,32))/MA(C,32))*100)/3),NODRAW;
大盘:((((INDEXC-MA(INDEXC,6))/MA(INDEXC,6)+(INDEXC-MA(INDEXC,24))/MA(INDEXC,24)+(INDEXC-MA(INDEXC,32))/MA(INDEXC,32))*100)/3),NODRAW;
B:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
反弹:B<-18 AND CLOSE/OPEN>1.06,NODRAW,COLORMAGENTA;
高抛:B>40 AND C/REF(C,1)<1.08,NODRAW,COLORGREEN;
AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;
AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1)
AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
介入:FILTER(MR,10),NODRAW,COLORYELLOW;
半:=REF(EMA(C,120),1);年:=REF(EMA(C,250),1);
年距:=(C-年)/年*100,NODRAW;年距小:=LLV(年距,0),NODRAW;
半距:=(C-半)/半*100,NODRAW;半距小:=LLV(半距,0),NODRAW;
B1:=BARSSINCE(C>0)>220 AND 年距<REF(年距小,1)AND 半距<REF(半距小,1)AND 年距<-20;
底部:FILTER(B1,10),,NODRAW,COLORCYAN;
放量:=VOL/LLV(MA(VOL,20),20);
乖离率:=(CLOSE-MA(CLOSE,20))/CLOSE*100;
恐慌盘:放量>2 AND 乖离率<-0.5,COLOR553300,NODRAW;
追涨盘:放量>2 AND 乖离率>0.5,COLOR808040,NODRAW;
平均乖离:=MA(个股,8);
{止损天数=(当日股价-当日均线对应值)÷(当日均线对应值-前一交易日均线对应值)}
止损天数:(C-MA(C,N))/(MA(C,N)-REF(MA(C,N),1)),NODRAW;
N3:=BARSLAST(CROSS(C,MA(C,N1)));
N4:=BARSLAST(CROSS(MA(C,N1),C));
疯牛天:IF(N3<N4,N3+1,0),NODRAW,COLORRED;
疯牛涨幅:(C-REF(C,疯牛天))/REF(C,疯牛天)*100,NODRAW;
N1:=BARSLAST(CROSS(C,MA(C,250)));
N2:=BARSLAST(CROSS(MA(C,250),C));
慢牛天:IF(N1<N2,N1+1,0),NODRAW,COLORMAGENTA;
慢牛涨幅:(C-REF(C,慢牛天))/REF(C,慢牛天)*100,NODRAW;
换手:=VOL/CAPITAL*100;
换手跟踪:SUM(换手,0)-REF(SUM(换手,0),疯牛天),COLORFF937F,NODRAW;
跟踪系数:换手跟踪/疯牛涨幅,COLOR00FF00,NODRAW;
日均换手:换手跟踪/慢牛天,NODRAW;
A1:=BARSLAST(REF(CROSS(个股,平均乖离),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND 个股>REF(个股,A1+1) AND CROSS(个股,平均乖离);
A2:=BARSLAST(REF(CROSS(平均乖离,个股),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(平均乖离,A2+1)>个股 AND CROSS(平均乖离,个股);
STICKLINE(个股,REFDATE(HHV(个股,230),DATE),REFDATE(LLV(个股,230),DATE),10,0),COLOR660066;
STICKLINE(追涨盘,REFDATE(HHV(个股,230),DATE),REFDATE(LLV(个股,230),DATE),10,0),COLOR808040;
STICKLINE(恐慌盘,REFDATE(HHV(个股,230),DATE),REFDATE(LLV(个股,230),DATE),10,0),COLOR553300;
STICKLINE(个股>0,个股,0,2,0),COLOR0000FF;
STICKLINE(个股<0,个股,0,2,0),COLORFF9999;
STICKLINE(FILTER(MR,10),个股,0,2,1),COLORYELLOW;
STICKLINE(B<-18 AND C/O>1.06,个股,0,2,0),COLORMAGENTA;
STICKLINE(B>40 AND C/REF(C,1)<1.08,个股,0,2,0),COLORGREEN;
STICKLINE(FILTER(B1,10),个股,0,2,0),COLORCYAN;
顶背:DRAWLINE(A2=0,平均乖离,顶背离,平均乖离,0),COLORGREEN,LINETHICK2;
底背:DRAWLINE(A1=0,平均乖离,底背离,平均乖离,0),COLORCYAN,LINETHICK2;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,IF(CURRBARSCOUNT=1 AND PERIOD=5,个股*240/FROMOPEN,DRAWNULL),0,2,-1),COLOR00C0C0; |