N:=720;
涨停价:=ROUND(REF(CLOSE,1)*1.10*100)/100;
跌停价:=ROUND(REF(CLOSE,1)*0.90*100)/100;
DP:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
GG:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
CQ1:=(COUNT(GG-DP> 0.04,N)+COUNT(GG-DP> 0.08,N)+COUNT(GG-DP> 0.12,N)+COUNT(GG> 0.04,N)+COUNT(GG> 0.08,N)+COUNT(ROUND(CLOSE*100)/100=涨停价 OR CLOSE>涨停价,N))/2;
cr1:=(COUNT(GG-DP<-0.04,N)+COUNT(GG-DP<-0.08,N)+COUNT(GG-DP<-0.12,N)+COUNT(GG<-0.04,N)+COUNT(GG<-0.08,N)+COUNT(ROUND(CLOSE*100)/100=跌停价 OR CLOSE<跌停价,N))/2;
CQ2:=MA(CQ1,N/5);
CR2:=MA(CR1,N/5);
超强数:=CQ2;
超弱数:=CR2;
超强净值:=超强数-超弱数;
超强值:IF(PERIOD=5,超强净值,DRAWNULL),COLORFF00FF;
M:=N/3;
CQ1M:=(COUNT(GG-DP>0.04,M)+COUNT(GG-DP>0.08,M)+COUNT(GG-DP>0.12,M)+COUNT(GG>0.04,M)+COUNT(GG>0.08,M)+COUNT(CLOSE=涨停价 OR CLOSE>涨停价,M))/2;
CR1M:=(COUNT(GG-DP<-0.04,M)+COUNT(GG-DP<-0.08,M)+COUNT(GG-DP<-0.12,M)+COUNT(GG<-0.04,M)+COUNT(GG<-0.08,M)+COUNT(CLOSE=跌停价 OR CLOSE<跌停价,M))/2;
CQ2M:=MA(CQ1M,M/5);
CR2M:=MA(CR1M,M/5);
超强数M:=CQ2M;
超弱数M:=CR2M;
超强净值M:=超强数M-超弱数M;
可比超强净值M:=超强净值M*3;
中期:IF(PERIOD=5,可比超强净值M,DRAWNULL),COLOR00FFFF;
S:=M/4;
CQ1S:=(COUNT(GG-DP>0.04,S)+COUNT(GG-DP>0.08,S)+COUNT(GG-DP>0.12,S)+COUNT(GG>0.04,S)+COUNT(GG>0.08,S)+COUNT(CLOSE=涨停价 OR CLOSE>涨停价,S))/2;
CR1S:=(COUNT(GG-DP<-0.04,S)+COUNT(GG-DP<-0.08,S)+COUNT(GG-DP<-0.12,S)+COUNT(GG<-0.04,S)+COUNT(GG<-0.08,S)+COUNT(CLOSE=跌停价 OR CLOSE<跌停价,S))/2;
CQ2S:=MA(CQ1S,S/5);
CR2S:=MA(CR1S,S/5);
超强数S:=CQ2S;
超弱数S:=CR2S;
超强净值S:=超强数S-超弱数S;
可比超强净值S:=超强净值S*12;
短期:IF(PERIOD=5,可比超强净值S,DRAWNULL),COLORFFFFFF;
异动:短期-中期,COLORSTICK,COLOR0000FF;
起涨:=(短期>REF(短期,1) AND REF(短期,1)<=REF(短期,2)) OR (REF(短期,1)>REF(短期,2) AND REF(短期,2)<=REF(短期,3)) OR (REF(短期,2)>REF(短期,3) AND REF(短期,3)<=REF(短期,4));

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。