鳄鱼线主图通达信指标公式源码

合集下载

鳄鱼全套指标 通达信指标公式源码

鳄鱼全套指标 通达信指标公式源码

证券交易新空间》关于鳄鱼指标的源码在此。

包括鳄鱼线AO AC 指标。

源码不加密。

关于使用方法,最好看书《证券混沌操作法》里面说的非常详细,权威。

Y:=(HIGH+CLOSE+LOW)/3;吻线:REF(SMA(Y,5,1),3),COLORGREEN;齿线:REF(SMA(Y,8,1),5),COLORRED;颚线:REF(SMA(Y,13,1),8),COLORBLUE;VAR2:=H>=REF(H,1)&&H>=REF(H,2)&&H>REFX(H,1)&&H>REFX(H,2);VAR3:=L<=REF(L,1)&&L<=REF(L,2)&&L<REFX(L,1)&&L<REFX(L,2);DRAWICON(VAR2,1.02*HIGH,1);DRAWICON(VAR3,0.98*LOW,2);MA55:=MA(CLOSE,55);☆上升:IF(MA55>REF(MA55,1),MA55,DRAWNULL),COLORMAGENTA;★下降:IF(MA55<REF(MA55,1),MA55,DRAWNULL),COLORWHITE;AO:=SMA(Y,5,1)-SMA(Y,34,1);AC:=SMA((AO-SMA(AO,5,1)),5,1);VAR4:=AO>REF(AO,1) AND AC>REF(AC,1);VAR5:=AO<REF(AO,1) AND AC<REF(AC,1);VAR6:=AO>=REF(AO,1) AND AC<=REF(AC,1);VAR7:=AO<=REF(AO,1) AND AC>=REF(AC,1);STICKLINE(VAR4, H,L,0,1),COLORRED;STICKLINE(VAR4 AND C>=O,O,C,2.5,1),COLORRED;STICKLINE(VAR4 AND C<O,O,C,2.5,1),COLORRED;STICKLINE(VAR4 AND C<O,O,C,2.5,0),COLORRED;STICKLINE(VAR5, H,L,0,1),COLORGREEN;STICKLINE(VAR5 AND C>=O,O,C,2.5,1),COLORGREEN;STICKLINE(VAR5 AND C<O,O,C,2.5,1),COLORGREEN;STICKLINE(VAR5 AND C<O,O,C,2.5,0),COLORGREEN;STICKLINE(VAR6 OR VAR7, H,L,0,1),COLORLIGRAY; STICKLINE(VAR6 OR VAR7 AND C>=O,C,O,2.5,1),COLORLIGRAY; STICKLINE(VAR6 OR VAR7 AND C<O,C,O,2.5,1),COLORLIGRAY; STICKLINE(VAR6 OR VAR7 AND C<O,C,O,2.5,0),COLORLIGRAY;。

实战分析思路通达信指标公式源码

实战分析思路通达信指标公式源码

实战分析思路通达信指标公式源码通达信是中国股市中使用较为广泛的一种技术分析软件。

该软件提供了丰富的指标工具,包括均线、MACD、KDJ等等。

对于想要实战分析的投资者,了解这些指标的计算公式是非常重要的。

下面将介绍一些常用指标的计算公式和通达信源码。

1.均线(MA)指标的计算公式如下:MA(n)=(C1+C2+…+Cn)/n其中,MA(n)表示平均线的值,C1、C2、Cn分别表示n个周期内的收盘价。

通达信源码如下:_MA:MA(CLOSE,N);上述代码表示计算周期为N的收盘价的均线。

2.MACD指标的计算公式如下:DIFF = EMA(short) - EMA(long)DEA=EMA(DIFF,M)MACD=(DIFF-DEA)*2其中,EMA表示指数移动平均线,DIFF表示快线与慢线的差值,DEA 为DIFF的M周期指数移动平均,MACD为DIFF与DEA的差值的两倍。

通达信源码如下:_DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);_DEA:EMA(_DIFF,M);_MACD:(_DIFF-_DEA)*2;上述代码表示计算DIFF、DEA和MACD三个指标。

3.KDJ指标的计算公式如下:RSV=(CLOSE-LOWEST(CLOSE,N))/(HIGHEST(CLOSE,N)-LOWEST(CLOSE,N))*100K=(1-a)*PREV.K+a*RSVD=(1-a)*PREV.D+a*KJ=3*K-2*D其中,RSV表示未成熟随机值,K、D、J分别表示K、D、J三条曲线的值,N为周期,a为平滑因子。

通达信源码如下:_RSV:(CLOSE-LOWEST(CLOSE,N))/(HIGHEST(CLOSE,N)-LOWEST(CLOSE,N))*100;_k1:(1-a)*REF(_k1,1)+a*_RSV;_d1:(1-a)*REF(_d1,1)+a*_k1;_j1:3*_k1-2*_d1;上述代码表示计算RSV、K、D和J四个指标。

通达信指标公式源码 画线波谷BS通道主图指标公式

通达信指标公式源码 画线波谷BS通道主图指标公式

天际: (MA(CLOSE,40)) + 2*STD(CLOSE,40),LINETHICK2,COLORBLUE;海底: (MA(CLOSE,40)) - 2*STD(CLOSE,40),LINETHICK2,COLORBLUE;买卖决策①:EXPMA(CLOSE,12),CIRCLEDOT,COLORWHITE;红持绿抛②:MA(CLOSE,25),COLORRED;红持绿抛③:MA(CLOSE,30),COLORGREEN;DRAWBAND(红持绿抛②,RGB(255,0,0),红持绿抛③,RGB(0,255,0));NOTEXT1:IF(CLOSE>买卖决策①AND CLOSE!=买卖决策①,买卖决策①,DRAWNULL),CIRCLEDOT,COLORRED;NOTEXT2:IF(CLOSE<买卖决策①AND CLOSE!=买卖决策①,买卖决策①,DRAWNULL),CIRCLEDOT,COLORGREEN;现价:=C,POINTDOT;M3:MA(C,3);持股13线:=EMA(CLOSE,13);突破77线:=EMA(CLOSE,77);翻锅99线:=EMA(CLOSE,99);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);AA:=EMA(CLOSE,10);多头:=STICKLINE(DIF>DEA,CLOSE,OPEN,2,0),COLORRED;STICKLINE(DIF>DEA,HIGH,LOW,0,0),COLORRED;空头:=STICKLINE(DIF<=DEA,CLOSE,OPEN,2,0),COLORGREEN;STICKLINE(DIF<=DEA,HIGH,LOW,0,0),COLORGREEN;STICKLINE(DIF<=DEA AND AA>MA(CLOSE,50),CLOSE,OPEN,2,0),COLORYELLOW; STICKLINE(DIF<=DEA AND AA>MA(CLOSE,50),HIGH,LOW,0,0),COLORYELLOW; DRAWTEXT(CROSS(DIF,DEA),LOW*0.995, 'B'),COLORYELLOW,LINETHICK3,; DRAWTEXT(CROSS(DEA,DIF),HIGH*1.02, 'S'),COLORGREEN,LINETHICK3,;A:=TROUGH(3,10,1);B:=TROUGHBARS(3,10,1)=0;画底线:DRAWLINE(B,A,B,A,1),COLORYELLOW;D:=PEAK(3,10,1);E:=PEAKBARS(3,10,1)=0;画顶线:DRAWLINE(E,D,E,D,1),COLOR00FF00;百分比:=10;{也可设立参数:百分比(5,30,10)}误差:=2;{误差百分比}允许误差:=误差/100+0.004;{也可设立参数:允许误差(0,0.02,0)} 波谷1距离:= 1+CONST(TROUGHBARS(2,百分比,1));波谷值1: CONST(TROUGH(2,百分比,1));波谷值2:= CONST(TROUGH(2,百分比,2));波谷值3:= CONST(TROUGH(2,百分比/2,2));波谷值4:= CONST(TROUGH(2,百分比*2,2));。

通达信主图显示财务指标公式.doc

通达信主图显示财务指标公式.doc

通达信主图显示财务指标公式总股本 :=STRCAT(STRCAT(' 总股本 :',CON2STR(TOTALCAPITAL/1000000,3)),' 亿股 ');流通盘 :=STRCAT(STRCAT(' 流通盘 :',CON2STR(CAPITAL/1000000,3)),'亿股');每股收益 :=STRCAT(STRCAT(' 每股收益 :',CON2STR(FINANCE(29)/FINANCE(1),2)),' 元 ');每股未分配 :=STRCAT(STRCAT(' 每股未分配 : ',CON2STR(FINANCE(32),2)),'元');每股公积金 :=STRCAT(STRCAT(' 每股公积金 : ',CON2STR(FINANCE(18),2)),'元');每股净资产 :=STRCAT(STRCAT(' 每股净资产 : ',CON2STR(FINANCE(34),2)),'元');总市值 :=STRCAT(STRCAT(' 总市值 :',CON2STR(FINANCE(1)*C/100000000,3)),' 亿元 ');市值 :=STRCAT(STRCAT(' 流通值 :',CON2STR((CAPITAL/1000000)*C,3)),' 亿元 ');SHI:INTPART(DATE+19000000),NODRAW;上市日期 :=STRCAT('上市日:',CON2STR(SHI,0));收入同比增长 :=STRCAT(STRCAT(' 收入同比增长 : ',CON2STR(FINANCE(44),2)),'%');市盈率 :=STRCAT(' 市盈率 :',CON2STR(DYNAINFO(39),2));主营毛利润率 :=STRCAT(STRCAT(' 主营毛利润率 : ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),'%');主营净利润率 :=STRCAT(STRCAT(' 主营净利润率 : ',CON2STR(FINANCE(30)/FINANCE(20)*100,2)),'%');主营利润率 :=STRCAT('主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2));净利同比增长 :=STRCAT(STRCAT(' 净利同比增长 :',CON2STR(FINANCE(43),2)),'%');{DRAWTEXT_FIX(ISLASTBAR,0.002,0,0,'上市日期:'),COLORMAGENTA;DRAWNUMBER_FIX(ISLASTBAR,0.1,0,0,SHI),COLORMA GENTA;}DRAWTEXT_FIX(ISLASTBAR,0.002,0.20,0,总股本),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.20,0,收入同比增长),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.20,0,每股收益),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.25,0,流通盘),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.25,0,主营毛利润率),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.25,0,每股净资产),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.30,0,总市值),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.30,0,主营净利润率),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.30,0,每股未分配),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.35,0,市值),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.35,0,净利同比增长),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.35,0,每股公积金),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.40,0,市盈率),COLORCYAN;HSL:=100*VOL/(FINANCE(7)/100);换手 :=STRCAT(STRCAT(' 换手 :',CON2STR(HSL,2)),'%');DRAWTEXT_FIX(ISLASTBAR,0.127,0.40,0,换手),COLORMAGENTA;CJ:=DYNAINFO(10)/100000000;成交 :=STRCAT(STRCAT(' 成交 :',CON2STR(CJ,2)),' 亿 ');DRAWTEXT_FIX(ISLASTBAR,0.257,0.40,0,成交),COLORMAGENTA;。

通达信指标公式源码 仿制资金主图源码

通达信指标公式源码 仿制资金主图源码

DRAWRECTREL(0,530,300,998,IF(100,RGB(0,15,15),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;净流入:=(超B+大B+中B+小B)+(超S+大S+中S+小S);大宗进:=(超B)+(大B);大宗出:=(超S)+(大S);非大宗进:=(中B)+(小B);非大宗出:=(中S)+(小S);主力买力度:=LARGEINTRDVOL*100/VOL,NODRAW;主力卖力度:=LARGEOUTTRDVOL*100/VOL,NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV)),39,970,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(43,CONST(950-(ABS(大宗出)*250/DAZHIV)),82,970,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(151,CONST(950-(ABS(非大宗进)*250/DAZHIV)),190,970,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(195,CONST(950-(ABS(非大宗出)*250/DAZHIV)),234,970,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.00,1,0,'资金驱动主力进出资金驱动散户进出'),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.005,0.88,0,INTPART(大宗进)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.88,0,INTPART(大宗出)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.151,0.88,0,INTPART(非大宗进)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.196,0.88,0,INTPART(非大宗出)),COLORWHITE;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;DRAWRECTREL(50,530,234,580,RGB(0,75,200));DRAWRECTREL(50,530,234,580,RGB(0,250,50));DRAWRECTREL(50,530,80+CONST(主买*160/100),580,RGB(175,50,250)); DRAWTEXT_FIX(1,0.00,0.54,0,STRCAT(STRCAT('主动买卖比',CON2STR(主买,2)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.18,0.54,0,STRCAT(STRCAT(' ',CON2STR(主卖,2)),' %')),COLORYELLOW;DRAWRECTREL(50,580,234,630,RGB(0,75,200));DRAWRECTREL(50,580,234,630,RGB(0,250,50));DRAWRECTREL(50,580,80+CONST(主力买力度*160/100),630,RGB(200,0,50)); DRAWTEXT_FIX(1,0.00,0.59,0,STRCAT(STRCAT('主动买卖力',CON2STR(主力买力度,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.18,0.59,0,STRCAT(STRCAT(' ',CON2STR(主力卖力度,2)),'%')),COLORYELLOW;DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*100000/FINANCE(7),NODRAW;DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0); DRAWRECTREL(234,530,300,580,IF(CONST(DDX)>0,RGB(255,0,0),RGB(0,50,0))); DRAWRECTREL(234,580,300,630,IF(CONST(DDX)>0,RGB(255,0,0),RGB(0,50,0))); DRAWRECTREL(234,692,300,742,IF(CONST(DDY)>0,RGB(255,0,0),RGB(0,50,0))); DRAWRECTREL(234,742,300,792,IF(CONST(DDY)>0,RGB(255,0,0),RGB(0,50,0))); DRAWRECTREL(234,842,300,892,IF(CONST(DDZ)>0,RGB(255,0,0),RGB(0,50,0))); DRAWRECTREL(234,892,300,942,IF(CONST(DDZ)>0,RGB(255,0,0),RGB(0,50,0))); DRAWTEXT_FIX(1,0.24,0.54,0,STRCAT('',CON2STR(DDX,3))),COLORYELLOW; DRAWTEXT_FIX(1,0.24,0.70,0,STRCAT('',CON2STR(DDY,3))),COLORYELLOW; DRAWTEXT_FIX(1,0.24,0.85,0,STRCAT('',CON2STR(DDZ,3))),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.24,0.65,0,'大单动向'),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.24,0.80,0,'涨跌动因'),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.24,0.95,0,'大单差分'),COLORWHITE;T1:=IF (DDX>0 AND REF(DDX,1)<0,1,0);T2:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)<0,2,T1);T3:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)<0,3,T2);T4:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)<0,4,T3);T5:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)<0,5,T4);T6:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)<0,6,T5);T7:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)<0,7,T6);T8:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)<0,8,T7);T9:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)<0,9,T8);T:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)>0,10,T9);DRAWTEXT_FIX(1,0.24,0.59,0,STRCAT(STRCAT(' ',CON2STR(T,0)),' [天] ')),COLORYELLOW;T11:=IF (DDY>0 AND REF(DDY,1)<0,1,0);T21:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)<0,2,T11);T31:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)<0,3,T21);T41:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)<0,4,T31);T51:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)<0,5,T41);T61:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)<0,6,T51);T71:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)<0,7,T61);T81:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)<0,8,T71);T91:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)<0,9,T81);TY:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)>0,10,T91);DRAWTEXT_FIX(1,0.24,0.75,0,STRCAT(STRCAT(' ',CON2STR(TY,0)),' [天]')),COLORYELLOW;T1Z:=IF (DDZ>0 AND REF(DDZ,1)<0,1,0);T2Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)<0,2,T1Z);T3Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)<0,3,T2Z);T4Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)<0,4,T3Z);T5Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)<0,5,T4Z);T6Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)<0,6,T5Z);T7Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)<0,7,T6Z);T8Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)<0,8,T7Z);T9Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)<0,9,T8Z);TZ:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)>0,10,T9Z);DRAWTEXT_FIX(1,0.24,0.90,0,STRCAT(STRCAT(' ',CON2STR(TZ,0)),' [天] ')),COLORYELLOW;。

鳄鱼线源码

鳄鱼线源码
鳄鱼-线★
Y:=(H+L)/2;
AA:=REF((SMA(Y,5,1)),3);
BB:=REF((SMA(Y,8,1)),5);
CC:=REF((SMA(Y,13,1)),8);
鳄:CC,COLORFF6600;
齿:BB,COLORRED;
唇:AA,COLORGREEN;
R2:=REF(齿,5);
B3:=AO<0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1);
B31:=COUNT(B3,BCOUNTD);
DRAWTEXT(B31>=2 AND B3,AO,'B'),COLORWHITE;
DRAWICON(B31>=2 AND B3,AO,1);
DRAWTEXT(BUY3,AC, 'B'),COLORWHITE;
DRAWICON(BUY3,AC,1);
BUY4:=REF(AC,4)<REF(AC1,4) AND REF(AC,3)<REF(AC1,3) AND REF(AC,3)<REF(AC,4) AND COUNT(AC>AC1,3)=3 AND REF(AC,1)<0 AND AC>0;
跌:IF(MA(CLOSE,7)<REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORGREEN,LINETHICK2;
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;

鳄鱼线指标

鳄鱼线指标

鳄鱼线(文华指标公式)Y:=(HIGH+LOW)/2;AO : =MA(Y ,5 )-MA(Y ,34 );AO1:=REF(AO,1);AC:=AO-MA( AO,5);AC1:=REF(AC,1);E:REF(SMA(Y,13,1),8);CHI:REF(SMA(Y,8,1),5),COLORRED;CHUN:REF(SMA(Y,5,1),3),COLORYELLOW;STICKLINE(AO1>AO && AC1>AC && CLOSE<OPEN ,OPEN ,CLOSE ,COLORYELLOW ,0 );DRAWLINE(AO1>AO && AC1>AC && CLOSE<OPEN ,HIGH ,AO1>AO && AC1>AC && CLOSE<OPEN ,LOW ,COLOR YELLOW);STICKLINE(AO1>AO && AC1>AC && CLOSE=OPEN ,OPEN ,CLOSE ,COLORYELLOW ,0 );DRAWLINE(AO1>AO && AC1>AC && CLOSE=OPEN ,HIGH ,AO1>AO && AC1>AC && CLOSE=OPEN ,LOW ,COLOR YELLOW);STICKLINE(AO1>AO && AC1>AC && CLOSE>OPEN ,OPEN ,CLOSE ,COLORYELLOW ,1);DRAWLINE(AO1>AO && AC1>AC && CLOSE>OPEN,HIGH ,AO1>AO && AC1>AC && CLOSE>OPEN,CLOSE,COLORY ELLOW );DRAWLINE(AO1>AO && AC1>AC && CLOSE>OPEN,LOW ,AO1>AO && AC1>AC && CLOSE>OPEN,OPEN ,COLORYE LLOW );STICKLINE(AO1<AO && AC1<AC && CLOSE<OPEN,OPEN ,CLOSE ,COLORRED ,0 );DRAWLINE(AO1<AO && AC1<AC && CLOSE<OPEN,HIGH,AO1<AO && AC1<AC && CLOSE<OPEN,LOW ,COLORRE D );STICKLINE(AO1<AO && AC1<AC && CLOSE=OPEN ,OPEN ,CLOSE ,COLORRED ,0 );DRAWLINE(AO1<AO && AC1<AC && CLOSE=OPEN ,HIGH ,AO1<AO && AC1<AC && CLOSE=OPEN,LOW ,COLORR ED);STICKLINE(AO1<AO && AC1<AC && CLOSE>OPEN,OPEN ,CLOSE ,COLORRED,1);DRAWLINE(AO1<AO && AC1<AC && CLOSE>OPEN,HIGH ,AO1<AO && AC1<AC && CLOSE>OPEN,CLOSE,COLORR ED);DRAWLINE(AO1<AO && AC1<AC && CLOSE>OPEN,LOW ,AO1<AO && AC1<AC && CLOSE>OPEN,OPEN ,COLORRE D);STICKLINE(AO1>AO && AC1<AC && CLOSE<OPEN ,OPEN ,CLOSE ,COLORCYAN ,0 );DRAWLINE(AO1>AO && AC1<AC && CLOSE<OPEN,HIGH ,AO1>AO && AC1<AC && CLOSE<OPEN,LOW ,COLORCY AN );STICKLINE(AO1>AO && AC1<AC && CLOSE=OPEN,OPEN ,CLOSE ,COLORCYAN ,0 );DRAWLINE(AO1>AO && AC1<AC && CLOSE=OPEN,HIGH ,AO1>AO && AC1>AC && CLOSE=OPEN,LOW ,COLORCY AN );STICKLINE(AO1>AO && AC1<AC && CLOSE>OPEN,OPEN ,CLOSE ,COLORCYAN ,1 );DRAWLINE(AO1>AO && AC1<AC && CLOSE>OPEN ,HIGH ,AO1>AO && AC1<AC && CLOSE>OPEN,CLOSE ,COLO RCYAN );DRAWLINE(AO1>AO && AC1<AC && CLOSE>OPEN,LOW ,AO1>AO && AC1<AC && CLOSE>OPEN,OPEN ,COLORCY AN );STICKLINE(AO1<AO && AC1>AC && CLOSE<OPEN,OPEN ,CLOSE ,COLORCYAN ,0 );DRAWLINE(AO1<AO && AC1>AC && CLOSE<OPEN,HIGH ,AO1<AO && AC1>AC && CLOSE<OPEN,LOW ,COLORCYAN );STICKLINE(AO1<AO && AC1>AC && CLOSE=OPEN,OPEN ,CLOSE ,COLORCYAN ,0 );DRAWLINE(AO1<AO && AC1>AC && CLOSE=OPEN,HIGH,AO1<AO && AC1>AC && CLOSE=OPEN,LOW ,COLORCY AN );STICKLINE(AO1<AO && AC1>AC && CLOSE>OPEN,OPEN ,CLOSE ,COLORCYAN ,1 );DRAWLINE(AO1<AO && AC1>AC && CLOSE>OPEN,HIGH ,AO1<AO && AC1>AC && CLOSE>OPEN,CLOSE ,COLOR CYAN );DRAWLINE(AO1<AO && AC1>AC && CLOSE>OPEN,LOW ,AO1<AO && AC1>AC && CLOSE>OPEN,OPEN ,COLORCY AN );。

缠论主图通达信指标公式源码.doc

缠论主图通达信指标公式源码.doc

选股指标一缠论主图(指标选股/通达信贴图)我把主图里的黄金分割位换成半对数,这在投资领域里最擅长用的,比黄金分割在投资领域里更合理。

是上班族和平时没空看盘投资者最佳的指标{智能版:=“核心指标.VAR100#DAY”;}智能版:=“指标.核心#DAY“;MA1:MA(CLOSE,M1),COLORWHITE;MA2:MA(CLOSE,M2),COLORYELLOW;MA3:MA(CLOSE,M3),COLORCYAN;MA4:MA(CLOSE,M4),COLORCYAN;日线:=IF(PERIOD=5,1,0);CA3: = REF(C,1)* 日线;A1:=REF(HIGH,3)=HHV(HIGH,笔周期*3+1)* 智能版;B1:=FILTER(A1,3); C1:=BACKSET(B1,3+1);D1: = FILTER(C1,3);{高点}A2:=REF( LOW, 3)=LLV( LOW,笔周期*3+1)* 智能版;B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 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(L1Z X1)>0/LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I14);{过滤后低点}L2:=LD OR BARSTATUS=2 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(G2Z2);HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD Z L,HD Z H,O),COLORYELLOW,LINETHICK1;DRAWLINE(HD,H,LD,L,O),COLORYELLOW,LINETHICK1;A3:=H;B3:=REF(H,REF(BARSLAST(HD),l)+l)>REF(H z REF(BARSLAST(HD),l)+2+REF(BARSLAST (HD),REF(BARSLAST(HD),l)+2));D3:=A3 AND B3 AND HD;E3: = BACKSET(D3z REF(BARSLAST(HD),l)+2);HH:=E3>REF(E3,1);{找出全部长期高点}A4:=L>REF(L,REF(BARSLAST(LD),1)+1);B4:=REF(L,REF(BARSLAST(LD),1)+1);D4:=A4 AND B4 AND LD;E4: = BACKSET(D4,REF(BARSLAST(LD),l)+2);LL:=E4>REF(E4,1);{找出全部长期低点}H3:=HH OR BARSTATUS=2 OR BARSCOUNT(C)=1; (后面进行过滤,方法同前。

通达信指标——鳄鱼线新版(主图)

通达信指标——鳄鱼线新版(主图)

通达信指标——鳄鱼线新版(主图)V AR1:=(H+L)/2;AO:=SMA(V AR1,5,1)-SMA(V AR1,34,1),COLOR6699CC;AC:=SMA((AO-SMA(AO,5,1)),5,1),COLOR6699CC;X1:=AO> REF(AO,1) AND AC> REF(AC,1);X2:=AO< REF(AO,1) AND AC< REF(AC,1);Y:=(H+L)/2;RED:=SMA(Y,8,1);R2:=REF(RED,5);KU1:=IF(H=HHV(H,3),1,0);KD1:=IF(L=LLV(L,3),1,0);UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0))); DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(L,2),REF(L,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0))); 蓝:SMA(Y,13,1),COLORBLUE;红:SMA(Y,5,1),COLORRED;绿:SMA(Y,3,1),COLORGREEN;上张:=蓝>= REF(蓝,1) AND 红>= REF(红,1) AND 绿>= REF(绿,1);下张:=蓝< REF(蓝,1) AND 红< REF(红,1) AND 绿< REF(绿,1);上碎:=IF(H>= R2,UL,REF(UL,BARSLAST(H> R2)));下碎:=IF(L<= R2,DL,REF(DL,BARSLAST(L<= R2)));STICKLINE(BARSLAST(ABS(上碎-REF(上碎,1)))< BARSLAST(C> 上碎AND REF(C,1)< REF(上碎,1)),上碎,上碎,3,1),COLORMAGENTA;STICKLINE(BARSLAST(ABS(下碎-REF(下碎,1)))< BARSLAST(C< 下碎AND REF(C,1)> REF(下碎,1)),下碎,下碎,3,1),COLORCYAN;LC := REF(C,4);RMI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*100;QS:= HHV(MA(RMI,3),13),COLOR00ADFF;RMIMA:= SMA(RMI,3,1),COLOR009C00;DRAWTEXT(C> 上碎and ISLASTBAR=1,H+1,'向上突破有效上碎型'),COLOR0000FF; DRAWTEXT(C< 下碎and ISLASTBAR=1,L-1,'向下有效碎型被突破'),COLORFFFF00; DRAWTEXT(X1> 0 and ISLASTBAR=1,H+2,'AO与AC为多方趋势'),COLORFF00FF; DRAWTEXT(X2> 0 and ISLASTBAR=1,L-2,'AO与AC为空方趋势'),COLOR00FF00; DRAWTEXT(上张and ISLASTBAR=1,H+3,'鳄鱼向上张嘴'),COLOR999999;DRAWTEXT(下张and ISLASTBAR=1,L-3,'鳄鱼向下张嘴'),COLOR999999;DRAWTEXT(上张and X1>0 and ISLASTBAR=1,H+4,'怀疑中期多头'),COLORFF00FF; DRAWTEXT(下张and X2>0 and ISLASTBAR=1,L-4,'怀疑中期空头'),COLOR00FF00; DRAWTEXT((RMI> RMIMA and RMI< QS) and ISLASTBAR=1,H+5,'小心做多'),COLOR00FFFF;DRAWTEXT((RMI> RMIMA and RMI> QS) and ISLASTBAR=1,H+5,'坚决做多'),COLOR0000FF;DRAWTEXT((RMI< RMIMA and RMI> 20) and ISLASTBAR=1,L-5,'坚决做空'),COLORFF0000;DRAWTEXT((RMI< RMIMA and RMI< 20) and ISLASTBAR=1,L-5,'小心做空'),COLORFF00FF;DRAWKLINE(H,O,L,C);。

这据说是通达信最牛的主图公式(源码)

这据说是通达信最牛的主图公式(源码)

这据说是通达信最牛的主图公式(源码)回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));上线:=SMA(C,6.5,1);一号支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLO SE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线1 , HIGH*1.04,'减仓') ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUE,LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW;VAR1:LLV(A7,21);VAR2:HHV(A7,30);DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线 AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>VAR1,LOW *0.98,'见底' ),COLORYELLOW;YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作 ,LOW *0.98,'全仓' ),COLORYELLOW;SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) ANDREF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) ANDOPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点} E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上线1,操作) AND LOW>VAR1 AND 上线1>一号支撑线 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线 AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND 操作>上线 AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE<REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,3.2,0),COLORBB00FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.7,0),COLORFF33FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;。

鳄鱼全套指标 通达信指标公式源码

鳄鱼全套指标 通达信指标公式源码

鳄鱼全套指标通达信指标公式源码证券交易新空间》提供了鳄鱼指标的源码,其中包括鳄鱼线、AO指标和AC指标。

源码未加密。

如果想了解如何使用这些指标,建议阅读《证券混沌操作法》一书,该书对此进行了详细的介绍。

计算鳄鱼线的公式如下:Y:=(HIGH+CLOSE+LOW)/3;吻线:REF(SMA(Y,5,1),3),COLORGREEN;齿线:REF(SMA(Y,8,1),5),COLORRED;颚线:REF(SMA(Y,13,1),8),COLORBLUE;接下来,我们来介绍如何使用鳄鱼指标进行交易。

首先,我们需要定义一些变量:VAR2:=H>=REF(H,1)&&H>=REF(H,2)&&H>REFX(H,1)& &H>REFX(H,2);VAR3:=L<=REF(L,1)&&L<=REF(L,2)&&L<REFX(L,1)& &L<REFX(L,2);DRAWICON(VAR2,1.02*HIGH,1);DRAWICON(VAR3,0.98*LOW,2);然后,我们可以计算MA55指标:MA55:=MA(CLOSE,55);根据MA55指标的变化,我们可以判断市场趋势的方向:上升:IF(MA55>REF(MA55,1),MA55,DRAWNULL),COLORMAG ENTA;下降:IF(MA55<REF(MA55,1),MA55,DRAWNULL),COLORWHIT E;最后,我们来计算AO和AC指标:AO:=SMA(Y,5,1)-SMA(Y,34,1);AC:=SMA((AO-SMA(AO,5,1)),5,1);根据AO和AC指标的变化,我们可以判断市场的买卖信号:VAR4:=AO>REF(AO,1) AND AC>REF(AC,1);VAR5:=AO<REF(AO,1) AND AC<REF(AC,1);VAR6:=AO>=REF(AO,1) AND AC<=REF(AC,1);VAR7:=AO=REF(AC,1);XXX(VAR4.H,L,0,1),COLORRED;STICKLINE(VAR4 AND C>=O,O,C,2.5,1),COLORRED;XXX(VAR4 AND C<O,O,C,2.5,1),COLORRED;XXX(VAR4 AND C<O,O,C,2.5,0),COLORRED;XXX(VAR5.H,L,0,1),COLORGREEN;以上就是使用鳄鱼指标进行交易的基本方法。

通达信指标公式源码 收口布林主图指标

通达信指标公式源码 收口布林主图指标

{蓝灰底}买线:=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;HHH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*R EF(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8* REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*R EF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;LLY:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF( L,5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*RE F(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF (L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;D90H:=EMA(HHH,90),COLORRED,LINETHICK1;D90L:=EMA(LLY,90),COLORRED,LINETHICK1;DGH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*R EF(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8* REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*R EF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;DDL:=(20*L+19*REF(L,1)+18*REF (L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*RE F(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF (L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;D90C:=D90H-D90L;D90D:=D90H+ D90C*2,COLORRED,LINETHICK1;D90T:=D90L-D90C*2,COLORRED,LINETHIC K1;G0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LI NETHICK1,COLORWHITE;D0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA (XMA(L,25),25))*1,LINETHICK1,COLORWHITE;DTD:=D0>=D90T ANDG0>=D90D;KTD:=G0<=D90D AND D0<=D90T;ZDD:=D0>=D90T ANDG0<=D90D;BDD0:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3+XMA(XMA( H,60),60),LINETHICK2,COLORGREEN;BDT0:=XMA(XMA(L,60),60)-(XMA(XMA( H,60),60)-XMA(XMA(L,60),60))*3,LINETHICK2,COLORGREEN;STICKLINE(DTD =1,G0,D0,5,0),COLOR000066;STICKLINE(KTD=1,G0,D0,5,0),COLOR003300;S TICKLINE(ZDD=1,G0,D0,5,0),COLOR555555;ZK1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),COLO RAAAAAA, NODRAW;ZD1:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,COLOR AAAAAA, NODRAW;白色点多定位1:=L<ZD1 AND H>ZD1;白色点空定位1:=H>ZK1 AND L<ZK1;STICKLINE(白色点多定位1=1,L,ZD1,3,0),COLORWHITE;STICKLINE(白色点空定位1=1,H,ZK1,3,0),COLORWHITE;白色点多定位2:=H<ZD1;白色点空定位2:=L>ZK1;STICKLINE(白色点多定位2=1,L,H,0.0,0),COLORWHITE;STICKLINE(白色点多定位2=1,C,O,3,0),COLORWHITE;STICKLINE(白色点空定位2=1,L,H,0.0,0),COLORWHITE;STICKLINE(白色点空定位2=1,C,O,3,0),COLORWHITE;多头多定位:=CROSS(ZD1,L) AND DTD=1;多头平定位:=CROSS(H,ZK1) AND DTD=1 AND ZDD=0;空头空定位:=CROSS(H,ZK1) AND KTD=1;空头平定位:=CROSS(ZD1,L) AND KTD=1 AND ZDD=0;震荡多定位:=CROSS(ZD1,L) AND ZDD=1;震荡空定位:=CROSS(H,ZK1) AND ZDD=1;DRAWICON(空头平定位=1,L,3);DRAWICON(多头平定位=1,H,4);DRAWICON(多头多定位=1 OR 震荡多定位=1,L,3);DRAWICON(空头空定位=1 OR 震荡空定位=1,H,4);MID8:=(3*CLOSE+LOW+OPEN+HIGH)/6;判断1线:(20*MID8+19*REF(MID8,1)+18*REF(MID8,2)+17*REF(MID8,3)+16*REF( MID8,4)+15*REF(MID8,5)+14*REF(MID8,6)+13*REF(MID8,7)+12*REF(MID8 ,8)+11*REF(MID8,9)+10*REF(MID8,10)+9*REF(MID8,11)+8*REF(MID8,12) +7*REF(MID8,13)+6*REF(MID8,14)+5*REF(MID8,15)+4*REF(MID8,16)+3* REF(MID8,17)+2*REF(MID8,18)+REF(MID8,20))/210,COLORYELLOW;判断2线:MA(判断1线,6);DRAWBAND(判断1线,RGB(255,0,0),判断2线,RGB(0,180,0));N9:=120;KP:=BARSLAST(CURRBARSCOUNT=N9);GD:=CONST(IF(ISLASTBAR=1,HHV(H,KP),0));{高点}DDS:=CONST(IF(ISLASTBAR=1,LLV(L,KP),0));{低点}KJ:=GD-DDS;{高低点差值=分区高度}DRAWTEXT(CURRBARSCOUNT=N9/2-58,GD-KJ/12,' 【风险区】--高抛避险'),COLOR555555;DRAWTEXT(CURRBARSCOUNT=N9/2-58,GD-KJ/3.5,' 【警示区】--逢高减仓'),COLOR555555;DRAWTEXT(CURRBARSCOUNT=N9/2-58,GD-KJ/2.23,' 【突破区】--主力拉升'),COLOR555555;DRAWTEXT(CURRBARSCOUNT=N9/2-58,GD-KJ/1.82,' 【拉升区】--强势畜锐'),COLOR555555;DRAWTEXT(CURRBARSCOUNT=N9/2-58,DDS+KJ/3.5,' 【反弹中轨】--低买高休'),COLOR555555;DRAWTEXT(CURRBARSCOUNT=N9/2-58,DDS+KJ/10,' 【低吸区】--大胆买入'),COLOR555555;{大波段操作公式源码}VAR3F:=(2*CLOSE+HIGH+LOW)/4;VAR4F:=LLV(LOW,34);VAR5S:=HHV(HIGH,34);DIFF:EMA((VAR3F-VAR4F)/(VAR5S-VAR4F)*100,13), NODRAW;DEAF:EMA(0.667*REF(DIFF,1)+0.333*DIFF,2), NODRAW;DRAWTEXT(CROSS(DIFF,DEAF) AND DIFF<22,DDS+KJ/15,'谷'),COLOR006600;DRAWTEXT(CROSS(DIFF,30) AND DEAF<DIFF,DDS+KJ/3.5,'初'),COLOR888888;DRAWTEXT(CROSS(DIFF,65) AND DEAF<DIFF,GD-KJ/1.7,'中'),COLOR888888; DRAWTEXT(CROSS(DIFF,75) AND DEAF<DIFF,GD-KJ/2,'高'),COLOR009999; DRAWTEXT(CROSS(DEAF,DIFF) AND DEAF>75,GD-KJ/4.5,'峰'),COLOR006600;AAA7:=STRCAT('换手率:',CON2STR(DYNAINFO(37)*100,2));AAA8:=STRCAT('成交金额:',CON2STR(DYNAINFO(7)/100000000,2)),'(%)'; DRAWTEXT_FIX(1,0.868,0.01,0,AAA7),COLORYELLOW;DRAWTEXT_FIX(1,0.928,0.01,0,AAA8),COLORYELLOW;AAF:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);长期趋势线:=DMA((2*CLOSE+LOW+HIGH)/4,AAF);CCF:=(CLOSE/长期趋势线);MA1F:=MA(CCF*(2*CLOSE+HIGH+LOW)/4,3);MAAA:=((MA1F-长期趋势线)/长期趋势线)/3;TMP:=MA1F-MAAA*MA1F;长期趋势上升:IF(TMP>长期趋势线,长期趋势线,DRAWNULL),LINETHICK2,COLOR880066;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);{N=0 1000 30}{主图}T1U:=FINDLOWBARS(L,0,NM,1);T5:=BARSLAST(CURRBARSCOUNT=CONST(T1U)+1);D1D:REF(L,T5),COLOR00AA00,LINETHICK1;T1:=CONST(LLVBARS(LOW,10));T1HIGH:=CONST(REF(HIGH,T1));CCC:=CONST(CURRBARSCOUNT);T2G:=CONST(BARSLAST(CURRBARSCOUNT>CCC+T1 AND HIGH>T1HIGH)); T2HIGH:=CONST(REF(HIGH,T2G));T3:=CONST(BARSLAST(CURRBARSCOUNT>CCC+T2G AND HIGH>T2HIGH)); T3HIGH:=CONST(REF(HIGH,T3));猎击:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK2,COLOR555555;DRAWTEXT(ISLASTBAR, T3HIGH, '---------------猎击')LINETHICK1,COLOR555555;半分位:=(O+C)/2;昨半分位:=REF(半分位,1);STICKLINE(ISLASTBAR,昨半分位,昨半分位,10,0)COLORAAAA00;H分:=(H+L)/2;昨H分:=REF(H分,1);STICKLINE(ISLASTBAR,昨H分,昨H分,10,0)COLOR996600;前20内高:=HHV(C,20);昨前高:CONST(REF(前20内高,2)),COLORAAAAAA,POINTDOT;JLH:=REF(V,3)>=MA(V,3)*0.8;BP:=L>REF(O,3)*1.01 AND REF(L,1)>REF(O,3)*1.01 ANDREF(L,2)>=REF(O,3)*1.01;BJ:=REF(C,3)>REF(C,4) AND REF(C,3)>REF(O,3);AB:=BJ AND JLH AND BP;TH:=BARSLAST(AB);LLL:=IF(TH=1 OR TH=2 OR TH=3,L,9999);LTH:=BARSLAST(LLL=LLV(LLL,TH));VAR1L:=CONST(LTH)<100 AND LTH>0;VAR2L:=CONST(REF(L,LTH))=CONST(L);XGH:=VAR1L AND VAR2L AND ISLASTBAR;DRAWICON(XGH,L*0.98,1);DRAWLINE(CURRBARSCOUNT=CONST(LTH)+1,L,ISLASTBAR,REF(L,LTH),0),C OLOR00CCCC,DOTLINE;N1E:=10;N2E:=10;DISP:=2;KV:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10;P1:=PEAK(1,KV*N1E,1);P2:=PEAK(1,KV*N1E,2);WP1:=PEAKBARS(1,KV*N1E,1);WP2:=PEAKBARS(1,KV*N1E,2);T1E:=TROUGH(2,KV*N2E,1);T2G1:=TROUGH(2,KV*N2E,2);WT1:=TROUGHBARS(2,KV*N2E,1);WT2:=TROUGHBARS(2,KV*N2E,2);TJ1:=P1>T1E AND P2>T2G1 ;ZD:=MAX(T1E,T2G1);ZG:=MIN(P1,P2);LL:=MIN(T1E,T2G1);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4 ),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,DRAWNULL);ZSG:=IF(TJ8,ZG,DRAWNULL);ZSH:=IF(TJ8,HH,DRAWNULL);ZSL:=IF(TJ8,LL,DRAWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA; DRAWTEXT(DISP=2,ZSH,'中枢'),COLORWHITE;趋势高:PLOYLINE(DISP=3,ZIG(1,KV*N1E)),COLORLIBLUE;趋势低:PLOYLINE(DISP=3,ZIG(2,KV*N2E)),COLORLIBLUE;局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);{好}低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);{好}距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1)AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLOR0000AA,LINETHICK4;G:=MA(C,5);D:=MA(C,10);HH8:=REF(H,5)=HHV(H,11);LL8:=REF(L,5)=LLV(L,11);FG01:=BACKSET(HH8,6)>BACKSET(HH8,5) ;FD01:=BACKSET(LL8,6)>BACKSET(LL8,5) ;FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND G>D,FG01,IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND D>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));GP:IF(FG0,H,DRAWNULL),CIRCLEDOT,COLORCYAN;DP:IF(FD0,L,DRAWNULL),CIRCLEDOT,COLORCYAN;GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);DQ:=H<REF(L,1) AND DAY!=REF(DAY,1);GQL:=REF(L,BARSLAST(GQ));DQH:=REF(H,BARSLAST(DQ));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);FGZH:=IF(FGL<=FGL1,FGH2,FGH1);FGZL:=IF(FGH1<FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1)); FDZL:=IF(FDH>=FDH1,FDL2,FDL1);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) ANDL<=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);GPB:IF(G1X,H,DRAWNULL),CIRCLEDOT,COLOR008800,LINETHICK1; DPB:IF(D1X,L,DRAWNULL),CIRCLEDOT,COLOR008800,LINETHICK1; AQ1:=REF(V,1);AQ2:=DVOL;AQ3:=AQ2/AQ1;LNX:=AQ3-REF(AQ3,1);E1:=REF(C,1);E2:=DCLOSE;E3:=(E2-E1)/E1*100;QMX:=E3-REF(E3,1);XGG:=CROSS(LNX,500) AND CROSS(QMX,10);DRAWTEXT(XGG=1,L*0.98,'◇'),COLORCBCBC0;{波浪}PL5:=IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)));{S说明:如果周月以上的选5%转向,如果日线选3%转向,如果日线以下周期选2%转向}PL10:=IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)));{S说明:如果周月以上的选10%转向,如果日线选5%转向,如果日线以下周期选4%转向}PL20:=IF(PERIOD>=7,ZIG(1,10),IF(PERIOD=3,ZIG(1,30),ZIG(1,20)));{S说明:如果周月以上的选15%转向,如果日线选8%转向,如果日线以下周期选7%转向}EN1:=PL5>REF(PL5,1) AND REF(PL5,1)<=REF(PL5,2) ANDREF(PL5,2)<=REF(PL5,3);EX1:=PL5<REF(PL5,1) AND REF(PL5,1)>=REF(PL5,2) ANDREF(PL5,2)>=REF(PL5,3);EN2:=PL10>REF(PL10,1) AND REF(PL10,1)<=REF(PL10,2) ANDREF(PL10,2)<=REF(PL10,3);EX2:=PL10<REF(PL10,1) AND REF(PL10,1)>=REF(PL10,2) ANDREF(PL10,2)>=REF(PL10,3);EN3:=PL20>REF(PL20,1) AND REF(PL20,1)<=REF(PL20,2) ANDREF(PL20,2)<=REF(PL20,3);EX3:=PL20<REF(PL20,1) AND REF(PL20,1)>=REF(PL20,2) ANDREF(PL20,2)>=REF(PL20,3);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*1.02,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFFFF00; DRAWTEXT(EN2 AND ZTJZ5=1,L*1.02,'(C)'),COLORFFFF00;MID20:MA(CLOSE,20),COLOR888888,LINETHICK1;KMA:MA(CLOSE,1),POINTDOT;MID22:MA(CLOSE,22),COLORCBCBC0,LINETHICK1;UPPER:MID22+2*STD(CLOSE,20),COLOR00BBBB,LINETHICK1;LOWER:MID22-2*STD(CLOSE,20),COLORAA00BB,LINETHICK1; {STICKLINE(CLOSE,HIGH,LOW,0.1,1),COLOR0000FF;STICKLINE(CLOSE,CLOSE,CLOSE,4,1),COLOR0000FF;}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);DD:=SMA(K,3,1);DRAWICON(CROSS(C,MID22) AND CROSS(K,DD),L-0.05,1);{共振信号为1号图标,显示红脸};A1A:=MA(C,5);A2A:=MA(C,15);A3A:=MA(C,30);A4A:=CROSS(A1A,A2A);A5A:=CROSS(A2A,A3A);A6A:=CROSS(A1A,A3A);FD11:=A1A>=MA(C,120) AND A2A>=MA(C,120);Q6:=ATAN((MA(C,120)/REF(MA(C,120),1)-1)*100)*57.3;Q7:=ATAN((MA(C,250)/REF(MA(C,250),1)-1)*100)*57.3;麻花:A6A AND COUNT(A4A,3)>=1 AND COUNT(A5A,3)>=1 AND FD11 ANDQ6>0 AND Q7>0,NODRAW;DRAWTEXT(麻花,MID22,'麻花'),COLORYELLOW;中轨:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;上轨:=中轨+3*STD(中轨,13);下轨:=中轨-3*STD(中轨,13);收口大小:=(上轨-中轨)/中轨*100;XD:=上轨>=REF(上轨,1) AND 下轨>=REF(下轨,1);XE:=FILTER(XD=1 AND EXIST(收口大小<2.1,2) AND C>=REF(C,1)*0.981,7); XF:=XD=1 AND EXIST(收口大小<2.1,2) AND C>=REF(C,1)*0.981;XF2:=EXIST(XD=1,3) AND 收口大小<2 AND C>=中轨ANDC>=REF(C,1)*0.981;收口:XF OR XF2,NODRAW;DRAWTEXT(收口,LOWER,'I');P:CROSS(收口,0.1) AND REF(C,1)<=MID22 AND REF(C,2)<=MID22,NODRAW; DRAWTEXT(P,MID22,'I'),LINETHICK2;Q:CROSS(收口,0.1) AND CROSS(MID22*1.001,REF(L,1)),NODRAW; DRAWTEXT(Q,UPPER,'I');{钱袋指标}VAR113:=HHV(HIGH,60);VAR114:=LLV(LOW,30);VAR115:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR116:=(VAR113+VAR114+VAR115)/3;VAR117:=EMA(VAR116,5);K01:=EMA(VAR117,5)*2, COLORFF00FF;D01:=EMA(K01,5), COLORWHITE;J01:=K01*3-D01*2, COLORYELLOW;ENTERLONG:=CROSS(K01,D01);EXITLONG:=CROSS(D01,K01);B01:=(DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),L*0.98,1))*D01*2/3;B02:=IF(TROUGHBARS(3,15,1)=1 AND HIGH>LOW+0.01,20,0);必买:=(B01 AND B02);DRAWICON(必买,L*0.98,38);VAR2X:=TROUGHBARS(3,15,1)<10;VAR3X:=PEAKBARS(3,15,1)<10;VAR4X:=IF(VAR2X=1,50,0);底部:=IF(VAR4X=50,10,0);多头能量:=0;买入J:=IF(底部=10 AND REF(底部,1)=10 AND REF(底部,2)=0,50,0); {买入延迟线:底部,LINETHICK1 ,COLOR00CCFF;}DRAWTEXT(买入J=50,L*0.98,'●'),COLORWHITE;HJ_1A:=CLOSE>REF(CLOSE,4);HJ_2A:=BARSLASTCOUNT(HJ_1A);HJ_3A:=HJ_2A=9;HJ_4A:=HJ_2A=13;HJ_5A:=HJ_2A=18;HJ_6A:=ISLASTBAR AND BETWEEN(HJ_2A,1,8);HJ_7A:=ISLASTBAR AND BETWEEN(HJ_2A,10,12);HJ_8A:=ISLASTBAR AND BETWEEN(HJ_2A,14,17);HJ_9A:=(BACKSET(HJ_4A>0,13) OR BACKSET(HJ_3A>0,9) OR BACKSET(HJ_5A>0,18) OR BACKSET(HJ_6A>0,HJ_2A) ORBACKSET(HJ_7A>0,HJ_2A) OR BACKSET(HJ_8A>0,HJ_2A))*HJ_2A; DRAWTEXT(HJ_9A>0 ANDHJ_9A<18,HIGH*1.01,VAR2STR(HJ_9A,0)),COLOR555555; DRAWTEXT(HJ_9A>0 AND (HJ_2A=9 OR HJ_2A=13 ORHJ_2A=18),HIGH*1.01,VAR2STR(HJ_9A,0)),COLOR009900;HJ_10A:=CLOSE<REF(CLOSE,4);HJ_11A:=BARSLASTCOUNT(HJ_10A);HJ_12A:=HJ_11A=9;HJ_13A:=HJ_11A=13;HJ_14A:=HJ_11A=18;HJ_15A:=ISLASTBAR AND BETWEEN(HJ_11A,1,8);HJ_16A:=ISLASTBAR AND BETWEEN(HJ_11A,10,12);HJ_17A:=ISLASTBAR AND BETWEEN(HJ_11A,14,17);HJ_18A:=(BACKSET(HJ_12A>0,9) OR BACKSET(HJ_13A>0,13) OR BACKSET(HJ_14A>0,18) OR BACKSET(HJ_15A>0,HJ_11A) OR BACKSET(HJ_16A>0,HJ_11A) OR BACKSET(HJ_17A>0,HJ_11A))*HJ_11A; DRAWTEXT(HJ_18A>0 ANDHJ_18A<18,LOW*0.99,VAR2STR(HJ_18A,0)),COLOR555555;DRAWTEXT(HJ_18A>0 AND (HJ_11A=9 OR HJ_11A=13 OR HJ_11A=18),LOW*0.99,VAR2STR(HJ_18A,0)),COLOR990099; 操:=MA(C,5);分界:HHV(操,13),LINETHICK1,COLORAAAAAA,DOTLINE;。

精选经典通达信指标公式源码.doc

精选经典通达信指标公式源码.doc

自用kdj, MACD看透主力,散户看盘,均线变色自动画线指标,该指标自己使用1年以上, 没有未来函数非常稳定,东西是不错的,就看怎样使用了。

指标只是辅助,具体交易要结合大盘和个股情况来看。

{四哥趋势-变色均线和趋势画线主图}{ N:l,100,8 P:0,l,0}ZGD:=HHV(H z60);ZGD2:=CONST(ZGD);ZDD:=LLV(L,60);ZDD2:=CONST(ZDD);GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ・L)+(C・L);明日支撑:=L+(C-GJ);KOH:=L>REF(H,1);KOL:=H<REF(L,1);HIF:=L>REF(H,BARSLAST(KOH)+1);NHIF:=L<=REF(H,BARSLAST(KOH)+1);LIF:=H<REF(L,BARSLAST(KOL)+1);NLIF:=H>=REF(L,BARSLAST(KOL)+1);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CL0SE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORF FFFFF;底部:=LLV(HIGH,30),COLOROOFFOO;AA:=REF(H,N)=HHV(H,2*N+1); AA1:=REF(L Z N)=LLV(L,2*N+1);QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1);CC:=FILTER(QY Z N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) AND L=LLV(L,N+1); DDD: = BARSLAST(CC); DD1:=BARSLAST(CC1);GDTS:=IF(CC z CURRBARSCOUNT z O); DDTS:=IF(CC1Z CURRBARSCOUNT,0); DINGBUTS:=IF(DDD,REF(GDTS Z DDD),GDTS); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); GDCS1:=CONST(DINGBUTS); DDCS1:=CONST(DDTS1);GDCS13:=CONST(REF(HIGH,GDCS1-1)); DDCS13:=CONST(REF(L,DDCS1-1)); DINGBUTS1: = REF(DINGBUTS,DDD+1); DDTS2:=REF(DDTS1,DD1+1);GDCS2:=CONST(DINGBUTS1); DDCS2:=CONST(DDTS2);GDCS23:=CONST(REF(HIGH Z DINGBUTS1-1)); DDCS23:=CONST(REF(L,DDTS2-1));XG1: = BACKSET(ISLASTBAR,GDCS 1); XD1:=BACKSET(ISLASTBAR Z DDCS1);XG2: = BACKSET(ISU\STBAR,DINGBUTS1); XD2: = BACKSET(ISLASTBAR,DDTS2); XDD:=IF(DDCS13<=DDCS23,XD1,XD2);BCG:=SUM(XG1,O); BCD:=SUM(XDD,0);今口阻力:REF(明日阻力,1),NODRAW;今日支撑:REF(明日支撑,1),NODRAW;压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) ,COLORGRE EN,LINETHICK2;低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORBLUE, LINETHICK2;高:=CONST(MAX(MAX(MAX(ZGD2,高点压力),GDCS13),GDCS23));低:=CONST(MIN(MIN(MIN(ZDD2,DDCS23),DDCSC3),低点支撑));ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLOR555555,LINETHICK2;M:=INTPART(3*N/5);AAA:=REF(H,M)=HHV(H,2*M+1);QYY :=BACKSET(AAA, M+l);CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);DDDD:=BARSLAST(CCC),NODRAW;GDTSS: =IF(CCC,CURRBARSCOUNT,0);DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD)Z GDTSS);GDCS11:=CONST(DINGBUTSS);DINGBUTS11:=REF(DINGBUTSS,DDDD+1);GDCS22:=CONST(DINGBUTS11);上缺匚l:=p=0 AND HIF AND BARSU\ST(KOH)<BARSLAST(NHIF)AND BARSLAST(HIF)<BARSLAST(NHIF);HG:=IF(上缺口,REF(H,BARSLAST(KOH)+1),DRAWNULL);STICKLINE(上缺口,HG,HG*1.001,10,0),COLOR888888;下缺口:=p=0 AND LIF AND BARSU\ST(KOL)<BARSLAST(NLIF) AND BARS成ST(LIF) vBARSLAST(NLIF);LG:=IF( F缺口Z REF(L,BARSLAST(KOL)+1),DRAWNULL);STICKLINE(下缺口,LG,LG*0.999,10,0),COLOR888888;高点压力M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORRE D Z LINETHICK1;AA11:=REF(L,M)=LLV(L Z2*M+1);QY11:=BACKSET(AA11,M+1);CC11:=FILTER(QY11Z M) AND L=LLV(L,M+1);DDU:=BARSLAST(CC11);DDTSS:=IF(CCll,CURRBARSCOUNT z O);DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);DDCS11:=CONST(DDTS11);DDTS22:=REF(DDTS11,DD11+1);DDCS22:=CONST(DDTS22);低点支撑M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1) COLORRED,LINETHICK1;STICKLINE(XG2,GDCS23,GDCS23,0.5,l),COLORWHITE;STICKLINE(XG1,GDCS13,GDCS13,0.5,1),COLORYELLOW;STICKLINE(XD2,DDCS23,DDCS23,0.5,l),COLORMAGENTA;STICKLINE(XD1,DDCS13,DDCS13,0.5,1),COLORCYAN;STICKLINE(ISLASTBAR AND C>=今日阻力,今口阻力,今口阻力,10,1),COLOROOOOFF; STICKLINE(ISU\STBAR AND Cv今日阻力,今日阻力,今日阻力,10,1),COLOROOFFOO; STICKLINE(ISLASTBAR AND C>=今日支撑,今Fl 支撑,今日支撑,10,1),COLORFFOOFF; STICKLINE(ISU\STBAR AND Cv今日支撑,今日支撑,今日支撑Z10,1),COLORFF8800; STICKLINE(ISLASTBAR,压力位,压力位,120,0),COLORFFFFFF;STICKLINE(ISLASTBAR,底部位,底部位,iOO z O),COLOROOFFOO;MA5:MA(C,5),COLORWHITE;MA30:MA(C,30);DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOROOFFOO;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,l)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF (X,6)+ 13*REF(X,7)+12*REF(X,8)+ll*REF(X,9)+10*REF(X,10)+9*REF(X,ll)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFFOOFF,LINETHICK1;DD: = ^空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLORBLUE,LINETHICK3;A:=(MA5 > 多空线);IF(A,多空线,DRAWNULL),COLORYELLOW,POINTDOT;Al:=(MA5v 多空线);IF(A1,多空线Z DRAWNULL),COLORWHITE;V1:=CLOSE*VOL;V2:=EMA(V1,13)/EMA(VOL Z13);CYS:=(EMA((CLOSE-V2)/V2,1)*100);AAAA:=CYS;MIDD:=MA(CYS,20);CCCC:=MIDD+0.85*STD(CYS,10);TM6:=AAAA>CCCC;IF(TM6,MA5,DRAWNULL),COLORRED,LINETHICK2;{天翼KDJ指标}N:=9;Ml:=3;M2:=3;低吸区:20,LINETHICK0;STICKLINE(C,19,20,1,0),COLORGREEN;风险区:80,LINETHICK0;STICKLINE(C,79,80,1,0),COLORYELLOW;RSV:=(C-LLV(L,N))/(HHV(H,N)-LLV(L z N))*100;K:SMA(RSV,M1,1),COLORRED,LINETHICK3;D:SMA(K Z M2,1),COLORWHITE Z LINETHICK3;J:3*K-2*D,COLORMAGENTA;DRAWBAND(K/RGB(255z0,0),D,DRAWNULL);吸筹:D<20,COLORYELLOW;STICKLINE(Dv20,D,20,2,0),COLORYELLOW;高抛:D>80,COLORDA8E3D;STICKLINE(D>80,D,80,2,0),COLORDA8E3D;DRAWTEXT(FILTER(吸筹=1,15),35/吸筹'),COLORDA8E3D;DRAWTEXT(FILTER(高抛=1,15),95;高抛'),COLORYELLOW;DRAWICON(CROSS(K,D),D*0.98Z1);DRAWICON(CROSS(D,K),K*1.02,2);{MACD看透主力}VA:=IF(CLOSE>REF(CLOSE,1),VOL 广VOL);OBV1:=SUM(IF(CLOSE=REF(CLOSE/1),0,VA),0);OBV2:=EMA(OBV1,3)・MA(OBV1,9);OBV3:=EMA(IF(OBV2>0,OBV2,0),3);MAC3:=MA(C,3);SHORT: = 12;LONG:=26;MID:=9;DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORYELLOW ;DEA:EMA(DIF,MID)COLORFF9900 ;主力买:IF(DIF>REF(DIF,1),DIF/0),NODRAW;主力卖:IF(DIFvREF(DIF,l),DIF,0),NODRAW;MACD:=(DIF-DEA)*2;STICKLINE(OBV3>REF(OBV3Z1) AND MAC3>REF(MAC3,1),0,MACD,1.2,0),COLORYELLOW; 吸:=MACDvO AND MACD>REF(MACD,1);拉:=MACD>0 AND MACD>REF(MACD Z1);派:=MACD>0 AND MACD<REF(MACD Z1);落:=MACDvO AND MACD<REF(MACD,1);STICKLINE(吸,0,MACD,0.5,0),COLORRED;STICKLINE(拉,0,MACD,0.5,0),COLORRED;STICKLINE(派,0,MACD,0.5,0),COLORGREEN;STICKLINE(落QMACD,0.5,0),COLORWHITE;主力吸筹:吸,COLORYELLOW,NODRAW;主力拉升:拉,COLORRED,NODRAW;主力派送:派,COLORGREEN,NODRAW;主力砸盘:落Z COLORFFAAOO,NODRAW;JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));低位金叉:CROSS(DIF,DEA) AND DIF<-0.1,COLORWHITE,NODRAW;二次金叉:CROSS(DIF,DEA) AND DEA<0 ANDCOUNT(JCCOUNT=2,21)=1,COLORRED,NODRAW;STICKLINE(低位金叉,0,0.08,2,0),COLORFFOOFF;DRAWTEXT(低位金叉,0. 16;低位金叉'),COLORWHITE;A1:=BARSLAST(REF(CROSS(DIF,DEA)Z1));A2:=BARSLAST(REF(CROSS(DEA,DIF),1));底背离:REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) ANDCROSS(DIF Z DEA),COLORGREEN,NODRAW;STICKLINE(底背离,0,0.03,2,0),COLOROOFFOO;DRAWTEXT(底背离,0.12;底背离)COLORFFOOFF;双金叉:低位金叉AND二次金叉,COLORFFOOFF,NODRAW;三全项:低位金又AND二次金又AND底背离,COLORWHITE ,NODRAW;顶背离:=REF(CLOSE,A2+l)vCLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF); STICKLINE(二次金叉,0,0.06,2,0),COLORFFCCOO;DRAWICON(二次金叉,DEA*0.9,l);DRAWTEXT(二次金叉,0.2,'二次金叉*),COLORYELLOW;DRAWTEXT(低位金又AND二次金又AND底背离,0.25;三全项'),COLOROOOOFF,LINETHICK2;IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;IF(DIFvREF(DIF,l),DIF,DRAWNULL),COLORGREEN,UNETHICK2;{散户看盘}散户线:100*(HHV(HIGH,M)・CLOSE)/(HHV(HIGH,M)・LLV(LOW,M));RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5Z1);D:=SMA(K,3,1);J:=3*K.2*D;主力线:EMA(J,6),COLORYELLOW;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),34)*100;VAR4: = EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOWv=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100z100,VAR8);吸筹:STICKLINE(VAR9>・120,0,VAR9,6,1),COLORMAGENTA;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW Z21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:CEILING(SMA(AA5Z13,8)),COLORRED,LINETHICK2;AA6:=SMA(AA3,21,8);买观注:STICKLINE(走势-AA6v・65,0,7,15,1);DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND 走势<25 ,5),走势,1); 卖观注:STICKLINE(走势・AA6>85,98,90,15,1),COLORFFFFOO;DRAWICON(FILTER(JvREF(J,l)AND 走势v=REF(走势,1)AND J>85 ,5),J,2);。

通达信精准的背离主图指标公式Word版

通达信精准的背离主图指标公式Word版

通达信精准的背离主图指标公式高:=CONST(REF(HHV(H,150),3));低:=CONST(REF(LLV(L,150),3));NN:=100;N:=9;LC:=REF(C,1);QC:=REF(C,2);AA:=REF(H,N)=HHV(H,2*N+1);AA1:=REF(L,N)=LLV(L,2*N+1);QY:=BACKSET(AA,N+1);QY1:=BACKSET(AA1,N+1);CC:=FILTER(QY,N) AND H=HHV(H,N+1);CC1:=FILTER(QY1,N) AND L=LLV(L,N+1); DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1); GDTS:=IF(CC,CURRBARSCOUNT,0);DDTS:=IF(CC1,CURRBARSCOUNT,0);UTS:=IF(DDD,REF(GDTS,DDD),GDTS);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); GDCS1:=CONST(UTS);DDCS1:=CONST(DDTS1);GDCS13:=CONST(REF(H,GDCS1-1));DDCS13:=CONST(REF(L,DDCS1-1));SS1:=REF(UTS,DDD+1);TS2:=REF(DDTS1,DD1+1);GDCS2:=CONST(SS1);DDCS2:=CONST(TS2);M:=INTPART(3*N/5);AAA:=REF(H,M)=HHV(H,2*M+1);QYY:=BACKSET(AAA,M+1);CCC:=FILTER(QYY,M) AND H=HHV(H,M+1); DDDD:=BARSLAST(CCC),NODRAW; GDTSS:=IF(CCC,CURRBARSCOUNT,0); TSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS); GDCS11:=CONST(TSS);TS11:=REF(TSS,DDDD+1);GDCS22:=CONST(TS11);AA11:=REF(L,M)=LLV(L,2*M+1);QY11:=BACKSET(AA11,M+1);CC11:=FILTER(QY11,M) AND L=LLV(L,M+1); DD11:=BARSLAST(CC11);DDTSS:=IF(CC11,CURRBARSCOUNT,0); DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS); DDCS11:=CONST(DDTS11);DDTS22:=REF(DDTS11,DD11+1);DDCS22:=CONST(DDTS22);ZGD:=HHV(H,60)*1.01.00;ZGD2:=CONST(ZGD);高压M:=DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBA RSCOUNT=GDCS11,H,1),COLORRED,LINETHICK1;低撑M:=DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBA RSCOUNT=DDCS11,L,1) COLORRED,LINETHICK1;高压1:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBAR SCOUNT=GDCS1,H,1) ,COLORBLUE,LINETHICK1;低撑1:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARS COUNT=DDCS1,L,1),COLORBLUE,LINETHICK1;高点:=CONST(HHV(H,NN));低点:=CONST(LLV(L,NN));{背景变色}R1:=C>LC AND C>QC;R2:=REF(R1,1) AND C=QC;R3:=REF(R2,1) AND C>=LC AND CR4:=REF(R3,1) AND C=QC;R5:=REF(R4,1) AND C>=LC AND CR6:=REF(R5,1) AND C=QC;R7:=REF(R6,1) AND C>=LC AND CR8:=REF(R7,1) AND C=QC;R9:=REF(R8,1) AND C>=LC AND CRA:=REF(R9,1) AND C=QC;RB:=REF(RA,1) AND C>=LC AND CRC:=REF(RB,1) AND C=QC;RD:=CRE:=REF(RD,1) AND C>=LC AND CRF:=REF(RE,1) AND C=QC;R10:=REF(RF,1) AND C>=LC AND CR11:=REF(R10,1) AND C=QC;R12:=REF(R11,1) AND C>=LC AND CR13:=REF(R12,1) AND C=QC;R14:=REF(R13,1) AND C>=LC AND CR15:=REF(R14,1) AND C=QC;R16:=REF(R15,1) AND C>=LC AND CR17:=REF(R16,1) AND C=QC;R18:=REF(R17,1) AND C>=LC AND CR19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 ORR13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);V AR3:=IF(CV AR4:=(H+LC)/3;V AR5:=EMA((O+H+L+C)/4,2330);V AR6:=(V AR5 + ((V AR5 * 6) / 100));短买:R19,NODRAW,COLOR00AAAA;离场:R1A,NODRAW,COLORFF7700;持股:R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,NODRAW,COLOR8000FF;观望:RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 ORR18,NODRAW,COLOR767628;超跌:=(C-MA(C,34))/MA(C,34)*100Q1:=CONST(IF(短买,100,IF(离场,0,IF(持股,100,IF(超跌,150,40))))),NODRAW;Q2:=CONST(IF(短买,100,IF(离场,66,IF(持股,0,IF(超跌,150,118))))),NODRAW;Q3:=CONST(IF(短买,0,IF(离场,132,IF(持股,50,IF(超跌,150,118))))),NODRAW;DRAWBAND(高点,RGB(Q1,Q2,Q3),低点,DRAWNULL);C1:=IF(短买,短买,DRAWNULL),;C2:=IF(离场,离场,DRAWNULL),;{DDE金指N: 1, 999, 13;}JH:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)), 6,1)*100;SZ:=FILTER(CROSS(JH,35),13);SX:=FILTER(CROSS(JH,30),7);SQ:=FILTER(CROSS(71,JH),74);SD:=FILTER(CROSS(80,JH),74);CCL:=REF(HHV(C,120),1);DD:=REF(LLV(C,120),1);WW:=100*(C-DD)/(CCL-DD);EE:=AMOUNT;FF:=(EMA(EE,5)/REF(EMA(EE,5),5));低买:IF(CAPITAL变盘:FILTER(OO ANDV>REF(V,1),13),COLORFF88FF,NODRAW;霸占:=FILTER((FF>=2 AND WW30 OR (FF>=2 AND WW 顶部:=IF(CAPITAL持股K:C>REF(C,1),COLOR0099FF,NODRAW;持币K:C平盘:=C=REF(C,1),COLOR999999,NODRAW;STICKLINE(持股K,H,L,3,1),COLOR0099FF;STICKLINE(持股K,C,O,1.5,0),COLOR0099FF; STICKLINE(持币K,H,L,3,1),COLORFF9900;STICKLINE(持币K,C,O,1.5,0),COLORFF9900; STICKLINE(平盘,H,L,3,1),COLOR999999;STICKLINE(平盘,C,O,1.5,0),COLOR999999;STICKLINE(霸占,H,L,3,1),COLOR0000CC;STICKLINE(霸占,C,O,1.5,0),COLOR0000CC; STICKLINE(变盘,H,L,3,1), COLORFF88FF;STICKLINE(变盘,C,O,1.5,0),COLORFF88FF;STICKLINE(低买,H,L,3,1),COLOR22FFFF;STICKLINE(低买,C,O,1.5,0),COLOR22FFFF;STICKLINE(顶部,H,L,3,1),COLOR00CC00;STICKLINE(顶部,C,O,1.5,0),COLOR00CC00;趋势线:=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),COLORBCBC00,NOD RAW;ZZ:=趋势线>REF(趋势线,1);{阻力支撑}QWX1:=HHV(C,30);QWX2:=LLV(C,30);QWX3:=CONST((QWX1+QWX2)/2);QWX4:=ABS((2*C+H+L)/4-MA(C,20))/MA(C,20);QWX5:=CONST((1-7/100)*(DMA(C,QWX4)));QWX6:=CONST((1+7/100)*(DMA(C,QWX4)));阻力:IF(BARSLAST(CURRBARSCOUNT=12),QWX6,DRAWN ULL),COLORFF9D3C,LINETHICK1,CIRCLEDOT;支撑:IF(BARSLAST(CURRBARSCOUNT=12),QWX5,DRAWN ULL),COLORFF00FF,LINETHICK1,CIRCLEDOT;{最佳买入选股}RSI5:=(SMA(MAX((C-LC),0),5,1)/SMA(ABS((C-LC)),5,1))*1 00;TR1:=SUM(MAX(MAX((H-L),ABS(H-REF(C,1))),ABS(L-RE F(C,1))),10);HD:=H-REF(H,1);LD:=REF(L,1)-L;DMP:=SUM(IF((HD>0 AND HD>LD),HD,0),10);DMM:=SUM(IF((LD>0 AND LD>HD),LD,0),10);PDI:=DMP*100/TR1;MDI:=DMM*100/TR1;ADX:=MA((ABS((MDI-PDI)/(MDI+PDI))*100),5);A V:=RSI5+ADX;DXR:=(ADX+REF(ADX,5)/2)+RSI5;WR10:=(100*(HHV(H,10)-C))/(HHV(H,10)-LLV(L,10)); NEWVOL:=RSI5-WR10;最佳买入:=A V+NEWVOL;J:="KDJ.J";X:=LLV(J,2)=LLV(J,8);买入时机:=(CROSS(J,3));佳选A:=CROSS(最佳买入,0);{DIF综合抓牛}RSIA:=(SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100)/ 100;WR:=-100*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14));反向:=((0-WR)-100)/100,;角度差:=1-(反向/RSI);角度2:=MA(角度差,2);角度4:=MA(角度差,4);角度差A:=角度差>MA(角度差,3)*1.3;转向:=REF(角度差,1)REF(角度差,1) AND REF(角度差,1) SS:=COUNT(转向,4)>0 OR COUNT(角度差A,4)>0;DIF买:=CROSS(角度2,角度4) AND SS,COLOR0088FF; {精准买点}CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(V,13); CYS:=(C-CYC13)/CYC13*100;逢低买入:=IF("ZXNH.ZXNH"=1 AND CYS抓牛A:=DIF买&&逢低买入;到:=(HHV(H,21)-C)/(HHV(H,21)-LLV(L,21))*100-10;底:=(C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;啦:=SMA(底,13,8);哈:=CEILING(SMA(啦,13,8));哈哈:=SMA(到,21,8);差:=哈-哈哈,COLORFFFFFF;RC1:=REF((L+O+C+H)/4,1);RC2:=SMA(ABS(L-RC1),13,1)/SMA(MAX(LOW-RC1,0),10,1 );RC3:=EMA(RC2,10);RC4:=LLV(L,33);RC5:=EMA(IF(L建仓:=IF(RC5>REF(RC5,1),RC5,0);洗:=IF(RC5启动A:=FILTER(REF(差,1)REF(差,1) AND (建仓OR 洗),3); {乖离破底}X3:=(2*C+L+H)/4;地:=EMA(X3,55)*0.84,;乖离5:=(C-MA(C,5))/MA(C,5)*100,NODRAW;乖离A:=FILTER(LREF(乖离5,1),3);趋势:=7*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*30,4,1) -3*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*30,4,1 ),3,1)-SMA(SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*30 ,4,1),3,1),2,1);天线:=78.89;逃顶:=CROSS(天线,趋势);低吸A:=CROSS(趋势,5);{内能线}ZF:=((C-REF(C,1))/REF(C,1))*100;HSL:=(V/CAPITAL)*100;KK:=ZF/HSL,COLOR6000FF;KK5:=MA(KK,5),COLORFFAA00;LL:=LLV(KK,34);内能买A:=CROSS(KK,KK5)&&REF(KK,1){包赚不赔}止跌:=(REF(EVERY(CO);V AR1N:=MA(C,5),;V AR2N:=MA(C,10);V AR3N:=(V AR1N-C)/C>3/100;V AR4N:=(V AR2N-V AR1N)/V AR1N>0.03;V AR5N:=LLV(C,30)=LLV(C,120);底部:=V AR3N AND V AR4N AND V AR5N;包赚A:=BARSLAST(底部){深坑挖金}A:=REF(C,1);RSIK:=SMA(MAX(C-A,0),6,1)/SMA(ABS(C-A),6,1)*100;A4:=RSIAZZF:=(C/REF(C,1)-1)*100;深坑1:=IF(BETWEEN(A4,0,5) AND LCD:= C>=O AND REF(深坑1 ,1)=20 AND REF(RSI,1)深坑A:=C>O AND REF(深坑1 ,1)=20 AND REF(RSI,1)深坑★:IF(深坑A,L*1.005,DRAWNULL)COLOR55FF55,CIRCLEDOT,LINE THICK5;佳选★:IF(佳选A,L*0.995,DRAWNULL)COLORFF88FF,CIRCLEDOT,LINE THICK4;启动★:IF(启动A,L*0.99,DRAWNULL)COLORFFFF00,CIRCLEDOT,LINETHICK4;抓牛★:IF(抓牛A,L*0.985,DRAWNULL)COLOR0088FF,CIRCLEDOT,LINET HICK4;乖离底★:IF(乖离A,L*0.98,DRAWNULL)COLORFFFFFF,CIRCLEDOT,LINET HICK4;内能买★:IF(内能买A,L*0.975,DRAWNULL)COLOR0000FF,CIRCLEDOT,LINET HICK4;低吸★:IF(低吸A,L*0.97,DRAWNULL)COLOR00FFFF,CIRCLEDOT,LINET HICK4;包赚★:IF(包赚A,L*0.965,DRAWNULL)COLORFF00FF,CIRCLEDOT,LINE THICK4;B01:=IF(佳选A,1,0);B02:=IF(启动A,1,0);B03:=IF(抓牛A,1,0);B04:=IF(乖离A,1,0);B05:=IF(内能买A,1,0);B06:=IF(低吸A,1,0);B07:=IF(包赚A,1,0);B08:=IF(深坑A,1,0);【共振】:B01+B02+B03+B04+B05+B06+B07+B08,COLOR00FFF F,NODRAW;DRAWICON(【共振】>=4,H*1.008,34);持币线:EMA(C,13),COLOR32E01F,LINETHICK3;持股线:IF(持币线>REF(持币线,1),持币线,DRAWNULL),COLOR460CF3,LINETHICK3;{画线}IF(BETWEEN(高压M,高点,低点),高压M,DRAWNULL),COLOR00CCFF,LINETHICK1;IF(BETWEEN(低撑M,高点,低点),低撑M,DRAWNULL),COLOR00CCFF,LINETHICK1;IF(BETWEEN(高压1,高点,低点),高压1,DRAWNULL),COLORCCCCCC,LINETHICK1;IF(BETWEEN(低撑1,高点,低点),低撑1,DRAWNULL),COLORCCCCCC,LINETHICK1;中:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORFF FFFF;V AR326:=IF(C AND MA(VOL,5)/240 AND C>LC*1.0 AND C,88,0);V AR327:=IF(C/LC>1.050 AND VOL/CAPITAL*1000, 91, 0); DRAWTEXT(V AR327>90,L*0.993,'↖杀庄'),COLOR00FFFF; {背离}RSI:=(SMA(MAX((C-LC),0),3,1)/SMA(ABS((C-LC)),3,1))*10 0;FFF:=EMA(C,3);MA15:=EMA(C,21);顶背:=CROSS(88,RSI);DRAWTEXT(CROSS(FFF,MA15),L,'←底背'),COLORFF88FF;CCI:="CCI";CCI3:=MA(CCI,3);CCI7:=MA(CCI,7);头:=CROSS(CCI3,CCI) AND (CCI>130);STICKLINE(头,H*1.005,H*1.01,4,0),COLOR00CC00; DRAWTEXT(头,H*1.01,'头'),COLORFFFFFF;STICKLINE(逃顶,H*1.01,H*1.015,4,0),COLORFFFFFF;卖出警报:=(头AND 顶背),COLOR0000FF;STICKLINE(卖出警报,H*1.016,H*1.025,4,0),COLOR0000FF; DRAWTEXT(卖出警报,H*1.028,'空仓'),COLORFFFFFF; DRAWICON(顶背,H*1.016,8);DRAWTEXT(顶背,H*1.02,'←顶背'),COLOR98FF75;DRAWTEXT_FIX(1,0.92,0.01,0,STRCAT(STRCAT('【共振】',CON2STR(【共振】,1)),' ')),COLOR00FFFF;。

通达信主图鳄鱼线(附源码)

通达信主图鳄鱼线(附源码)

通达信主图鳄鱼线(附源码)通达信主图鳄鱼线(附源码)趋势:FORCAST(C,13),COLORFFFFFF,LINETHICK1;七:MA(C,7),COLOR00FFFF,LINETHICK2;涨:IF(MA(CLOSE,7)>REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAW NULL),COLORRED,LINETHICK2;平:IF(MA(CLOSE,7)=REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAW NULL),COLOR00FFFF,LINETHICK3;跌:IF(MA(CLOSE,7)<REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAW NULL),COLORGREEN,LINETHICK2;C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;乖离线:=((C-REF(COST(90),1))/20+250)*1.20;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(突破盘整,L-0.10,1);VAR1:=(H+L)/2;上唇:REF(SMA(VAR1,5,1),3),COLORGREEN,LINETHICK1;牙齿:REF(SMA(VAR1,8,1),5),COLORRED,LINETHICK1,CROSSDOT;下颚:REF(SMA(VAR1,13,1),8),COLORBLUE,LINETHICK4,POINTDOT;注:平台目前更新的有关公式源码,(会有收费,捡漏勿扰,该主图为孤品66元可得)(全部支持电脑手机),使用过程中,若有不懂,可以及时联系我们这边,帮忙处理,,喜欢加关注,感谢点赞支持,后市若有可期,希望越来越好!。

【通达信指标】波段收渔利主图指标源码?

【通达信指标】波段收渔利主图指标源码?

【通达信指标】波段收渔利主图指标源码通达信波段收渔利主图指标源码涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,2.0,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;X1:=(REFDATE(HHV(HIGH,60),DATE)-REFDATE(LLV(LOW,60),DATE))/50;X2:=REFDATE(LLV(LOW,60),DATE)+X1;DI:=EMA(C,12)-EMA(C,26);DE:=EMA(DI,9);M:=(DI-DE)*4+X2;DRAWBAND(M,RGB(255,0,0),X2,RGB(0,255,250));叉:=CROSS(DI,DE) AND DI<-0.1;DRAWICON(叉,X2*0.99,15) ;DRAWTEXT(叉,X2*0.98,'鱼头'),COLOR00FFFF;CBFB:=MA(C,2);JL:=IF(C>CBFB,V,0);CL:=IF(C<CBFB,V,0);JLH:=SUM(JL,4);CLH:=SUM(CL,4);LHB:=CLH/JLH;TJ1:=IF(HHV(LHB,5)>4 AND CROSS(2,LHB) AND C>=O,1,0);DRAWICON(TJ1,L*0.96,9);ZT:=C/REF(C,1)>1.097;DRAWTEXT(ZT,L*0.98,'涨停'),COLORRED;VARZT:=BARSLAST(C/REF(C,1)>1.097);VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.895,'↑大资金活动'),LINETHICK1,COLORYELLOW;AA1:=EMA(C,14)COLORWHITE,LINETHICK1;A1X:=(AA1-REF(AA1,1))/REF(AA1,1)*100,NODRAW;坐等收渔利:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRA WNULL)COLORRED,LINETHICK3;去找其他股:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+0.5),DRA WNULL)COLORGREEN,LINETHICK1;量顶:=FILTER(V>0.9*HHV(V,150),3)=1;DRAWTEXT(量顶,1.06*H,'减'),COLORFFAA00;DRAWTEXT(量顶,1.02*H,'仓'),COLORFFAA00;MA11:=EMA(C,5),COLOR0000FF,LINETHICK1;MA22:=REF(MA11,1),COLORFFFFFF;MA33:=EMA(EMA(C,7),4),COLOR00FFFF,LINETHICK1;DRAWBAND(MA11,RGB(255,0,0),MA22,RGB(0,255,0));DRAWBAND(MA22,RGB(255,0,255),MA33,RGB(0,0,255));线没了数钱:IF(ZIG(MA((H+L)/2,3),3)>REF(ZIG(MA((H+L)/2,3),3),1),ZIG(MA( (H+L)/2,3),3),DRAWNULL),COLORYELLOW,LINETHICK4;重要提示:上涨周期:激进的投资者参考5日均线,稳健的投资者参考10日均线,保守的投资者参考30日均线;震荡周期:激进的投资者参考10日均线;稳健的投资者参考20日均线,保守的投资者参考60日均线。

文华鳄鱼分形指标

文华鳄鱼分形指标

//{混沌分形主图}TMP:=OPEN-CLOSE;DRAWLINE(TMP>0.0001,HIGH,TMP>0.0001,OPEN,COLORCYAN); DRAWLINE(TMP>0.0001,LOW,TMP>0.0001,CLOSE,COLORCYAN); DRAWLINE(TMP<-0.0001,HIGH,TMP<-0.0001,CLOSE,COLORRED); DRAWLINE(TMP<-0.0001<CLOSE,LOW,TMP<-0.0001,OPEN,COLORRED); DRAWLINE(ABS(TMP)<0.0001,LOW,ABS(TMP)<0.0001,OPEN,COLORWHITE); DRAWLINE(ABS(TMP)<0.0001,HIGH,ABS(TMP)<0.0001,OPEN,COLORWHITE); STICKLINE(TMP>0,OPEN,CLOSE,COLORCYAN,0);STICKLINE(TMP<=0,OPEN,CLOSE,COLORRED,1);VAR1:=HIGH>=REFX(HIGH,1) && HIGH>=REFX(HIGH,2) && HIGH=HHV(HIGH,3);VAR2:=LOW<=REFX(LOW,1) && LOW<=REFX(LOW,2) && LOW = LLV(LOW,3); STICKLINE(VAR1,OPEN,CLOSE,COLORMAGENTA,0);STICKLINE(VAR2,OPEN,CLOSE,COLORGREEN,0);STICKLINE(CROSS(HIGH,REF(HIGH,BARSLAST(VAR1))),REF(HIGH,BARSLAST (VAR1)),1.002*REF(HIGH,BARSLAST(VAR1)),COLORWHITE,0);STICKLINE(CROSS(REF(LOW,BARSLAST(VAR2)),LOW),REF(LOW,BARSLAST(V AR2)),0.998*REF(LOW,BARSLAST(VAR2)),COLORYELLOW,0);DRAWTEXT(VAR1,1.02*HIGH,'----');DRAWTEXT(VAR2,1.02*LOW,'----');DRAWTEXT(CROSS(HIGH,REF(HIGH,BARSLAST(VAR1))),1.004*REF(HIGH,BA RSLAST(VAR1)),'涨');DRAWTEXT(CROSS(REF(LOW,BARSLAST(VAR2)),LOW),1.004*REF(LOW,BARS LAST(VAR2)),'跌');文华财经用鳄鱼线指标(主图)var1:=(HIGH+LOW)/2;Lip:REF(SMA(var1,5,1),3),COLORGREEN;Tooth:REF(SMA(var1,8,1),5),COLORRED;Jaw:REF(SMA(var1,13,1),8),COLORBLUE;//{平衡线}P1:=REF(HIGH,1)>HIGH AND REF(HIGH,1)>Jaw;BBUY:REF(REF(HIGH,1),BARSLAST(P1)),COLORWHITE;STICKLINE(CROSS(HIGH,BBUY) AND LOW>BBUY,(HIGH+LOW)/2,(HIGH+LOW)/2,COLORWHITE,0);STICKLINE(CROSS(HIGH,BBUY) AND LOW<=BBUY,BBUY,BBUY,COLORWHITE,0);P2:=REF(LOW,1)<LOW AND REF(LOW,1)<Jaw;BSELL:REF(REF(LOW,1),BARSLAST(P2)),COLORMAGENTA;STICKLINE(CROSS(BSELL,LOW) AND HIGH<BSELL,(HIGH+LOW)/2,(HIGH+LOW)/2,COLORMAGENTA,0); STICKLINE(CROSS(BSELL,LOW) AND HIGH>=BSELL,BSELL,BSELL,COLORMAGENTA,0);ho:=HIGH>REF(HIGH,1) AND HIGH>REF(HIGH,2) AND HIGH>=REFX(HIGH,1) ANDIFELSE(HIGH=REFX(HIGH,2),HIGH>REFX(HIGH,3),HIGH>REFX(HIGH,2)); fxh:=CROSS(ho,0.9);hh:=REF(HIGH,BARSLAST(fxh));lo:=LOW<REF(LOW,1) AND LOW<REF(LOW,2) AND LOW<=REFX(LOW,1) AND IFELSE(LOW=REFX(LOW,2),LOW<REFX(LOW,3),LOW<REFX(LOW,2));fxl:=CROSS(lo,0.9);ll:=REF(LOW,BARSLAST(fxl));//DRAWSL(ll,LOW,0,2,0, COLORGREEN);//DRAWSL(hh,HIGH,0,2,0, COLORRED);//SFX: hh, POINTDOT,ColorEA91B5;STICKLINE(CLOSE,hh,hh,COLORRED,0);//XFX: ll, POINTDOT,Color3791B5;STICKLINE(CLOSE,ll,ll,COLORYELLOW,0);Y:=(HIGH+LOW)/2;//AO:=MA(Var1,5)-MA(Var1,34);AC:=MA(Y,5)-MA(Y,34)-MA(MA(Y,5)-MA(Y,34),5);ac1:=REF(AC,1);//{STICKLINE(AC>ac1,20,ac+20,8,0),colorRED;}//{STICKLINE(AC<ac1,20,ac+20,8,0),colorgreen;}Var1:=(HIGH+LOW)/2;AO:=MA(Var1,5)-MA(Var1,35);ao1:=REF(AO,1);//{STICKLINE(Ao>ao1,0,ao,8,0),colorRED;}//{STICKLINE(Ao<ao1,0,ao,8,0),colorgreen;}STICKLINE(AC>ac1 AND AO>ao1,HIGH,LOW,COLORRED,0);m:=IFELSE(CLOSE>OPEN,0,1);STICKLINE(AC>ac1 AND AO>ao1 AND CLOSE<OPEN,CLOSE,OPEN,colorred,1); STICKLINE(AC>ac1 AND AO>ao1 AND CLOSE>OPEN,CLOSE,OPEN,colorred,0); STICKLINE(AC>ac1 AND AO<ao1 OR AC<ac1 AND AO>ao1,HIGH,LOW,COLORLIGHTGREY,0);STICKLINE((AC>ac1 AND AO<ao1 OR AC<ac1 AND AO>ao1) AND CLOSE>OPEN,CLOSE,OPEN,COLORLIGHTGREY,0);STICKLINE((AC>ac1 AND AO<ao1 OR AC<ac1 AND AO>ao1) ANDCLOSE<OPEN,CLOSE,OPEN,COLORLIGHTGREY,1);STICKLINE(AC<ac1 AND AO<ao1,HIGH,LOW,COLORGREEN,0);STICKLINE(AC<ac1 AND AO<ao1 AND CLOSE>OPEN,CLOSE,OPEN,COLORGREEN,0);STICKLINE(AC<ac1 AND AO<ao1 AND CLOSE<OPEN,CLOSE,OPEN,COLORGREEN,1);R1:=REF(SMA(Y,8,1),5);R2:=IFELSE(C<R1,0,R1);R3:=IFELSE(C>R1,0,R1);//{========AO及AC方向========}DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC>REF(AC,1),1.0004*R1,'↑↑');DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC<REF(AC,1),1.0004*R1,'↓↓');DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC<REF(AC,1),1.0004*R1,'↑↓');DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC>REF(AC,1),1.0004*R1,'↓↑');文华财经用AC指标(副图)//{ Chaos Accelerator/Decelerator Oscillator }//{ Measures acceleration -AC}//{ Plot AS histogram }Y:=(HIGH+LOW)/2;AC:=MA(Y,5)-MA(Y,34)-MA(MA(Y,5)-MA(Y,34),5);//{Put in the same window AND plot green}ACGreen:IFELSE(AC>REF( AC,1) ,AC,0 ),COLORRED;STICKLINE(AC<REF(AC,1),0,AC,COLORGREEN,1);//{Put in its on window AS a histogram AND plot red}ACRed:IFELSE(AC<REF( AC,1) ,AC,0 ),COLORGREEN;STICKLINE(AC>REF(AC,1),0,AC,COLORRED,1);ac1:=REF(AC,1);buy1:=REF(AC,3)<REF(ac1,3) AND REF(AC,2)<REF(ac1,2) AND REF(AC,2)<REF(AC,3) AND REF(AC,1)>REF(ac1,1) AND AC>ac1 AND COUNT(AC>0,4)=4;// {REF(AC,3)>0 AND REF(AC,1)>0 AND REF(AC,2)>0 AND AC>0};//DRAWICON(buy1,AC,4);DRAWTEXT(buy1,AC, 'B'),COLORWHITE;buy2:=COUNT(AC<0,4)=4 AND REF(AC,3)<REF(ac1,3) AND COUNT(AC>ac1,3)=3;//DRAWICON(buy2,AC,4);DRAWTEXT(buy2,AC, 'B'),COLORWHITE;buy3:=REF(AC,3)<REF(ac1,3) AND REF(AC,2)<REF(ac1,2) AND REF(AC,2)<REF(AC,3) AND COUNT(AC>ac1,2)=2 AND REF(AC,1)<0 AND AC>0;//DRAWICON(buy3,AC,4);DRAWTEXT(buy3,AC, 'B'),COLORWHITE;buy4:=REF(AC,4)<REF(ac1,4) AND REF(AC,3)<REF(ac1,3) AND REF(AC,3)<REF(AC,4) AND COUNT(AC>ac1,3)=3 AND REF(AC,1)<0 AND AC>0;//DRAWICON(buy4,AC,4) ALIGN0;DRAWTEXT(buy4,AC, 'B'),COLORWHITE;s1:=REF(AC,3)>REF(ac1,3) AND REF(AC,2)>REF(ac1,2) AND REF(AC,2)>REF(AC,3) AND REF(AC,1)<REF(ac1,1) AND AC<ac1 AND COUNT(AC<0,4)=4;// {REF(AC,3)<0 AND REF(AC,1)<0 AND REF(AC,2)<0 AND AC<0};//DRAWICON(s1,AC,5);DRAWTEXT(s1,AC, 'S'),COLORWHITE;s2:=COUNT(AC>0,4)=4 AND REF(AC,3)>REF(ac1,3) AND COUNT(AC<ac1,3)=3;//DRAWICON(s2,AC,5);DRAWTEXT(s2,AC, 'S'),COLORWHITE;s3:=REF(AC,3)>REF(ac1,3) AND REF(AC,2)>REF(ac1,2) AND REF(AC,2)>REF(AC,3) AND COUNT(AC<ac1,2)=2 AND REF(AC,1)>0 AND AC<0;//DRAWICON(s3,AC,5);DRAWTEXT(s3,AC, 'S'),COLORWHITE;s4:=REF(AC,4)>REF(ac1,4) AND REF(AC,3)>REF(ac1,3) AND REF(AC,3)>REF(AC,4) AND COUNT(AC<ac1,3)=3 AND REF(AC,1)>0 AND AC<0;//DRAWICON(s4,AC,5) ALIGN0;DRAWTEXT(s4,AC, 'S'),COLORWHITE;文华财经用AO指标(副图)Y:=(HIGH+LOW)/2;AO:=MA(Y,5)-MA(Y,34);AOGreen:IFELSE(AO>REF(AO,1),AO,0),COLORRED;STICKLINE(AO>=REF(AO,1),0,AO,COLORRED,1);AORed:IFELSE(AO<REF( AO,1),AO,0),COLORGREEN;STICKLINE(AO<REF(AO,1),0,AO,COLORGREEN,1);SignalLine:MA(AO,5),COLORBLUE;s1:=CROSS(0,AO);//DRAWICON(s1,AO,5),ALIGN0; //文华此函数绘图不佳DRAWTEXT(s1,AO,'S'),COLORWHITE;//----------------------------以上是下穿0信号;s2:=AO<0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);//DRAWNUMBER(1>0,ao,lu2,0);//DRAWICON(s2,AO,5),ALIGN0;DRAWTEXT(s2,AO,'S'),COLORWHITE;//-----------------------------以上碟型卖出信号;scount:=BARSLAST(AO<0);//上一次ao>0后到现在的周期数;//DRAWNUMBER(1>0,ao-0.1,scount,0);sd:=HHV(AO,scount);//求上面周期的最大ao;scountd:=HHVBARS(AO,scount);//求最大值到现在的周期数;//DRAWNUMBER(1>0,ao-0.3,scountd,0);s3:=AO>0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);//满足峰的条件; s31:=COUNT(s3,scountd);//满足上面条件的次数;//DRAWNUMBER(1>0,ao-0.5,s31,0);//DRAWICON(s31>=2 AND s3,AO,5),ALIGN0;DRAWTEXT(s31>=2 AND s3,AO,'S'),COLORWHITE;//----------------------------以上是双峰卖出信号;b1:=CROSS(AO,0);//DRAWICON(b1,AO,4),ALIGN0;DRAWTEXT(b1,AO,'B'),COLORWHITE;//----------------------------以上是上穿0信号;b2:=AO>0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1) ;//DRAWNUMBER(1>0,AO,lu2,0);//DRAWICON(b2,AO,4),ALIGN0;DRAWTEXT(b2,AO,'B'),COLORWHITE;//-----------------------------以上碟型买入信号;bcount:=BARSLAST(AO>0);//上一次ao>0后到现在的周期数;//DRAWNUMBER(1>0,ao-0.1,bcount,0);bd:=LLV(AO,bcount);//求上面周期的最小ao;bcountd:=LLVBARS(AO,bcount);//求最小值到现在的周期数;//DRAWNUMBER(1>0,AO-0.3,bcountd,0);b3:=AO<0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1);//满足峰的条件; b31:=COUNT(b3,bcountd);//满足上面条件的次数;//DRAWNUMBER(1>0,ao-0.5,lu31,0);//DRAWICON(b31>=2 AND b3,AO,4),ALIGN0;DRAWTEXT(b31>=2 AND b3,AO,'B'),COLORWHITE;//----------------------------以上是双峰买进信号;。

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

鲨鱼线是结合了不规则分形几何学和非线性动力学的时间框架线有蓝、红、绿三条。

蓝线,是鲨鱼的颚。

红线,是鲨鱼的牙齿。

绿线,是鲨鱼的上唇。

基本上,无论实时价格往任何方向移动,鲨鱼线扮演着使我们的交易保持正当方向的罗盘角色。

而且,鲨鱼线会协助我们在有方向的趋势中获利。

并且将这个获利持续到会吃掉我们利润的盘整趋势出现为止。

当蓝、红、绿三条线纠缠在一起时,表示鳄鱼他睡着了。

当他从长时间的睡眠中醒来时,会十分饥饿。

而且进一步的追捕价格,以填满他的胃,直到他得到满足。

然后,他开始闭上嘴巴,并且丧失了进食的兴趣。

只要嘴巴开始闭起来,就是告诉我们:取得利润。

并等待。

观察鲨鱼是否将打个盹儿?
所以,当鲨鱼睡觉时,我们通常会逗留在市场外,并且等待。

直到有个分形在下颚外被触发为止。

他能让我们远离波动不定的市场,并使我们能进入重要且趋势明显的市场中。

亦即价格向上或向下突破分形时,便是你从趋势中开始获利的时候。

趋势:FORCAST(C,13),COLORFFFFFF,LINETHICK1;
七:MA(C,7),COLOR00FFFF,LINETHICK2;
涨:IF(MA(CLOSE,7)>REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORRED,LINETH ICK2;
平:IF(MA(CLOSE,7)=REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLOR00FFFF,LINE THICK3;
跌:IF(MA(CLOSE,7)<REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORGREEN,LINE THICK2;
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
乖离线:=((C-REF(COST(90),1))/20+250)*1.20;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
pp:=W4 AND COUNT(W4,5)=1;
DRAWTEXT(pp,L-0.10,1);
VAR1:=(H+L)/2;
上唇:REF(SMA(VAR1,5,1),3),COLORGREEN,LINETHICK1;
牙齿:REF(SMA(VAR1,8,1),5),COLORRED,LINETHICK1,CROSSDOT; 下颚:REF(SMA(VAR1,13,1),8),COLORBLUE,LINETHICK4,POINTDOT;。

相关文档
最新文档