通达信突破杀入主图 附突破杀入线选股预警

合集下载

通达信预警系统

通达信预警系统

通达信预警系统文档记录:整体介绍主力监控精灵进入方式功能——预警系统——主力监控精灵或分析——主力监控精灵Ctrl+J展示界面操作说明点击“设置”设置监控的条件内容和监控的股票范围可以选择“深沪300成分股”、“中证500成分股”、“板块指数”、“可融资融券沪深股票”、“港股通中的港股”、“港股通中的沪深股”、“用户自定义板块”。

勾选“显示区域采用扩大界面”,此时主力监控精灵窗口在K线图右侧的界面扩大;勾选“浮出窗口在最前端显示”,窗口可在电脑其他程序上显示,注意重进主力监控精灵方生效。

点击“浮出”会浮出主力监控窗口,此窗口还可以通过点击软件右下角图标,下方图标分别对应功能通达信消息中心、键盘精灵、主力监控精灵、市场雷达、条件预警、系统状态。

点击“全部”查看全市场股票的符合监控条件的警报信息。

点击“自定”查看设置的自定义板块个股的监控警报信息。

(如果上方设置的是深沪300成分股这里显示“300”对应查看深沪300成分股的监控警报信息)点击“自选”查看自选股中个股的监控警报信息。

点击“当前”查看当前界面的个股的监控警报信息。

点击“总览”查看监控到的所有品种的详细信息。

附注信息各监控项含义如下表:市场雷达进入方式.910 市场雷达设置.911市场雷达列表功能——预警系统——市场雷达开关/设置/列表展示界面市场雷达预警内容列表操作说明点击功能界面中的“设置”,如下图:雷达预警内容列表中细节地方解释市场雷达中含“自” 表示为自选股的雷达预警,红色铃铛表示偏好的雷达预警(比如封涨停板),绿色铃铛表示偏坏的雷达预警(比如价幅跌破),黄色铃铛表示中性的雷达预警;市场雷达预警信息内容表头依次为:铃铛,股票名称,时间,价格,当前笔成交量,雷达信息。

点击“操作”,显示如下。

可以清除当前时刻之前的预警信息列表;可将市场雷达预警的股票存为板块;也可将市场雷达预警的内容存为文件。

鼠标选中某雷达预警个股,点击“分析”可进入对应个股的分析图(或者是分时图);或者直接双击预警个股进入。

【炒股必备】通达信泊砂突破划线主图

【炒股必备】通达信泊砂突破划线主图

通达信泊砂突破划线主图+选股指标公式N:=13;BC:=(H*0.382+L*0.618+O*0.382+C*0.618)/2;LJ:=IF(INDEXC=C,BC,(BC+AMOUNT/(V*100))/2),COLORGRAY;HT:=REF((HHV(LJ,N*0.691)+HHV(LJ,N)+HHV(LJ,N*1.309))/3,1),LINETHICK,COLORRE D;LT:=REF((LLV(LJ,N*0.691)+LLV(LJ,N)+LLV(LJ,N*1.309))/3,1),LINETHICK,COLORGREE N;ZT:=(HT+LT)/2,LINETHICK,COLORYELLOW;STICKLINE(ISLASTBAR=1 AND LJ<ZT,HT,LT,N*8,0),COLORBLUE;STICKLINE(ISLASTBAR=1 AND LJ=ZT,HT,LT,N*8,0),COLORGRAY;STICKLINE(ISLASTBAR=1 AND LJ>ZT,HT,LT,N*8,1),COLORWHITE;STICKLINE(ISLASTBAR=1,ZT,ZT,N*8,0),COLORWHITE;箱顶:HT,COLORWHITE,NODRAW;箱底:LT,COLORWHITE,NODRAW;箱中:ZT,COLORWHITE,NODRAW;{XS2 }N2:=102;M:=7;AA:=MA((2*CLOSE+HIGH+LOW)/4,5);薛通A:AA*N2/100,COLORWHITE,DOTLINE;薛通B:AA*(200-N2)/100,COLORWHITE,DOTLINE;DRAWBAND(薛通A,RGB(120,80,60),薛通B,RGB(0,100,0));DRAWKLINE(H,O,L,C);DRAWTEXT_FIX(ISLASTBAR,0,0.92,0,'泊砂提示:1、日K线对降△边线的突破后并上穿箱中或者箱顶,如是上穿箱底要等第二天或第三天持续确认不再跌破趋势线,.'),COLORWHITE;DRAWTEXT_FIX(ISLASTBAR,0,0.98,0,'2、视降△边和涨△边为三角形两边线,选三角形整理将结束的K图,DDX做多强烈,上攻成交量必须放大,各指标呈买点金叉时介入.'),COLORWHITE;BT11:=MA(C,1);持币:SMA(SMA(SMA(BT11,2,1),2,1),2,1),COLORCYAN,LINETHICK2;SMA22:=MA(持币,3);持股:IF(持币>SMA22,持币,DRAWNULL),COLORMAGENTA,LINETHICK2;STICKLINE(持币,C,O ,1,0 ),COLORGREEN;STICKLINE(C>持股,C,O ,1,0 ),COLORRED;{短期支撑压力线}N1:=5;A1:=REF(H,N1)=HHV(H,2*N1+1);B1:=FILTER(A1,N1);C1:=BACKSET(B1,N1+1);D1:=FILTER(C1,N1);A2:=REF(L,N1)=LLV(L,2*N1+1);B2:=FILTER(A2,N1);C2:=BACKSET(B2,N1+1);D2:=FILTER(C2,N1);E1:=(REF(LLV(L,2*N1),1)+REF(HHV(H,2*N1),1))/2;E2:=(H+L)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;L1:=(D2 AND NOT(D1 AND E1<E2));H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);S1:=R1>REF(R1,1);T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1);R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1);T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1);短压力线:DRAWLINE(S2,H,S1,H,1),COLORGREEN;短支撑线:DRAWLINE(U2,L,U1,L,1),COLORRED;降△边:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COL ORCYAN,DOTLINE;涨△边:DRAWLINE(LOW<=LLV(LOW,10),LOW,HIGH>=HHV(HIGH,3),LLV(LOW,3),1),COLOR CYAN,DOTLINE;{中期趋势回归划线}UR:=6;LR:=UR;TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);TC2:=CONST(BARSLAST(TC1=H))+1;UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);BC2:=CONST(BARSLAST(BC1=L))+1;LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低点定位}HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高点定位}STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962;STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962;NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用时}LR1:=FORCAST(C,NOD+1);NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR 1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLOR93BDA8;{近点}LR2:=SLOPE(C,NOD+1);LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));FP:NP-LR3*(NOD),POINTDOT,COLOR93BDA8;{远点}EQU:(NP+FP)/2,POINTDOT,COLOR93BDA8;AD:=ABS(NP-FP);{高差};DBL:=BARSLAST(BC1!=DRAWNULL)+1;DBH:=BARSLAST(TC1!=DRAWNULL)+1;BSP:=IF(BC2>TC2,DBL,DBH)-1;LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);AT2:=HHV(AT1-LRL,MAX(BC2,TC2));AT3:=CONST(BARSLAST(AT1-LRL=AT2));AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));AT5:=CONST(IF(AT3=0,AT1-LRL,REF(A T1-LRL,A T3)));ATL:=LRL+AT5;UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);UT2:=HHV(LRL-UT1,MAX(BC2,TC2));UT3:=CONST(BARSLAST(LRL-UT1=UT2));UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));UTL:=LRL-UT5;RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制高}RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低}中期中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLOR62 8962;中期上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLOR628 962;中期下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLOR62 8962;{选股公式:YLX:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1); ZCX:=DRAWLINE(LOW<=LLV(LOW,10),LOW,HIGH>=HHV(HIGH,3),LLV(LOW,3),1); XYL:=YLX<REF(YLX,1);SZC:=ZCX>REF(ZCX,1);QS:=MA(C,3)>MA(C,5);{箱体}N:=13;BC:=(H*0.382+L*0.618+O*0.382+C*0.618)/2;LJ:=IF(INDEXC=C,BC,(BC+AMOUNT/(V*100))/2),COLORGRAY;HT:=REF((HHV(LJ,N*0.691)+HHV(LJ,N)+HHV(LJ,N*1.309))/3,1),LINETHICK,COLORRE D;LT:=REF((LLV(LJ,N*0.691)+LLV(LJ,N)+LLV(LJ,N*1.309))/3,1),LINETHICK,COLORGREE N;ZT:=(HT+LT)/2,LINETHICK,COLORYELLOW;XG:=(CROSS(C,HT) OR CROSS(C,LT) OR CROSS(C,ZT));泊砂选股:CROSS(C,YLX)AND XYL AND SZC AND QS AND XG AND V>MA(V,5);}。

突破找顶买入主图 通达信指标公式源码

突破找顶买入主图 通达信指标公式源码

缠论之于股市,犹如玄学之于大学士,实在是高深莫测。

苦修缠论者众矣,然股市发迹者少之又少,绝大多数还得以买书讲学度日。

何故如此?避实就虚,陶醉于学问之中,不能自拔者也!把炒股作为学问来研究,应该交给学者去做。

普通股民只要一招半式,几套指标,加一点盘感就够了。

突破找顶主图把缠论的精确笔和分型进行技术化处理,在着力点上着力,找顶线上定买点。

不提缠论,却源于缠论,不谈理论,只看买点,便于操作。

突破找顶主图的黄虚线是趋势向上线,白虚线是趋势向下线,反应了股票的基本走势。

所谓“势”,指的是趋势和走势,不是定势和必然。

红线是找底线(又叫地线),是前低点的水平延长线;绿线是找顶线(又叫天线),是前高点的水平延长线。

找底线和找顶线的距离是前面阶段跌幅的三分之一以下,并且当日K线突破找顶线,有成交量增量和MACD两日在零轴线上面圆滑上升的配合,出买入信号(红箭头)。

【说明】1.指标用到未来函数,这是画线用的,不会产生漂移和数据失真现象。

不喜勿喷!!!2.指标不适应于新股和次新股,因为新股和次新股没有走出高点和低点,有的虽然有高低点,但没有得到确认。

DIF(1,100,12);DEA(1,100,26);MID(1,100,9);VAR1:=CLOSE-LOW;VAR2:=HIGH-LOW;VAR3:=CLOSE-HIGH;VAR4:=IF(HIGH>LOW,(VAR1/VAR2+VAR3/VAR2)*VOL,0);HPTP:=SUM(VAR4,10)/10000,COLORSTICK;TKXL:=(DIF-DEA)*2;XVYO:=UPNDAY(TKXL,1);G:=MA(C,5);D:=MA(C,10);HH:=REF(H,5)=HHV(H,11);LL:=REF(L,5)=LLV(L,11);FG01:=BACKSET(HH,6)>BACKSET(HH,5);FD01:=BACKSET(LL,6)>BACKSET(LL,5);STICKLINE(V/REF(V,1)>2,OPEN,CLOSE,1,0),COLOR00FFFF;FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) ANDG>D,FG01,IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) ANDD>G,FD01,IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0));FG0:=FG02 AND H=HHV(H,BARSLAST(FD02));FD0:=FD02 AND L=LLV(L,BARSLAST(FG02));GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);DQ:=H<REF(L,1) AND DAY!=REF(DAY,1);FGH:=REF(H,BARSLAST(FG0));FGL:=REF(L,BARSLAST(FG0));FGH1:=REF(H,BARSLAST(FG0)+1);FGL1:=REF(L,BARSLAST(FG0)+1);FGL2:=REF(L,BARSLAST(FG0)+2);FDH2:=REF(H,BARSLAST(FD0)+2);FDH:=REF(H,BARSLAST(FD0));FDL:=REF(L,BARSLAST(FD0));FDH1:=REF(H,BARSLAST(FD0)+1);FDL1:=REF(L,BARSLAST(FD0)+1);FGZL:=IF(FGH1<FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1));FG1:=FGH>FDZH AND FG0;FD1:=FDL<FGZL AND FD0;FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;FD:=FD1 AND FDL<FGL AND FDH<FGH AND FDH1<FGH;BH0:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1)); BHG:=COUNT(BH0,BARSLAST(FD0));BHD:=COUNT(BH0,BARSLAST(FG0));BGQ:=COUNT(GQ,BARSLAST(FD0));BDQ:=COUNT(DQ,BARSLAST(FG0));BK0:=IF(BHG>0,BHG+2,IF(BHD,BHD+2,3));BK:=IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0));G1X:=(FG AND BARSLAST(FD)>BK);D1X:=(FD AND BARSLAST(FG)>BK);G1:=(FG0 AND REF(H,BARSLAST(FG0))>=REF(H,BARSLAST(G1X)) AND BARSLAST(D1X)>BARSLAST(G1X))OR (FG1 AND COUNT(GQ,BARSLAST(FD1))>0 ANDREF(H,BARSLAST(FG1))>REF(H,BARSLAST(G1X)));D1:=(FD0 AND REF(L,BARSLAST(FD0))<=REF(L,BARSLAST(D1X)) ANDBARSLAST(G1X)>BARSLAST(D1X))OR (FD1 AND COUNT(DQ,BARSLAST(FG1))>0 ANDREF(L,BARSLAST(FD1))<REF(H,BARSLAST(D1X)));G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G1)),REF(H,BARSLAST(D1))); D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1)),REF(L,BARSLAST(G1))); G2:=G1 AND H=HHV(G1H,BARSLAST(D1)+1) AND H>REF(H,1) ANDBARSLAST(D1)>BARSLAST(G1);D2:=D1 AND L=LLV(D1L,BARSLAST(G1)+1) AND L<REF(L,1) ANDBARSLAST(G1)>BARSLAST(D1);NN:=G2 OR (FG0 AND REF(H,BARSLAST(FG0))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));UU:=D2 OR (FD0 AND REF(L,BARSLAST(FD0))<REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2));趋势向上:DRAWLINE(UU,L,NN,H,0),COLORYELLOW,DOTLINE;趋势向下:DRAWLINE(NN,H,UU,L,0),COLORWHITE,DOTLINE;找顶线:DRAWLINE(NN,H,REF(NN,1),REF(H,1),1),COLORGREEN;找底线:DRAWLINE(UU,L,REF(UU,1),REF(L,1),1),COLORRED;DRAWNUMBER(UU,L*0.995,L);DRAWNUMBER(NN,H*1.01,H);XG:CROSS(C,找顶线) AND 找顶线>0 AND HPTP AND XVYO,NODRAW;DRAWICON(XG,LOW,1);突破找顶选股公式如下:DIF(1,100,12);DEA(1,100,26);MID(1,100,9);VAR1:=CLOSE-LOW;VAR2:=HIGH-LOW;VAR3:=CLOSE-HIGH;VAR4:=IF(HIGH>LOW,(VAR1/VAR2+VAR3/VAR2)*VOL,0);HPTP:=SUM(VAR4,10)/10000;TKXL:=(DIF-DEA)*2;XVYO:=UPNDAY(TKXL,1);G:=MA(C,5);D:=MA(C,10);HH:=REF(H,5)=HHV(H,11);LL:=REF(L,5)=LLV(L,11);FG01:=BACKSET(HH,6)>BACKSET(HH,5);FD01:=BACKSET(LL,6)>BACKSET(LL,5);FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) ANDG>D,FG01,IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) ANDD>G,FD01,IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0));FG0:=FG02 AND H=HHV(H,BARSLAST(FD02));FD0:=FD02 AND L=LLV(L,BARSLAST(FG02));GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);DQ:=H<REF(L,1) AND DAY!=REF(DAY,1);FGH:=REF(H,BARSLAST(FG0));FGL:=REF(L,BARSLAST(FG0));FGH1:=REF(H,BARSLAST(FG0)+1);FGL1:=REF(L,BARSLAST(FG0)+1);FGH2:=REF(H,BARSLAST(FG0)+2);FGL2:=REF(L,BARSLAST(FG0)+2);FDH:=REF(H,BARSLAST(FD0));FDL:=REF(L,BARSLAST(FD0));FDH1:=REF(H,BARSLAST(FD0)+1);FDL1:=REF(L,BARSLAST(FD0)+1);FDH2:=REF(H,BARSLAST(FD0)+2);FDL2:=REF(L,BARSLAST(FD0)+2);FGZL:=IF(FGH1<FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1));FG1:=FGH>FDZH AND FG0;FD1:=FDL<FGZL AND FD0;FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;FD:=FD1 AND FDL<FGL AND FDH<FGH AND FDH1<FGH;BH0:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1)); BHG:=COUNT(BH0,BARSLAST(FD0));BHD:=COUNT(BH0,BARSLAST(FG0));BGQ:=COUNT(GQ,BARSLAST(FD0));BDQ:=COUNT(DQ,BARSLAST(FG0));BK0:=IF(BHG>0,BHG+2,IF(BHD,BHD+2,3));BK:=IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0));G1X:=(FG AND BARSLAST(FD)>BK);D1X:=(FD AND BARSLAST(FG)>BK);G1:=(FG0 AND REF(H,BARSLAST(FG0))>=REF(H,BARSLAST(G1X)) ANDBARSLAST(D1X)>BARSLAST(G1X))OR (FG1 AND COUNT(GQ,BARSLAST(FD1))>0 ANDREF(H,BARSLAST(FG1))>REF(H,BARSLAST(G1X)));D1:=(FD0 AND REF(L,BARSLAST(FD0))<=REF(L,BARSLAST(D1X)) ANDBARSLAST(G1X)>BARSLAST(D1X))OR (FD1 AND COUNT(DQ,BARSLAST(FG1))>0 ANDREF(L,BARSLAST(FD1))<REF(H,BARSLAST(D1X)));G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G1)),REF(H,BARSLAST(D1))); D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1)),REF(L,BARSLAST(G1))); G2:=G1 AND H=HHV(G1H,BARSLAST(D1)+1) AND H>REF(H,1) ANDBARSLAST(D1)>BARSLAST(G1);D2:=D1 AND L=LLV(D1L,BARSLAST(G1)+1) AND L<REF(L,1) ANDBARSLAST(G1)>BARSLAST(D1);G3:=G2 OR (FG0 AND REF(H,BARSLAST(FG0))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));找顶线:=DRAWLINE(G3,H,REF(G3,1),REF(H,1),1);XG:CROSS(C,找顶线) AND 找顶线>0 AND HPTP AND XVYO;。

【股票指标公式下载】-【通达信】突破重围(空仓、持股、搏杀生命线、启动线)

【股票指标公式下载】-【通达信】突破重围(空仓、持股、搏杀生命线、启动线)

【通达信】突破重围(空仓、持股、搏杀生命线、启动线)-指标公式源码{参数 M 30/240/90}N:=89;HH:=CONST(HHV(H,N));LL:=CONST(LLV(L,N));MM:=CONST(HH/2+LL/2);CC:=CONST(C),CROSSDOT;YY:=CONST(IF(CC>=MM,LL-(HH-LL)*0.2,HH+(HH-LL)*0.2)),POINTDOT;DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2,COLORSTICK;MHH:=CONST(HHV(MACD,N));MLL:=CONST(LLV(MACD,N));MMM0:=MHH/2-MLL/2; MMM:=IF(MMM0<(HH-LL)*0.1,(HH-LL)*0.1,MMM0); STICKLINE(0=0,YY+MMM,YY-MMM,5,0),COLOR444444;STICKLINE(MACD>=0 AND MACD>REF(MACD,1),YY,YY+MACD,0.2,0),COLORRED; STICKLINE(MACD>=0 AND MACD<REF(MACD,1),YY,YY+MACD,0.2,0),COLORFFFF00; STICKLINE(MACD<0 AND MACD<REF(MACD,1), YY,YY+MACD,0.2,0),COLOR00FF00; STICKLINE(MACD<0 AND MACD>REF(MACD,1), YY,YY+MACD,0.2,0),COLOR00FFFF; RSVZ:=((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))-0.5)/100;KX:=SMA(RSVZ,4,1);DX:=SMA(KX,4,1);JX:=3*KX-2*DX;JJ:=(JX/0.005)*MMM;STICKLINE(JX>REF(JX,1),YY+REF(JJ,1),YY+JJ,2.0,0),COLORMAGENTA; STICKLINE(JX<REF(JX,1),YY+REF(JJ,1),YY+JJ,2.0,0),COLORGREEN;SAR1:=IF(CLOSE<SAR(2,3,10),SAR(2,3,10),0);SAR2:=IF(CLOSE<SAR(4,2,20),SAR(4,2,20),0);SARE:=IF(CLOSE>SAR(3,3,20),SAR(3,3,20),0);SARA:=IF(CLOSE>SAR(4,2,10),SAR(4,2,10),0);空仓:IF(MIN(SAR1,SAR2)>0,(SAR1+SAR2)/2,IF(SAR1+SAR2=0,DRAWNULL,SAR1+SAR 2)){,CIRCLEDOT},COLORGREEN,LINETHICK5;持股:IF(MIN(SARE,SARA)>0,(SARE+SARA)/2,IF(SARE+SARA=0,DRAWNULL,SARE+SAR A)){,CIRCLEDOT},COLORMAGENTA,LINETHICK5;MA1:C,COLORYELLOW,NODRAW;MA3:MA(((3*C+L+O+H)/6),3),COLORYELLOW,NODRAW;BBI:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORWHITE;BB5:(MA(C,15)+MA(C,30)+MA(C,60)+MA(C,120))/4,COLORWHITE;IF(C>BB5,BB5,DRAWNULL),COLORRED;IF(C<BB5,BB5,DRAWNULL),COLORCYAN;MH:=IF(MACD<0,-MACD,0);ML:=IF(MACD>0,-MACD,0);JJH:=IF(REF(JJ,1)>JJ,REF(JJ,1),JJ);JJL:=IF(REF(JJ,1)<JJ,REF(JJ,1),JJ);Z1:=IF(JJH>ML AND JJH<MH,JJH,IF(JJH>=MH,MH,DRAWNULL));Z2:=IF(JJL>ML AND JJL<MH,JJL,IF(JJL<=ML,ML,DRAWNULL));STICKLINE(0=0,YY+Z1,YY+Z2,0.1,0),COLORBLUE;DRAWTEXT(CURRBARSCOUNT=16 AND BACKSET(C>BB5,CURRBARSCOUNT)=1 AND BACKSET(CROSS(MA1,BBI)=1,CURRBARSCOUNT)=1,IF(CC>MM,LL,HH),'收BB5上,上穿BBI'),COLORRED;DRAWICON(CROSS(DIF,DEA), YY-MMM,1);DRAWICON(CROSS(DEA,DIF), YY+MMM,2);RSV:=(CLOSE - LLV(LOW,18))/(HHV(HIGH,18) - LLV(LOW,18))*100;K:=EMA(RSV,3);D:=EMA(K,3);J:=(3*K-2*D);KDJ1:=REF(COUNT(J<REF(J,1),5)>=3,1) AND REF(J,1)<20;KDJ2:=J>REF(J,1);反转:=IF(FILTER(KDJ1 AND KDJ2,3),50,0),COLORRED;VAR22:=REF(LOW,1);VAR33:=SMA(ABS(LOW-VAR22),3,1)/SMA(MAX(LOW-VAR22,0),3,1)*100;VAR44:=EMA(IF(CLOSE*1.3,VAR33*10,VAR33/10),3);VAR55:=LLV(LOW,13);VAR66:=HHV(VAR44,13);VAR77:=IF(MA(CLOSE,34),1,0);VAR888:=EMA(IF(LOW<=VAR55,(VAR44+VAR66*2)/2,0),3)/618*VAR77;VAR999:=IF(VAR888>100,100,VAR888);吸筹:=VAR999,LINETHICK1,COLORCD7F32 ;HHZ:=CONST(HHV(C,120))*1;LLZ:=CONST(LLV(C,120))*1;HL:=CONST(IF(CONST((HHZ+LLZ)/2)<CONST(C),LLZ-(HHZ-LLZ)*0.4,HHZ+(HHZ-L LZ)*0.4));HH1:=IF(CONST((HHZ+LLZ)/2)>CONST(C),HHZ,HL);LL1:=IF(CONST((HHZ+LLZ)/2)<CONST(C),LLZ,HL);HLMAX:=MAX(HH1,LL1);HLMIN:=MIN(HH1,LL1);HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2;HLMN4:=100-0;(50-50)*HLMN2/100+HLMN1,COLOR555555;(20-50)*HLMN2/100+HLMN1,COLOR555555;(80-50)*HLMN2/100+HLMN1,COLOR555555;(100-50)*HLMN2/100+HLMN1,COLOR555555;STICKLINE(吸筹,(0-50)*HLMN2/100+HLMN1,(VAR999-50)*HLMN2/100+HLMN1,2,10),COLORFF00FF;STICKLINE(J<=0,(90-50)*HLMN2/100+HLMN1,(100-50)*HLMN2/100+HLMN1,4,0),COLORYELLOW;IF(反转=50,(50-50)*HLMN2/100+HLMN1,(0-50)*HLMN2/100+HLMN1),COLORRED;KZ:(K-50)*HLMN2/100+HLMN1,COLORFFFFFF;DZ:(D-50)*HLMN2/100+HLMN1,COLOR00FFFF;JZ:(J-50)*HLMN2/100+HLMN1,COLOR00FF00;VL:=REF(LOW,1);VAR12Z:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR14Z:=MA(VAR12Z,13);VAR15Z:=LLV(LOW,34);VAR18Z:=EMA(IF(LOW<=VAR15Z,VAR14Z,0),3);VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7, 1),5,1);VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*1 6.18-VAR110*10.9;T:=FILTER(IF(VAR111<=VAR110 AND VAR18Z>REF(VAR18Z,1),VAR18Z*8,0),20); DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.2,'★'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR22X:=SMA(VAR21,3,1);VAR23:=SMA(VAR22X,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'★'),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶');DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'★');DIFZ:=EMA(C,12)-EMA(C,26);DEAZ:=EMA(DIFZ,9);MACDZ:=8*(DIFZ-DEAZ);TYNNN:=60;A1:=REF(HIGH,TYNNN)=HHV(HIGH,2*TYNNN+1); B1:=FILTER(A1,TYNNN);C1:=BACKSET(B1,TYNNN+1); D1:=FILTER(C1,TYNNN);A2:=REF(LOW,TYNNN)=LLV(LOW,2*TYNNN+1); B2:=FILTER(A2,TYNNN);C2:=BACKSET(B2,TYNNN+1); D2:=FILTER(C2,TYNNN);E1:=(REF(LLV(LOW,2*TYNNN),1)+REF(HHV(HIGH,2*TYNNN),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1; L1:=(D2 AND NOT(D1 AND E1<E2));X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 ANDCOUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);VV:=UU>REF(UU,1);RCC:=REF(L,BARSLAST(VV));DRAWBAND(DIFZ*4+RCC,RGB(155,50,50),EMA(DIFZ*4+RCC,9),RGB(0,50,150)); STICKLINE((RCC+MACDZ)>RCC AND(RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR400080; STICKLINE((RCC+MACDZ)>RCC AND(RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR00FFFF; STICKLINE((RCC+MACDZ)<=RCC AND(RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR008080; STICKLINE((RCC+MACDZ)<=RCC AND(RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLORC080FF;IF(C,EMA(DIFZ*4+RCC,9),DRAWNULL),COLORFFFFFF,LINETHICK1;IF(C,DIFZ*4+RCC,DRAWNULL),COLORRED,LINETHICK1;IF(DIFZ<=REF(DIFZ,1),DIFZ*4+RCC,DRAWNULL),COLORFFF000;JJV:=(H+L+C)/3;QJ0:=VOL/IF(H=L,4,H-L);QJ1:=IF(CAPITAL=0,QJ0*(JJV-MIN(C,O)),QJ0*(MIN(O,C)-L));QJ2:=IF(CAPITAL=0,QJ0*(MIN(O,C)-L),QJ0*(JJV-MIN(C,O)));QJ3:=QJ0*(H-MAX(O,C));QJ4:=QJ0*(MAX(C,O)-JJV);QJ5:=QJ1+QJ2;QJ6:=QJ3+QJ4;DD:=(QJ5-QJ6)/(QJ5+QJ6)*100;DDX:=((QJ1+QJ2)-(QJ3+QJ4))/SUM(VOL,10)*100;DDZ:=DD*17;DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;BB:=(CROSS(J,0)AND ((DDX>0 AND DDY>0) OR DDZ>400));DRAWTEXT(BB,L*0.98,'★斋主赚点钱玩'),COLOR00FFFF;MA18:=MA(CLOSE,18);MTM:=C-REF(C,1);DX1:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND CROSS(DX1,MA(DX1,2)); DRAWTEXT(FILTER(买=1,5),LOW,'★买一'),COLORRED;加1:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(加1,LOW*0.99,'★加一'),COLORCC66FF;卖一:=HHV(DX1,2)=HHV(DX1,7) AND COUNT(DX1>50,2) ANDCROSS(MA(DX1,2),DX1);DRAWTEXT(FILTER(卖一=1,1),HIGH*1.01,'★卖一'),COLORGREEN;AA1:=MA(C,5);BB1:=MA(C,15);AF:=CROSS(AA1,BB1);STICKLINE(AF,LLV(L,4),LLV(L,4),80,1),COLORRED,LINETHICK3; DRAWTEXT(AF,LLV(L,4),'止损启动线'),COLORYELLOW;VAR1:=VOL*(OPEN+CLOSE)/2;搏杀生命线:SUM(VAR1,88)/SUM(VOL,88),LINETHICK3,COLORYELLOW;【通达信】突破重围(空仓、持股、搏杀生命线、启动线)-指标公式效果图(文档来源:若水财经社区)。

通达信主要指标

通达信主要指标

A1(主图)主力资金关注主线:(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,LINETHICK2,COLORMAGENTA ;STICKLINE((主线= 1),OPEN,CLOSE,4,0),COLORYELLOW;展望未来:SMA(CLOSE,23,5);力挽狂澜:SMA(CLOSE,10,5);起死回生:SMA(CLOSE,30,5);先睹为快:SMA(CLOSE,40,5);生死攸关:SMA(CLOSE,60,5),COLORCCFF66,LINETHICK2;生死存亡:SMA(CLOSE,90,5),LINETHICK2;RSV:= (CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;FASTK:=SMA(RSV,13,1);K:=SMA(FASTK,23,1);WR:=-100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55));关注买:= CROSS(WR,-45) AND CLOSE>生死攸关AND 展望未来>REF(展望未来,1) AND K>REF(K,1);DRAWTEXT(关注买,LOW-LOW*0.02,'▲关注买'),COLORRED;VAR12:=REF(CLOSE,1);VARB:=SMA(MAX(CLOSE-VAR12,0),6,1)/SMA(ABS(CLOSE-VAR12),6,1)*100;DRAWTEXT(CROSS(190,VARB),HIGH,'★<-绝顶逃亡'),COLORYELLOW,LINETHICK5; DRAWTEXT(CROSS(主线,生死存亡) ,生死存亡+0,'★< -==进入关注区域'),COLORGREEN,LINETHICK2;A2(主图)主力抄底王M1:=5;M2:=10;M3:=20;M4:=30;M5:=60;N:=80;N1:=14;M:=3;黄金柱B:=V/REF(V,1)>=2.0;K1B:=SUMBARS(黄金柱B,1) ;K2B:=SUMBARS(黄金柱B,2);K3B:=SUMBARS(黄金柱B,3);K4B:=SUMBARS(黄金柱B,4);K5B:=SUMBARS(黄金柱B,5);K6B:=SUMBARS(黄金柱B,6);K7B:=SUMBARS(黄金柱B,7);K8B:=SUMBARS(黄金柱B,8);K9B:=SUMBARS(黄金柱B,9);K10B:=SUMBARS(黄金柱B,10);AABB:STICKLINE(K1B,REFV(L,K1B-1)*1.002,REFV(L,K1B-1),2,0),COLORYELLOW;T60B:=V=HHV(V,60);T100B:=V=HHV(V,100);T2B:=V/REF(VOL,1)>=3;T3B:=REF(C,1)/REF( O,1)<3;MA5:=MA(CLOSE,M1),LINETHICK1,COLORYELLOW;MA10:=MA(CLOSE,M2),LINETHICK1,COLORWHITE;MA20:=MA(CLOSE,M3),LINETHICK1,COLORYELLOW;稳健操盘线:MA(CLOSE,M4),POINTDOT,COLORRED;MA60:=MA(CLOSE,M5),POINTDOT,LINETHICK1,COLORGREEN;TR1:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N1,1); HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N1,1);DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N1,1);PDI:=DMP*100/TR1,COLORRED;MDI:=DMM*100/TR1,COLORGREEN;ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N1,1),COLORYELLOW;阶段线1:=16;阶段线2:=30;DMI1:=PDI>MDI AND ADX>=30;DMI2:=PDI<MDI AND ADX>=30;DMI3:=PDI>MDI AND 16<ADX<30;DMI4:=PDI<MDI AND 16<ADX<30;DMI5:=ADX<=16 AND (PDI>MDI OR PDI<MDI);DMI6:=ADX>60;ZT:=C/REF(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);CZ:=REF(H,BH)-REF(L,BH);STICKLINE(ZT,O,C,3,0),COLORRED;DRAWTEXT(ZT,L*0.98,' '),COLORF00FF0;VARZT:=BARSLAST(C/REF(C,1)>1.097);{涨跌停显示}涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);STICKLINE(涨停,O,C,3,0),COLORRED;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF<-9.9,O,C,3,0),COLORGREEN;VAR111:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:=IF(CLOSE>OPEN,VAR111*(HIGH-LOW),IF(CLOSE<OPEN,VAR111*((HIGH-OPEN)+(CLOSE-LOW)), VOL/2)),COLORRED;卖:=IF(CLOSE>OPEN,0-VAR111*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR111*(HIGH-L OW),0-VOL/2)),COLOR00FF00 ;买卖差:=(买+卖);买卖比:=ABS(买/卖);水平面:=MA(CLOSE,89),COLORFF00FF;BBI:=(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;MA1:=MA(CLOSE,24),COLOR00E300,LINETHICK1;V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); MA13:=MA(CLOSE,13);X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);A1:=MIN(O,C);B1:=ABS(O-C);T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);T2:=COUNT(CROSS(BBI,3),3)=1 AND CROSS(C,BBI);T12:=V2>=1;T0:=BARSLAST(T12);L1:=REF(L,T0);H1:=REF(H,T0);L11:=MIN(REF(L,1),L);L10:=MIN(L11,REF(L,2));L21:=MAX(REF(L,1),L);L20:=MAX(L21,REF(L,2));T111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1));T11:=T111 AND REF(T111,1)=0;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2X:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);A1XX:=CROSS(MA(C,1),MA(C,3));XG:=A1XX;VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;A10:=CROSS(控盘,0);无庄控盘:=IF(控盘<0,控盘,0),COLORGRAY,NODRAW;短线:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:=SMA(短线,3,1),LINETHICK0,COLORFF00FF;绿柱:=SMA(中线,3,1),COLORSTICK,COLOR00FF00;开始控盘:=IF(A10,5,0),LINETHICK1,COLORWHITE;有庄控盘:=IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;VAR2:=100*WINNER(CLOSE*0.95);高度控盘:=IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;主力出货:=IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIF1,9);{柱状线}AAA1:=(DIF1-DEA1)*2*60;买入线:=10;绝密:=AAA1-REF(AAA1,1),COLORMAGENTA;金叉:=CROSS(EMA(C,1),EMA(C,3));AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);AAA下:=IF(AAA1<REF(AAA1,1),AAA1,DRAWNULL);选股王:=CROSS(绝密,买入线);突破买点:=有庄控盘AND 选股王;XXBB:= EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*4,5)*100;抄牛底:=REF(XXBB,1)<50 AND XXBB-REF(XXBB,1)>25;蓝宝石:=抄牛底AND 金叉;追拉升:=REF(XXBB,1)>50 AND XXBB-REF(XXBB,1)>40;回踩买点:=主力出货AND 选股王;DRAWTEXT(回踩买点,L*0.995,'↖牛回踩'),COLORYELLOW;DRAWICON(回踩买点,L*0.985,26);抄底王:=金叉AND 选股王,COLORGRAY;DRAWTEXT(抄底王,L*0.985,'↖抄底王'),COLORWHITE;DRAWICON(抄底王,L*0.975,27);VV1:=(C*2+H+L)/4*10;VV2:=EMA(VV1,13)-EMA(VV1,34);VV3:=EMA(VV2,5); V4:=2*(VV2-VV3)*5.5;主力撤:=IF(V4<=0,V4,0),COLORGREEN;主力进:=IF(V4>=0,V4,0);VV5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*VV5-2*SMA(VV5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:=IF(VB>=0,VB,0),COLORYELLOW;大盘资金撤走:=IF(VB<=0,VB,0),COLORRED;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55) -LLV(L,55))*100,5,1),3,1);趋势线:=EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金:=STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);{DRAWTEXT (AA,30,'准备现金'),COLORCC9900;}买入股票:=STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),COLOR0099FF;BB:=(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ; {DRAWTEXT (BB,60,'买入股票'),COLOR0099FF;}红宝石:=BB AND 金叉;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);加仓:=IF(FILTER(YXF=1,5),1,0),STICK,COLORFFFFFF,LINETHICK3;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV (L,55))*100,5,1);FY:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;QS:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));绿宝石:=加仓AND 金叉;{DRAWTEXT (绿宝石,L*0.945,'绿宝石'),COLORFF00FF;}LC20:=REF(CLOSE,1);RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;底线买阳:=CROSS(RSI20,11)*1,COLORRED;黄宝石:=底线买阳AND 金叉;{DRAWTEXT (黄宝石,L*0.935,'黄宝石'),COLOR0099FF;}控盘B:=FILTER(IF(A10,1,0),5);{分时价格原码}JJ:=DYNAINFO(11);{波段买卖原码}P:=55;S:=8;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;神:=EMA(财,M1),COLORGREEN,LINETHICK1;{股价与均线偏离买卖条件}BTJ1:=(C-JJ)/JJ<-0.005;BTJ11:=(C-JJ)/JJ<-0.03;BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;{控盘买卖条件}STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;STJ02:=控盘>0;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;{波段买卖条件}BTJ3:=CROSS(财,神) AND 财<-0.3;BTJ32:=CROSS(财,神) AND 财<-0.1;STJ31:=CROSS(神,财);STJ32:=CROSS(神,财) AND 财>1.618;{以下为信号};BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);{DRAWICON(BTJ82,L*0.993,23);}{追买};{DRAWICON(BTJ811,L*0.980,5);}{DRAWICON(绿宝石,L*0.988,27);DRAWICON(黄宝石,L*0.986,26);}{DRAWICON(蓝宝石,L*0.982,24);DRAWICON(红宝石,L*0.980,25);}DRAWICON(追拉升,L*0.985,23);{DRAWICON(突破买点,L*0.985,21);}VAR1A:=EMA(EMA(CLOSE,9),9);专用:=(VAR1A-REF(VAR1A,1))/REF(VAR1A,1)*1000;VAR2A:=100*WINNER(CLOSE*0.95);高手专用:=VAR2A>50 AND COST(85)<CLOSE AND 专用>0;CV:=CLOSE;BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;UPR:=BBIBOLL+6*STD(BBIBOLL,11);DWN:=BBIBOLL-6*STD(BBIBOLL,11);QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+I F(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2))); HSL:=(XVL/20)/1.15;强势股:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22))>1500;绝杀前十:=高手专用AND 高度控盘,COLORFF00FF;{机构增仓}JA1:=(DVOL/C)/2;A2:=SUM(IF(JA1>100 AND CLOSE>REF(CLOSE,1),JA1,0),0);A3:=SUM(IF(JA1>100 AND CLOSE<REF(CLOSE,1),JA1,0),0);A4:=SUM(IF(JA1<100 AND CLOSE>REF(CLOSE,1),JA1,0),0);A5:=SUM(IF(JA1<100 AND CLOSE<REF(CLOSE,1),JA1,0),0);A6:=A2+A3+A4+A5;机买:=(A2/A6)*100;机卖:=(A3/A6)*100;主力差:=机买-机卖;机构加仓:=(主力差>=REF(主力差,1)+1.5)*50 AND 机买>机卖;机构抄底:=金叉AND 机构加仓;DRAWTEXT (机构抄底,L*0.97,'↖机构入驻'),COLORCYAN;机构追买:=机构加仓AND 追拉升;DRAWTEXT (机构追买,L*0.97,'↖机构吃单'),COLORFF00FF;{猎庄}LVAR2:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;LVAR3:=SMA(LVAR2,20,1);LVAR4:=SMA(LVAR3,15,1);猎庄:=LVAR3-LVAR4;多空分界:=1;抓庄:=CROSS(猎庄,多空分界) AND 猎庄>=REF(MA(猎庄,多空分界),1);跟庄抄底:=金叉AND 抓庄;{DRAWTEXT (跟庄抄底,L*0.97,'跟庄'),COLORCYAN;}{稳健追涨}WMA1:=EMA(CLOSE,5);WMA2:=EMA(CLOSE,10);WMA3:=EMA(CLOSE,20);WMA4:=EMA(CLOSE,30);WMA5:=EMA(CLOSE,60);WVAR1:=MAX(WMA1,MAX(WMA2,MAX(WMA3,WMA4)));WVAR2:=MIN(WMA1,MIN(WMA2,MIN(WMA3,WMA4)));WVAR3:=(WVAR1-WVAR2)/WVAR2*1000;WVAR4:=WMA1>REF(WMA1,1) AND WMA2>REF(WMA2,1) AND WMA3>REF(WMA3,1) AND WMA4>REF(WMA4,1) AND WMA5>REF(WMA5,1);WVAR5:=WVAR3<5;WVAR6:=COUNT(WVAR5=1,5)>0;WVAR7:=CROSS(WMA1,WMA4);稳健追涨:=WVAR4 AND WVAR6 AND WVAR7;稳健抄底:=金叉AND 稳健追涨;{DRAWTEXT (稳健抄底,L*0.97,'稳健'),COLORCYAN;}{均线粘合}JDIF:=EMA(CLOSE,12)-EMA(CLOSE,26);JDEA:=EMA(JDIF,9);JMACD:=(JDIF-JDEA)*2;JBOLL:=MA(CLOSE,20);JUPPER:=JBOLL+2*STD(CLOSE,20);JLOWER:=JBOLL-2*STD(CLOSE,20);JK1:=CLOSE>OPEN ;JK2:=VOL>=2*REF(VOL,1);JK3:=CROSS(JDIF,JDEA) AND JDIF<=0 ;JK4:=CROSS(CLOSE,JBOLL);均线粘合:=JK1 AND JK2 AND JK3 AND JK4 ;机构拉升:=机构加仓AND 均线粘合;DRAWTEXT (机构拉升,L*0.97,'↖机构拉升'),COLORFF00FF;VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;DRAWICON(CROSS(82,VARC),H*1.02,2);{DRAWTEXT(CROSS(82,VARC),2,'|逃庄'),COLORWHITE ;}VAR34:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1);VAR35:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1);VAR36:=IF(VAR34>0.010, 0.900, 1) AND IF(VAR34>(-0.025), 1, 1.200);VAR37:=VAR36*(VAR35-VAR34)*100;VAR38:=SUM(VAR37, 10);VAR310:=VAR38>20;VAR326:=IF(CLOSE AND MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.0 AND CLOSE,1,0);{VAR38>VAR39;}VAR327:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND VAR326>0, 1, 0);{STICKLINE(VAR327=1,0,1,2,0),COLORYELLOW;}DRAWICON(VAR327=1,L*0.95,1);{DRAWTEXT(VAR327=1,-1,'|杀庄'),COLORWHITE;}HZ:=EMA(CLOSE,13);短波:=EMA(HZ,1);中波:=EMA(HZ,26);均线148天:=EMA(C,148);成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100;HZ2:=EMA(HZ,8);拉升一号:=CROSS(短波,HZ2);DRAWICON(拉升一号,L*0.99,11);DRAWTEXT (拉升一号,L*0.97,'↖黑马拉升'),COLORFF00FF;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;红线上牛股起:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14 *REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8 *REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2 *REF(MID,18)+REF(MID,20))/210,COLORRED,LINETHICK2;绿线下熊股出:MA(红线上牛股起,6),COLORGREEN,LINETHICK2;涨停紫色:STICKLINE((C-REF(C,1))/REF(C,1)>0.095,C,O,3.05,0),COLORMAGENTA;A3(主图)跟庄买入M1:=5;M2:=10;M3:=30;M4:=60;MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买入'),COLORRED;S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;DRAWTEXT(卖1>0,HIGH*1.02,'卖出'),COLORGREEN;{股灵吧决策}VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;年:MA(CLOSE,22),LINETHICK2,COLORWHITE;MAA5:MA(C,5),COLORFF00FF,LINETHICK2;MAA10:=MA(C,10);MAA30:MA(C,30),COLORRED;KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖跟庄买进'),COLORYELLOW; STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;F(副图)有庄抄底VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;无庄控盘:=控盘<0;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLORFFFF00;主力出货:=控盘<REF(控盘,1) AND 控盘>0;STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,1),COLOR00FFFF;高度控盘: VAR2>50 AND COST(85)<CLOSE AND 控盘>0,COLOR00FFFF,LINETHICK2; A10:=CROSS(控盘,0);控盘B:=FILTER(IF(A10,1,0),5);{分时价格原码}JJ:=DYNAINFO(11);{波段买卖原码}P:=55;S:=8;M1:=3;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK1;神:=EMA(财,M1),COLORGREEN,LINETHICK1;DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));{股价与均线偏离买卖条件}BTJ1:=(C-JJ)/JJ<-0.03;BTJ11:=(C-JJ)/JJ<-0.03;BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;{控盘买卖条件}STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;STJ02:=控盘>0;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;{波段买卖条件}BTJ3:=CROSS(财,神) AND 财<-0.3;BTJ32:=CROSS(财,神) AND 财<-0.1;STJ31:=CROSS(神,财);STJ32:=CROSS(神,财) AND 财>1.618;{以下为信号};BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);DRAWTEXT(BTJ81,神,'↑买底'),COLORRED;DRAWTEXT(BTJ811,神*1.2,'↑有庄'),COLORWHITE;STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);STJ82:=FILTER(STJ02 AND STJ32 ,13);STJ83:=STJ81 AND STJ82;DRAWTEXT(STJ83,神,'↓卖'),COLOR00FF00;DIFF: (EMA(CLOSE,8) - EMA(CLOSE,55))*10,COLORRED;DEA: EMA(DIFF,3),COLORGREEN;庄:= BTJ11 AND BTJ2 AND BTJ3;有庄:FILTER(庄,55),COLORWHITE;DRAWTEXT(BTJ811,有庄,'有庄'),COLORWHITE;F (副图)黑马个股:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;大盘:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORE67010,LINET HICK2;STICKLINE(个股>=大盘,个股,大盘,1,0),COLORRED;STICKLINE(个股<大盘,个股,大盘,1,0),COLORBLUE;STICKLINE(个股>=大盘,0,大盘,6,0),COLORYELLOW;STICKLINE(个股<大盘,0,个股,6,0),COLORYELLOW;短线反弹:IF(CROSS(个股,9),50,0),STICK,LINETHICK3,COLOR00FF00;DRAWTEXT(CROSS(个股,9),40,'短线反弹!'),COLOR00FF00;VAR1:=EMA(CLOSE,3);VAR2:=EMA(CLOSE,21);VAR3:=BARSLAST(CROSS(VAR2,VAR1))>15;VAR4:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;VAR5:=CROSS(VAR1,VAR2) AND VAR4 AND VAR3;黑马:IF(VAR5,80,0),STICK,LINETHICK4,COLORF00FF0;DRAWTEXT(VAR5,70,'黑马!'),COLORF00FF0;。

通达信指标——资金突破主图(主图)

通达信指标——资金突破主图(主图)

买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),COLORRED;STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLORRED;STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORFFF000;STICKLINE(买线<卖线,LOW,HIGH,0.1,0),COLORFFF000;Z1:=REF(HIGH,4)=HHV(HIGH,2*4+1);Y1:=FILTER(Z1,3);C1:=BACKSET(Y1,3+1);D1:=FILTER(C1,3);A2:=REF(LOW,3)=LLV(LOW,2*3+1);V2:=FILTER(A2,3);C2:=BACKSET(V2,3+1);D2:=FILTER(C2,3);E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1; H2:=D1 AND NOT(D2 AND E1>=E2);L1:=D2 AND NOT(D1 AND E1=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);L2:=LD OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);UU2:=BACKSET(ISLASTBAR=1,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);突破线:=REF(H,BARSLAST(VV2));持仓线:=REF(H,BARSLAST(XX2));TP1:=CROSS(C,突破线);TP2:=CROSS(C,持仓线);STICKLINE(TP1,H,L,0,0),COLORYELLOW;STICKLINE(TP1,C,O,3,0),COLORYELLOW;STICKLINE(TP1,C,O,3,0),COLORYELLOW;STICKLINE(TP1,C,O,1,0),COLORYELLOW;DRAWTEXT(TP1,LOW*0.98,'资金突破'),LINETHICK1,COLORYELLOW;STICKLINE(TP2,H,L,0,0),COLORYELLOW;STICKLINE(TP2,C,O,3,0),COLORYELLOW;STICKLINE(TP2,C,O,3,0),COLORYELLOW;STICKLINE(TP2,C,O,1,0),COLORYELLOW;DRAWTEXT(TP2,LOW*0.98,'资金突破'),LINETHICK1,COLORYELLOW;。

1本人长期使用的通达信选股持股 指标公式--突破预警(非常好用)

1本人长期使用的通达信选股持股 指标公式--突破预警(非常好用)

本人长期使用的通达信选股持股指标公式--突破预警(非常好用)一、指标介绍突破预警,是根据筹码、压力位、均线、kdj计算,指当价格突破压力线时进行预警,此后股价大概率上升。

二、指标截图发出白色、红色三角箭头时,为买入信号。

三、公式源代码{突破预警M1=5 M2=10}AAA:C;M3:=EMA(CLOSE,5);M20:=EMA(CLOSE,10);A:=BARSLAST(CROSS(M3,M20));A1:=REF(BARSLAST(CROSS(M3,M20)),A+1); A2:=A+A1;AA:=REF(BARSLAST(CROSS(M3,M20)),A2+2);A3:=AA+A2;B:=BARSLAST(CROSS(M20,M3));B1:=REF(BARSLAST(CROSS(M20,M3)),B+1); B2:=B+B1;BB:=REF(BARSLAST(CROSS(M20,M3)),B2+2); X1:=IF(A<B,A2-B,A-B);Y1:=IF(A2<B2,A3-B2,A2-B2);GD0:=REF(HHVBARS(H,X1+3),B);GD1:=REF(HHVBARS(H,Y1+3),B2);GG0:=BACKSET(ISLASTBAR,GD0+B+1);GG1:=BACKSET(ISLASTBAR,GD1+B2+1);TJ3:=CROSS(GG0,0.5);TJ4:=CROSS(GG1,0.5);上轨:=DRAWLINE(TJ4,H,TJ3,H,1);值3:=GG0>REF(GG0,1);值4:=GG1>REF(GG1,1);顶1:IF(GG0,REF(HIGH,BARSLAST(值3)),0); 突破1:CROSS(C,顶1);突破2:COUNT(突破1,10);突破:(突破1 AND 突破2=1);四、公式使用方法功能---公式系统 ---公式管理器—新建—输入公式就可以了注:指标公式不是万能的。

1本人长期使用的通达信选股持股 指标公式--突破预警(非常好用)

1本人长期使用的通达信选股持股 指标公式--突破预警(非常好用)

本人长期使用的通达信选股持股指标公式--突破预警(非常好用)一、指标介绍突破预警,是根据筹码、压力位、均线、kdj计算,指当价格突破压力线时进行预警,此后股价大概率上升。

二、指标截图发出白色、红色三角箭头时,为买入信号。

三、公式源代码{突破预警M1=5 M2=10}AAA:C;M3:=EMA(CLOSE,5);M20:=EMA(CLOSE,10);A:=BARSLAST(CROSS(M3,M20));A1:=REF(BARSLAST(CROSS(M3,M20)),A+1); A2:=A+A1;AA:=REF(BARSLAST(CROSS(M3,M20)),A2+2);A3:=AA+A2;B:=BARSLAST(CROSS(M20,M3));B1:=REF(BARSLAST(CROSS(M20,M3)),B+1); B2:=B+B1;BB:=REF(BARSLAST(CROSS(M20,M3)),B2+2); X1:=IF(A<B,A2-B,A-B);Y1:=IF(A2<B2,A3-B2,A2-B2);GD0:=REF(HHVBARS(H,X1+3),B);GD1:=REF(HHVBARS(H,Y1+3),B2);GG0:=BACKSET(ISLASTBAR,GD0+B+1);GG1:=BACKSET(ISLASTBAR,GD1+B2+1);TJ3:=CROSS(GG0,0.5);TJ4:=CROSS(GG1,0.5);上轨:=DRAWLINE(TJ4,H,TJ3,H,1);值3:=GG0>REF(GG0,1);值4:=GG1>REF(GG1,1);顶1:IF(GG0,REF(HIGH,BARSLAST(值3)),0); 突破1:CROSS(C,顶1);突破2:COUNT(突破1,10);突破:(突破1 AND 突破2=1);四、公式使用方法功能---公式系统 ---公式管理器—新建—输入公式就可以了注:指标公式不是万能的。

Get格雅股票指标公式下载通达信突破重围空仓、持股、搏杀生命线、启动线

Get格雅股票指标公式下载通达信突破重围空仓、持股、搏杀生命线、启动线

【股票指标公式下载】-【通达信】突破重围(空仓、持股、搏杀生命线、启动线)【通达信】突破重围〔空仓、持股、搏杀生命线、启动线〕-指标公式源码{参数 M 30/240/90}N:=89;HH:=CONST(HHV(H,N));LL:=CONST(LLV(L,N));MM:=CONST(HH/2+LL/2);CC:=CONST(C),CROSSDOT;YY:=CONST(IF(CC>=MM,LL-(HH-LL)*0.2,HH+(HH-LL)*0.2)),POINTDOT;DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2,COLORSTICK;MHH:=CONST(HHV(MACD,N));MLL:=CONST(LLV(MACD,N));MMM0:=MHH/2-MLL/2; MMM:=IF(MMM0<(HH-LL)*0.1,(HH-LL)*0.1,MMM0); STICKLINE(0=0,YY+MMM,YY-MMM,5,0),COLOR444444;STICKLINE(MACD>=0 AND MACD>REF(MACD,1),YY,YY+MACD,0.2,0),COLORRED; STICKLINE(MACD>=0 AND MACD<REF(MACD,1),YY,YY+MACD,0.2,0),COLORFFFF00; STICKLINE(MACD<0 AND MACD<REF(MACD,1), YY,YY+MACD,0.2,0),COLOR00FF00; STICKLINE(MACD<0 AND MACD>REF(MACD,1), YY,YY+MACD,0.2,0),COLOR00FFFF; RSVZ:=((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))-0.5)/100;KX:=SMA(RSVZ,4,1);DX:=SMA(KX,4,1);JX:=3*KX-2*DX;JJ:=(JX/0.005)*MMM;STICKLINE(JX>REF(JX,1),YY+REF(JJ,1),YY+JJ,2.0,0),COLORMAGENTA; STICKLINE(JX<REF(JX,1),YY+REF(JJ,1),YY+JJ,2.0,0),COLORGREEN;SAR1:=IF(CLOSE<SAR(2,3,10),SAR(2,3,10),0);SAR2:=IF(CLOSE<SAR(4,2,20),SAR(4,2,20),0);SARE:=IF(CLOSE>SAR(3,3,20),SAR(3,3,20),0);SARA:=IF(CLOSE>SAR(4,2,10),SAR(4,2,10),0);空仓:IF(MIN(SAR1,SAR2)>0,(SAR1+SAR2)/2,IF(SAR1+SAR2=0,DRAWNULL,SAR1+SAR2)){,CIRCLEDOT},COLORGREEN,LINETHICK5;持股:IF(MIN(SARE,SARA)>0,(SARE+SARA)/2,IF(SARE+SARA=0,DRAWNULL,SARE+SA RA)){,CIRCLEDOT},COLORMAGENTA,LINETHICK5;MA1:C,COLORYELLOW,NODRAW;MA3:MA(((3*C+L+O+H)/6),3),COLORYELLOW,NODRAW;BBI:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORWHITE;BB5:(MA(C,15)+MA(C,30)+MA(C,60)+MA(C,120))/4,COLORWHITE;IF(C>BB5,BB5,DRAWNULL),COLORRED;IF(C<BB5,BB5,DRAWNULL),COLORCYAN;MH:=IF(MACD<0,-MACD,0);ML:=IF(MACD>0,-MACD,0);JJH:=IF(REF(JJ,1)>JJ,REF(JJ,1),JJ);JJL:=IF(REF(JJ,1)<JJ,REF(JJ,1),JJ);Z1:=IF(JJH>ML AND JJH<MH,JJH,IF(JJH>=MH,MH,DRAWNULL));Z2:=IF(JJL>ML AND JJL<MH,JJL,IF(JJL<=ML,ML,DRAWNULL));STICKLINE(0=0,YY+Z1,YY+Z2,0.1,0),COLORBLUE;DRAWTEXT(CURRBARSCOUNT=16 AND BACKSET(C>BB5,CURRBARSCOUNT)=1 AND BACKSET(CROSS(MA1,BBI)=1,CURRBARSCOUNT)=1,IF(CC>MM,LL,HH),'收BB5上,上穿BBI'),COLORRED;DRAWICON(CROSS(DIF,DEA), YY-MMM,1);DRAWICON(CROSS(DEA,DIF), YY+MMM,2);RSV:=(CLOSE - LLV(LOW,18))/(HHV(HIGH,18) - LLV(LOW,18))*100;K:=EMA(RSV,3);D:=EMA(K,3);J:=(3*K-2*D);KDJ1:=REF(COUNT(J<REF(J,1),5)>=3,1) AND REF(J,1)<20;KDJ2:=J>REF(J,1);反转:=IF(FILTER(KDJ1 AND KDJ2,3),50,0),COLORRED;VAR22:=REF(LOW,1);VAR33:=SMA(ABS(LOW-VAR22),3,1)/SMA(MAX(LOW-VAR22,0),3,1)*100;VAR44:=EMA(IF(CLOSE*1.3,VAR33*10,VAR33/10),3);VAR55:=LLV(LOW,13);VAR66:=HHV(VAR44,13);VAR77:=IF(MA(CLOSE,34),1,0);VAR888:=EMA(IF(LOW<=VAR55,(VAR44+VAR66*2)/2,0),3)/618*VAR77;VAR999:=IF(VAR888>100,100,VAR888);吸筹:=VAR999,LINETHICK1,COLORCD7F32 ;HHZ:=CONST(HHV(C,120))*1;LLZ:=CONST(LLV(C,120))*1;HL:=CONST(IF(CONST((HHZ+LLZ)/2)<CONST(C),LLZ-(HHZ-LLZ)*0.4,HHZ+(HHZ-LLZ)*0.4));HH1:=IF(CONST((HHZ+LLZ)/2)>CONST(C),HHZ,HL);LL1:=IF(CONST((HHZ+LLZ)/2)<CONST(C),LLZ,HL);HLMAX:=MAX(HH1,LL1);HLMIN:=MIN(HH1,LL1);HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2;HLMN4:=100-0;(50-50)*HLMN2/100+HLMN1,COLOR555555;(20-50)*HLMN2/100+HLMN1,COLOR555555;(80-50)*HLMN2/100+HLMN1,COLOR555555;(100-50)*HLMN2/100+HLMN1,COLOR555555;STICKLINE(吸筹,(0-50)*HLMN2/100+HLMN1,(VAR999-50)*HLMN2/100+HLMN1,2,10),COLORFF00FF;STICKLINE(J<=0,(90-50)*HLMN2/100+HLMN1,(100-50)*HLMN2/100+HLMN1,4,0),COLORYELLOW;IF(反转=50,(50-50)*HLMN2/100+HLMN1,(0-50)*HLMN2/100+HLMN1),COLORRED;KZ:(K-50)*HLMN2/100+HLMN1,COLORFFFFFF;DZ:(D-50)*HLMN2/100+HLMN1,COLOR00FFFF;JZ:(J-50)*HLMN2/100+HLMN1,COLOR00FF00;VL:=REF(LOW,1);VAR12Z:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR14Z:=MA(VAR12Z,13);VAR15Z:=LLV(LOW,34);VAR18Z:=EMA(IF(LOW<=VAR15Z,VAR14Z,0),3);VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7 ,1),5,1);VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)* 16.18-VAR110*10.9;T:=FILTER(IF(VAR111<=VAR110 AND VAR18Z>REF(VAR18Z,1),VAR18Z*8,0),20);DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.2,'★'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR22X:=SMA(VAR21,3,1);VAR23:=SMA(VAR22X,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'★'),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶');DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'★');DIFZ:=EMA(C,12)-EMA(C,26);DEAZ:=EMA(DIFZ,9);MACDZ:=8*(DIFZ-DEAZ);TYNNN:=60;A1:=REF(HIGH,TYNNN)=HHV(HIGH,2*TYNNN+1); B1:=FILTER(A1,TYNNN);C1:=BACKSET(B1,TYNNN+1); D1:=FILTER(C1,TYNNN);A2:=REF(LOW,TYNNN)=LLV(LOW,2*TYNNN+1); B2:=FILTER(A2,TYNNN);C2:=BACKSET(B2,TYNNN+1); D2:=FILTER(C2,TYNNN);E1:=(REF(LLV(LOW,2*TYNNN),1)+REF(HHV(HIGH,2*TYNNN),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1; L1:=(D2 AND NOT(D1 AND E1<E2));X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 ANDCOUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);VV:=UU>REF(UU,1);RCC:=REF(L,BARSLAST(VV));DRAWBAND(DIFZ*4+RCC,RGB(155,50,50),EMA(DIFZ*4+RCC,9),RGB(0,50,150)); STICKLINE((RCC+MACDZ)>RCC AND(RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR400080; STICKLINE((RCC+MACDZ)>RCC AND(RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR00FFFF;STICKLINE((RCC+MACDZ)<=RCC AND(RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR008080; STICKLINE((RCC+MACDZ)<=RCC AND(RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLORC080FF;IF(C,EMA(DIFZ*4+RCC,9),DRAWNULL),COLORFFFFFF,LINETHICK1;IF(C,DIFZ*4+RCC,DRAWNULL),COLORRED,LINETHICK1;IF(DIFZ<=REF(DIFZ,1),DIFZ*4+RCC,DRAWNULL),COLORFFF000;JJV:=(H+L+C)/3;QJ0:=VOL/IF(H=L,4,H-L);QJ1:=IF(CAPITAL=0,QJ0*(JJV-MIN(C,O)),QJ0*(MIN(O,C)-L));QJ2:=IF(CAPITAL=0,QJ0*(MIN(O,C)-L),QJ0*(JJV-MIN(C,O)));QJ3:=QJ0*(H-MAX(O,C));QJ4:=QJ0*(MAX(C,O)-JJV);QJ5:=QJ1+QJ2;QJ6:=QJ3+QJ4;DD:=(QJ5-QJ6)/(QJ5+QJ6)*100;DDX:=((QJ1+QJ2)-(QJ3+QJ4))/SUM(VOL,10)*100;DDZ:=DD*17;DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;BB:=(CROSS(J,0)AND ((DDX>0 AND DDY>0) OR DDZ>400));DRAWTEXT(BB,L*0.98,'★斋主赚点钱玩'),COLOR00FFFF;MA18:=MA(CLOSE,18);MTM:=C-REF(C,1);DX1:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND CROSS(DX1,MA(DX1,2)); DRAWTEXT(FILTER(买=1,5),LOW,'★买一'),COLORRED;加1:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(加1,LOW*0.99,'★加一'),COLORCC66FF;卖一:=HHV(DX1,2)=HHV(DX1,7) AND COUNT(DX1>50,2) ANDCROSS(MA(DX1,2),DX1);DRAWTEXT(FILTER(卖一=1,1),HIGH*1.01,'★卖一'),COLORGREEN;AA1:=MA(C,5);BB1:=MA(C,15);AF:=CROSS(AA1,BB1);STICKLINE(AF,LLV(L,4),LLV(L,4),80,1),COLORRED,LINETHICK3; DRAWTEXT(AF,LLV(L,4),'止损启动线'),COLORYELLOW;VAR1:=VOL*(OPEN+CLOSE)/2;搏杀生命线:SUM(VAR1,88)/SUM(VOL,88),LINETHICK3,COLORYELLOW;【通达信】突破重围〔空仓、持股、搏杀生命线、启动线〕-指标公式效果图 (文档来源:假设水财经社区)。

通达信指标公式源码 :突破瞬间介入 主图源码

通达信指标公式源码 :突破瞬间介入 主图源码

突破瞬间介入源码获利%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;DRAWTEXT_FIX(获利%>=95 AND ISLASTBAR,0.97,0.97,0,'高危'),COLORRED; DRAWTEXT_FIX(获利%>=80 AND 获利%<95 AND ISLASTBAR,0.97,0.97,0,'风险'),COLORYELLOW;DRAWTEXT_FIX(获利%>=50 AND 获利%<80 AND ISLASTBAR,0.97,0.97,0,'安全'),COLORGREEN;DRAWTEXT_FIX(获利%<50 AND ISLASTBAR,0.97,0.97,0,'空头'),COLORBLUE; STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,3,0),CO LOR0055FF;STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,3,0),CO LOR00FF00;N:=10;T1:=CONST(HHVBARS(V,N));T0:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORFF00 FF;IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT,COLORFF00FF; DRAWTEXT(ISLASTBAR,T0,' 量能平台'),COLORCC00CC;M:=10;Q1:=CONST(REF(HHVBARS(V,M),T1+1)+T1+1);Q0:IF(CURRBARSCOUNT<=T1+M+3 AND CURRBARSCOUNT>=T1+1,CONST(REF(C,Q1)),DRAWNULL),COLOR009900;IF(CURRBARSCOUNT=Q1+1,Q0,DRAWNULL),CIRCLEDOT,COLOR00CC00;M1:=CONST(LLVBARS(V,M));M0:IF(CURRBARSCOUNT<=M+7,CONST(IF(M1=0,O,REF(O,M1))),DRAWNULL);IF(CURRBARSCOUNT=M1+1,M0,DRAWNULL),CIRCLEDOT;DRAWTEXT(ISLASTBAR,M0,' 地量反量能平台');HV:=HHV(V,8)=V OR V/REF(V,1)>=2;FT:=BARSLAST(HV);量能平台:IF(HV,C,REF(C,FT)),COLORYELLOW,LINETHICK2;DP:=IF(C=INDEXC,0,1);GJ:=AMOUNT/V/100;【明日阻力】:L+(GJ-L)+(C-L),COLORRED,NODRAW;【明日支撑】:L+(C-GJ),NODRAW;年:=YEAR,NODRAW;月:=MONTH,NODRAW;星期:=WEEKDAY,NODRAW;日1:=DATETODAY(DATE);上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);自然日:=日1-DATETODAY(上市日)+1;ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;本周第几天:=BARSLAST(ZB)+1;本月第几天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1;MA1:=REF(C,本周第几天);MA2:=REF(MA1,本周第几天);MA3:=REF(MA2,本周第几天);MA4:=REF(MA3,本周第几天);MA5:=REF(MA4,本周第几天);MA6:=REF(MA5,本周第几天);MA7:=REF(MA6,本周第几天);MA8:=REF(MA7,本周第几天);MA9:=REF(MA8,本周第几天);十周价:=(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10; 决策:REFDATE(十周价,DATE),COLORYELLOW,LINETHICK1; DRAWTEXT(ISLASTBAR,决策,' 决策线'),COLORYELLOW;。

高低点均线之突破上轨、突破横线通达信指标公式源码

高低点均线之突破上轨、突破横线通达信指标公式源码

高低点均线之突破上轨、突破横线通达信指标公式源码
两个选股指标,一个是【突破上轨】的选股公式,一个是【突破横线(前高)】的选股公式,可根据自己的需要选择使用!
注意:选出股票后还要进行人工筛选,结合主图、K线颜色、股价位置及K线形态,选出自己认可的股票。

还要注意,买入前要设置好止损位、仓位!
{高低点均线之突破横线(前高)XG}
HH:=MA(REF(H,1),10);
LL:=MA(REF(L,1),10);
TP:=CROSS(C,HH) AND EVERY(REF(C,1)<ref(hh,1),3);< bdsfid="86" p=""></ref(hh,1),3);<>
TC:=BARSLAST(TP);
TPHX:=CROSS(C,REF(H*1.004,TC)) AND C>HH;
TPXG:FILTER(TPHX,2);
{====================================== ===============
=====}
{高低点均线之突破上轨XG}
HH:=MA(REF(H,1),10);
LL:=MA(REF(L,1),10);
TP:=CROSS(C,HH) AND EVERY(REF(C,1)
TPUP:=TP AND CROSS(C,REF(H,TC+1));
TPXG:FILTER(TPUP,2);。

通达信在K线上运用趋势线警告的方法及公式

通达信在K线上运用趋势线警告的方法及公式

通达信在K线上运用趋势线警告的方法及公式通达信在K线上运用趋势线预警的方法及公式到目前为止,通达信只提供在分时图中画线预警,K线上不能直接画趋势线预警,有没有办法变通一下呢?这正是本贴之目的。

首先我们已知了在K线上画趋势线的指标“CYX—撑压线”(系统公式),如图1;该公式不能直接警,需要修改一下,系统公式直接修改,在第二次启动时会自动删除修改部分,所以,需要将公式另存为:画线预警主图(公式名称自定),然后打开自己看好的个股K线图,键入公式名称:HXYJ(画线预警主图),调出新的主图公式,如图2;下面对公式进行编辑修改,很简旦,在公式未尾添加:DRAWTEXT(CROSS(C,NOTEXT1*1.00),NOTEXT1*1.001,"↙突破压力");“确定”!回到K线图,根据情况,调整公式参数N,只有收盘价越过趋势线,“突破压力”的提示自动出现,如图3所示。

如果某日盘中突破了趋势线,收盘价却低于趋势线,“突破压力”的提示会时有时无,所以,要以收盘价为准。

主图出来了,要想获得自动预警,只要将该主图指标转换成条件选股指标即可,送佛送西,预警指标如下:N:=5;MA5:=EMA(C,5)COLORWHITE;MA13:=EMA(C,13)COLORCYAN;MA21:=EMA(C,21)COLORMAGENTA;MA34:=EMA(C,34)COLORYELLOW;MA55:=EMA(C,55)COLORRED;{画线}A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;E2:=(H+L)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;L1:=(D2 AND NOT(D1 AND E1<E2));H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);S1:=R1>REF(R1,1);T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1);R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1);T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1);NOTEXT1:=DRAWLINE(S2,H,S1,H,1),LINETHICK2,COLORRED ; NOTEXT2:=DRAWLINE(U2,L,U1,L,1),LINETHICK2,COLORRED ; 突破压力:CROSS(C,NOTEXT1);需要注意的是,要根据情况,适时调整画线参数N!OK 啦!。

通达信突破上轨启爆+风险区主图指标源码

通达信突破上轨启爆+风险区主图指标源码

通达信突破上轨启爆+风险区主图指标源码【风险区】--高抛避险【警示区】--逢高减仓【突破区】--主力拉升【拉升区】--强势畜锐【关注区】--逢低买入【低吸区】--大胆买入DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'BJ1',0);N:=120;K:=BARSLAST(CURRBARSCOUNT=N);GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0)),NODRAW;{高点} DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0)),NODRAW;{低点}KJ:=GD-DD;{高低点差值=分区高度}GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);高区:IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINET HICK2,NODRAW;低区:IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LIN ETHICK2,NODRAW;平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00F FFF,NODRAW;低:IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF 00;高:IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FF FF;支撑:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;强势: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,DRAWNULL),COLORF F00FF;突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,DRAWNULL),COLOR00 00FF;警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,DRAWNULL),COLO R00FFFF;压力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,DRAWNULL),COLO R00FF00;低涨:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;顶点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,HHV(H,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED, CROSSDOT,NODRAW;低点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,LLV(L,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAG ENTA,CROSSDOT,NODRAW;STICKLINE(CCI>=200 AND H>=顶点,O,C,2,0),COLORBLUE;STICKLINE(CCI<=100 AND L<=低点,O,C,2,0),COLORYELLOW;DRAWBAND(高区,RGB(0,0,0),平衡,RGB(0,0,0));DRAWBAND(平衡,RGB(0,0,0),低区,RGB(0,0,0));DRAWBAND(高,RGB(120,100,0),压力,RGB(0,0,0));DRAWBAND(压力,RGB(258,58,0),警示,RGB(0,0,0));DRAWBAND(警示,RGB(128,58,0),突破,RGB(0,0,0));DRAWBAND(突破,RGB(68,0,0),强势,RGB(0,0,0));DRAWBAND(强势,RGB(38,0,0),支撑,RGB(0,0,0));DRAWBAND(支撑,RGB(38,38,38),低,RGB(0,0,0));STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR40808 0,NODRAW;STICKLINE(CURRBARSCOUNT<=N/2,支撑,支撑,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,强势,强势,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,压力,压力,2,0),COLOR1E1E1E;DRAWTEXT(CURRBARSCOUNT=10,压力,'压力-0.809'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,强势,'强势-0.382'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,支撑,'支撑-0.191'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--主力拉升'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸区】--大胆买入'),COLORFFFFFF;第一防线:REFDATE(低,DATE),DOTLINE,COLORYELLOW,NODRAW;第二防线:REFDATE(支撑,DATE),DOTLINE,COLORWHITE,NODRAW;{今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;}DRAWKLINE(H,O,L,C);AHC1:=CLOSE*VOL;AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA( AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108) +EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);上轨:=1.06*AHC22,COLOR40FF00,LINETHICK1;下轨:=AHC22*0.94;{STICKLINE(上轨>下轨,上轨,下轨,5,0),COLOR555555;}ZT:=REF(C,1)*1.1-C<0.01 AND H=C;启爆:=CROSS(C,上轨) OR CROSS(C,下轨) AND ZT;DRAWTEXT(启爆,L,'启爆'),COLORCYAN;STICKLINE(启爆,C,O,3,1),COLORWHITE;STICKLINE(启爆,C,O,1,0),COLORGREEN;STICKLINE(C>=O ,HIGH,LOW,0,1 ),COLORRED;STICKLINE(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;STICKLINE(C>=O,OPEN,CLOSE,2.7,0 ),COLOR000066;STICKLINE(C>=O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(C>=O ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;STICKLINE(C>=O ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;STICKLINE(C>=O ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;STICKLINE(C<O ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(C<O ,OPEN,CLOSE,3.1,0 ),COLOR990000;STICKLINE(CLOSE<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE<O ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE<O ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE<O ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL), COLOR000000,NODRAW;止赢:1.05*CC,COLORMAGENTA,LINETHICK1;DRAWTEXT(ISLASTBAR,止赢,'止赢'),LINETHICK1;止损:0.97*CC,COLORYELLOW,LINETHICK1;DRAWTEXT(ISLASTBAR,止损,'止损'),LINETHICK1;DRAWNUMBER(ISLASTBAR ,C,C),COLORWHITE;AAA:=CONST(HHV(H,50));PL5:=HHV(H,45);F:=100*(C-REF(C,1))/REF(C,1);博尔:=IF(C<REF(O,1) AND F<0,1,0);P1:=博尔;量化:=IF(C<REF(O,2) AND F<0,1,0);P2:=量化;STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,3,0),COLOR0055FF;操作30日均线:EMA(C,30),COLORYELLOW,LINETHICK4;红升:IF(操作30日均线>REF(操作30日均线,1),操作30日均线,DRAWNULL),COLORRED,LINETHICK4;绿降:IF(操作30日均线<REF(操作30日均线,1),操作30日均线,DRAWNULL),COLOR009300,LINETHICK4;趋势55日线:EMA(C,55),COLORYELLOW,LINETHICK1,NODRAW;红升4:IF(趋势55日线>REF(趋势55日线,1),趋势55日线,DRAWNULL),COLOR0080FF,LINETHICK1;绿降4:IF(趋势55日线<REF(趋势55日线,1),趋势55日线,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;年线:EMA(C,250),COLORYELLOW,LINETHICK1,NODRAW;年红升:IF(年线>REF(年线,1),年线,DRAWNULL),COLOR8000FF,LINETHICK1;年绿降:IF(年线<REF(年线,1),年线,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;。

通达信【破茧成蝶】全网最优秀选股...

通达信【破茧成蝶】全网最优秀选股...

通达信【破茧成蝶】全网最优秀选股...
通达信【破茧成蝶】全网最优秀选股器。

不管是在大盘下跌还是行情稳定,他都可以优先选出在上涨中的股。

下面我拿出个股来为大家讲解。

【300436广生堂】:形态上来看:该股目前收出一根阳线,股价呈上涨形态,说明该股中线呈现震荡上涨的趋势。

技术指标上来看,该股在金叉区域,说明该股短线需要冲击压力(黄色线位置),若不能突破短线还是需要调整蓄势一下。

主力资金分析:其次在从主力资金来看的话下方红色线也是拐头向上的,说明主力资金的到来近期也是在流入的。

江湖建议短线操作的朋友需要注意下高位的减仓点位,不建议加仓或买入。

长线操作者可持股待涨,该股有长线投资价值。

可以看到此选股器抓到的股,都是适合做长线,长期的股。

胜率有71.57%。

今天在这里免费分享给大家。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

通达信突破杀入主图附突破杀入线选股预警NA:=STRCAT(CON2STR(YEAR,0),' 年');YA:=STRCAT(CON2STR(MONTH,0),' 月');RA:=STRCAT(CON2STR(DAY,0),' 日');SJ:=STRCAT(STRCAT(NA,YA), RA);DRAWTEXT_FIX(C>0,0.88,0,0,SJ);{布林+宝塔+蓝灰操盘}{蓝灰底}买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线>=卖线,HHV(H,60),LLV(L,60),5,0),COLOR000045; STICKLINE(买线<卖线,HHV(H,60),LLV(L,60),5,0),COLOR004500;{红轨道}红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;轨道:MA(MA(CLOSE,3),3),COLOR32CD32,LINETHICK2;SHENG:=IF(红轨道>=轨道,轨道,DRAWNULL);升:SHENG,COLORMAGENTA,LINETHICK2;{变色K线}N1:=14;M:=6;TR1:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(C LOSE,1)-LOW)),N1);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N1);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N1);PDI:=DMP*100/TR1,LINETHICK2;MDI:=DMM*100/TR1;ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);ADXR:=EXPMEMA(ADX,M);VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB ORVARC,CLOSE,REF(CLOSE,1),3,1),COLOR0000FF;VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),3,0),COLORC08000;VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORMAGENTA ; VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0) ,COLOR00FF00; }{箱体线}N:=7;T1:=CONST(LLVBARS(LOW,N));T1HIGH:=CONST(REF(HIGH,T1));CC:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND(HIGH>T1HIGH)));T2HIGH:=CONST(REF(HIGH,T2));T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND(HIGH>T2HIGH)));T3HIGH:=CONST(REF(HIGH,T3));突破杀入线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR,T3HIGH, 1),LINETHICK1,COLORYELLOW;DRAWTEXT(ISLASTBAR, T3HIGH, '杀入线!'),LINETHICK1,COLORYELLOW; AB:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8 );BA:=EMA(AB,5);A1{高}:=REFDATE(REF(HHV(H,96),5),DATE);B1{低}:=REFDATE(REF(LLV(L,96),5),DATE);DY{中}:=((A1)+(B1))/2;箱顶:IF(AB>0 AND AB-BA<=0,A1,A1),COLORGREEN,DOTLINE;箱腰:IF(AB>0 AND AB-BA<=0,DY,DY),COLORYELLOW,DOTLINE;箱低:IF(AB>0 AND AB-BA<=0,B1,B1),COLORRED,DOTLINE;DRAWTEXT(ISLASTBAR,箱顶,'箱顶'),COLORYELLOW;DRAWTEXT(ISLASTBAR,箱腰,'箱腰'),COLORYELLOW;DRAWTEXT(ISLASTBAR,箱低,'箱低'),COLORYELLOW;VARAA:=IF(CLOSE>150,91.3,0.913);{突破:INTPART(CLOSE/VARAA )*VARAA,POINTDOT,LINETHICK4,COLORRED; 再突破:突破+VARAA,POINTDOT,LINETHICK4,COLOR00FF00 ;回踩:(突破+再突破)/2,POINTDOT,COLORWHITE,LINETHICK4;} STICKLINE(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱低,箱腰,0.1,-1),COLORRED; STICKLINE(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱顶,箱腰,0.1,-1),COLORGREEN; DRAWICON(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱腰,1);DRAWICON(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱腰,2);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.01,0,'K线底部出红色或粉色,可低吸建仓!'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.05,0,'绿点表示长期的压力点!'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.10,0,'白点表示中短期的压力和支撑点,'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.16,0,'红点表示有效支撑或突破长中短期压力点!股价向下跌破,原则清仓!'),COLORGREEN;EE:=(H+L+O+2*C)/5;CRTP:=EE+(H-L);CRZL:=2*EE-L;CRZC:=2*EE-H;CRFZ:=EE-(H-L);高:CONST(CRTP),COLORRED;阻:CONST(CRZL),COLORC7C9FF;支:CONST(CRZC),COLOR7C9CFF;反:CONST(CRFZ),COLORDD00DD;DRAWTEXT(ISLASTBAR, 反, '反转价'),LINETHICK1,COLORDD00DD; DRAWTEXT(ISLASTBAR, 支, '支撑'),LINETHICK1,COLOR7C9CFF; DRAWTEXT(ISLASTBAR, 阻, '阻力'),LINETHICK1,COLORC7C9FF; DRAWTEXT(ISLASTBAR, 高, ' 高破线'),LINETHICK1,COLORGREEN;均线:=EXPMA(C,12),COLORGRAY,LINETHICK2;日:=50;昨前:=3;高2:=REF(HHV(H,日),昨前);低2:=REF(LLV(L,日),昨前);H4:=高2-(高2-低2)*0.618;H5:=高2-(高2-低2)*0.809;支撑80.9%:REFDATE(H5,DATE),COLORRED;支撑61.8%:REFDATE(H4,DATE),COLORGREEN,;STICKLINE(CURRBARSCOUNT=1,支撑80.9%,支撑80.9%,300,-1),COLORGREEN;STICKLINE(CURRBARSCOUNT=1,支撑61.8%,支撑61.8%,300,-1),COLORRED;DRAWTEXT(CURRBARSCOUNT=1 AND 支撑80.9%,支撑80.9%,'备钱'),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=1 AND 支撑61.8%,支撑61.8%,'转运'),COLORRED;WH1:=IF(L=LLV(L,9),L,0);WH2:=CONST(BARSLAST(WH1!=0));WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1);WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1);WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),D RAWNULL),COLORRED,DOTLINE;STICKLINE(CURRBARSCOUNT<=WH2+1 ANDL=LLV(L,9),O,C,3,0),COLORRED;DRAWTEXT(CURRBARSCOUNT=WH2+10,WH7,'LINE'),COLORRED; DRAWTEXT(ISLASTBAR,WH7,'进场'),COLORRED;WH8:IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,9),L,DRAWNULL),DRAWNU LL),CIRCLEDOT;H81:=IF(H=HHV(H,9),H,DRAWNULL);H82:=CONST(BARSLAST(H81!=DRAWNULL));H83:=CONST(IF(H82=0,L,REF(L,H82)));H84:=CONST(REF(BARSLAST(L<H83),H82+1)+H82+1);H85:=CONST(IF(H84=0,L,REF(L,H84)));H86:=CONST(REF(BARSLAST(L<H85),H84+1)+H84+1);H87:=IF(CURRBARSCOUNT<=H82+10,CONST(IF(H86=0,L,REF(L,H86))),DRA WNULL),DOTLINE;H88:=IF(CURRBARSCOUNT<=H82+1,IF(H=HHV(H,9),H,DRAWNULL),DRAWN ULL),CIRCLEDOT;DRAWTEXT(CURRBARSCOUNT=H82+10,H87,'LINE'),COLORYELLOW; DRAWTEXT(ISLASTBAR,H87,'止损'),COLORYELLOW;DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;起爆:=CROSS(AAA-REF(AAA,1),15);DRAWTEXT(起爆,MA(L,3),'↖暴张'),COLORYELLOW,LINETHICK2;LC:=REF((O+H+L+2*C)/5,1);{短线擒黑码}RSI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*10;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,23))/(0.015*AVEDEV(TYP,23));买:=CROSS(RSI,7.1) AND MA(V,5)>MA(V,10),COLORRED;DRAWTEXT(CROSS(RSI,7.1) AND MA(V,5)>MA(V,10),MA(L,3),'↖◆短线擒黑码◆'),COLORWHITE;DRAWICON(买,MA(L,3),17);卖:=CROSS(7.1,RSI) AND MA(V,10)>MA(V,5),COLORGREEN;DRAWTEXT(CROSS(7.1,RSI) AND MA(V,10)>MA(V,5),箱顶,'■■逃跑■■'),COLORGREEN;DRAWICON(卖,MA(H,3),28);{绝密买点}A81:=EMA(C,3),COLORWHITE;A82:=EMA(C,5),COLORYELLOW;A83:=EMA(C,7),COLORMAGENTA;A84:=EMA(C,12),COLORGREEN;A85:=EMA(C,20),COLORRED;A86:=EMA(C,50),COLORBLUE,LINETHICK2;SS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 ; SSS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018; DRAWICON(SS8 ,MA(L,3),5);DRAWTEXT(SS8,MA(L,3),'↖绝密买点'),COLORYELLOW;ZYX1:="DMI.PDI"(12,6);ZYX2:="DMI.MDI"(12,6);ZYX3:=ZYX1>65 AND ZYX1>REF(ZYX1,1);ZYX4:=LLV(ZYX1,0);ZYX5:=BARSLAST(ZYX4=ZYX1);ZYX6:=(0-REF(ZYX2,4))/(ZYX4-REF(ZYX2,ZYX5))>2;ZYX7:=ZYX1>REF(ZYX1,1);ZYX8:=VOL>2*MA(VOL,30);ZYX9:="DMI.ADX"(12,6);ZYXA:="DMI.ADXR"(12,6);ZYXB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;ZYXC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);ZYXD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS( MA(CLOSE,10),MA(CLOSE,5)));{ZYXE:=0-"MACD.DIFF"(7,21,3);}ZYXF:=TROUGHBARS(3,15,1)<4;ZYX10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);ZYX11:=IF(ZYXF=1,50,0);ZYX12:=CROSS(ZYX2,ZYX1) AND CROSS(ZYXA,ZYX9);ZYX13:=CROSS(ZYX2,ZYX1) AND CROSS(ZYX9,ZYXA);ZYX14:=ZYXB AND ZYXC AND ZYXD AND ZYX10 AND ZYX6 AND ZYX7 AND ZYX8*50;ZYX15:=BARSLAST(CROSS(ZYX2,ZYX1)=1);ZYX16:=BARSLAST(CROSS(ZYX1,ZYX2)=1);ZYX17:=HHV(ZYX1,ZYX16);ZYX18:=BARSLAST(ZYX1=ZYX17);{STICKLINE(FILTER(ZYXF=1,5),50,0,10,0),COLORRED;}ZYX19:=ZYX3 OR ZYX12 OR ZYX13*100;ZYX1A:=ZYX13*100;DRAWICON(FILTER(ZYXF=1,3),MA(L,3),23);DRAWTEXT(FILTER(ZYXF=1,3),箱低,'■■铁底■■'),COLORGREEN;{量能平台}ND:=10;PTD:=CONST(LLVBARS(V,ND));TDPX:IF(CURRBARSCOUNT<=ND,CONST(IF(PTD=0,O,REF(O,PTD))),DRAWN ULL),COLORFF0000;IF(CURRBARSCOUNT=PTD+1,TDPX,DRAWNULL),CIRCLEDOT,COLORFF0000, LINETHICK2;DRAWTEXT(ISLASTBAR,TDPX,' 【地平线】'),COLORFF0000;G21:=30;T112:=CONST(HHVBARS(V,G21));T122:=IF(CURRBARSCOUNT<=G21+7,CONST(IF(T112=0,H,REF(H,T112))),D RAWNULL);T122A:=IF(CURRBARSCOUNT=T112+1,T122,DRAWNULL),CIRCLEDOT,COLO RWHITE;DRAWTEXT(ISLASTBAR,T122,'30天量能平台'),COLORWHITE;W10:=10;TW1:=CONST(HHVBARS(V,W10));TW0:=IF(CURRBARSCOUNT<=W10+7,CONST(IF(TW1=0,C,REF(C,TW1))),DR AWNULL);TW0A:=IF(CURRBARSCOUNT=TW1+1,TW0,DRAWNULL),CIRCLEDOT,COLOR WHITE;DRAWTEXT(ISLASTBAR,TW0,'10量能平台'),COLORWHITE;W20:=20;TW20:=CONST(HHVBARS(V,W20));TW22:=IF(CURRBARSCOUNT<=W20+7,CONST(IF(TW20=0,C,REF(C,TW20))) ,DRAWNULL);TW22A:=IF(CURRBARSCOUNT=TW20+1,TW22,DRAWNULL),COLORWHITE; DRAWTEXT(ISLASTBAR,TW22,'20量能平台'),COLORWHITE;MW:=10;MW1:=CONST(LLVBARS(V,MW));MW0:=IF(CURRBARSCOUNT<=MW+7,CONST(IF(MW1=0,O,REF(O,MW1))),D RAWNULL);MW0A:=IF(CURRBARSCOUNT=MW1+1,MW0,DRAWNULL),CIRCLEDOT,COLO RWHITE;DRAWTEXT(ISLASTBAR,MW0,'地量反弹量能平台'),COLORWHITE;{N1:=18;N2:=36;N3:=55;}EM1:=EMA(C,18),NODRAW;EM2:=EMA(C,36),COLORRED;EM3:=EMA(C,55),COLORGREEN;TJ8:=BETWEEN(EM2,EM1,EM3);{DRAWICON(TJ8=0,L,14);}B18:='<-----------------财富平台';DRAWTEXT(VOL=HHV(VOL,20),C ,B18),COLORRED;{超跌反弹}RSV:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100;短期底部:=LLV(OPEN,30);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=(3*K-2*D),LINETHICK2;D2:=SMA(J,3,1)*0.82;VAR72:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR73:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;VAR74:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR75:=(VAR72+2*VAR73+3*VAR74)/6;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA2:=EMA(DIFF,6);MACD超跌2:=(COUNT(DIFF<DEA2,19))=10;DRAWTEXT(CROSS(J,-3),MA(L,3),'↖超跌反弹'),COLORGREEN; {DRAWICON( FILTER(CROSS(J,D2),20),D2+0.02 ,1);};{突破盘整}W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1;DRAWTEXT(突破盘整>0,MA(L,3),'↙突破盘整'),COLORRED;C6:=REF(C,1);涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;DRAWTEXT(涨停,MA(H,3),'↙涨停'),COLORYELLOW;RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;SELL2:=(CROSS(88,RSI1));DRAWTEXT(SELL2,MA(H,3),'↙★出'),COLOR00FF00;VB1:=C-REF(C,1);VB2:=100*EMA(EMA(VB1,6),6)/EMA(EMA(ABS(VB1),6),6);VB3:=IF(LLV(VB2,2)=LLV(VB2,7) AND COUNT(VB2<0,2) ANDCROSS(VB2,MA(VB2,2)),1,0);VB4:=FILTER(VB3=1,5);DRAWTEXT(VB4,MA(L,3),'↖★买'),COLOR00FFFF;{N 1 100 20 M 1 100 32 P1 1 100 80 P2 1 100 100}VARD1:=(C+H+O+L)/4;卖出:=XMA(VARD1,20)*(1+80/1000),COLORFFFFFF,LINETHICK3;买入:=XMA(VARD1,32)*(1-100/1000),COLOR0000FF,LINETHICK3;机会来临:=REF(IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0,LINETHICK2; RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K2:=REF(MA(RSV2,3),1)+(RSV2-REF(MA(RSV2,3),1))/3;DD2:=REF(MA(K2,3),1)+(K2-REF(MA(K2,3),1))/3;J2:=3*K2-2*DD2;BB1:=EMA(J2,5);BB2:=REF(BB1,1);金叉:=CROSS(BB1,BB2);DRAWTEXT(CROSS(C,卖出),MA(H,3),'↙卖出'),COLOR00FFFF; DRAWTEXT(CROSS(C,买入) AND BB1>BB2 AND C>REF(O,2),MA(L,3),'↖买入'),COLOR0000FF;DRAWICON(CROSS(C,买入) AND 金叉AND 机会来临,MA(L,3),13); DRAWTEXT(CROSS(C,买入) AND 金叉AND 机会来临,MA(L,3),'↖【绝杀点】'),COLOR00FF00;F:=EMA(CLOSE,10)-EMA(CLOSE,21);A:=EMA(F,8);MD:=(F-A)*2;ZQ:=BARSLAST(CROSS(F,A) AND A<=0.05)+1;LZ:=BARSLASTCOUNT(MD<REF(MD,1))>1;HZ:=BARSLASTCOUNT(MD>REF(MD,1))>1;LZQ:=BARSLASTCOUNT(LZ);HZQ:=BARSLASTCOUNT(HZ);LZQTJ:=COUNT(LZQ,ZQ);HZQTJ:=COUNT(HZQ,ZQ);NQR:=REF(CLOSE,4);SRZF:=((CLOSE-NQR)/NQR)*100,NODRAW;绝杀黑码:=REF(LZQTJ,1)>=2 AND REF(HZQTJ,1)>=3 AND HZQTJ=0 AND LZQTJ=0 AND SRZF>2,LINETHICK2;DRAWTEXT(绝杀黑码,MA(L,3),'↖★绝杀黑码'),COLOR00FFFF;箱顶@:箱顶+箱顶*0.02,COLORBLACK;选股预警公式:N:=7;T1:=CONST(LLVBARS(LOW,N));T1HIGH:=CONST(REF(HIGH,T1));CC:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND(HIGH>T1HIGH)));T2HIGH:=CONST(REF(HIGH,T2));T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND(HIGH>T2HIGH)));T3HIGH:=CONST(REF(HIGH,T3));突破杀入线:=DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK1,COLORYELLOW;CROSS(C,突破杀入线);。

相关文档
最新文档