(整理)【股票指标公式下载】-【通达信】含量能的K线图(发动线、涨跌停、压力支撑)

合集下载

【股票指标公式下载】-【通达信】含量能的K线图(发动线、涨跌停、压力支撑)

【股票指标公式下载】-【通达信】含量能的K线图(发动线、涨跌停、压力支撑)

【通达信】含量能的K线图(发动线、涨跌停、压力支撑)-指标公式源码MA8:MA(CLOSE,8);MA21:MA(C,21);MA62:MA(CLOSE,62);MA89:=MA(C,89);MA144:MA(C,144);发动线:DMA(C,V/CAPITAL),COLORLIBLUE,LINETHICK2;AA:=CROSS(C, MA89) OR CROSS( MA8, MA62) OR CROSS( MA8, MA89) OR CROSS(C,发动线);A1:=MA(VOL,5);A2:=REF(A1,1);A3:=VOL/A2>2 AND AA;DRAWTEXT(A3,L,'跟进');{涨跌停}C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE(涨停,H,L,0,0),COLORMAGENTA;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(跌停,H,L,0,1),COLORGREEN;V55:=MA(V,55);V250:=MA(V,250);DRAWICON(CROSS(V55,V250),H,9){量能穿越底部启动};DRAWICON(V>2*V250,H,1){量价配合};{压力支撑}PH:=TROUGHBARS(2,5,1);LL:=HHV(H,PH);TJ1:=LL=HIGH AND LL<REF(LL,1);{//=1}TS:=SUMBARS(TJ1,2);TJ:=PEAKBARS(2,5,1)=1 AND TS>=PH;DRAWICON(TJ,HIGH*1.01+0.02,2);警告:IF(TJ,HIGH*1.008,DRAWNULL),CROSSDOT,LINETHICK2,COLORCYAN;PL:=BARSLAST(TJ);支撑:IF(BARSLAST(TJ1),REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLORRED;压力:IF(BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),COLORGREEN;TJ_2:=LOW>REF(REF(LOW,TS),PL);DRAWTEXT(ISLASTBAR,压力,'压力'),COLORYELLOW;DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLOREA91B5;{止损}{TR :=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW ));ATR1:=MA(TR,13);VAR1:=REF(CLOSE,1)-REF(ATR1,1);止损:HHV(VAR1,13),COLORYELLOW,LINETHICK2;};【通达信】含量能的K线图(发动线、涨跌停、压力支撑)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】多周期MACD(日、周、月)

【股票指标公式下载】-【通达信】多周期MACD(日、周、月)

【通达信】多周期MACD(日、周、月)-指标公式源码DIF:EMA(CLOSE,10)-EMA(CLOSE,22);DEA:EMA(DIF,7);MACD:(DIF-DEA)*2,COLORSTICK;DRAWTEXT(CROSS(DIF,DEA),DIF,'☆'),COLORRED;{DRAWICON(CROSS(DIF,DEA),DIF*1.05,1);DRAWICON(CROSS(DEA,DIF),DEA*0.90,2);}月DIF:="MACD.DIF#MONTH"COLOR0080FF;月DEA:="MACD.DEA#MONTH",COLOR0080FF,LINETHICK2;周DIF:="MACD.DIF#WEEK"COLORRED;周DEA:="MACD.DEA#WEEK",COLORRED,LINETHICK2;日DIF:="MACD.DIF",COLORWHITE;日DEA:="MACD.DEA",COLORWHITE,LINETHICK2;日金:IF(CROSS(日DIF,日DEA),0.1,0),COLORYELLOW;周金:IF(CROSS(周DIF,周DEA),0.125,0),COLORRED;月金:IF(CROSS(月DIF,月DEA),0.15,0),COLORGREEN;DRAWICON(周金 AND 日金,-0.1,7);DRAWICON(周金 AND 月金,-0.15,11);DRAWICON(日金 AND 月金,-0.1,1);日死:IF(CROSS(日DEA,日DIF),-0.1,0),COLORYELLOW;周死:IF(CROSS(周DEA,周DIF),-0.125,0),COLORRED;月死:IF(CROSS(月DEA,月DIF),-0.15,0),COLORGREEN;DRAWICON(周死 AND 日死,-0.1,8);DRAWICON(周死 AND 月死,-0.15,12);DRAWICON(日死 AND 月死,-0.15,2);【通达信】多周期MACD(日、周、月)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】量能平台(清仓、出货、高抛)

【股票指标公式下载】-【通达信】量能平台(清仓、出货、高抛)

【股票指标公式下载】-【通达信】量能平台(清仓、出货、高抛)【通达信】量能平台(清仓、出货、高抛)-指标公式源码MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60),COLORRED,LINETHICK2;MA144:MA(CLOSE,144),COLOR9F5F9F,LINETHICK2;ZRR:=(YEAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1) *31,DAY+ INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0) ),NODRAW;T:=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周5:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE ,T3)+CLOSE)/5,CO LORE6E8FA,LINETHICK2;周10:=(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CL OSE,T3)+REF(CLOSE ,T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE, T8)+CLOSE)/10,COLORBLUE,LINETHICK2;日跌: L*0.99,NODRAW,COLORFF00FF;周跌: L*0.94,NODRAW,COLORFF00FF;清仓:=1.66*MA(FORCAST(CLOSE,2),40);出货:=1.36*MA(FORCAST(CLOSE,2),40);高抛:=1.16*MA(FORCAST(CLOSE,2),40);低吸:=0.82*MA(FORCAST(CLOSE,2),40);满仓:=0.72*MA(FORCAST(CLOSE,2),40);强通1:=清仓>REF(清仓,1);强通2:=出货>REF(出货,1);强通3:=高抛>REF(高抛,1);强通4:=低吸>REF(低吸,1);强通5:=满仓>REF(满仓,1);上升通道:=强通1 AND 强通2 AND 强通3 AND 强通4 AND 强通5,; 五强:=MA5>REF(MA5,1);十强:=MA10>REF(MA10,1);二十强:=MA20>REF(MA20,1);三十强:=MA30>REF(MA30,1);六十强:=MA60>REF(MA60,1);小均强:=五强 AND 十强;均强:=十强 AND 二十强 AND 三十强;大均强:=十强 AND 二十强 AND 三十强 AND 六十强;JJD:=(H+L+C)/3;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),8),60);强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.18),8),20);强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10);强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.08),80),13);开始走强1:=强势线1>REF(强势线1,1);开始走强2:=强势线2>REF(强势线2,1);开始走强3:=强势线3>REF(强势线3,1);开始走强4:=强势线4>REF(强势线3,1);双强1:=开始走强1 AND 开始走强2;双强2:=开始走强2 AND 开始走强3;双强3:=开始走强2 AND 开始走强3;双强4:=开始走强3 AND 开始走强4;三强:=开始走强1 AND 开始走强2 AND 开始走强3;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4; 强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强OR 四强; VV:=(C+L+H)/3;DSA:=SMA(XMA(VV,15),2,1);顶部1:=DSA*1.0888;顶部2:=DSA*1.158;顶部3:=DSA*1.218;底部1:=DSA*0.9518;底部2:=DSA*0.888;底部3:=DSA*0.8;五日走强:=MA5>REF(MA5,1);十日走强:=MA10>REF(MA10,1);二十日走强:=MA20>REF(MA20,1);六十日走强:=MA60>REF(MA60,1);低位主升:=五日走强 AND 十日走强 AND 六十日走强;主升浪:=五日走强 AND 十日走强 AND 二十日走强;大主升浪:=十日走强 AND 二十日走强 AND 六十日走强;大主升浪2:=五日走强 AND 十日走强 AND 二十日走强 AND 六十日走强;总主升:=主升浪 AND 大主升浪 AND 大主升浪2;总主升浪:=低位主升 OR 主升浪 OR 大主升浪 OR 大主升浪2 OR 总主升,;强势主升低买:=L<底部1 AND 总主升浪AND 强势为王AND C<dsa;< bdsfid="139" p=""></dsa;<>猎股小王:=L<底部1 AND C<="">{DRAWICON(猎股小王>0,L*0.97,1);DRAWTEXT(猎股小王>0,L*0.97, '猎'),COLORYELLOW;}猎股大王出击:=强势主升低买AND 猎股小王AND H<dsa;< bdsfid="145" p=""></dsa;<>A:=MA(C,30);A1:=A*1.1;A4:=A*0.9;A2:=A1-(A1-A4)*0.191;持仓:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A1,A4);生命线:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A2,A4);主升持仓:=持仓>生命线,;主升1:=持仓>REF(持仓,1),;主升2:=生命线>REF(生命线,1),;主升:=主升1 AND 主升2,;主升猎股王:=(猎股大王出击 AND 主升持仓 AND 主升) OR (猎股小王 AND 主升持仓 AND 主升);绝对的主升:=(主升猎股王 AND 小均强) OR (猎股小王 AND 小均强); {DRAWICON(绝对的主升>0,L*0.97,1);}Y1:=LLV(L,17);Y2:=SMA(ABS(L-REF(L,1)),17,1);Y3:=SMA(MAX(L-REF(L,1),0),17,2);Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));VAR2:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4), 4),4);天:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2));地:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1));高兴:=STICKLINE(地>天 AND 地<0 AND("KDJ.J"(9,3,3)>REF("KDJ.J"(9,3,3),1) AND"KDJ.D"(9,3,3)<20 AND "KDJ.J"(9,3,3)<20) AND V=LLV(V,10) ANDIF(CROSS(Q,0),1,0),10,0,1,0)=1,COLORRED;{DRAWICON(高兴,L*0.915,1);DRAWTEXT(高兴,L*0.915, '兴'),COLORYELLOW;}HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;Z GDISPLAY:=0;MADISPLA Y:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高压:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT =GDCS1,H,1) COLORFF00FF,LINETHICK1;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H, GDCS2-1),1),COLOR0055F F,POINTDOT;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H, GDCS1-1),1),COLORYELLO W,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低支:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT =DDCS1,L,1) COLORFF00FF,LINETHICK1;ZGSTAR:=(高压+低支)/2;ZGEND:=CONST((高压+低支)/2);STARDAY:=IF(DDCS2<gdcs2,ddcs2,gdcs2);< bdsfid="204" p=""></gdcs2,ddcs2,gdcs2);<>中轨:=DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLAS TBAR,ZGEND,1),COLORFF0 0FF,LINETHICK1;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,D DCS1-1),1),COLORMAGEN TA,POINTDOT,;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,D DCS2-1),1),COLORCYAN, POINTDOT;CBFB:=COSTEX(C,REF(C,1));JL:=IF(C>CBFB,V,0);CL:=IF(C<cbfb,v,0);< bdsfid="212" p=""></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.93,1);DRAWTEXT(TJ1,L*0.93, '钱'),COLORYELLOW;}N:=5;VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1) ,COLORYELLOW,LINETHICK0;V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;操盘线:=SMA(V3,2,1);V5:=SMA(操盘线,2,1);赢尽天下抄底:=IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<ref(操盘线,2) and="" 操盘线<23="" ,25,0)="" cross(var1,8);<="" p="" bdsfid="226">。

通达信指标公式源码 变色k线主图指标

通达信指标公式源码 变色k线主图指标

DRAWGBK(O>C,RGB(360,0,10),RGB(10,0,1),0,'01',0);CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLOR000000; 止赢:1.05*CC,COLORFFFFFF,LINETHICK2;止损:0.97*CC,COLORFFFFFF,LINETHICK2;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK1,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK1,COLORGREEN;涨幅:100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORWHITE;最大涨幅:100*(H-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW; 最大跌幅:100*(L-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW;实体幅:ABS(100*(CLOSE-OPEN)/OPEN),NODRAW,COLORRED;上影幅:IF(CLOSE>OPEN,100*(H-C)/C,100*(H-O)/O),NODRAW,COLORYELLOW; 下影幅:IF(CLOSE>OPEN,100*(O-L)/L,100*(C-L)/L),NODRAW,COLORWHITE; X:=(3*C+L+O+H)/6;AH1:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*RE F(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*R EF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*RE F(X,18)+REF(X,20))/210;CP:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/ 12);AH2:=EXPMEMA(CP,25);持股线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; VAR2M:=CLOSE*VOL;VAR3M:=EMA((EXPMA(VAR2M,3)/EXPMA(VOL,3)+EXPMA(VAR2M,6)/EXPMA(V OL,6)+EXPMA(VAR2M,12)/EXPMA(VOL,12)+EXPMA(VAR2M,24)/EXPMA(VOL,2 4))/4,13);SDN:=VAR3M*0.94;涨停B:=CLOSE>1.1*REF(CLOSE,1)-0.005 AND H>L;首个涨停:=BARSLAST(涨停B);大阳:=100*(H-REF(C,1))/REF(C,1)>7;DRAWICON((C>SDN AND 100*(L-持股线)/持股线<1.5 AND100*(L-((MIN(AH2,AH1)+MIN(持股线,AH2)+MIN(持股线,AH1))/2.95))/((MIN(AH2,AH1)+MIN(持股线,AH2)+MIN(持股线,AH1))/2.95)<1.5 AND (COUNT(大阳{ OR 倍量},13)>=2 OR 首个涨停<13) AND BARSLAST(大阳)>0 AND 涨幅<=2),L*0.98,1);DRAWTEXT(CLOSE>1.1*REF(CLOSE,1)-0.005,CLOSE*1.02,'停,'),COLORCYAN; DRAWTEXT(CLOSE<0.9*REF(CLOSE,1)+0.005,L*0.98,'停,'),COLORCCCCCC; VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;火:=BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1));CRXP:=((REF(上影幅,1)>3 AND REF(下影幅,1)<1.15))AND ((下影幅>3 AND 上影幅<1.55)) AND 涨幅<8;JM:=(3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1)); 强势回调:=(首个涨停<14 OR (首个涨停<26 AND 首个涨停>19));搓揉:=((强势回调AND CRXP) OR (CRXP AND (JM>REF(JM,1) OR (火>0 AND JM<7))));DRAWTEXT_FIX(1,0.85,0,0,''),COLORCYAN;DRAWTEXT(搓揉,L*0.96,'★搓揉买入,'),COLORFFFFFF;回调搓合承受价:(MIN(AH2,AH1)+MIN(BBI,AH2)+MIN(BBI,AH1))/2.95,NODRAW;大盘短期生命线:EMA(((SLOPE(INDEXC,22)*23)+INDEXC),48),COLORYELLOW,LINETHICK3, NODRAW;DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/10);LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE);L2:=REFDATE(HHV(LH2,DA),DATE);L3:=REFDATE(HHV(LH3,DA),DATE);L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0 ),,COLOR181818,LINETHICK3;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/10 0,HI/POW(GZ,2),9,0),COLOR181818,LINETHICK3;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/10 0,HI/POW(GZ,3),9,0),COLOR181818,LINETHICK3;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/10 0,HI/POW(GZ,4),9,0),COLOR181818,LINETHICK3;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/10 0,HI/POW(GZ,5),9,0),COLOR181818,LINETHICK3;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/10 0,HI/POW(GZ,6),9,0),COLOR181818,LINETHICK3;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/10 0,HI/POW(GZ,7),9,0),COLOR181818;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*P OW(GZ,3)*99/100,9,0),COLOR181818,LINETHICK3;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*P OW(GZ,2)*99/100,9,0),COLOR181818,LINETHICK3;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)* 99/100,9,0),COLOR181818,LINETHICK3;DRAWKLINE(H,O,L,C);DRAWKLINE(H,O,L,C);DRAWTEXT(CURRBARSCOUNT=98,LOW*0.88,'☆压力越大暗条越长,做多越短越好★'),COLORYELLOW;N:=10;T1:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;量能平台:IF(CURRBARSCOUNT<=N+15,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL) ,COLOR4080FF,LINETHICK3;新量能点:IF(CURRBARSCOUNT=T1+1,量能平台,DRAWNULL),CIRCLEDOT,COLORFFFFFF,LINETHICK9;DRAWTEXT(ISLASTBAR,量能平台,' 量能平台'),COLOR00F0F0;JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);持股区域:STICKLINE(A>B,A,B,2,0),COLORYELLOW;持币区域:STICKLINE(A<B,A,B,2,0),COLORBLUE;。

通达信新量能潮指标公式

通达信新量能潮指标公式

通达信新量能潮指标公式{使用说明:(1)紫色柱子:表示个股在下跌浪中,机构达到打压建仓的标准。

(2)柱子的高低:表示机构打压吸筹能力的大小。

柱子越高,表示机构吸筹的能力越大。

(3)绿色柱子:表示机构当天建仓占流通盘的比例最大。

可重点关注。

(4)绿色带:底部吸筹堆量的量值指标,量值大于0个股走强可建仓持仓。

(5)红色带:量值大于50,个股趋势走强。

(6)建议结合主图,有色带持股,没色带减仓空仓;K线稳稳从下方站上龙门线,筹码堆量赋值大于0,量值强度大于50,主力进出多方大于0,个股会放量走出一波趋势。

}量值强度:100-100*(HHV(HIGH,5*8)-CLOSE)/(HHV(HIGH,5*8)-LLV(LOW,5*8)),LINETHICK0,COLOR6060FF;DRAWBAND(量值强度,RGB(255,96,96),50,RGB(0,0,0));走强:50,LINETHICK1,COLORYELLOW;超卖:80,LINETHICK1,DOTLINE,COLOR6060FF;VAR1:=IF(YEAR>=2993 AND MONTH>=1,0,1);VAR2:=REF(LOW,1)*VAR1;VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;VAR5:=LLV(LOW,30)*VAR1;VAR6:=HHV(VAR4,30)*VAR1;VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VA R7*VAR1;筹码堆量: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100*VAR1, , COLORGREEN;DRAWBAND(筹码堆量,RGB(10,160,0),0,RGB(0,0,0));大单建仓:IF(VAR8>100,100,VAR8)*VAR1,COLORMAGENTA;STICKLINE(大单建仓>-150,0,大单建仓,6,1),COLORMAGENTA;极限抢筹: IF(CROSS(筹码堆量,-24),1,0),COLORGREEN; STICKLINE(CROSS(筹码堆量,-24),100,0,6,0),COLORGREEN;。

【指标公式源码下载】通达信四彩K线KDJ主图指标公式

【指标公式源码下载】通达信四彩K线KDJ主图指标公式

通达信四彩K线KDJ主图指标公式零轴:=DYNAINFO(3)*1,COLOR0000FF;STICKLINE(1,90/100+零轴,90/100+零轴,2,0),COLOR00BBBB; STICKLINE(1,10/100+零轴,10/100+零轴,2,0),COLOR0000BB; STICKLINE(1,100/100+零轴,100/100+零轴,2,0),COLORBBBBBB; STICKLINE(1,50/100+零轴,50/100+零轴,2,0),COLORFF0000; STICKLINE(1,0/100+零轴,0/100+零轴,2,0),COLORBBBB00;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100+50/100; K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;KK:=零轴+K/100;DD:=零轴+D/100;JJ:=零轴+J/100;EE:=50/100+零轴;DRAWBAND(KK,RGB(200,0,150),EE,RGB(0,170,120));DRAWBAND(JJ,RGB(220,0,0),KK,RGB(120,120,170));DRAWKLINE(H,O,L,C);AAA:=JJ>=KK AND KK>=EE;BBB:=JJ>=KK AND KK<EE;DDD:=JJ<KK AND KK>=EE;EEE:=JJ<KK AND KK<EE;STICKLINE(AAA,H,L,0,0),COLOR0000FF;STICKLINE(BBB,H,L,0,0),COLORFF00FF;STICKLINE(DDD,H,L,0,0),COLOR00FFFF;STICKLINE(EEE,H,L,0,0),COLORFFFF00;STICKLINE(AAA,CLOSE,OPEN,3.2,0),COLOR000099;STICKLINE(AAA,CLOSE,OPEN,1.8,0),COLOR0000BB;STICKLINE(AAA,CLOSE,OPEN,1.3,0),COLOR0000DD;STICKLINE(AAA,CLOSE,OPEN,0.5,0),COLOR0000FF;STICKLINE(BBB,CLOSE,OPEN,3.2,0),COLOR990099;STICKLINE(BBB,CLOSE,OPEN,1.8,0),COLORAA00AA;STICKLINE(BBB,CLOSE,OPEN,1.3,0),COLORDD00DD;STICKLINE(BBB,CLOSE,OPEN,0.5,0),COLORFF00FF;STICKLINE(DDD,C,O,3.2,0),COLOR009999;STICKLINE(DDD,C,O,2.4,0),COLOR00BBBB;STICKLINE(DDD,C,O,1.0,0),COLOR00DDDD;STICKLINE(DDD,C,O,0.6,0),COLOR00FFFF;STICKLINE(EEE,C,O,3.2,0),COLOR999900;STICKLINE(EEE,C,O,1.6,0),COLORBBBB00;STICKLINE(EEE,C,O,1.0,0),COLORDDDD00;STICKLINE(EEE,C,O,0.5,0),COLORFFFF00;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;SELL2:=(CROSS(88,RSI1));DRAWTEXT(SELL2,HIGH*1.02,'←卖'),COLOR00FF00;VB1:=C-REF(C,1);VB2:=100*EMA(EMA(VB1,6),6)/EMA(EMA(ABS(VB1),6),6);VB3:=IF(LLV(VB2,2)=LLV(VB2,7) AND COUNT(VB2<0,2) AND CROSS(VB2,MA(VB2,2)),1,0);VB4:=FILTER(VB3=1,5);DRAWTEXT(VB4,LOW*0.98,'←买'),COLOR00FFFF;DRAWTEXT_FIX(1,0,0,0,HYBLOCK);威廉波段:=100-(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100;威廉风险:=IF(威廉波段>95,(100/100+零轴)-(100/100+零轴)*0.009,100/100+零轴),COLOR00FFFF,LINETHICK0;DRAWBAND(100/100+零轴,RGB(220,220,0),威廉风险,RGB(0,0,0));WLDB:=IF(威廉波段<5,(0/100+零轴)+(0/100+零轴)*0.009,0/100+零轴),COLORFFFF00,LINETHICK1;DRAWBAND(WLDB,RGB(0,220,220),0/100+零轴,RGB(0,0,0));DRAWTEXT_FIX(1,0.05,0.0,0,'【彩色K线标识】★★红色柱---J大于K并在中轴上★★黄色柱--J小于K并在中轴上★★ '),COLORFFFFFF;DRAWTEXT_FIX(1,0.05,0.035,0,'【彩色K线标识】★★粉色柱---J大于K并在中轴下★★青色柱--J小于K并在中轴下★★ '),COLOR00FFFF;DRAWTEXT_FIX(1,0.05,0.07,0,'【彩色三角型标识】★★青色三角形---威廉底部★★黄色三角形--威廉顶部★★ '),COLORFFFF00;。

【股票指标公式下载】-【通达信】力道K线(K线、转折线)

【股票指标公式下载】-【通达信】力道K线(K线、转折线)

【通达信】力道K线(K线、转折线)-指标公式源码XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3);TEMPG:=MAX(HIGH,XOPEN);XHIGH:=EMA(MAX(TEMPG,XCLOSE),3);TEMP:=MIN(LOW,XOPEN);XLOW:=EMA(MIN(TEMP,XCLOSE),3);O1:=IF(XOPEN<XCLOSE,XOPEN,XCLOSE);C1:=IF(XOPEN<XCLOSE,XCLOSE,XOPEN);{K线}STICKLINE(XOPEN>=XCLOSE,XHIGH,XLOW,0,0 ),COLORCYAN;STICKLINE(XOPEN>=XCLOSE,C1,O1,4,0 ),COLOR990000;STICKLINE(XOPEN>=XCLOSE,C1,O1,3,0 ),COLORCC0000;STICKLINE(XOPEN>=XCLOSE,C1,O1,2.5,0 ),COLORFF4400;STICKLINE(XOPEN>=XCLOSE,C1,O1,1.5,0 ),COLORFF8800;STICKLINE(XOPEN>=XCLOSE,C1,O1,0.9,0 ),COLORFFCC00;STICKLINE(XOPEN>=XCLOSE,C1,O1,0.3,0 ),COLORCYAN;STICKLINE(XOPEN<XCLOSE,XHIGH,XLOW,0,0 ),COLORRED;STICKLINE(XOPEN<XCLOSE,C1,O1,4,0 ),COLOR000055;STICKLINE(XOPEN<XCLOSE,C1,O1,3,0 ),COLOR000077;STICKLINE(XOPEN<XCLOSE,C1,O1,2.5,0 ),COLOR000099;STICKLINE(XOPEN<XCLOSE,C1,O1,1.5,0 ),COLOR0000BB;STICKLINE(XOPEN<XCLOSE,C1,O1,0.9,0 ),COLOR0000DD;STICKLINE(XOPEN<XCLOSE,C1,O1,0.3,0 ),COLOR0000FF;HH:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+REF(H,5))/21; LL:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+REF(L,5))/21; {TDX没有WMA函数,上面的写法代替}{A1:=IF(C>REF(EXPMEMA(H,6),1),1,0);A2:=IF(C<REF(EXPMEMA(L,6),1),-1,0);}A1:=IF(C>REF(HH,1),1,0);A2:=IF(C<REF(LL,1),-1,0);A3:=A1+A2;A4:=IF(A3=0,REF(A3,BARSLAST(NOT(A3=0))),A3);转折线:IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORFFFFFF;【通达信】力道K线(K线、转折线)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】优化组合(获利线、动态成本、主力成本、取舍线)

【股票指标公式下载】-【通达信】优化组合(获利线、动态成本、主力成本、取舍线)

【通达信】优化组合(获利线、动态成本、主力成本、取舍线)-指标公式源码利:WINNER(CLOSE)*100,NODRAW,COLORRED;马:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),CO LORYELLOW,LINETHICK2;获利线:COST(98);动态成本:COST(50),COLORBLUE;主力成本:COST(5),COLORGREEN;KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3); 买1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);买2:=CROSS("RSI.RSI1"(6,2,2),20) ORCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));买3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);买0:=买1+买2+买3;买:=IF(买0>1,买0,0);掏底:IF(买,L*0.9978-0.03,DRAWNULL),POINTDOT,COLOR00FFFF,LINETHICK5; 选股:=FILTER(CROSS("KDJ.K","KDJ.D")&&CROSS("MACD.DIF","MACD.DEA"),50); 低吸:IF(选股,L*0.988-0.01,DRAWNULL),POINTDOT,COLORFF00FF,LINETHICK7; MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;取舍线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15 *REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+1 0*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14) +5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20)) /210,LINETHICK1,COLORYELLOW;生命线:MA(取舍线,6),LINETHICK1,COLORRED;五日线:MA(CLOSE,5),COLORLIBLUE;水平面:MA(CLOSE,60),COLORGREEN;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,30);MA4:=MA(CLOSE,60);WYA001:=(2*CLOSE+HIGH+LOW)/4;WYA002:=EMA(WYA001,4);WYA003:=EMA(WYA002,4);WYA004:=EMA(WYA003,4);WYA柱:=(WYA004-REF(WYA004,1))/REF(WYA004,1)*100;WYA线1:=MA(WYA柱,2);WYA线2:=MA(WYA柱,1);WY分时1线:=MA(CLOSE,1);WY分时21线:=MA(CLOSE,21);DRAWICON(WYA线1>0.25 AND WYA线2>0.25 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON(WYA线1<0 AND WYA线2<0 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON( CROSS(WY分时21线,WY分时1线),HIGH*1.0128,6) ; DRAWICON(WYA线1<-0.25 AND WYA线2<-0.25 AND CROSS(WYA线2,WYA线1),LOW*0.99,5);DRAWICON(WYA线1>0 AND WYA线2>0 AND CROSS(WYA线2,WYA线1),LOW*0.99,5),COLORYELLOW;DRAWICON(CROSS(WY分时1线,WY分时21线),LOW*0.99,5),COLORYELLOW; {蓝}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;VAR1:=AMOUNT/VOL/100;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); DRAWICON(FILTER(B1>0,5),L*0.94,10);DRAWTEXT(FILTER(B1>0,5),L*0.94,'M底'),COLORGREEN;{MACD底背离}A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" ANDCROSS("KDJ.K","KDJ.D");DRAWICON(FILTER(B2>0,5),L*0.96,10);DRAWTEXT(FILTER(B2>0,5),L*0.96,'K底'),COLORYELLOW;{KDJ底背离}C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF); DRAWICON(FILTER(D1>0,5),H*1.07,12);DRAWTEXT(FILTER(D1>0,5),H*1.07,'M顶'),COLOR0066FF;{MACD顶背离}C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" ANDCROSS("KDJ.D","KDJ.K");DRAWICON(FILTER(D2>0,5),H*1.05,12);DRAWTEXT(FILTER(D2>0,5),H*1.05,'K顶'),COLORRED;{KDJ顶背离}C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" ANDCROSS("RSI.RSI2","RSI.RSI1");DRAWICON(FILTER(D3>0,5),H*1.03,12),;DRAWTEXT(FILTER(D3>0,5),H*1.03,'R顶'),COLORMAGENTA,;{RSI顶背离}; ST:="MCST";QQ:=FILTER(C>ST,22);IF(QQ,L*0.998-0.01,DRAWNULL),POINTDOT,LINETHICK5,COLORRED;IF(QQ,L*0.998-0.04,DRAWNULL),POINTDOT,LINETHICK5,COLOR55FF33;IF(QQ,L*0.998-0.07,DRAWNULL),POINTDOT,LINETHICK5,COLORFF00FF;{RSI底背}A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" ANDCROSS("RSI.RSI1","RSI.RSI2");IF(B3,L*0.9978-0.05,DRAWNULL),POINTDOT,COLORCYAN,LINETHICK5;Z1:=REF(H,8)=HHV(H,2*8+1);Y1:=FILTER(Z1,8);X1:=BACKSET(Y1,8+1);W1:=FILTER(X1,8);{高点}R11:=BACKSET(ISLASTBAR,BARSLAST(W1)+1); S11:=R11>REF(R11,1); DRAWLINE(W1,H,S11,H,1),COLORBLUE;Z2:=REF(L,8)=LLV(L,2*8+1);Y2:=FILTER(Z2,8);X2:=BACKSET(Y2,8+1);W2:=FILTER(X2,8);{低点}T11:=BACKSET(ISLASTBAR,BARSLAST(W2)+1); U11:=T11>REF(T11,1); DRAWLINE(W2,L,U11,L,1),COLORBLUE;M:=INTPART(3*8/5);Z12:=REF(H,M)=HHV(H,2*M+1);Y12:=FILTER(Z12,M);X12:=BACKSET(Y12,M+1);W12:=FILTER(X12,M);{高点}R112:=BACKSET(ISLASTBAR,BARSLAST(W12)+1); S112:=R112>REF(R112,1); DRAWLINE(W12,H,S112,H,1),COLORRED;Z22:=REF(L,M)=LLV(L,2*M+1);Y22:=FILTER(Z22,M);X22:=BACKSET(Y22,M+1);W22:=FILTER(X22,M);{低点}T112:=BACKSET(ISLASTBAR,BARSLAST(W22)+1); U112:=T112>REF(T112,1); DRAWLINE(W22,L,U112,L,1),COLORRED;VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4444:=CROSS(VAR3333,0.9);压力:= REF(HIGH,BARSLAST(VAR2222));STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222 )),0.5,1),COLOREA91B5,LINETHICK3;支撑:= REF(LOW,BARSLAST(VAR4444));STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW,BARSLAST(VAR4444)) ,0.5,1),COLOR00B4FF,LINETHICK3;下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);W24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(W24,DDD),HIGH,REF(HIGH,BARSLAST(CROSS(W24,DDD)))),COLORFF FFFF;压力位:=IF(ISLASTBAR,压力2,DRAWNULL);STICKLINE(ISLASTBAR ,压力位,压力位,120,0),LINETHICK4,COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;底部位:=IF(ISLASTBAR,底部,DRAWNULL);STICKLINE(ISLASTBAR ,底部位,底部位,100,0),LINETHICK4,COLOR00FF00;【通达信】优化组合(获利线、动态成本、主力成本、取舍线)-指标公式效果图(文档来源:若水财经社区)。

通达信主图K线图选股指标公式

通达信主图K线图选股指标公式

通达信主图K线图选股指标公式V1:=A bs((2*CLOSE+HIGH+LOW)/4-ma(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(dma(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORCYAN;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,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(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,L,L*0.98,3,0),COLORBLUE;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};MA3:MA(C,3);MA5:MA(C,5),COLORRED;MA10:=MA(C,10),NODRAW;MA30:MA(C,34),NODRAW;五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORWHITE;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORCYAN;DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+1 5*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*RE F(X,11)+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,COLORFF00FF,LINETHICK1;{用法:黄托底买进,绿压顶买出。

通达信底部线股票主图指标公式

通达信底部线股票主图指标公式

通达信底部线股票主图指标公式DKG:=((MA((((EMA((((C+H)/2)-(LLV(LOW,18)))/((HHV(HIGH,18))-(LLV(LOW,18)))*(L*0.173),7))+(L*0.9137)*0.3+L*0.7)+H)/2,4)) +((MA((HHV(L,3)+LLV(H,3))/2,2))))/2;AK:=((((((EMA((EMA((((C+H)/2)-(LLV(LOW,18)))/((HHV(HIGH,18))-(LLV(LOW,18)))*(L*0.173),7))+(L*0.9137),13))-(EMA((EMA((EMA((((C+H)/2)-(LLV(LOW,18)))/((HHV(HIGH,18))-(LLV(LOW,18)))*(L*0.173),7))+(L*0.9137),13)),7)))/(EMA((EMA((EMA((((C+H)/2)-(LLV(LOW,18)))/((HHV(HIGH,18))-(LLV(LOW,18)))*(L*0.173),7))+(L*0.9137),13)),7))*10)+((MA((HHV(L,3)+LLV(H,3))/2,2))))*0.99)+((MA((HHV(L,3)+LLV(H,2))/2,2))))/2;底部线:=(LLV(REF((1.5*(REF(MA(CLOSE,6),1))-0.5*(MA(CLOSE,6)*1.013)),1),17))*0.98;K顶底:=(SLOPE((DKG),7)*1.78+(DKG*0.63+AK*0.37));STICKLINE(底部线>K顶底,底部线*1.03,K顶底,6,0),COLORDD3311;{C前高}M5:=MA(CLOSE,5); M20:=MA(CLOSE,20);SR1:=REF(HIGH,20)=HHV(HIGH,2*20+1);SR2:=FILTER(SR1,20); SR3:=BACKSET(SR2,20+1);HD:=FILTER(SR3,20); 前高:=REF(H,BARSLAST(HD));{}PH:=((((HHV((HHV((REF((EMA(C,6)),1)-((LLV((HHV((REF(EMA(C,7),1)-(EMA(C,3))),31)),1)))),2)),31))+(HHV((HHV((REF((EMA(((MA((HHV(L,8)+LLV(H,8))/2,2))),6)), 1)-((LLV((HHV((REF(EMA(((MA((HHV(L,8)+LLV(H,8))/2,2))),7),1) -(EMA(L,3))),11)),11)))),2)),27)))/2)),POINTDOT;PHH:=PH*1.057; PL:=PH*0.93;底中:DRAWBAND(底部线,RGB(10,10,90),PL,RGB(70,80,10));DRAWBAND(PHH,RGB(80,80,70),PL,RGB(10,10,10));STICKLINE(C>前高,PHH,PL,6,0),COLOR256161;TZK:=MA((1.8*((LLV(H,3)+EMA(C,4))/2))-((((HHV(((LLV(H,7)+EMA(C,5))/2),2))+((LLV(H,3)+EMA(C,4))/2))/2)*0.8),2);STICKLINE(C<O,L,H,0,0),COLORCYAN;STICKLINE(C>=O,L,H,0,0),COLOR1111DD;STICKLINE(C>=O,C,O,3,0),COLOR1111DD;STICKLINE(C<O,C,O,3,0),COLORFFCC11;STICKLINE((C>=TZK),L,H,0,0),COLOR1111FF;STICKLINE((C>=TZK),O,C,2.6,0),COLOR1111CC;STICKLINE((C>=TZK),O,C,2,0),COLOR111199;STICKLINE((C>=TZK),O,C,1.2,0),COLOR1111AA;STICKLINE((C>=TZK),O,C,0.4,0),COLOR1111CC;STICKLINE((C<=TZK),O,C,2.4,0),COLOR117711;STICKLINE((C<TZK),O,C,1.8,0),COLOR118811;STICKLINE((C<TZK),O,C,1.2,0),COLOR119911;STICKLINE((C<TZK),O,C,0.6,0),COLOR11AA11;STICKLINE((C>TZK AND C<O),O,C,1.7,0),COLOR999999;STICKLINE((C>TZK AND C<O),O,C,0.6,0),COLORAAAAAA;M1:=(((HHV(((LLV(H,7)+EMA(C,5))/2),2))+((LLV(H,3)+EMA(C, 4))/2))/2);HX:=((LLV(H,3)+EMA(C,4))/2);HZ:MA((1.8*HX-(M1)*0.8),2),COLORYELLOW;ML:=LLV(HZ,11),COLOR119911;MH:HHV(LLV(HZ,11),11),COLORFF9900;MZ:HHV(LLV(HZ,11),3),COLORFFDDCC;STICKLINE((HZ>REF(HZ,1) AND MH>MZ AND CROSS(C,M1)),O,C,3,1),COLORFFFFFF;STICKLINE((HZ>REF(HZ,1) AND MH>MZ AND CROSS(C,M1)),O,C,1,1),COLORFFFFFF;MGL:=(M1-MH)/MH*100;SC:=CROSS(C,HZ) AND CROSS(C,MH);STICKLINE((MGL<3 AND MH=ML AND HZ<M1AND CROSS(C,M1)) AND HZ>REF(HZ,1) OR SC AND HZ>REF(HZ,1),O,C,1.3,1),COLORYELLOW;STICKLINE(底部线>K顶底AND CROSS(C,HZ) AND HZ>REF(HZ,1),O,C,3,1),COLORYELLOW;STICKLINE(底部线>K顶底AND CROSS(C,HZ) AND HZ>REF(HZ,1),O,C,1,1),COLORYELLOW;S:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE ,24))/4;中强:IF(S>=REF(S,1),HZ,DRAWNULL),LINETHICK1,COLORFF00DD;中弱:IF(HZ<REF(HZ,1),HZ,DRAWNULL),LINETHICK1,COLORCYAN;通达信底部线主图指标公式实例图解:。

(炒股必备)通达信经典量价指标公式

(炒股必备)通达信经典量价指标公式

(炒股必备)通达信经典量价指标公式通达信经典量价指标公式说明:1、指标由经久不衰的⼗项经典指标组成,MACD,KDJ,RSI,LW&R,BBI,ZLMM,DBCD,CGZ,ZLGJ,ZJL。

2、⼀⾏为⼀个指标公式,⼀共⼗个买卖指标公式组成!3、当某个指标出现⾦叉,拐点画⼀个买⼊红箭头;当某个指标出现死N1:=3;N2:=5;N3:=9;N4:=13;N5:=21;N6:=34;DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);DEA:=EMA(DIFF,N2);DRAWICON(DIFF>DEA,1,1);DRAWICON(DIFF{DRAWTEXT(ISLASTBAR=1,1,'.MACD'),COLORFFFFFF;}A1:=DIFF>DEA;RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;K:=SMA(RSV1,N1,1);D:=SMA(K,N1,1);DRAWICON(K>D,1.1,1);DRAWICON(K{DRAWTEXT(ISLASTBAR=1,1.1,'.KDJ'),COLORFFFFFF;}A2:=K>D;LC:=REF(CLOSE,1);RSI1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(ABS(CLOSE-LC),N2,1))*100;RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100; DRAWICON(RSI1>RSI2,1.2,1); DRAWICON(RSI1{DRAWTEXT(ISLASTBAR=1,1.2,'.RSI'),COLORFFFFFF;}A3:=RSI1>RSI2;RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;LWR1:=SMA(RSV,N1,1);LWR2:=SMA(LWR1,N1,1);DRAWICON(LWR1>LWR2,1.3,1);DRAWICON(LWR1{DRAWTEXT(ISLASTBAR=1,1.3,'.LW&R'),COLORFFFFFF;}A4:=LWR1>LWR2;BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;DRAWICON(CLOSE>BBI,1.4,1);DRAWICON(CLOSE{DRAWTEXT(ISLASTBAR=1,1.4,'.BBI'),COLORFFFFFF;}A5:=CLOSE>BBI;MTM:=CLOSE-REF(CLOSE,1);MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);DRAWICON(MMS>MMM,1.5,1);DRAWICON(MMS{DRAWTEXT(ISLASTBAR=1,1.5,'.ZLMM'),COLORFFFFFF;}A6:=MMS>MMM;BIAS:=(C-MA(C,N2))/MA(C,N2);DIF:=(BIAS-REF(BIAS,16));DBCD:=SMA(DIF,76,1);MM:=MA(DBCD,5);DRAWICON(DBCD>MM ,1.6,1);DRAWICON(DBCD{DRAWTEXT(ISLASTBAR=1,1.6,'.DBCD'),COLORFFFFFF;}A7:=DBCD>MM;持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SM A((CLOSE -LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0,COLORRED;⽀撑:=LLV(持股,3),LINETHICK0,COLOR00FFFF;下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;转向:=CROSS(持股,下跌){ AND 下跌<30};MA1:=MA(持股,5);向下:=CROSS(MA1,持股) AND MA1>80;DRAWICON(持股>下跌,1.7,1);DRAWICON(持股<下跌,1.7,2);{DRAWTEXT(ISLASTBAR=1,1.7,'.CGZ'),COLORFFFFFF;}A8:=持股>下跌;MT:=C-REF(C,1);ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);MAZL:=MA(ZLGJ,5);DRAWICON(ZLGJ>MAZL,1.8,1);DRAWICON(ZLGJA9:=ZLGJ>MAZL;{DRAWTEXT(ISLASTBAR=1,1.8,'.ZLGJ'),COLORFFFFFF;}PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSEHSL:=(XVL/20)/1.15;攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);资⾦流量:=LLJX,LINETHICK0,COLOR0000FF;DRAWICON(资⾦流量>0,1.95,1);DRAWICON(资⾦流量<0,1.95,2);A10:=资⾦流量>0;{DRAWTEXT(ISLASTBAR=1,1.89,'.ZJL'),COLORFFFFFF;}指导线:=(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10),LINETHICK0,COLORFFFF00;操作:IF(指导线>6 ,1.1,1),LINETHICK3,COLORYELLOW;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSEVAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE主动:=SUM(主动买盘,0)/SUM(主动卖盘,0)*-1;低主5:=LLV(主动,5);动⽐:=主动-低主5;⾼动5:=6/HHV(动⽐,5);主动⼼:=⾼动5*动⽐;K1:=主动⼼+1-REF(主动⼼,1)>0;K2:=主动⼼+1-REF(主动⼼,1)<0;主动⼼向:=主动⼼*K1-主动⼼*K2;{下⾯是量价了相合}FF:=CLOSE-REF(CLOSE,1);X:=MA(VOL*FF,2);X0:=MA(VOL*FF,3);X1:=MA(VOL*FF,5);X2:=MA(VOL*FF,10);X3:=MA(VOL*FF,20);X4:=MA(VOL*FF,30);Y:=X-REF(X,1);Y0:=X0-REF(X0,1);Y1:=X1-REF(X1,1);Y2:=X2-REF(X2,1);Y3:=X3-REF(X3,1);Y4:=X3-REF(X4,1);量价相合:(Y>0)+(Y0>0)+(Y1>0)+(Y2>0)+(Y3>0)+(Y4>0);YES:(量价相合>1)*量价相合*(主动⼼向>1 OR 主动⼼>60);IF(YES>=REF(YES,1),量价相合,DRAWNULL),COLORGREEN,LINETHICK2;IF(YES>=REF(YES,1),YES,DRAWNULL),COLORRED,LINETHICK2;周期1:IF(YES,BARSLAST(CROSS(YES,0.1))+1,0),COLORFF00FF,POINTDOT,LINETHICK5; 5,COLORGREEN;。

【股票指标公式下载】-【通达信】黄金通道(黄金线、上升压力、下跌支撑、主力成本)

【股票指标公式下载】-【通达信】黄金通道(黄金线、上升压力、下跌支撑、主力成本)
下跌支撑:黄金线- P*STD(CLOSE,N),LINETHICK2,COLORMAGENTA;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,18);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'买入'),COLOR00FFFF;
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'卖出'),COLOR00FF00;
DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'注意!'),COLORFFFFFF;
黄金通道黄金线上升压力下跌支撑主力成本技术指标源代码指公式源码指标公式效果图
【通达信】黄金通道(黄金线、上升压力、下跌支撑、主力成本)-指标公式源码
{N 1 100 18
P 0.1 7 2}
黄金线: EMA(CLOSE,N),POINTDOT,LINETHICK4,COLORYELLOW;
上升压力:黄金线+ P*STD(CLOSE,N),LINETHICK2,COLOR0099FF;
下载次数: 0
2010-12-11 11:43
下载(65.59 KB)
2010-12-11 11:41
(文档来源:若水财经社)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;

通达信的个股K线对照大盘K线的技术指标公式

通达信的个股K线对照大盘K线的技术指标公式

通达信的个股K线对照大盘K线的技术指标公式此公式可取代K线图下面的技术分析指标,用于个股K线与大盘K线对比见强弱。

这个时期那只个股强于大盘,那只个股弱于大盘,那只个股在轮涨或在补涨一目了然。

使用时需下载补充历史日K线数据的
哟。

鼠标点击:功能——专家系统——公式编辑器——点新建——输入公式名称:大盘K线——之后在指标内容编辑区粘贴下面的内容:
DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
MA1:MA(INDEXC,M1);
MA2:MA(INDEXC,M2);
MA3:MA(INDEXC,M3);
——在参数1-4栏分别输入以下参数:
M1 最小:2.00 最大:1000.00 缺省:5.00
M2 最小:2.00 最大:1000.00 缺省:10.00
M3 最小:2.00 最大:1000.00 缺省:20.00
不会输的请看下图所示:
点击测试公式——通过——确定,关闭编辑器——进入任一K线图,在键盘敲DP用鼠标点击选择该指标即可如下图示:
千万别忘了使用该指标时需下载补充完整历史日K线数据。

历史日K线数据不完整时会如下图所示:
以上大盘K线出现白色一字均线扭曲都是历史日K线数据不完整所至,只需下载补充完整便可解决
欢迎各热爱炒股人士下载该文档来学习做。

通达信指标公式源码软件自用的K线图自动画支撑压力的指标

通达信指标公式源码软件自用的K线图自动画支撑压力的指标

自用的K线图自动画支撑压力的指标这是通达信用的,我自己根据别人的修改的,用着还可以,大家可以试试看,有未来函数的。

N:=8;ZGD:=HHV(H,60);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:=(((CLOSE - 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)) )),COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;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);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);GDCS1:=CONST(DINGBUTS);DDCS1:=CONST(DDTS1);S13:=CONST(REF(HIGH,GDCS1-1));GDCS13:=S13;DDCS13:=CONST(REF(L,DDCS1-1));DINGBUTS1:=REF(DINGBUTS,DDD+1);DDTS2:=REF(DDTS1,DD1+1);GDCS2:=CONST(DINGBUTS1);DDCS2:=CONST(DDTS2);S23:=CONST(REF(HIGH,DINGBUTS1-1));GDCS23:=S23;DDCS23:=CONST(REF(L,DDTS2-1));XG1:=BACKSET(ISLASTBAR,GDCS1);XD1:=BACKSET(ISLASTBAR,DDCS1);XG2:=BACKSET(ISLASTBAR,DINGBUTS1);XD2:=BACKSET(ISLASTBAR,DDTS2);XDD:=IF(DDCS13<=DDCS23,XD1,XD2);BCG:=SUM(XG1,0); 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) , COLORBLUE,LINETHICK2;中期支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),C OLORYELLOW,LINETHICK2;高:=CONST(MAX(MAX(MAX(ZGD2,中期压力),GDCS13),GDCS23));低:=CONST(MIN(MIN(MIN(ZDD2,DDCS23),DDCS13),中期支撑)); 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+1);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),GDTSS);GDCS11:=CONST(DINGBUTSS);DINGBUTS11:=REF(DINGBUTSS,DDDD+1);GDCS22:=CONST(DINGBUTS11);短期压力M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1 ),COLORRED,LINETHICK2;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);短期支撑M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1) COLORWHITE,LINETHICK2;。

【股票指标公式下载】-【通达信】智胜宝典(上线界、下线界、操作界、抄底)

【股票指标公式下载】-【通达信】智胜宝典(上线界、下线界、操作界、抄底)

【通达信】智胜宝典(上线界、下线界、操作界、抄底)-指标公式源码上线:=SMA(C,6.5,1);下线:=SMA(C,13.5,1);上线界:=SMA(C,3,1);下线界:=SMA(C,8,1);STICKLINE(上线>下线 , 上线,下线 ,2.5, 0),COLORRED,LINETHICK2; STICKLINE(下线>上线,上线,下线,2.5,0),COLORGREEN,LINETHICK2; DRAWTEXT( CROSS(上线,下线),LOW *0.98,'全仓买入' ),COLORYELLOW; DRAWTEXT(CROSS(下线界,上线界),H*1.02,'清仓'),COLORYELLOW;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;UPR:=BBI+3*STD(BBI,13);DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,60);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;A7:=(2*C+H+L)/4;操作:MA(A7,5),LINETHICK2;操作界:=MA(A7,5)*1.03;操作界限:=MA(A7,5)*0.97;VAR1:LLV(A7,21);VAR2:HHV(A7,21);SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'买进') ,COLOR0099FF;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) ANDOPEN>REF(CLOSE,1),1,0),LOW*0.98,'买进') ,COLORYELLOW;D:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'抄底'),COLORYELLOW;【通达信】智胜宝典(上线界、下线界、操作界、抄底)-指标公式效果图(文档来源:若水财经社区)。

通达信组合指标附图

通达信组合指标附图

通达信组合指标附图1 。

主力高控盘VUR1:=VOL/CAPITAL;VUR2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE, 1))-1);VUR3:=2.5*MAX(VUR1,VUR2);VUR4:=DMA(CLOSE,VUR3);VUR5:=20*(VUR4/REF(VUR4,1)-1)*38;VUR6:=EMA(VUR5,2);VUR7:=EMA(VUR5,2);VUR8:=EMA(VUR7,3);VURS:=EMA(VUR7,8);VUR9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF( INDEXC,1))-1);VURA:=2.5*MAX(VUR1,VUR9);VURB:=DMA(INDEXC,VURA);VURC:=EMA(20*(VURB/REF(VURB,1)-1),1)*38;VURD:=EMA(VURC,2);VURE:=EMA(VURC,2);D强:STICKLINE(VURD>0,0,VURD,6.5,1),COLORB210E4;D弱:STICKLINE(VURD<0,0,VURD,6.5,1),COLORFFA6A6;极强:STICKLINE(VUR5>0,0,VUR5,6.5,0),COLOR00FFFF;强势:STICKLINE(VUR6>0,0,VUR6,6.5,0),COLORRED;极弱:STICKLINE(VUR5<0,0,VUR5,6.5,0),COLOR10D010;弱势:STICKLINE(VUR6<0,0,VUR6,6.5,0),COLORE4E410;DX:VURE,LINETHICK2,COLOR1088FF;界:VURS,LINETHICK2,COLOR6CBC10;控:VUR8,COLORFF10FF;2.铁底VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3; VAR7:=EMA(VAR6,5);VAR8:=IF(VAR6<=-20,10,0); VAR9:=HHV(VAR8,10);STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND VARA>10;VARC:=(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)); VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG (3,5),2)>=REF(ZIG(3,5),3));STICKLINE((VARC=1),(-14),0,4,0),COLOR0000FF; DRAWTEXT((VARC=1),(-14),'买'),COLOR0000FF; STICKLINE((VARD=1),14,0,4,0),COLOR00FF00;DRAWTEXT((VARD=1),18,'卖'),COLOR00FF00;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);VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15); VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17); VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60; VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;VAR59:=1/WINNER(CLOSE);VAR33:=MA(CLOSE,13);VAR34:=100-ABS((CLOSE-VAR33)/VAR33*100);VAR35:=LLV(LOW,75);VAR36:=HHV(HIGH,75);VAR37:=(VAR36-VAR35)/100;VAR38:=SMA((CLOSE-VAR35)/VAR37,20,1);VAR39:=SMA((OPEN-VAR35)/VAR37,20,1);VARA3:=3*VAR38-2*SMA(VAR38,15,1);VARB3:=3*VAR39-2*SMA(VAR39,15,1);VARC3:=100-VARB3;VARE3:=REF(LOW,1)*0.9;VARF3:=LOW*0.9;VAR40:=(VARF3*VOL+VARE3*(CAPITAL-VOL))/CAPITAL;VAR41:=EMA(VAR40,30);VAR42:=CLOSE-REF(CLOSE,1);VAR43:=MAX(VAR42,0);VAR44:=ABS(VAR42);VAR45:=SMA(VAR43,7,1)/SMA(VAR44,7,1)*100;VAR46:=SMA(VAR43,13,1)/SMA(VAR44,13,1)*100;VAR47:=BARSCOUNT(CLOSE);VAR48:=SMA(MAX(VAR42,0),6,1)/SMA(ABS(VAR42),6,1)*100;VAR49:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR3A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR3B:=SMA((SMA(VAR3A,4,1)-50)*2,3,1);VAR3C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR3D:=SMA(VAR3C,4,1);VAR3E:=SMA(VAR3D,3,1);VAR3F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR50:=VAR48<=25 AND VAR49<-95 AND VAR3F>20 AND VAR3B<-30 AND VAR3E<30 AND VAR41-CLOSE>=-0.25 AND VAR45<22 AND VAR46<28 AND VAR47>50;VAR51:=(HIGH+LOW+CLOSE)/3;VAR52:=(VAR51-MA(VAR51,14))/(0.015*AVEDEV(VAR51,14));VAR53:=(VAR51-MA(VAR51,70))/(0.015*AVEDEV(VAR51,70));VAR54:=IF(VAR52>=150 AND VAR52<200 AND VAR53>=150 AND VAR53<200,10,0);VAR55:=IF(VAR52<=-150 AND VAR52>-200 AND VAR53<=-150 AND VAR53>-200,-10,VAR54);VAR56:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VAR57:=REVERSE(VAR56);VAR58:=SMA(VAR56,3,1);VARFF:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);VAR199:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);VAR20:=VARF<REF(VAR199,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);VAR1:=(CLOSE*2+HIGH+LOW)/4*10;VAR2:=EMA(VAR1,13)-EMA(VAR1,34);VAR333:=EMA(VAR2,5);VAR444:=2*(VAR2-VAR333)*5.5;VAR555:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;VAR666:=EMA(3*VAR55-2*SMA(VAR55,18,1),5);VAR777:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;VAR888:=(INDEXC*2+INDEXH+INDEXL)/4;VAR999:=EMA(VAR888,13)-EMA(VAR888,34);VARAA:=EMA(VAR999,3);VARBBB:=(VAR999-VARAA)/2;VAREE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR100:=(HIGH+LOW+CLOSE)/3;VAR11:=(VAR100-MA(VAR100,14))/(0.015*AVEDEV(VAR100,14));VAR122:=(VAR100-MA(VAR100,70))/(0.015*AVEDEV(VAR100,70));VAR133:=IF(VAR11>=150 AND VAR11<200 AND VAR122>=150 AND VAR122<200,10,0);VAR144:=IF(VAR11<=-150 AND VAR11>-200 ANDVAR122<=-150 AND VAR122>-200,-10,VAR133);VAR155:=(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100;VAR166:=100-ABS(VAR155);VAR177:=IF(VAR166<90,VAR166,100);VAR1AA:=IF(VAREE>0,VAREE,0);VAR1BB:=IF(VAR122>=200 AND VAR11>=150,15,IF(VAR122<=-200 AND VAR11<=-150,-15,VAR14))+60;VAR1CC:=VAR1AA>48 AND VAR1BB>60 AND VAR177<100;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);均线流:(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 7),POINTDOT,LINETHICK3;PL1:=(((CLOSE - MA60) / MA60) < 0.1);PL2:=(((CLOSE - MA250) / MA250) < 0.3);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:(MACD超跌* "MACD.MACD"(26,12,9))*(-1),STICK,LINETHICK2,COLORFFFF00;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;VAR27A:=REF(CLOSE,1);VAR28A:=SMA(MAX(CLOSE-VAR27A,0),5.5,1)/SMA(ABS(CLOSE-VAR27A),6,1)*100;VARA1:=((AMOUNT)/(VOL))/(100);VARB1:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);VARC1:=((SUM(AMOUNT,7))/(VARA1))/(100);VARD1:=DMA(VARB1,(VOL)/(VARC1));VARE1:=((CLOSE-VARD1)/(VARD1))*(100);VARF1:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);VARJ1:=MA(VARE1,20)+STD(VARE1,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);AA1:=SMA(VARF1,3,1);SS1:=(REF(BIAS18,1)>=5) AND CROSS(VARJ1,VARE1) AND (AA1>79);VAR1AAA:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);{ZIG 有未来}VAR2AAA:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);果断买入:IF(VAR2AAA AND COUNT(VAR2AAA,3)=1,-15,0),STICK,LINETHICK1,COLORFF00FF;STICKLINE(VAR2AAA,0,-25,4,0),COLORFF00FF;VAR91:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);VAR92:=SMA(VAR91,3,1);VAR93:=SMA(VAR92,3,1);VAR94:=((3 * VAR92) - (2 * VAR93));VAR95:=(VAR92 + VAR93);VAR96:=(VAR95 < 55);VAR97:=(VAR95 < 60);VAR98:=CROSS(MA(CLOSE,10),MA(CLOSE,15));VAR99:=CROSS(MA(CLOSE,10),MA(CLOSE,19));VAR4A:=(REF(VAR96,3) AND (((((REF(VAR96,18) ORREF(VAR96,27)) OR REF(VAR96,76)) OR REF(VAR96,87)) OR REF(VAR96,99)) OR REF(VAR96,212)));VAR4B:=(REF(VAR96,23) AND (REF(VAR96,78) OR REF(VAR96,132)));VAR4C:=(SARTURN(2,3,30) = 1);VAR4D:=(REF(VAR96,8) AND (REF(VAR96,132) OR REF(VAR96,76)));VAR4E:=((REF(VAR97,18) AND REF(VAR97,88)) AND REF(VAR97,90));VAR4F:=((CLOSE / REF(CLOSE,1)) >= 1.099);VAR1000:=((OPEN = LOW) AND (HIGH = CLOSE));VAR101:=((VOL < MA(VOL,5)) AND (VOL < REF(VOL,1)));VAR102:=(((VAR4F AND VAR1000) AND VAR101) AND (COUNT(((VAR4F AND VAR1000) AND VAR101),20) = 1));(VAR102 AND (((((((VAR98 OR VAR99) OR VAR4A) OR VAR3B) OR VAR4C) OR VAR4D) OR VAR4E) OR (VAR95 < 38)));DRAWTEXT(VAR102 AND COUNT(VAR102,20)=1,60,'井★喷'),LINETHICK2,COLOR00FF00;井喷:IF(VAR102 AND COUNT(VAR102,20)=1,50,0),STICK,LINETHICK2,COLOR00FF00;ZYX1:="DMI.PDI"(12,6);ZYX2:="DMI.MDI"(12,6);ZYX3:=ZYX1>65 AND ZYX1>REF(ZYX1,1);ZYX4:=LLV(ZYX1,0);ZYX5:=BARSLAST(ZYX4=ZYX1);ZYX6:=(0-REF(ZYX2,4))/(ZYX4-REF(ZYX2,ZYX5))>2;ZYX7:=ZYX1>REF(ZYX1,1);ZYX8:=VOL>2*MA(VOL,30);ZYX9:="DMI.ADX"(12,6);ZYXA:="DMI.ADXR"(12,6);ZYXB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;ZYXC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);ZYXD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BA RSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));{ZYXE:=0-"MACD.DIFF"(7,21,3);}ZYXF:=TROUGHBARS(3,15,1)<4;ZYX10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);ZYX11:=IF(ZYXF=1,50,0);ZYX12:=CROSS(ZYX2,ZYX1) AND CROSS(ZYXA,ZYX9);ZYX13:=CROSS(ZYX2,ZYX1) AND CROSS(ZYX9,ZYXA);ZYX14:=ZYXB AND ZYXC AND ZYXD AND ZYX10 AND ZYX6 AND ZYX7 AND ZYX8*50;ZYX15:=BARSLAST(CROSS(ZYX2,ZYX1)=1);ZYX16:=BARSLAST(CROSS(ZYX1,ZYX2)=1);ZYX17:=HHV(ZYX1,ZYX16);ZYX18:=BARSLAST(ZYX1=ZYX17);STICKLINE(FILTER(ZYXF=1,5),50,0,10,0),COLORRED;ZYX19:=ZYX3 OR ZYX12 OR ZYX13*100;ZYX1A:=ZYX13*100;DRAWICON(FILTER(ZYXF=1,3),80,1);DRAWTEXT(FILTER(ZYXF=1,3),60,'铁底'),COLORYELLOW;X5:=EXPMA(CLOSE,3);X10:=EXPMA(CLOSE,7);X20:=EXPMA(CLOSE,20);五日斜率:=(X5-REF(X5,1))*100/REF(X5,1),LINETHICK2,COLORYELLOW;十日斜率:=(X10-REF(X10,1))*100/REF(X10,1),LINETHICK2,COLORBLUE;二十斜率:=(X20-REF(X20,1))*100/REF(X20,1),LINETHICK2,COLORWHITE;XX5:=XMA(五日斜率,4),LINETHICK2,COLORYELLOW;XX10:=XMA(十日斜率,7),LINETHICK2,COLORBLUE;XX200:=XMA(二十斜率,20);AA11:=XX200>=0.7 AND REF(XX200,1)<XX200 AND XX5> XX10 AND XX10>XX200AND REF(XX5,2)<REF(XX10,2) AND REF(XX10,2)< REF(XX200,2) ;XX202:=XMA(二十斜率,22);AA2:=XX202>=0.7 AND REF(XX200,1)<XX200 AND XX5> XX10 AND XX10>XX202AND REF(XX5,2)<REF(XX10,2) AND REF(XX10,2)< REF(XX202,2) ;XX204:=XMA(二十斜率,24);AA3:=XX204>=0.7 AND REF(XX200,1)<XX200 AND XX5> XX10 AND XX10>XX204AND REF(XX5,2)<REF(XX10,2) AND REF(XX10,2)< REF(XX204,2) ;XX206:=XMA(二十斜率,26);AA4:=XX206>=0.7 AND REF(XX200,1)<XX200 AND XX5> XX10 AND XX10>XX206AND REF(XX5,2)<REF(XX10,2) AND REF(XX10,2)< REF(XX206,2) ;XX207:=XMA(二十斜率,20);AA7:=XX207>=0.7 AND REF(XX207,1)<XX207 AND CROSS(XX10,XX207)AND CROSS(REF(XX5,1),REF(XX207,1));XX2071:=XMA(二十斜率,23);AA71:=XX2071>=0.7 AND REF(XX2071,1)<XX2071 AND CROSS(XX10,XX2071)AND CROSS(REF(XX5,1),REF(XX2071,1));XX2072:=XMA(二十斜率,26);AA72:=XX2072>=0.7 AND REF(XX2072,1)<XX2072 AND CROSS(XX10,XX2072)AND CROSS(REF(XX5,1),REF(XX2072,1));XX208:=XMA(二十斜率,20);AA8:=XX208>=0.7 AND REF(XX208,1)<XX208 AND CROSS(XX10,XX208)AND CROSS(XX5,XX208);XX2081:=XMA(二十斜率,23);AA81:=XX2081>=0.7 AND REF(XX2081,1)<XX2081 AND CROSS(XX10,XX2081)AND CROSS(XX5,XX2081);XX2082:=XMA(二十斜率,26);AA82:=XX2082>=0.7 AND REF(XX2082,1)<XX2082 AND CROSS(XX10,XX2082)AND CROSS(XX5,XX2082);AA1 OR AA2 OR AA3 OR AA4 OR AA7 OR AA71 OR AA72 OR AA8 OR AA81 OR AA82;DRAWTEXT(AA1=1,H/2,'AA1'),COLORRED;DRAWTEXT(AA2=1,H/2.5,'AA2'),COLORRED;DRAWTEXT(AA3=1,H/3,'AA3'),COLORRED;DRAWTEXT(AA4=1,H/3.5,'AA4'),COLORRED;DRAWTEXT(AA7=1,H/4,'AA7'),COLORRED;DRAWTEXT(AA71=1,H/1.88,'AA71'),COLORRED;DRAWTEXT(AA72=1,H/2.98,'AA72'),COLORRED;DRAWTEXT(AA8=1,H/3.18,'AA8'),COLORRED;DRAWTEXT(AA81=1,H/1.58,'AA81'),COLORRED;DRAWTEXT(AA82=1,H/2.78,'AA82'),COLORRED;3.红柱选股VOLUME:VOL,VOLSTICK;主力启动线:MA(VOLUME,5),COLORRED,LINETHICK2;主力洗盘线:MA(VOLUME,35),COLORYELLOW,LINETHICK2;资金异动线:MA(VOLUME,135),COLORBLUE,LINETHICK2;出击:STICKLINE(CROSS(主力启动线,资金异动线) OR ((主力洗盘线> 资金异动线) AND CROSS(主力启动线,主力洗盘线)),0,VOL,2,0),COLORYELLOW;启动:STICKLINE(主力启动线>REF(主力启动线,1) AND (CROSS(VOL,主力启动线) AND (REF(VOL,1)<REF(资金异动线,1) OR REF(VOL,2)<REF(资金异动线,2))),0,VOL,3,0),COLORGREEN;V1:=CLOSE/REF(CLOSE,3)>=1.1;V2:=BACKSET(V1,2);V3:=REF(CLOSE,3)*1.1;V4:=CROSS(C,V3);OK:STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,5,0),COLORRED;COND:(CROSS(主力启动线,资金异动线) OR ((主力洗盘线 > 资金异动线) AND CROSS(主力启动线,主力洗盘线)))OR (主力启动线>REF(主力启动线,1) AND (CROSS(VOL,主力启动线) AND (REF(VOL,1)<REF(资金异动线,1) OR REF(VOL,2)<REF(资金异动线,2))))OR (V2 AND COUNT(V2,2)=1),LINETHICK0;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);长期线:=A+100;短期线:=B+100;中期线:=D+100;见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));顶部区域:=(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线 AND 短期线<长期线+4;顶部:=FILTER(顶部区域,4);STICKLINE( {见顶OR} 顶部,VOL,VOL*1.1,20,1 ),COLORBLUE,LINETHICK2;VAR6:=REF(CLOSE,1);VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;STICKLINE( CROSS(84,VAR7),VOL,VOL*1.05,20,1 ),COLOR009 9FF,LINETHICK2;均势一:=(((((((((CLOSE + REF(CLOSE,1)) + REF(CLOSE,2)) + REF(CLOSE,3)) + REF(CLOSE,4)) + REF(CLOSE,5)) + REF(CLOSE,6)) + REF(CLOSE,7)) + REF(CLOSE,8)) / 9);均势二:=((((CLOSE + REF(CLOSE,1)) + REF(CLOSE,2)) + REF(CLOSE,3)) / 4);趋势一:=((((均势一 - REF(均势一,1)) / REF(均势一,1)) * 1000) + 50);趋势二:=((((均势二 - REF(均势二,1)) / REF(均势二,1)) * 1000) + 50);波段高位:=(CROSS(趋势一,趋势二) AND (COUNT((CLOSE > REF(HIGH,1)),12) > 5));STICKLINE(波段高位,VOL,VOL*1.08,20,1 ),COLORGREEN,LINETHICK2;。

通达信筹码五彩涨停K线主图指标公式

通达信筹码五彩涨停K线主图指标公式

通达信筹码五彩涨停K线主图指标公式{筹码成本}五十成本集中:=(COST(75)-COST(25))/(COST(75)+COST(25))*100;成本价1:COST(五十成本集中),COLORGREEN;五十成本集中1:=100-五十成本集中;成本价2:COST(五十成本集中1),COLORBLUE;底部:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;底部成本价:COST(底部),COLORYELLOW;DRAWNUMBER(CURRBARSCOUNT=1 AND 底部成本价,底部成本价,底部成本价),COLORYELLOW;顶部:=100-底部;顶部成本价:COST(顶部),COLORGREEN;DRAWNUMBER(CURRBARSCOUNT=1 AND 顶部成本价,顶部成本价,顶部成本价),COLORWHITE;均值:=(底部+顶部)/2;均值成本:COST(均值),COLORLICYAN,LINETHICK3;DRAWBAND(顶部成本价,RGB(68,0,1),均值成本,RGB(68,0,1));DRAWBAND(均值成本,RGB(3,43,63),底部成本价,RGB(3,43,63));DRAWKLINE(H,O,L,C);DRAWNUMBER(CURRBARSCOUNT=1 AND 均值成本,均值成本,均值成本),COLORLIGREEN;底部突破1:=REF(成本价1,2)>REF(成本价1,1) AND 成本价1>REF(成本价1,1);DRAWTEXT(底部突破1 ,L*0.99,'大底'),COLORCYAN;顶部突破3:=REF(成本价2,2)>REF(成本价2,1) AND 成本价2>REF(成本价2,1);顶部突破4:=REF(成本价2,2)=REF(成本价2,1) AND 成本价2>REF(成本价2,1);DRAWTEXT(顶部突破 3 OR 顶部突破 4 ,L*0.99,'跃'),COLORBROWN;买点1:=REF(均值成本,2)>REF(均值成本,1) AND 均值成本>REF(均值成本,1);买点2:=REF(均值成本,2)=REF(均值成本,1) AND 均值成本>REF(均值成本,1);DRAWTEXT(买点 1 OR 买点 2 AND C>O,L*0.99,'买'),COLORMAGENTA;底部突破:=REF(底部成本价,2)>REF(底部成本价,1) AND 底部成本价>REF(底部成本价,1);DRAWTEXT(底部突破 ,L*0.995,'底'),COLORWHITE;顶部突破:=REF(顶部成本价,2)>REF(顶部成本价,1) AND 顶部成本价>REF(顶部成本价,1);顶部突破2:=REF(顶部成本价,2)=REF(顶部成本价,1) AND 顶部成本价>REF(顶部成本价,1);突破顶部:=CROSS(C,顶部成本价);突破均值成本:=CROSS(C,均值成本);{涨幅}涨幅:=(C-REF(C,1))/REF(C,1)*100>5;{压力线}TY:=C;HD1:=FILTER(BACKSET(FILTER(REF(TY,7)=HHV(TY,2*7+1),7), 7+1),7);LD1:=FILTER(BACKSET(FILTER(REF(TY,3)=LLV(TY,2*7+1),7),7+ 1),7);A:=REF(C,BARSLAST(HD1));B:=REF(C,BARSLAST(LD1));T1:=BARSLAST(HD1)<BARSLAST(LD1) AND NOT(HD1) ;T2:=BARSLAST(HD1)>BARSLAST(LD1) AND NOT(LD1);波浪顶:IF(T1,A,A),COLORFF00FF,DOTLINE;突破:=CROSS(C,波浪顶);DF2:=(C-REF(C,1))/REF(C,1)*100>5;DF3:=(C-O)/O*100>4;当天涨幅:(C-O)/O*100,NODRAW;V型反转:=L<底部成本价 AND DF2;V型反转2:=CROSS(C,底部成本价) AND DF2;V型反转3:=L<底部成本价 AND DF3;成立:=V型反转 OR V型反转2 OR V型反转3;STICKLINE(成立,HIGH,LOW,0,1 ),COLORRED;STICKLINE(成立 ,OPEN,CLOSE,3,0 ),COLOR000055;STICKLINE(成立,OPEN,CLOSE,2.7,0 ),COLOR000077;STICKLINE(成立,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(成立,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(成立,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(成立 ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(成立 ,O,C,0,1 ),COLORMAGENTA;DRAWTEXT(成立,L*0.99,'↖狙击'),COLOR00FFFF;DF:=(C-REF(C,1))/REF(C,1)*100<-4;DF4:=(C-O)/O*100<-4;AA:=BARSLAST(DF);突破箱体:=CROSS(C,REF(C,AA));箱顶:DRAWLINE(DF,O,REF(DF,1),REF(O,1),1),COLORMAGENTA DOTLINE;箱顶1:DRAWLINE(DF4,O,REF(DF4,1),REF(O,1),1),COLORYELLOW DOTLINE;箱底:=LLV(MIN(L,REF(L,AA)),AA),COLORCYAN,LINETHICK2;反转:=CROSS(C,箱顶) AND REF(DF,1)=1 ;反转1:=CROSS(C,箱顶1) AND REF(DF4,1)=1;白K:突破顶部 AND 涨幅 AND C=H;STICKLINE(白K,C,O,3.5,0 ),COLORWHITE;DRAWTEXT(白K,L*0.99,'↖白K'),COLORWHITE;红K:突破均值成本 AND 涨幅 AND C=H;STICKLINE(红K,C,O,3.5,0 ),COLORRED;DRAWTEXT(红K,L*0.99,'↖红K'),COLORRED;黄K:反转 OR 反转1 AND 涨幅 AND C=H;STICKLINE(黄K,C,O,3.5,0 ),COLORYELLOW;DRAWTEXT(黄K,L*0.99,'↖黄K'),COLORYELLOW;粉K:=顶部突破3 OR 顶部突破4 AND 涨幅 AND C=H; STICKLINE(粉K,C,O,3.5,0 ),COLORLIRED;DRAWTEXT(粉K,L*0.99,'↖粉K'),COLORLIRED;绿K:买点1 OR 买点2 AND 涨幅 AND C=H;STICKLINE(绿K,C,O,3.5,0 ),COLORGREEN;DRAWTEXT(绿K,L*0.99,'↖绿K'),COLORGREEN;A111:=COST(85);A222:=COST(15);A333:=A111-A222;A444:=(A111+A222)/2;DFMJ:=A333/A444*100<30,LINETHICK0;B1:=HHV(HIGH,250);B2:=LLV(LOW,250);BH3:=B1-B2;B4:=(A444-B2);DW:=A444<(BH3*04+B2),LINETHICK0;DWDF:=DW AND DFMJ;B5:=C/REF(C,1)>1.04 AND C=H;CMJZ: DWDF AND B4 AND WINNER(C)>=0.95 AND B5; DRAWICON(CMJZ,LOW*0.99,27);DRAWTEXT_FIX(1,0,0.05,0,'1、☆白K:突破顶部 ')COLORWHITE; DRAWTEXT_FIX(1,0,0.10,0,'2、☆红K:突破均值成本')COLORRED;DRAWTEXT_FIX(1,0,0.15,0,'3、☆黄K:反转 ')COLORYELLOW;DRAWTEXT_FIX(1,0,0.20,0,'4、☆粉K:=跃 ')COLORLIRED;DRAWTEXT_FIX(1,0,0.25,0,'5、☆绿K:买 ')COLORGREEN;。

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

【通达信】含量能的K线图(发动线、涨跌停、压力支撑)-指标公式源码
MA8:MA(CLOSE,8);
MA21:MA(C,21);
MA62:MA(CLOSE,62);
MA89:=MA(C,89);
MA144:MA(C,144);
发动线:DMA(C,V/CAPITAL),COLORLIBLUE,LINETHICK2;
AA:=CROSS(C, MA89) OR CROSS( MA8, MA62) OR CROSS( MA8, MA89) OR CROSS(C,发动线);
A1:=MA(VOL,5);
A2:=REF(A1,1);
A3:=VOL/A2>2 AND AA;
DRAWTEXT(A3,L,'跟进');
{涨跌停}
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(涨停,H,L,0,0),COLORMAGENTA;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
V55:=MA(V,55);
V250:=MA(V,250);
DRAWICON(CROSS(V55,V250),H,9){量能穿越底部启动};
DRAWICON(V>2*V250,H,1){量价配合};
{压力支撑}
PH:=TROUGHBARS(2,5,1);
LL:=HHV(H,PH);
TJ1:=LL=HIGH AND LL<REF(LL,1);{//=1}
TS:=SUMBARS(TJ1,2);
TJ:=PEAKBARS(2,5,1)=1 AND TS>=PH;
DRAWICON(TJ,HIGH*1.01+0.02,2);
警告:IF(TJ,HIGH*1.008,DRAWNULL),CROSSDOT,LINETHICK2,COLORCYAN;
PL:=BARSLAST(TJ);
支撑:IF(BARSLAST(TJ1),REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLORRED;
压力:IF(BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),COLORGREEN;
TJ_2:=LOW>REF(REF(LOW,TS),PL);
DRAWTEXT(ISLASTBAR,压力,'压力'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLOREA91B5;
{止
损}{TR :=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR1:=MA(TR,13);
VAR1:=REF(CLOSE,1)-REF(ATR1,1);
止损:HHV(VAR1,13),COLORYELLOW,LINETHICK2;};
【通达信】含量能的K线图(发动线、涨跌停、压力支撑)-指标公式效果图
(文档来源:若水财经社区)。

相关文档
最新文档