通达信指标——波段(主图)
通达信最佳波段直观的波段+抄底副图指标(副图指标源码贴图)
通达信最佳波段直观的波段+抄底副图指标(副图指标源码贴图)
最佳波段 直观的波段+抄底副图指标
{波段+抄底副图}
DRAWGBK(C>0, RGB(40,120,20),RGB(00,00,00),0,'11',1);
T:0, POINTDOT;
VAR2:=MA(CLOSE, 5);
洗盘:STICKLINE(VAR7<1*REF(VAR7, 1) AND VAR9>1*REF(VAR9, 1), VAR7, VAR9, 10, 0),
COLOR00EEFF;
VAR10:=(CLOSE-MA(CLOSE, 58))/MA(CLOSE, 58)*100;
VAR11:=(VAR10>1*REF(VAR10, 1) AND VAR10<-26 AND VAR10>-40)*1.5;
VAR23:=REF(CLOSE, 13)*0.772;
VAR24:=MIN(VAR22, VAR23);
VAR25:=MA(CLOSE, 13);
抄底王:IF((CLOSE-VAR24)/CLOSE<0.030 AND VAR17<(-35) AND SUM(VAR12, 5)/5<1.800, 1
DRAWTEXT(VAR27<(-50) AND VAR26>7 AND VAR27<VAR28, (-14), '底'), COLORWHITE;
DRAWTEXT(VAR27<(-50) AND VAR26>7 AND VAR27>=VAR28, 5, '追'), COLORRED;
通达信自编波段高点自动划线公式(主图)
通达信自编波段高点自动划线公式(主图){高低点定自动连线}N:=10;M:=9;X1:=DRAW LINE (HIGH=HHV(HIGH,N),HIGH,LOW=LLV(LOW,M),LOW,0);X2:=DRAWLINE(LOW=LLV(LOW,M),LOW,HIGH=HHV(HIGH, N),HIGH,0);YDD1:=LOW=LLV(LOW,M) AND X1=X2;DDTS:=BARSLAST(YDD1);YGD1:=HIGH=HHV(HIGH,N) AND X1=X2;GDTS:=BARSLAST(YGD1);QDDD:=LOW=LLV(LOW,M) AND LOW=LLV(LOW,GDTS) AN D GDTS>1;QDGD:=HIGH=HHV(HIGH,N) AND HIGH=HHV(HIGH,DDTS) AND DDTS>1;X3:=DRAWLINE(QDGD,HIGH,QDDD,LOW,0),CO LORL IGRAY,LINETHICK3;X4:=DRAWLINE(QDDD,LOW,QDGD,HIGH,0),COLORLIGRAY,LI NETHICK3;YGD:=HIGH=HHV(HIGH,N) AND X3=X4;YDD:=LOW=LLV(LOW,M) AND X3=X4;{DRAW ICON (YGD,H,23);}{根据相邻阶段高点之间的涨跌差值确定目标高点:大于前高5或小于前高5个点取高点}M1:=5;M2:=3;{涨跌差值};预前高值:=IF(YGD=1,REF(H,REF(BARSLAST(YGD),1)+1),REF(H,BARSLAS T(YGD))),NODRAW;{返回上次高点的值}预下高TS:=REFX(BARSNEXT(YGD),1)+1;预下高值:=REFX(H,REFX(BARSNEXT(YGD),1)+1);下预下高TS:=REFX(预下高TS,预下高TS)=DRAWNULL;XH0:=(YGD AND H>预前高值 AND (H-预前高值)/预前高值*100>=M1 AND 预下高TS=DRAWNULL);XH1:=(YGD AND H>预前高值 AND 预下高值>0 AND 下预下高TS=1)OR(YGD AND H0 AND 下预下高TS=1);XH2:=(YGD AND H>预前高值 AND H>预下高值);XH3:=(YGD AND H>预前高值 AND H=M1);XH4:=YGD AND H预下高值 AND (1-H/预前高值)*100>=M2;XH5:=YGD AND H=M2{ AND(预下高值-H)/H*100>=M1};GD:=XH0 OR XH1 OR XH2 OR XH3 OR XH4 OR XH5;{本次高点,高点值,本次高点周期内到最后交易日天数}BCGDTS:=BARSLAST(GD);{返回本次高点到当前天数}BCGDDZHTS:=IF(GD,CURRBARSCOUNT,0);{本次高点到最后交易日天数}高点值:=IF(BCGDTS,REF(H,BCGDTS),H);{本次高点值}TS:=IF(BCGDTS,REF(BCGDDZHTS,BCGDTS),BCGDDZHTS);{本次高点周期内到最后交易日天数等于本次高点到最后交易日天数} GDCL:=CONST(TS);{取本次高点到最后交易日天数的最后一个值为常量}{类推上一次高点,高点值,本次高点周期内到最后交易日天数}高点值1:=REF(高点值,BCGDTS+1);{上一高点值}TS1:=REF(TS,BCGDTS+1);{上一高点期间到最后交易日的天数} GDCL1:=CONST(TS1);{类推上上一次高点,高点值,本次高点周期内到最后交易日天数}高点值2:=REF(高点值1,BCGDTS+1);{上上一高点值}TS2:=REF(TS1,BCGDTS+1);{上一高点期间到最后交易日的天数} GDCL2:=CONST(TS2);{类推上N高点,高点值,本次高点周期内到最后交易日天数}高点值3:=REF(高点值2,BCGDTS+1);TS3:=REF(TS2,BCGDTS+1);GDCL3:=CONST(TS3);高点值4:=REF(高点值3,BCGDTS+1);TS4:=REF(TS3,BCGDTS+1);GDCL4:=CONST(TS4);高点值5:=REF(高点值4,BCGDTS+1);TS5:=REF(TS4,BCGDTS+1);GDCL5:=CONST(TS5);高点值6:=REF(高点值5,BCGDTS+1);TS6:=REF(TS5,BCGDTS+1);GDCL6:=CONST(TS6);高点值7:=REF(高点值6,BCGDTS+1);TS7:=REF(TS6,BCGDTS+1);GDCL7:=CONST(TS7);高点值8:=REF(高点值7,BCGDTS+1);TS8:=REF(TS7,BCGDTS+1);GDCL8:=CONST(TS8);压力:DRAWLINE(CURRBARSCOUNT=GDCL,H,ISLA STBA R,REF(H,GDCL-1),1),COLORGREEN,LINETHICK2;压力1:DRAWLINE(CURRBARSCOUNT=GDCL1,H,ISLASTBAR,REF(H,GDCL1-1),1),COLORM AGEN TA,LINETHICK2;压力2:DRAWLINE(CURRBARSCOUNT=GDCL2,H,ISLASTBAR,REF(H,GD CL2-1),1),COLORYELLOW,LINETHICK2;压力3:DRAWLINE(CURRBARSCOUNT=GDCL3,H,ISLASTBAR,REF(H,GD CL3-1),1),COLORWHITE,LINETHICK2;{压力4:DRAWLINE(CURRBARSCOUNT=GDCL4,H,ISLASTBAR,REF(H,GD CL4-1),1),COLORBROWN,LINETHICK2;压力5:DRAWLINE(CURRBARSCOUNT=GDCL5,H,ISLASTBAR,REF(H,GD CL5-1),1),COLORGRAY,LINETHICK2;压力6:DRAWLINE(CURRBARSCOUNT=GDCL6,H,ISLASTBAR,REF(H,GD CL6-1),1),COLORBROWN,LINETHICK2;压力7:DRAWLINE(CURRBARSCOUNT=GDCL7,H,ISLASTBAR,REF(H,GD CL7-1),1),COLORYELLOW,LINETHICK2;压力8:DRAWLINE(CURRBARSCOUNT=GDCL8,H,ISLASTBAR,REF(H,GD CL8-1),1),COLORYELLOW,LINETHICK2;};。
波段神器漫步主图源码通达信指标公式源码.doc
声明:主图有划线未来函数,作为压力支撑线~信号不漂移~板MA5:(REF(C,1)*1.1+REF(C,1)+REF(C,2)+REF(C,3)+REF(C,4))/5,NODRAW;所属板块:=STRCAT('所属板块:',STRCAT(STRCAT(STRCAT('[行业]-,,HYBLOCK)z STRCAT(, [地域]-,z DYBLOCK))z STRCAT(,[概念]-'z GNBLOCK)));总股本:=STRCAT(STRCATC总股本:',CON2STR(TOTALCAPITAL/1000000,2)),‘亿');流通盘:=STRCAT(STRCAT('流通盘:'z CON2STR(CAPnAL/1000000z2));亿)全流通:=STRCAT(*全流通:,CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));Z市值:=STRCAT(STRCAT('流通市值:’,CON2STR((CAPITAL/1000000)*C,2)),'亿');上市天数:=STRCAT('上市天数:,/CON2STR(FINANCE(42)z O));{上市日期:=STRCAT(‘上市日期:,CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000)z0)z0));)/股本市值:=STRCAT('股本市值:',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市天数));{}市盈率:=STRCAT(*市盈率:,,CON2STR(C/FINANCE(33),2));市销率:=STRCATC 市销率:,Z CON2STR(C/(FINANCE(20)/FINANCE(1)),2));市净率:=STRCATC 市净率:'Z CON2STR(C/FINANCE(34)Z2));净资收益率:=STRCAT(* 净资收益率:'Z CON2STR(FINANCE(33)/FINANCE(34)*100,2));毛利率:=STRCAT(*毛利率:,,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100Z2));净利润率:=STRCATC 净利润率,,CON2STR(FINANCE(30)/FINANCE(20)*100Z2));主营利润率:=STRCAT(* 主营利润率,Z CON2STR(FINANCE(23)/FINANCE(20)*100,2));当前业绩:=STRCATC当前业绩:',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));{}Xl:=(FINANCE(ll)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z 值:=X1+X2+X3+X4+X5;预警:=IF(Z值vl.2,'重警',IF(Z值> =1.2 AND Z值v2.6,‘轻警无警'));财务预警:=STRCAT(*财务预警:',STRCAT(预警,STRCATC・Z 值:',C0N2STR(Z 值,3)))); 优质资产率:=STRCATC优质资产率:,,CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));{理论上越大越好但不同行业有不同标准};现金负债比:=STRCAT(* 现金负债比:',CON2STR(FINANCE(25)/FINANCE(15),3));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};财务系数:=STRCAT(*风险系数:*,STRCAT(STRCAT(财务预警,优质资产率),现金负债比));{}DRAWTEXT_FIX(ISU\STBAR,0.005,0,0,所属板块),COLORYELLOW,;DRAWTEXT_FIX(ISU\STBAR,0.005,0.08,0,股本市值),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR,0.005,0.16,0,当前业绩),COLORGREEN;DRAWTEXT_FIX(ISU\STBAR,0.005,0.24,0,财务系数),COLORGREEN;{好股票网整理}TX:=V=HHV(V,120);TX1:=BARSLAST(TX AND REF(C,TX)>REF(C,TX+1) AND REF(V,TX)>REF(V,TX+1));TX2:=REF(C,TX1);TX3:=C=LLV(C,TX1);TXA:=BARSLAST(TX3);TX4:=REF(C,TXA);TX5:=(TX2-TX4)*2+TX2;TX6:=V=HHV(V,30) AND C>REF(C,1) AND V>REF(V,1);TX7:=BARSLAST(TX6);TX8:=REF(C,TX7);TX9:=C=LLV(C,TX8);TX10: = REF(C z TX9+10);TX11:=(TX8-TX10)*2+TX2;目标价:{IF((TXvTX3),TXll,TX5)}TX5,NODRAW,COLOROOFFFF;均价:=AMOUNT/V/100;ZTT:=REF(C,l)*l.l-C<0.01 AND H=C;{涨停}N:=30;{此数值可视需要调整}BL:=V=HHV(V,N) AND V>REF(V,1)*2;XGA:=ZTT AND BL;TS:=BARSLAST(XGA);NOTEXTEE:IF(TS<=9,DRAWLINE(XGA Z均价,REF(XGA,1),REF(均价,1),1)Z DRAWNULL),COLORYELLOW;DRAWNUMBER(ISLASTBAR,NOTEXTEE,NOTEXTEE),COLORYELLOW;NOTEXT2:IF(TSv=9,REF(C,TS),DRAWNULL),COLORGRAY;NOTEXT3:IF(TSv=9,REF(L,TS),DRAWNULL),COLORGRAY;ED:DRAWNUMBER(BETWEEN(TS,1,9),REF(L,TS),TS),COLORLIGRAY;己调:HHV(C z10)/L,NODRAW;庄线A:=(3*CLOSE+OPEN+LOW+HIGH)/6;庄线B:(19*庄线A+19*REF(庄线A,1)+18*REF(庄线A,2)+17*REF(庄线A,3)+16*REF(庄线A,4)+15*REF(庄线A,5)+14*REF(庄线A,6)+ 13*REF(庄线A,7)+12*REF(庄线A,8)+11*REF(庄线A,9)+10*REF(庄线A,10)+9*REF(庄线A,11)+8*REF(庄线A,12)+7*REF(庄线A,13)+6*REF(庄线A,14)+5*REF(庄线A,15)+4*REF(庄线A,16)+3*REF(庄线A,17)+2*REF(庄线A,20)+REF(庄线A,19))/210,COLOR。
通达信极品波浪主图指标公式
通达信极品波浪主图指标公式N:=13;M:=1;P:=3;P2:=5;P3:=36;P4:=13;P5:=65;A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3);{高点}A2:=REF(LOW,3)=LLV(LOW,2*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 ISLASTBAR OR BARSCOUNT(CLOSE)=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,LOW,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR 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);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK3;DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK3;J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(L D))+1);J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BAR SLAST(LD),H,L),0),COLORWHITE,LINETHICK2;{以下是两条趋势线原码}UU:=BACKSET(ISLASTBAR ,BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);UU2:=BACKSET(ISLASTBAR ,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);前一低:REF(L,BARSLAST(VV)),COLOR99FF66,LINETHICK1;前二低:REF(L,BARSLAST(XX)),COLORFF66FF,LINETHICK1;前一高:REF(H,BARSLAST(VV2)),COLOR99FF66,LINETHICK1;前二高:REF(H,BARSLAST(XX2)),COLORFF66FF,LINETHICK1;DRAWLINE(XX,L,VV,L,1),COLORMAGENTA,LINETHICK2;DRAWLINE(XX2,H,VV2,H,1),COLORMAGENTA,LINETHICK2;DRAWTEXT(CURRBARSCOUNT=60,MA(C,120),' 上升五浪,下跌三浪,趋势自画:');DRAWTEXT(CURRBARSCOUNT=60,MA(C,120)*0.90,' 长短均线,阻力支撑,高低自明:');。
波段买卖分析(主图 指标) 通达信指标公式源码
波段买卖分析(主图指标)说明,含未来函数,不加密,不选股,持股分析参考。
MB1:=EMA(WINNER(C)*100,5);MB2:=EMA(MB1,2);MB3:=EMA(MB2,2);MB4:=EMA(MB3,2);N:=5;VAR2:=MB1;VAR3:=DRAWLINE(VAR2>=HHV(VAR2,N)=1,VAR2,VAR2<=LLV(VAR2,N)=1,VAR2,0); 顶:=IF(VAR2=VAR3,VAR2,DRAWNULL);XG:=REF(VAR2,1)=REF(VAR3,1) AND VAR2>REF(VAR2,1);买入条件:=TFILTER(XG,顶,1);卖出条件:=TFILTER(顶,XG,0);买入价:=IF(买入条件,C,DRAWNULL);卖出价:=IF(卖出条件,C,DRAWNULL);DRAWICON(买入条件,L*0.98,1);DRAWICON(卖出条件,H*1.02,2);DRAWNUMBER(买入条件,L*0.96,买入价),COLORRED;DRAWNUMBER(卖出条件,H*1.04,卖出价),COLORGREEN;DRAWNUMBER(卖出条件,H*1.06,(C/REF(C,BARSLAST(买入条件))-1)*100),COLORYELLOW;成交收益:=IF(卖出条件,(C/REF(C,BARSLAST(买入条件))-1)*100*0.994,DRAWNULL); 年收益:=SUM(成交收益,250);年成交数:=IF(ISLASTBAR,SUM(卖出条件,250),DRAWNULL);DRAWTEXT_FIX(ISLASTBAR,0.00,0.00,0,STRCAT('年交易次数: ',CON2STR(年成交数,0))),COLORLIRED;DRAWTEXT_FIX(ISLASTBAR,0.00,0.05,0,STRCAT('年交易收益: ',CON2STR(年收益,2))),COLORLIRED;DRAWTEXT_FIX(说明=1,0.00,0.10,0,'红箭头是买入信号,红数字是买入参考价'),COLORRED;DRAWTEXT_FIX(说明=1,0.00,0.15,0,'绿箭头是卖出信号,绿数字是卖出参考价'),COLORGREEN;DRAWTEXT_FIX(说明=1,0.00,0.20,0,'黄色数字是盈亏百分比'),COLORYELLOW;。
实用波段全套指标,令操盘手垂涎三尺,百万不卖!(附公式)
实用波段全套指标,令操盘手垂涎三尺,百万不卖!(附公式)注意:把源码复制后把参数填上去,否则通不过!以下N1、N2两行是参数,请填写到参数表里:参数最小最大缺省值N1 1 20 5N2 1 50 5~用法~1、白线上穿红线,出现红色箭头,买入:1,简化版出红三角,可以买入;2、出现绿色箭头,卖出:1,建议卖出。
3、可以参考你喜欢的运用熟练的指标,以准确把握买卖点,取得更大的收益。
通达信实用波段主图指标公式红线:MA(C,21),COLORRED,LINETHICK2;黄线:MA(C,13),COLORYELLOW,NODRAW;白线:(EMA(C,N1)*7+EMA(C,N2)*3)/10,COLORWHITE,LINETHICK2;STICKLINE(白线>红线,红线,白线,0.1,1)COLOR0000FF;STICKLINE(白线<>JJ:=(CLOSE+HIGH+LOW)/3;E:=EMA(JJ,5);D:=REF(E,1);买入:CROSS(白线,红线),COLORRED,NODRAW;卖出:CROSS(黄线,白线),COLORFFAA00,NODRAW;STICKLINE(E>D,E,D,3,0),COLORFF00FF;DRAWICON(买入,H+0.03,1);DRAWICON(卖出,H+0.03,2);通达信实用波段副图指标公式红线:=MA(C,21);白线:=(EMA(C,N1)*7+EMA(C,N2)*3)/10;买入:CROSS(白线,红线),COLORRED;通达信实用波段选股指标公式红线:=MA(C,21);白线:=(EMA(C,N1)*7+EMA(C,N2)*3)/10;CROSS(白线,红线);一起擒庄,一起进步,想学习更多炒股技巧可关注该头条号!。
通达信真正的波段幅图指标公式
通达信真正的波段幅图指标公式股市波段操作的五大原则不少投资者感到迷茫,不知如何操作。
笔者认为,在如此震荡的市道中,可遵循以下操作原则:一、把握节奏,逢低介入。
二、注重轮动,精选个股。
三、适可而止,逢高卖出。
四、观测趋势,控制仓位。
五、知己知彼,灵活操作。
短线投资者关心的是分时K线、日线;中线投资者关心的是周K线、月K线;长线投资者关心的是半年线、年线。
短线投资者的特点就是讲究一个“快”字,而中长线投资者则可做较大的波段。
因此,应根据自己的特点及市场的中期趋势来把握波段操作的节奏。
{吸筹}A1P:=REF(CLOSE,2);A2P:=SMA(MAX(CLOSE-A1P,0),7,1)/SMA(ABS(CLOSE-A1P),7,1)*100;A4P:=REF(LOW,1);A5P:=SMA(ABS(LOW-A4P),3,1)/SMA(MAX(LOW-A4P,0),3,1)*100;A6P:=EMA(IF(CLOSE*1.3,A5P*10,A5P/10),3);A7P:=LLV(LOW,29);A8P:=HHV(A6P,37);A9P:=IF(MA(CLOSE,90),1,0);A10P:=EMA(IF(LOW<=A7P,(A6P+A8P*2)/2,0),3)/1688*A9P;A11P:=IF(A10P>100,100,A10P);STICKLINE(A11P,0,A11P,4,1),COLOR666666;VAR1:=MA(CLOSE,27);VAR2:=(CLOSE-VAR1)/VAR1*100;RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;VARA:=MA(VAR2,2);VARB:=BARSLAST(CROSS(-10,VARA)=1);VARC:=BARSLAST(CROSS(VARA,10)=1);VARD:=VARA<-10 AND VARB>3;VARE:=VARA>10 AND VARC>3;短线:SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR009900;中线:SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED;中长线:=-100*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40));长线:SMA(RSV3,5,1),COLORYELLOW;看底:STICKLINE(中线<15,中线,15,6,0),COLORF00FF0;黄金:STICKLINE(短线<20 AND 中线<20 AND 长线<20,MAX(长线,MAX(短线,中线)),20,3,0),COLOR00CCFF;看顶:STICKLINE(中线>80,80,中线,3,0),COLORFFF000;DR:=IF(COUNT(CROSS(中长线,-90),12)=3,30,5);KH1:=IF(VARD,VARA,0);KH2:=REF(KH1,1)<0;DRAWICON(CROSS(长线,15),中线,1);DRAWTEXT(LONGCROSS(中线,20,15),20,'反弹');DRAWTEXT(CROSS(短线,长线)AND 长线<18 AND 长线>REF(长线,1)OR CROSS(长线,5),20,'绝佳机会'),COLOR00BBBB;底:DRAWTEXT(CROSS(中长线,-90) AND (长线<中线AND 长线>REF(长线,1)OR 短线<20 AND 中线<20 AND 长线 <20),长线,'底'),COLORFF00FF;{波段轨道}TC1:=IF(H=HHV(H,48),H,DRAWNULL);TC2:=CONST(BARSLAST(TC1=H))+1;UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));BC1:=IF(L=LLV(L,48),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;{高点定位}DRAWTEXT(LP,40,'↖波段底'),COLORLIGREEN;{波段底文字提示} DRAWTEXT(HP,89,'波段顶'),COLORMAGENTA;{波段顶文字提示};。
通达信指标公式源码 一个非常有用的操盘主图(操盘主图 四方力道 波段主图 先知主图)
趋势线:MA(C,30),DOTLINE COLORFF00CC;IF(趋势线>=REF(趋势线,1),趋势线,DRAWNULL),DOTLINE,COLORYELLOW;回归斜率线A:EMA(SLOPE(C,21)*20+C,42);回归斜率线B:REF(回归斜率线A,2);IF(回归斜率线A>REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORRED; IF(回归斜率线A<REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORGREEN;IF(回归斜率线B>REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORRED; IF(回归斜率线B<REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORGREEN;经典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 ANDMAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线A ANDMAHL1>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));}{C>昨C红K柱+C>O红K柱C>昨C红K柱C=昨C是跟白色24线C<昨C蓝K柱+C>O红K柱C<昨C蓝K柱}{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) ANDC>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;}{经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;} DRAWICON(CROSS(经典K,经典D),L*0.96,26);{高亮红}回归斜率买:IF(CROSS(EMA(C,3),回归斜率线A),(L-(H-L)/3),DRAWNULL),POINTDOT,COLOR0000FF;{高亮红}回归斜率买_:DRAWICON(CROSS(EMA(C,3),回归斜率线A),L*0.98,1),{买};回归斜率卖:IF(CROSS(回归斜率线A,EMA(C,2)),(H+(H-L)/3),DRAWNULL),POINTDOT,COLOR00CF00;{中绿} 卖:DRAWICON(CROSS(回归斜率线A,EMA(C,2)),H*1.03,2);经典KDJ卖:IF(CROSS(经典D,经典K),(H+(H-L)/2),DRAWNULL),CROSSDOT,LINETHICK3,COLOR00CF00;{中绿}; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;X2:=LLV(J,2)=LLV(J,8);{DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.99,'★买'),COLORYELLOW; }DRAWICON(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.99,23); VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100; DRAWTEXT(CROSS(84,VAR7),H*1.01,'逃顶'),COLORYELLOW ;AA:=(REF(H,1)-MAX(REF(C,1),REF(O,1)))/(REF(H,1)-REF(L,1))>0.6 AND (MIN(O,C)-L)/(H-L)>0.6 AND VOL<REF(VOL,1);DRAWTEXT(AA,L*0.99,'揉搓'),COLORRED;C3:=REF(C,1);跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;{DRAWTEXT(跌停,H+0.1,'跌停'),COLORGREEN;}涨停:=IF(REF(C,1)*1.095-C<0.01 ,1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;{DRAWTEXT(涨停,L-0.1,'板'),COLORYELLOW;}超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;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV))-20,30,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV))-20,122,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,154,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力进出'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散户进出'),COLORCYAN;M1:=EMA(EMA(C,21),3);M2:=EMA(EMA(C,34),3);TT2:=CROSS(C,M1)AND CROSS(C,M2);DRAWTEXT(TT2,L*0.96,'阳');四方力道{四方力道}V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);HY1:=REF(EMA(V1,3),1);实时线:MA(CLOSE,1),COLOR006400;神秘线:HY1,COLOR400080;DRAWTEXT(CROSS(CLOSE,HY1),LOW*0.95,'B'),LINETHICK2,COLORYELLOW; DRAWTEXT(CROSS(HY1,CLOSE),HIGH*1.08,'S'),LINETHICK3,COLORWHITE; APP:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));ZL:=IF((CLOSE > OPEN),(APP * (HIGH - LOW)),IF((CLOSE < OPEN),(APP * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));SF:=IF((CLOSE > OPEN),(0 - (APP * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (APP * (HIGH - LOW))),(0 - (VOL / 2))));库存能量:=MA((ZL + SF),2);库存平均:=MA((ZL + SF),5);DRAWTEXT(CROSS(库存能量,库存平均),L*0.97,''),COLORFF00FF,LINETHICK4;{波段主图}工作线:=MA(CLOSE,1);趋势线:MA(CLOSE,18)COLORGREEN,LINETHICK2;强势线:MA(CLOSE,3)COLORRED,LINETHICK2;TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA144:EMA(CLOSE,144),POINTDOT,COLORWHITE;MA318:EMA(C,318);AA1:=AMOUNT/VOL;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=VOL<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<REF(O,1) AND F<0,1,0);P2:=IF(C<REF(O,2) AND F<0,1,0);TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWICON(CROSS(ZX,C),H*1.01,2);DRAWTEXT(CROSS(工作线,趋势线)AND J<55,LOW,'入')COLORWHITE; DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,'买'),COLORRED; DRAWTEXT(CROSS(88,RSI),HIGH * 1.02,'顶'),COLOR00FFFF; DRAWTEXT(FF1,L*0.99,'超短'),COLOR00FF00;STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;STICKLINE(TT4,OPEN,CLOSE,3,0),COLORGREEN;TT5:=5;V1:=MA(HIGH,30)*1.15;V2:=MA(HIGH,3)*1.03;V3:=MA(LOW,3)*0.97;V4:=MA(LOW,30)*0.85;GET:ZIG(3,TT5)COLORWHITE,LINETHICK3;{先知主图}VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*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(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);STICKLINE(VAR9>-150,0,VAR9,0.1,0), COLORFF00FF;吸筹指标:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00; STICKLINE(CROSS(吸筹指标,-24),100,0,1,0), COLORFFFFFF;先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, COLORFF00FF;放量拉升:IF(CROSS(吸筹指标,-24),1,0), COLORFFFFFF;获利:STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,60,0,1,0),COLOR0000FF; VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; VARK2:=REVERSE(VARK1);VARK3:=SMA(VARK1,3,1);波段王:SMA(VARK3,3,1), COLORRED,LINETHICK2;波段鬼:SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;趋势线:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SM A(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),C OLORFF6666,LINETHICK2;RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:SMA(RSV9,3,1);DK1:K1-REF(K1,1),COLORSTICK;出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);STICKLINE( CROSS(趋势线,10),0,73,3,0), COLOR3366FF;DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'底'),COLORWHITE ; DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,'钱'),COLOR33FFCC; DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,50,'买'),COLORRED ; DRAWTEXT(CROSS(吸筹指标,-24),80,'底'),COLORWHITE ;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3 * K) - (2 * D));AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VARB:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARC:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARD:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARE:=(((VARB + (2 * VARC)) + (3 * VARD)) / 6);VARF:=MA(VARE,3);STICKLINE((CROSS(J,0) AND (VARF <= (0 - 7))),0,88,2,0),COLORBLUE; DRAWICON((CROSS(J,0) AND (VARF <= (0 - 7))),88,9);VARO2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100; VARO3:=SMA(SMA(VARO2,3,1),3,1);VARO4:=EMA(VARO3,5);VARO5:=LLV(LOW,26);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;STICKLINE(CROSS(VARO4,10) AND VARO4>10,25,0,1,0),COLORYELLOW; 建仓区: IF((VARO7<10),0,20),LINETHICK3 ,COLORRED;。
实用波段,让你做足每一个波段通达信指标公式源码
实用波段主图指标,照葫芦画了“三把瓢”。
一是实用波段主图和副图,增加了黄线(没有显示,用于优化卖出指标信号)、买入信号红箭头和卖出信号绿箭头;二是实用波段副图简化版,删除了红绿柱、红白线和卖出标志;三是实用波段选股,方便大家选股。
今天把实用波段指标分享给大家,作为国庆节的礼物,祝大家节日快乐!股市长红!注意:把源码复制后把参数填上去,否则通不过!以下N1、N2两行是参数,请填写到参数表里:参数最小最大缺省值N1 1 20 5N2 1 50 5~用法~1.白线上穿红线,出现红色箭头,买入:1,简化版出红三角,可以买入;2.出现绿色箭头,卖出:1,建议卖出。
~说明~1.可以参考你喜欢的运用熟练的指标,以准确把握买卖点,取得更大的收益。
2.下面的指标公式中有两个副图公式,请大家选择使用。
一个是原版副图公式,供没有安装主图的使用;一个是简化版副图公式,供已经安装主图的使用。
{以下主图和副图公式}红线:MA(C,21),COLORRED,LINETHICK2;黄线:MA(C,13),COLORYELLOW,NODRAW;白线:(EMA(C,N1)*7+EMA(C,N2)*3)/10,COLORWHITE,LINETHICK2;STICKLINE(白线>红线,红线,白线,0.1,1)COLOR0000FF;STICKLINE(白线<红线,红线,白线,0.1,1),COLORGREEN;JJ:=(CLOSE+HIGH+LOW)/3;E:=EMA(JJ,5);D:=REF(E,1);买入:CROSS(白线,红线),COLORRED,NODRAW;卖出:CROSS(黄线,白线),COLORFFAA00,NODRAW;STICKLINE(E>D,E,D,3,0),COLORFF00FF;DRAWICON(买入,H+0.03,1);DRAWICON(卖出,H+0.03,2);{以下简化版的副图公式}红线:=MA(C,21);白线:=(EMA(C,N1)*7+EMA(C,N2)*3)/10;买入:CROSS(白线,红线),COLORRED;{以下选股公式}红线:=MA(C,21);白线:=(EMA(C,N1)*7+EMA(C,N2)*3)/10; CROSS(白线,红线);。
通达信指标公式源码 波段操盘主图指标 源码 无未来
指标用于波段操作!红线持股、绿线持币。
买、卖有提示,配合其他指标更准确简单实用,公式只是参考要灵活应用。
N1:=13;VAR1:=REF(C,1);VAR2:=SMA(MAX(C-VAR1,0),N1,1)/SMA(ABS(C-VAR1),N1,1)*1000;VAR3:=DRAWLINE(VAR2>=HHV(VAR2,N1),VAR2,VAR2<=LLV(VAR2,N1),VAR2,1); VAR4:=VAR2=VAR3;VAR5:=VAR2<REF(VAR2,1);RSV:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;K:=SMA(RSV,4,1);D:=SMA(K,4,1);J:=4*K-2*D;VAR6:=(2*C+H+L)/4;{可将3该为4,信号少点}VAR7:=EMA(EMA(EMA(VAR6,4),4),4);{可将3该为4,信号少点}VAR8:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100;VAR9:=MA(VAR8,4)+0.03;VAR10:=MA(VAR8,1);KB:=EMA(C,4)-EMA(C,18);DB:=EMA(KB,4);AA:=BARSCOUNT(C);AH:=HHV(H,120);AL:=LLV(L,120);A0:=(AH-AL)/30;VAR2S:=(2*CLOSE+HIGH+LOW)/4;VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,3.2,0),COLOR004400; STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.7,0),COLOR006600; STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.1,0),COLOR008800;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,1.5,0),COLOR00AA00;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.9,0),COLOR00CC00;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.3,0),COLOR00EE00;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,3.2,0),COLOR000055;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.7,0),COLOR000077;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.1,0),COLOR000099;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,1.5,0),COLOR0000BB;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.9,0),COLOR0000DD;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.3,0),COLOR0000FF;STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,3.15,0),COLORAA1100; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,2.45,0),COLORAA3300; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.75,0),COLORAA5500; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.05,0),COLORAA7700; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,0.35,0),COLORAA9900; STICKLINE(VAR4 AND VAR5,L,OPEN,3.15,0),COLOR1111FF;STICKLINE(VAR4 AND VAR5,L,OPEN,2.45,0),COLOR3333FF;STICKLINE(VAR4 AND VAR5,L,OPEN,1.75,0),COLOR5555FF;STICKLINE(VAR4 AND VAR5,L,OPEN,1.05,0),COLOR7777FF;STICKLINE(VAR4 AND VAR5,L,OPEN,0.35,0),COLOR9999FF;STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,3.15,0),COLOR770077; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,2.45,0),COLOR990099; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.75,0),COLORBB00BB; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.05,0),COLORDD00DD; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,0.35,0),COLORFF00FF; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,3.15,0),COLOR337777; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,2.45,0),COLOR339999; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.75,0),COLOR33BBBB;STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.05,0),COLOR33DDDD;STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,0.35,0),COLOR33FFFF; STICKLINE((AA+0)/34=FLOOR((AA+0)/34),L,OPEN,3.15,1),COLORFFFFFF; DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),L*1,'时间窗'),COLORFFFFFF; DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*1,'吸'),COLORFF00FF;DRAWICON(CROSS(VAR9,VAR10) AND J>65,H*1,15),COLORGREEN;DRAWTEXT(CROSS(VAR9,VAR10) AND J>65,H*1,' 卖'),COLORYELLOW;DRAWICON(VAR4 AND VAR5,L*1,9);DRAWTEXT(VAR4 AND VAR5,L*1,' 买')COLORFFFFFF;DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量买点'),COLOR33FFFF;B1:=MA(C,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);SMA2:=MA(B2,3);停损下限:IF(LLV(MA(B2,8),3)<B2,LLV(MA(B2,8),3),B2);IF(B2>SMA2,B2,DRAWNULL),COLORRED,LINETHICK4;IF(B2<SMA2,B2,DRAWNULL),COLORGREEN,LINETHICK4;SNAKEA:HHV(MA(B2,1),13),COLORYELLOW;VAR1A:=(2*CLOSE+HIGH+LOW)/4;VAR2A:=MA(VAR1A,7);VAR3A:=VAR2A-MA(VAR1A,7/2)<0;VAR4A:=VAR2A-MA(VAR1A,7/2)>0;VAR5A:=BARSLAST(VAR3A);VAR6A:=0-BARSLAST(VAR4A);VAR7A:=IF(VAR3A<=0,VAR5A,VAR6A);STICKLINE(SNAKEA>SMA2 AND B2<SMA2,SNAKEA,SMA2,0,0),COLORBLUE;VAR11A:=(CLOSE*2+HIGH+LOW)/4;VAR21A:=EMA(VAR11A,13)-EMA(VAR11A,34);VAR31A:=EMA(VAR21A,5);VARA:=((REF(VAR9,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARB:=((REF(VARA,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARC:=((REF(VARB,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARD:=((REF(VARC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARE:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VARF:=((REF(VARE,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR11:=((REF(VAR10,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR12:=((REF(VAR11,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR13:=((REF(VAR12,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR14:=((REF(VAR13,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR15:=((REF(VAR14,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR16:=((REF(VAR15,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR17:=((REF(VAR16,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR18:=((REF(VAR17,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR19:=((REF(VAR18,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR1B:=(REF((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),1) AND VAR2);A13:=EMA(CLOSE,55);A14:=MA(CLOSE,75);A15:=EMA(A14,3);A16:=EMA(A15,3);A17:=(HIGH + LOW) / 5;A18:=(MA(A17,4)) - (MA(A17,34));A19:=CROSS(A18,0);A20:=CROSS(0,A18);A21:=BARSLAST(A19);A22:=BARSLAST(A20);A23:=REF(A19,1);A24:=REF(A20,1);A25:=BARSLAST(A23);A26:=BARSLAST(A24);A27:=IF((A25 < A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));A28:=(((REF(CLOSE,1)) <= (REF(A27,1))) AND (CLOSE > A27)) AND (A21 < A22);A29:=(((REF(CLOSE,1)) >= (REF(A27,1))) AND (CLOSE < A27)) AND (A22 < A21);A30:=A28 AND ((COUNT(A28,A21)) = 1);A31:=A29 AND ((COUNT(A29,A22)) = 1);A32:=A30 AND ((REF(BARSLAST(A31),1)) < (REF(BARSLAST(A30),1)));A33:=A31 AND ((REF(BARSLAST(A31),1)) > (REF(BARSLAST(A30),1)));AC:=AMOUNT/(VOL);YY:=MA(AC,13);LLL:=(C-YY)/YY*100;MIDC := MA(CLOSE,22);UPPERC:= MIDC + 2*STD(C,22);LOWERC:= MIDC - 2*STD(C,22);BBA:=(C-LOWERC)/(UPPERC-LOWERC);BBC:=FORCAST(BBA,3);LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));VAR20:=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);VARF1:=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); DRAWTEXT(VAR20 AND COUNT(VAR20,30)=1,LOW*0.95,'机构进场'),LINETHICK1,COLORFF00FF;。
通达信波段王指标公式主图_通达信金波段主图指标公式
通达信波段王指标公式主图_通达信⾦波段主图指标公式DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORRED;DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORRED;DRAWTEXT_FIX(1,0.005,0.06,0,'所属概念:'),COLORMAGENTA;DRAWTEXT_FIX(1,0.06,0.06,0,GNBLOCK),COLORMAGENTA;DRAWTEXT_FIX(1,0.005,0.12,0,'所属板块:'),COLORYELLOW;DRAWTEXT_FIX(1,0.06,0.12,0,DYBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.11,0.12,0,HYBLOCK),COLORYELLOW;YSTB:=STRCAT(CON2STR(FINANCE(44)/1,2),'%');LRTB:=STRCAT(CON2STR(FINANCE(43)/1,2),'%');DRAWTEXT_FIX(1,0.7,0,0,'营收同⽐:'),COLORWHITE;DRAWTEXT_FIX(1,0.76,0,0,YSTB),COLORWHITE;DRAWTEXT_FIX(1,0.84,0,0,'利润同⽐:'),COLORWHITE;DRAWTEXT_FIX(1,0.9,0,0,LRTB),COLORWHITE;净资收益率:=(FINANCE(33)/FINANCE(34)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);主营业增长率:=FINANCE(44);每股净资产:=CONST(FINANCE(34));每股收益:=CONST(FINANCE(38));净利润增长率:=FINANCE(43);市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));现⾦负债⽐:=(FINANCE(25)/FINANCE(15));每股未分配:=CONST(FINANCE(32));每股公积⾦:=CONST(FINANCE(18));SY01:=净资收益率>3;SY02:=净资收益率>0.01 AND 净资收益率<=3;SY03:=主营利润率>2;SY04:=主营利润率>0;SY05:=主营业增长率>1;SY06:=主营业增长率>0;SY07:=净利润增长率>2;SY08:=净利润增长率>0.2;SY09:=每股收益>0.01;SY10:= 每股收益>0.001;SY11:=每股净资产>2;SY12:=每股净资产>0.01;SY13:=每股未分配>0.5;SY14:=每股未分配>0.001;SY15:=每股公积⾦>0.5;SY16:=每股公积⾦>0.002;SY17:=每股未分配>=2 AND 每股公积⾦>=2;SY18:=每股未分配<2 OR 每股公积⾦<2;优秀:=SY01 AND SY03 AND SY05 AND SY07 AND SY09 AND SY11AND SY13 AND SY15;较好:=SY02 AND SY04 AND SY06 AND SY08 AND SY10 AND SY12AND SY14 AND SY16;⼀般:=NOT(优秀) AND NOT(较好);DRAWTEXT_FIX(优秀 AND 较好=0,0.7,0.05,0,'综合评估基本⾯:优秀!'),COLORMAGENTA; DRAWTEXT_FIX(较好,0.7,0.05,0,'综合评估基本⾯:较好!'),COLORRED;DRAWTEXT_FIX(⼀般,0.7,0.05,0,'综合评估基本⾯:⼀般!'),COLORGREEN;DRAWTEXT_FIX(SY17,0.84,0.05,0,'是否具备⾼送转潜⼒:是!'),COLORMAGENTA; DRAWTEXT_FIX(SY18,0.84,0.05,0,'是否具备⾼送转潜⼒:否!'),COLORGREEN;MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);BB:=REF(INDEXC,1)=REF(C,1) AND REF(O,1)/REF(C,1)>=1.05AND REF(C,1)O AND C/O>=1.05 AND C>REF(O,1)AND REF(VOL,1)STICKLINE(BB,O,C,4,0),COLORRED;STICKLINE(BB,O,H,0,0),COLORRED;STICKLINE(BB,L,C,0,0),COLORRED;DRAWTEXT(BB,L*0.95,'追!'),COLORYELLOW;VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);VAR2:=8;CC:=CROSS(VAR1,VAR2);DRAWTEXT(CC,L*0.95,'买!'),COLORMAGENTA;TYP:=(H+L+C)/3;TYP1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))<=20 AND REF(MA(C,21),1)TJ1:=OTJ2:=REF(C,1)>=MA(C,21) AND L/MA(C,21)>=1.015 AND MA(C,144)>MA(C,250) AND VV;TJ3:=REF(MA(C,250),90)MA(C,250) AND O>MA(C,250);TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));TOUJI:=TYP1 AND TJ1 AND TJ2 AND REF(C,2)/REF(O,2)<1.06 AND C/O<=1.05 AND HHV(H,5)/LLV(L,30)>=1.65 AND REF(H,5)/REF(L,1)>=1.15 AND REF(C,1)/REF(O,1)<=0.995 AND (L=2) AND O/REF(L,1)<=1.04OR TYP1 AND TJ1 AND O/REF(L,1)<1.05 AND REF(L,1)/REF(O,4)<=0.85 AND REF(C,1)/REF(O,1)<=1.03 AND O1.35 AND VTOUJI2:=TYP1 AND TJ1 AND TJ2 AND O/REF(L,1)<1.05 AND O/LLV(L,3)<1.1 AND REF(C,1)/REF(0,1)<=1.05 ANDHHV(H,4)/LLV(L,16)>=1.35 AND REF(O,4)/REF(C,2)>=1.08 AND REF(C,2)/REF(O,2)<=0.995 AND (REF(L,2)=2) AND LOR TYP1 AND TJ1 AND HHV(H,10)/LLV(L,25)>=1.3 AND REF(C,5)DATOUJI:=TYP1 AND TJ3 AND O=1.17 AND HHV(H,10)/LLV(L,30)>1.4 AND (MA(V,10)/HHV(V,10)>0.5 ANDV/HHV(V,10)>0.2 AND V/HHV(V,10)<0.4 OR REF(V,3)>REF(V,2) AND REF(V,2)>REF(V,1)) AND REF(C,1)/REF(C,2)<=1.02;DATOUJI1:=TYP1 AND TJ3 AND ODRAWTEXT(TOUJI OR TOUJI2 OR DATOUJI OR DATOUJI1,L*0.98,'△'),COLORYELLOW;DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)) AND MA(VOL,5)>MA(VOL,10) AND L=MA(C,20),L*0.98,'量托'),COLORWHITE;卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);DRAWTEXT(卖出,H*1.05,'短卖'),COLORGREEN;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;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;DRAWICON(突破盘整,L-0.10,1);红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;绿轨道:=MA(MA(CLOSE,3),3);上升:IF(红轨道>=绿轨道,绿轨道,DRAWNULL),COLORRED,LINETHICK2;AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) -(2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));DRAWICON(加仓,L*0.97,7);DRAWICON(CROSS(波段底,3),L*0.97,1);A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(X,13);卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.2,'买'),COLORRED;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BDGD:=HHV(J,2)=HHV(J,8) AND J>80;注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);DRAWTEXT(注意 AND 卖!=1,HIGH*1.02,'减'),COLORFFFF50;加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,CB)) AND 买!=1,3),LOW-0.1,'加'),COLOR0080FF; MA18:=MA(C,18);跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);DRAWTEXT(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.96,'跟'),COLOR7F52AF;买价:=((C-REF(MA5,1))/5+MA5)*1.004;买条件:=CROSS(C,买价) AND 买价>REF(买价,1);醉⽩K买进:IF(买条件,L,H),COLORWHITE,POINTDOT;STICKLINE(买条件,H,L,0,1),COLORWHITE,LINETHICK2;STICKLINE(买条件,O,C,4,1),COLORWHITE,LINETHICK2;加码价:=((C-REF(MA10,1))/20+MA10)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);醉黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT;STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,4,1),COLORYELLOW,LINETHICK2;DRAWTEXT_FIX(1,0.0,0.15,0,'在上升过程中, ⽩线出现在红线下⽅明显分开则卖出!'),COLORMAGENTA;。
通达信指标——波浪主图(主图)
GET:ZIG(3,5),COLORAAAAAA;PL5:=ZIG(3,5);EN1:=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);EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,13);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,26);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,55);走强一:=BARSLAST(PL5走弱一:=BARSLAST(PL5>REF(PL5,1));走强二:=BARSLAST(PL10走弱二:=BARSLAST(PL10>REF(PL10,1));走强三:=BARSLAST(PL20走弱三:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二),0);DTJZ5:=IF(PL10DTJD5:=IF(PL10ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);DTJZ10:=IF(PL20DTJD10:=IF(PL20DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.97,'(Ⅰ)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.03,'(Ⅱ)'),COLORFFFF00;DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.97,'(Ⅲ)'),COLORFFFF00;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'⑸'),COLOR0000FF; DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00;DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.05,'【B】'),COLOR00FF00;DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.96,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.96,'④'),LINETHICK3,COLOR00FFFF;DMLJ:=HHV(HIGH,120);TY:=H;TY1:=L;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY1,10)=LLV(TY1,2*10+1),10),10+1),10);A:=REF(H,BARSLAST(HD));B:=REF(L,BARSLAST(LD));T1:=BARSLAST(HD)T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;。
通达信波段主图指标公式,源码简洁原理却不简单
通达信波段主图指标公式,源码简洁原理却不简单通达信波段主图指标公式的核心语句也就4句,后面的语句都是为了画图的。
公式看起来比较简单,原理也比较巧妙,但是理解起来有些困难。
直接上源码:HH:=HHV(H,5);LL:=LLV(L,5);TH:=BARSLAST(H>REF(HH,1));TL:=BARSLAST(L<REF(LL,1));IF(TH<TL,LL,DRAWNULL),DOTLINE,COLORMAGENTA;IF(TH>TL,HH,DRAWNULL),DOTLINE,COLORGREEN;STICKLINE(C>O ANDTH<TL,H,L,0,1),COLORRED;STICKLINE(C>O ANDTH<TL,C,O,3,1),COLORRED;STICKLINE(C<O ANDTH<TL,H,L,0,0),COLORRED;STICKLINE(C<O ANDTH<TL,C,O,3,0),COLORRED;STICKLINE(C<O ANDTH>TL,H,L,0,0),COLORCYAN;STICKLINE(C<O ANDTH>TL,C,O,3,0),COLORCYAN;STICKLINE(C>O ANDTH>TL,H,L,0,1),COLORCYAN;STICKLINE(C>O ANDTH>TL,C,O,3,1),COLORCYAN;一、波段指标公式核心语句HH:=HHV(H,5);表示5日高点,下图中的绿色虚线就是5日高点连成的线;LL:=LLV(L,5);表示5日低点,下图中的洋红色虚线就是5日低点连成的线。
H>REF(HH,1)表示最高价大于前一天对应的5日最高点,TH:=BARSLAST(H>REF(HH,1));就表示满足这个条件距离当天的周期数。