衡量市场领导股的家数,涵盖52周资料。NH-NL=创新高家数创新低家数
MA120:MA(C,120),COLORCYAN;
MA250:MA(C,250),COLORRED;
C1:=REF(C,1); 涨停:=IF((C-C1)*100/C1>=(10-0.01*100/C1),2,0);
STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;
跌停:=IF((C1-C)*100/C1>=(10-0.01*100/C1),2,0);
STICKLINE(跌停,OPEN,CLOSE,1,0),COLOR00FF00;
DRAWTEXT(H=HHV(H,20) AND H<HHV(H,60),L*0.97,'△'),COLORFF00FF;
DRAWTEXT(L=LLV(L,20) AND L>LLV(L,60),H*1.03,'▽'),COLORCYAN;
DRAWTEXT(H=HHV(H,60) AND H<HHV(H,120),L*0.97,'▲'),COLORFF00FF;
DRAWTEXT(L=LLV(L,60) AND L>LLV(L,120),H*1.03,'▼'),COLORCYAN;
DRAWTEXT(H=HHV(H,120) AND H<HHV(H,250),L*0.97,'△'),COLORRED;
DRAWTEXT(L=LLV(L,120) AND L>LLV(L,250),H*1.03,'▽'),COLORGREEN;
DRAWTEXT(H=HHV(H,250) AND H<HHV(H,500),L*0.97,'▲'),COLORRED;
DRAWTEXT(L=LLV(L,250) AND L>LLV(L,500),H*1.03,'▼'),COLORGREEN;
DRAWTEXT(H=HHV(H,500),L*0.97,'★'),COLORYELLOW;
DRAWTEXT(L=LLV(L,500),H*1.03,'★'),COLOR238E23;
STICKLINE(MA120>MA250 AND ((MA120-MA250)>(REF(MA120,1)-REF(MA250,1))),MA250,
(MA250+((MA120-MA250)-(REF(MA120,1)-REF(MA250,1)))*10),1,0),COLORFF00FF;
STICKLINE(MA120>MA250 AND ((MA120-MA250)<(REF(MA120,1)-REF(MA250,1))),MA250,
(MA250+((MA120-MA250)-(REF(MA120,1)-REF(MA250,1)))*10),1,0),COLORGREEN;
STICKLINE(MA250>MA120 AND ((MA250-MA120)<(REF(MA250,1)-REF(MA120,1))),MA250,
(MA250+((REF(MA250,1)-REF(MA120,1))-(MA250-MA120))*10),1,0),COLORYELLOW;
STICKLINE(MA250>MA120 AND ((MA250-MA120)>(REF(MA250,1)-REF(MA120,1))),MA250,
(MA250+((REF(MA250,1)-REF(MA120,1))-(MA250-MA120))*10),1,0),COLOR238E23;
郑重声明:股市具有不确定性,个股走势是无法预测的。公式软件描述中的案例截图仅代表过去,仅供参考学习研究之用,不构成投资建议或未来保证,也并不能代表未来,依此操作,责任自负。股市有风险,入市需谨慎。
指标公式评论
(NHNL 通达信 副图 源码 指标公式)