【大底大顶接近预警】副图指标 分清大顶大底 轻松做波段 通达信 源码
10,COLORBLUE,DOTLINE;
15,COLORMAGENTA,DOTLINE;
85,COLORYELLOW,DOTLINE;
90,COLORBLUE,DOTLINE;
50,COLORWHITE,DOTLINE;
DRAWTEXT(ISLASTBAR,10,’ 底部’),COLORRED;
DRAWTEXT(ISLASTBAR,15,’ 近底’),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,85,’ 近顶’),COLORYELLOW;
DRAWTEXT(ISLASTBAR,90,’ 顶部’),COLORGREEN;
M:=IF(LLV(C,30)=LLV(C,60),21,IF(LLV(C,60)=LLV(C,120),34,55));
GUP:=EMA((C-LLV(L,M))/(HHV(H,M)-LLV(L,M))*100,5);
快线:SMA(SMA(GUP,2,1),2,1),COLORRED,LINETHICK2;
慢线:SMA(SMA(快线,2,1),2,1),COLORGREEN,LINETHICK2;
大顶:DRAWICON(CROSS(快线,89),快线,8);
大底:DRAWICON(CROSS(快线,11),快线,7);
史低:=CONST(LLV(快线,0));
史高:=CONST(HHV(快线,0));
到底概率:((100-快线)/(100-史低))*100,NODRAW,COLORRED;
到顶概率:((快线)/(史高))*100,NODRAW,COLORGREEN;
第二部分 选股公式
{选股公式:B}
M:=IF(LLV(C,30)=LLV(C,60),21,IF(LLV(C,60)=LL