通达信『趋势伏击点』套装指标公式——找波段主升浪有未来函数
{趋势伏击点主图}
DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORMAGENTA;DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.05,0,'所属概念:'),COLORMAGENTA;DRAWTEXT_FIX(1,0.06,0.05,0,GNBLOCK),COLORYELLOW;STICKLINE((C-REF(C,1))/REF(C,1)>0.07 AND (C-REF(C,1))/REF(C,1)< 0.095,C,O,3,0),COLORRED;STICKLINE((C-REF(C,1))/REF(C,1)>0.095,C,O,3,0),COLORFF00FF;箱顶:MA(REF(HHV(C,30),1),2),LINETHICK2,COLORYELLOW;箱底:MA(REF(LLV(C,30),1),2),LINETHICK1,COLORRED DOTLINE;中轨:EMA(C,20),LINETHICK2,COLORGREEN;gspt0:=MA(C,20);gspt:=POW((C-中轨),2);gspt1:=MA(gspt,20);gspt2:=SQRT(gspt1);gspt3:=中轨+2*gspt2;gspt4:=中轨-2*gspt2;gspt5:=REF(中轨,1),COLORFFFFFF;上轨:REF(gspt3,1),COLORRED,LINETHICK2;下轨:REF(gspt4,1),COLORRED,LINETHICK1,DOTLINE;gspt6:EMA(COST(90),5),COLORRED,DOTLINE;gspt7:EMA(COST(99),5),COLORGREEN,DOTLINE;gspt8:VOL/REF(MA(VOL,5),1),COLORRED,NODRAW;DRAWTEXT_FIX(C>O,0,0.2,0,'分析家公式网http://www.kanguxun.com'),COLOR333333;gspt9:(C>箱顶 AND C>上轨 AND gspt8>1.8) AND COUNT(C>箱顶 AND C>上轨 AND gspt8>1.8,7)=1,NODRAW;DRAWICON(gspt9,中轨,42);DRAWTEXT(gspt9,L*1.1,'★gspt9'),COLORYELLOW;gspt10:C>gspt7 AND COUNT(C>gspt7,7)=1,NODRAW;DRAWICON(gspt10,中轨,34);DRAWTEXT(gspt10,L*1.13,''),COLORYELLOW;
{趋势伏击点副图}
gspt:=(C+H+O+L)/4;M:=32;P2:=100;gspt1:=XMA(gspt,M)*(1-P2/1000);gspt88:=DATE< 1301230;gspt87:=IF(COUNT(gspt1>=C,6)>=4,20,0);gspt81:=IF(gspt87,20,0);STICKLINE(FILTER(gspt81,15)=1,0,55,3.2,0)*gspt88,COLOR000077;STICKLINE(FILTER(gspt81,15)=1,0,55,2.5,0)*gspt88,COLOR000099;STICKLINE(FILTER(gspt81,15)=1,0,55,1.9,0)*gspt88,COLOR0000BB;STICKLINE(FILTER(gspt81,15)=1,0,55,1.2,0)*gspt88,COLOR0000DD;STICKLINE(FILTER(gspt81,15)=1,0,55,0.4,0)*gspt88,COLOR0000FF;DRAWTEXT(FILTER(gspt81,15)=1,40,'严重异动')*gspt88,COLORYELLOW;V3:=100-(100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1));V4:=100-(100-3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1));gsptJJ:=V3>REF(V4,1);gspt84:=COUNT(gspt87=20,16)>=1;gsptSJ:=gspt84 AND gsptJJ;STICKLINE(FILTER(gsptSJ,30)=1,35,0,8,0)*gspt88,COLOR0000FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,7.8,0)*gspt88,COLOR0018FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,7.5,0)*gspt88,COLOR001BFF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,7.3,0)*gspt88,COLOR0022FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,7,0)*gspt88,COLOR0035FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,6.8,0)*gspt88,COLOR0041FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,6.5,0)*gspt88,COLOR0050FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,6.3,0)*gspt88,COLOR0059FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,6,0)*gspt88,COLOR0062FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,5.7,0)*gspt88,COLOR006CFF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,5.5,0)*gspt88,COLOR007AFF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,5.3,0)*gspt88,COLOR0080FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,5,0)*gspt88,COLOR0089FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,4.5,0)*gspt88,COLOR0095FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,3.5,0)*gspt88,COLOR009CFF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,3,0)*gspt88,COLOR00ABFF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,2.5,0)*gspt88,COLOR00C0FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,1.5,0)*gspt88,COLOR00D1FF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,1,0)*gspt88,COLOR00EAFF;STICKLINE(FILTER(gsptSJ,30)=1,35,0,0.7,0),COLOR00FFFF;DRAWTEXT(FILTER(gsptSJ,30)=1,25,'即将加速')*gspt88,COLORWHITE,LINETHICK5;gspt83:=(H+L+C)/3;gspt85:=(C-LLV(L,100))/(HHV(H,100)-LLV(L,100))*200;中线:=EMA((gspt83-LLV(gspt83,60))/(HHV(gspt83,60)-LLV(gspt83,60)),2)*100;gspt82:=SMA(gspt85,3,1);线:=SMA(gspt82,3,1);gsptMR:=IF(CROSS(线,45) AND 中线>45,100,0);DRAWTEXT_FIX(1,0.980,20,1,'分析家公式网http://www.kanguxun.com'),COLOR333333;DRAWTEXT(FILTER(gsptMR,10)=1 AND gspt84,8,'. . 短线加仓!')*gspt88,COLORYELLOW;STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,5,0)*gspt88,COLORFF11FF;STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,4,0)*gspt88,COLORFF33FF;STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,3,0)*gspt88,COLORFF55FF;STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,2,0)*gspt88,COLORFF77FF;STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,1,0)*gspt88,COLORFF99FF;gspt86:=V3>REF(V4,1) AND V>REF(V,1) AND C>REF(C,1);DRAWTEXT(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,16,'')*gspt88,COLORRED;STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,3.6,0 )*gspt88,COLOR550055;STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,2.8,0 )*gspt88,COLOR770077;STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,1.7,0 )*gspt88,COLOR990099;STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,0.9,0 )*gspt88,COLORBB00BB;STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,0.5,0 )*gspt88,COLORDD00DD;STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,0.1,0 )*gspt88,COLORFF00FF;
{趋势伏击点选}
中轨:=EMA(C,20);gspt:=POW((C-中轨),2);gspt1:=MA(gspt,20);gspt2:=SQRT(gspt1);布林上:=中轨+2*gspt2;上轨:=REF(布林上,1);箱顶:=MA(REF(HHV(C,30),1),2);量比:=VOL/REF(MA(VOL,5),1);XG:(C>箱顶 AND C>上轨 AND 量比>1.8) AND COUNT(C>箱顶 AND C>上轨 AND 量比>1.8,7)=1;
