通达信常用趋势,简单找底副图指标源码
使用说明:此趋势线是指标里最常用的,我添加了几条色带,感观上更好识别一点。N值可根据标的股前期底部值调整,祝大家投资顺利!
{趋势进出 N:2,80,8}
趋势:3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*
SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),COLOR00CCFF,NODRAW;
趋势线:=趋势-N;
DRAWBAND(趋势线,RGB(255,135,0),0,RGB(0,135,0));
DRAWBAND(趋势线*0.8,RGB(255,165,0),0,RGB(0,165,10));
DRAWBAND(趋势线*0.6,RGB(255,195,0),0,RGB(0,195,0));
DRAWBAND(趋势线*0.4,RGB(255,225,0),0,RGB(0,225,0));
DRAWBAND(趋势线*0.2,RGB(255,255,0),0,RGB(0,255,0));
ZZ:=SMA(趋势,5,4);
买:CROSS(趋势,ZZ)&&REF(趋势,1)<60,NODRAW,COLORFF88FF;
卖:CROSS(ZZ,趋势)&&REF(趋势,1)>80,NODRAW,COLOR00CC00;
抄底:CROSS(趋势,N),NODRAW,COLOR0000FF;
STICKLINE(抄底,0,25,0.6,0),COLOR0000FF;
DRAWICON(买,1,38);
DRAWICON(卖,趋势线+1,39);