【股票指标公式下载】-【通达信】送红包(阶段底部、趋势线)
通达信指标公式源码 筹码趋势 副图源码
庄筹:=WINNER(CLOSE)*100,COLORRED, LINETHICK2;
筹码集中度:EMA(庄筹,20),COLORRED, LINETHICK1;
筹码集中警戒线:EMA(筹码集中度,5),COLORYELLOW, LINETHICK1;
筹码集中生命线:EMA(筹码集中警戒线,5),COLORBLUE, LINETHICK1;
STICKLINE(筹码集中度>筹码集中警戒线,筹码集中度,筹码集中警戒线,2,0),COLORRED; STICKLINE(筹码集中度<筹码集中警戒线,筹码集中度,筹码集中警戒线,2,0),COLORGREEN; STICKLINE(筹码集中警戒线>筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,0),COLORFF00FF;
STICKLINE(筹码集中警戒线<筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,0),COLORFFFF00;
A:=CROSS(筹码集中度,筹码集中警戒线);
B:=CROSS(筹码集中警戒线,筹码集中度);
DRAWICON(A,筹码集中度-0.1,10);
DRAWICON(B,筹码集中度+0.1,12);。
【股票指标公式下载】-【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)
【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)-指标公式源码黄金柱:=V/REF(V,1)>=2.0;K1:=SUMBARS(黄金柱,1) ;K2:=SUMBARS(黄金柱,2);K3:=SUMBARS(黄金柱,3);K4:=SUMBARS(黄金柱,4);K5:=SUMBARS(黄金柱,5);K6:=SUMBARS(黄金柱,6);K7:=SUMBARS(黄金柱,7);K8:=SUMBARS(黄金柱,8);K9:=SUMBARS(黄金柱,9);K10:=SUMBARS(黄金柱,10);AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),5,0),COLORYELLOW; {预定黄金柱}{预定黄金柱:=REF(V,2)>=REF(V,3)*1.99 AND REF(C,2)>REF(O,2)AND REF(V,2)=HHV(V,3) AND C/REF(C,2) >=1.0995 ANDREF(L,2)=LLV(L,3);}{预定:STICKLINE(预定黄金柱,H,H,30,0),COLORRED;}{DRAWICON(预定黄金柱,H,19);}{将军柱中的五星上将黄金柱}T60:=V=HHV(V,60);T100:=V=HHV(V,100);T2:=V/REF(VOL,1)>=3;T3:=REF(C,1)/REF( O,1)<3;五星上将:=(T60 AND T2 AND T3) OR (T100 AND T2 AND T3);DRAWICON(五星上将,H,23);{量柱图}C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORWHITE;STICKLINE(涨停,H,L,0,0),COLORWHITE;DRAWICON(涨停,L-0.2,11);DRAWTEXT(涨停,L-0.2,' --涨停');跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;DRAWICON(跌停,H+0.2,2);DRAWTEXT(跌停,H+0.2,' --跌停');{大阳线:=IF((C-C2)*100/C2>=5,1,0) ANDIF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;STICKLINE(大阳线,H,L,0,1),COLORRED;大阴线:=IF((C2-C)*100/C2>=5,1,0) ANDIF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;STICKLINE(大阴线,H,L,0,1),COLORGREEN;}{MA13:MA(CLOSE,13),COLORWHITE;MA34:MA(CLOSE,34),COLORYELLOW;MA55:MA(CLOSE,55),COLOR9933FF;}{MA4:MA(CLOSE,4),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,20),COLOR9933FF;MA30:MA(CLOSE,30),COLORLIBLUE;MA60:MA(CLOSE,60),COLORWHITE;MA120:MA(CLOSE,120),COLORLIGREEN;}TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10);C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10);CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3;前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3;{求位置坐标}PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),IF(LLV(L,3)>=REF(O,3) ANDREF(C,3)>REF(O,3),REF(O,3),REF(L,3))));{自动画量能平台}{NN 1 300 21}{NN:=21;TTJ:=BARSLAST(REF(倍量黄金柱,NN-1));K0:=TTJ=0;K1:=SUMBARS(K0,1);K2:=SUMBARS(K0,2);K3:=SUMBARS(K0,3);K4:=SUMBARS(K0,4);K5:=SUMBARS(K0,5);K6:=SUMBARS(K0,6);K7:=SUMBARS(K0,7);K8:=SUMBARS(K0,8);K9:=SUMBARS(K0,9);K10:=SUMBARS(K0,10);CCCC1:=REF(C,K1-1);}{在K线图上标示量柱类型}倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) ANDC>REF(C,1),H+0.2,26);低量:=DRAWICON(VOL<REF(LLV(VOL,13),1),H+0.1,2);地量:=DRAWICON(VOL<REF(LLV(VOL,100),1),H+0.1,12);平量:=DRAWICON(ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,H+0.1,16);倍缩:=DRAWICON(VOL<=REF(V,1)*0.5,H+0.1,27);{画量柱标识:}{1.画倍量黄金柱标识--红箭头图标}倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,1);{2.画梯量黄金柱标识--橘子图标}梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17); {3.画平量黄金柱标识--苹果图标}平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19); {4.画立桩量标识--顶部红箭头图标}N:=25;立桩量:=REF(V,3)/REF(MA(V,5),4)>(N/10) ANDREF(V,3)/REF(HHV(V,60),4)>1.5 AND LLV(L,3)>REF(L,3);STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,30,0),COLORWHITE;DRAWICON(倍量黄金柱,PHD*1.008,12);DRAWTEXT(倍量黄金柱,PHD*1.010,' 标准黄金柱精准线'),COLORFF00FF; DRAWTEXT(倍量黄金柱,PHD,'================='),COLORWHITE;{平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW; DRAWTEXT(平量黄金柱,PHD*1.015,'平量黄金线'),COLORLIGREEN ;梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW; DRAWTEXT(梯量黄金柱,PHD*1.015,'梯量黄金线'),COLORFF00FF ;}立桩量标识:DRAWICON(立桩量,H*1.002,1);DRAWTEXT(立桩量,H*1.06,'立'),COLORRED;DRAWTEXT(立桩量,H*1.04,'桩'),COLORRED;DRAWTEXT(立桩量,H*1.02,'量'),COLORRED;{DA:STICKLINE(K4<=30,REF(C,K4-1)*1.002,REF(C,K4-1),10,0),COLORBLUE; EA:STICKLINE(K5<=30,REF(C,K5-1)*1.002,REF(C,K5-1),10,0),COLORBLUE; FA:STICKLINE(K6<=30,REF(C,K6-1)*1.002,REF(C,K6-1),10,0),COLORBLUE; GA:STICKLINE(K7<=30,REF(C,K7-1)*1.002,REF(C,K7-1),10,0),COLORBLUE; HA:STICKLINE(K8<=30,REF(C,K8-1)*1.002,REF(C,K8-1),10,0),COLORBLUE; IA:STICKLINE(K9<=30,REF(C,K9-1)*1.002,REF(C,K9-1),10,0),COLORBLUE; JA:STICKLINE(K10<=30,REF(C,K10-1)*1.002,REF(C,K10-1),10,0),COLORBLUE; }AAA:=CONST(HHV(H,90));TS1:=0+0.03;TS2:=TS1+0.03;TS3:=TS2+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS1),'<一>.量柱的阶段性拐点标志--空间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS2),' 1.平台起柱:在K线整理平台上突然起柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS3),' 2.凹口起柱:在K线逐步回调形成凹口时起柱.常见凹口倍量;'),COLORFF00FF ;TS4:=TS3+0.03;TS5:=TS4+0.03;TS6:=TS5+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS4),' 3.过顶起柱:过左峰起柱.常见过顶倍量;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS5),' 4.触底起柱:触前期谷底起柱.常见触底倍量.'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS6),'<二>.量柱的集合定性--组合量柱:'),COLORFF00FF ;TS7:=TS6+0.03;TS8:=TS7+0.03;TS9:=TS8+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS7),' 1.低量柱+倍量柱:后市必大涨!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS8),' 2.倍量柱+倍量柱:主庄控盘良好,急于拉升!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS9),' 3.缩倍柱+倍量柱:机会就在眼前!'),COLORFF00FF ;{============================}BBB:=CONST(HHV(H,190));TT1:=0+0.03;TT2:=TT1+0.03;TT3:=TT2+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT1),'<三>.量柱的三日定性--时间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT2),' 1.后三日价升量缩:转化为黄金柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT3),' 2.后三日量柱先阴后阳:该量柱官升一级;'),COLORFF00FF ;TT4:=TT3+0.03;TT5:=TT4+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT4),' 3.后三日量柱阴阳相间:量柱退化,走势面临调整;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT5),' 4.后三日量柱实体逐步缩小:力量将衰退,面临调整.'),COLORFF00FF ;{底部趋势拐点}VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL); VOLUME:=VOL;AAG:=VOL>=REF(V,1)*1.91 AND C>REF(C,1);AA1G:=VOL<REF(LLV(VOL,21),1);AA2G:=VOL<REF(LLV(VOL,55),1);AA3G:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;MAVOL5:=MA(VOLUME,5);MAVOL35:=MA(VOLUME,35);MAVOL135:=MA(VOLUME,135);VOLUME5:=MA(VOLUME,5);VOLUME35:=MA(VOLUME,35);VOLUME135:=MA(VOLUME,135);买入:=CROSS(VOLUME5,VOLUME135);DRAWICON(买入,L,9);买入1:=CROSS(VOLUME35,VOLUME135);DRAWICON(买入1,L,5);买入2:=CROSS(VOLUME5,VOLUME35);DRAWICON(买入2,L,1);{非常棒}EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;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; DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELL OW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOS E,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;A0:=(L+H+C*2)/4;A1B:EMA(A0,14),COLORBLUE,LINETHICK2;A2B:=EMA(A0,25),COLORLIBLUE,LINETHICK2;A1X:=(A1B-REF(A1B,1))/REF(A1B,1)*100,NODRAW;A2X:=(A2B-REF(A2B,1))/REF(A2B,1)*100,NODRAW;看多:IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL ),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL ),COLORCYAN,{LINETHICK2};买入持股:IF(A1X>=0,A1B,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1B,DRAWNULL)COLORGREEN,LINETHICK3; {STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;};【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)-指标公式效果图(文档来源:若水财经社区)。
通达信暴利赚钱主图指标公式
通达信暴利赚钱主图指标公式DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'11',0);MA10:MA(C,10);MA60:MA(C,60);VAR6:=(( ABS((OPEN-CLOSE))/(HIGH-LOW))*VOL);VAR7:=(( (HIGH-IF((CLOSE>OPEN),CLOSE,OPEN))/(HIGH-LOW))*VOL);VAR8:=(( (IF((CLOSE>OPEN),OPEN,CLOSE)-LOW)/(HIGH-LOW))*VOL);VAR9:=IF(((VOL/CAPITAL)>0.001),1,EXP(ABS(LOG(((VOL/CAP ITAL)*100)))));加仓:VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE>OPEN,NODRAW,COLORRED;减仓:VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE<OPEN,NODRAW,COLORBLUE;洗盘:VAR8>VAR6 AND VAR8>VAR7,NODRAW,COLORWHITE;高抛:VAR7>VAR6 AND VAR7>VAR8,NODRAW,COLORMAGENTA;地量:VAR9>2 AND VOL<MA(VOL,5)/2,NODRAW,COLORGREEN;DRAWKLINE(H,O,L,C);TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(H,BARSLAST(HD)), COLORFF00FF,POINTDOT,LINETHICK3;前期低位:REF(L,BARSLAST(LD)), COLORGREEN,POINTDOT,LINETHICK3;STICKLINE(加仓,O,C,1,0),COLORRED;STICKLINE(洗盘,O,C,1,0),COLORWHITE;STICKLINE(减仓,O,C,1,0),COLORBLUE;STICKLINE(高抛,O,C,1,0),COLORMAGENTA;STICKLINE(地量,O,C,1,0),COLORGREEN;JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4) +3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,5);STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSL AST(LJL)),1,0),COLORRED;STICKLINE(CLOSE,REF(CLOSE,BARSLAST(LJL)),REF(CLOSE,BA RSLAST(LJL)),1,0),COLORYELLOW;STICKLINE(LJL,OPEN,CLOSE,1,0),COLORYELLOW;DRAWTEXT_FIX(1,0.0,0.0,0,'蓝芯-主力低位深度洗盘或高位出货坚决'),COLORBLUE,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.06,0,'白芯-主力轻度洗盘'),COLORWHITE,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.12,0,'棕芯-出现了近期相对地量'),COLORGREEN,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.18,0,'粉芯-主力在做高抛低吸或低吸高抛'),COLORFF00FF,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.24,0,'红芯-主力吸筹进货积极主动'),COLORRED,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.3,0,'黄芯-主力吸筹进货强并且成交量出现黄金柱'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(C>0,0.004,1,0,DYBLOCK),COLORYELLOW,LI NETHICK2;DRAWTEXT_FIX(C>0,0.06,1,0,HYBLOCK),COLORRED,LINETHI CK2;DRAWTEXT_FIX(C>0,0.12,1,0,EXTERNSTR(0,1)),COLORWHITE ,LINETHICK2;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);PL10:=ZIG(3,10);走强2:=BARSLAST(PL10<REF(PL10,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);追2:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;追4:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3;DRAWTEXT(追2 OR 追4,LOW*0.978,'追'),COLORYELLOW;PL5:=ZIG(3,5);EX1:=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);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),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);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),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));{ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);}ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'反弹低点'),COLORLIRED;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'反弹高点!'),COLORLIBLUE;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'底'),COLORYELLOW;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'减仓'),COLORFFFF00;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'----买'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'短卖'),COLORGREEN;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'----短买'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'短卖'),COLORGREEN;DRAWTEXT(EN2 AND DTJZ10=1,L*0.96,'Ⅰ'),COLORFF00FF;DRAWTEXT(EX2 AND DTJD10=2,H*1.03,'Ⅱ'),COLORFF6000;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.95,'Ⅲ'),COLORYELLOW;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'①'),LINETHICK3,COLORFFFF00;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.96,'②'),LINETHICK3,COLORYELLOW;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.02,'清仓!'),LINETHICK3,COLORWHITE;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.96,'④'),LINETHICK3,COLORYELLOW;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.95,'⑷'),COLORYELLOW;EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);EMA120:=EMA(C,120);CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);DRAWTEXT(CR6,C*0.98,'风险'),COLORWHITE;。
通达信 庄家专用指标公式
通达信庄家专用指标公式通达信的庄家专用指标公式是一类用于判断股票庄家操盘意图的指标公式。
下面是几个常用的庄家专用指标公式以及其解释说明:1. 操盘提前量(ADTM)操盘提前量是股价波动的先行指标,用于衡量庄家操盘的力度,公式如下:ADTM = (H+L)/2 - C其中,H为当日最高价,L为当日最低价,C为当日收盘价。
当ADTM值大于0时,表示庄家有较大的操盘意图,股价可能上涨;当ADTM值小于0时,表示庄家有较大的出货意图,股价可能下跌。
2. 庄家操盘力度指数(ARD)庄家操盘力度指数是用于衡量庄家操盘的力度和意图,公式如下:ARD = (V1 - V2)/(V1 + V2)其中,V1为买盘成交量,V2为卖盘成交量。
当ARD值接近1时,表示庄家力度较大,股价可能上涨;当ARD值接近-1时,表示庄家力度较大,股价可能下跌。
3. 操盘热度指数(BSI)操盘热度指数是用于衡量庄家操盘的热度和氛围,公式如下:BSI = (ADV - DDV)/(ADV + DDV)其中,ADV为上涨成交量之和,DDV为下跌成交量之和。
当BSI值接近1时,表示操盘热度较高,股价可能上涨;当BSI值接近-1时,表示操盘热度较高,股价可能下跌。
4. 主力资金流向指标(CMF)主力资金流向指标是用于观察庄家资金流动情况,公式如下:CMF = SUM((H+L)/2 - C)(H-L))/(SUM(H-L)V)其中,H为当日最高价,L为当日最低价,C为当日收盘价,V为交易量。
CMF值越高,表示主力资金流入越大,股价可能上涨;CMF值越低,表示主力资金流出越大,股价可能下跌。
注意:以上公式仅为示例,具体应用时还需结合其他指标和实时市场情况进行综合分析。
5. 动力指标(DMI)动力指标用于判断庄家的动力和动能,公式如下:高点动力线(ADX)= (高点动力线+低点动力线)/2 * 100低点动力线(DI)= (高点动力线-低点动力线)/(高点动力线+低点动力线)* 100当高点动力线上升,低点动力线下降且高点动力线大于25,表示庄家操盘力度较大,股价可能上涨。
通达信指标公式大全
通达信指标公式大全在股票交易中,技术分析是一种非常重要的分析方法,而通达信作为国内领先的股票软件,提供了丰富的指标公式供投资者使用。
本文将为大家详细介绍通达信中常用的指标公式,希望能对投资者的股票交易有所帮助。
1. 移动平均线。
移动平均线是一种常用的趋势分析工具,通达信中提供了多种不同周期的移动平均线指标公式,包括简单移动平均线(MA)、指数移动平均线(EMA)和加权移动平均线(WMA)。
投资者可以根据自己的交易策略选择不同周期的移动平均线进行分析。
2. 相对强弱指标(RSI)。
相对强弱指标是一种用于衡量股价超买超卖情况的指标,通达信中提供了RSI的计算公式。
投资者可以通过RSI指标判断股票的买卖时机,提高交易的准确性。
3. 指数平滑移动平均线(MACD)。
MACD是一种趋势跟踪指标,通达信中提供了MACD的计算公式。
通过观察MACD的金叉死叉情况,投资者可以判断股票的买卖信号,把握住交易机会。
4. 布林带。
布林带是一种用于衡量股价波动情况的指标,通达信中提供了布林带的计算公式。
投资者可以通过观察股价与布林带的位置关系,判断股价的波动情况,从而制定合理的交易策略。
5. 成交量指标。
成交量是股票交易中非常重要的一个指标,通达信中提供了多种成交量指标的计算公式,包括成交量均线、成交量震荡等。
投资者可以通过观察成交量指标,判断股票交易的活跃程度,从而作出交易决策。
6. 动量指标。
动量指标是一种用于衡量股价变化速度的指标,通达信中提供了动量指标的计算公式。
投资者可以通过观察动量指标,判断股价的趋势变化,从而把握住交易机会。
7. 威廉指标。
威廉指标是一种用于衡量股价超买超卖情况的指标,通达信中提供了威廉指标的计算公式。
投资者可以通过观察威廉指标,判断股价的超买超卖情况,制定合理的交易策略。
总结:以上是通达信中常用的指标公式,投资者可以根据自己的交易策略选择合适的指标进行分析,提高交易的准确性和盈利能力。
希望本文能对投资者在股票交易中的指标选择和分析有所帮助。
通达信指标公式源码超级组合顶底副图,抄底逃顶不是梦,适合做波段或者趋势交易。
VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓,动力线),20),动力线+0.02,2);DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖,动力线),20),动力线+0.02,2);界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:=动力线,COLORA8A8A8;{希望之星买点}A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012;{前天星形}A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008;{昨天星形}B1:=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2));B2:=IF(REF(C,1)<REF(O,1),REF(O,1),REF(C,1));B3:=IF(C>O,O,C);B4:=B1>B2 AND B3>B2 AND REF(C,1)<MA(C,5);A1:=ABS(C-O)/O<0.012;{今天星形}星K:A3 AND A2 AND A1 AND B4;{准备上买点}VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区:=VARO7<10;TJ:=COUNT(建仓区,3);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);上升:=CROSS(VAR1,8);准备上:(建仓区OR REF(建仓区,0.5)) AND 上升;{出手买点}出手:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2))AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90);{强势买点}D1:="WR.WR1"<5;D2:=CROSS("KDJ.K","KDJ.D") AND "KDJ.K"<50;D3:=CROSS("MACD.DIF","MACD.DEA");D4:="I">-100 AND "I"<-90;D5:=CROSS("RSI.RSI1","RSI.RSI2")AND "RSI.RSI1"<50;S1:=20;M2:=40;L1:=60;AAA:=CLOSE>OPEN;BBB:=AAA&&CLOSE>MA(CLOSE,S1)&&CLOSE>MA(CLOSE,M2)&&CLOSE>MA(CLOSE,L1); CCC:=BBB&&OPEN<MA(CLOSE,M2)&&OPEN<MA(CLOSE,L1);XG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOSE;AA1:=D1 AND D2;AA2:=D2 AND D3;AA3:=D1 AND D3;XG2:=AA1 OR AA2 OR AA3;强势:IF(XG1 AND XG2,1,0),COLORRED;{底部买点}WW:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);MM:=DMA(CLOSE,WW);{好}通道4:= (1-7/100)*MM;VAR4:=EXPMA(CLOSE,9);LDN:=EXPMA(VAR4*0.86,5);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));TTRR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))), ABS(REF(CLOSE,1)-LOW)),14);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);PDI:=DMP*100/TTRR;MDI:=DMM*100/TTRR;ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);买底: C<=通道4 AND C<=LDN AND CCI<-100AND ADX>=60 AND MDI >= PDI AND CLOSE>OPEN;。
通达信指标公式源码 DDX股票趋势副图
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2)),LINETHICK0,COLORRED;卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH -LOW),0-VOL/2)),LINETHICK0,COLORCYAN;进出量:=买量+卖量,COLOR00FFFF;STICKLINE(进出量<0,0,进出量,4,0),COLORFF6600;STICKLINE(进出量<0,0,进出量,3,0),COLORFF9900;STICKLINE(进出量<0,0,进出量,1.5,0),COLORFFCC00;STICKLINE(进出量<0,0,进出量,0.5,0),COLORCYAN;STICKLINE(进出量>0,0,进出量,4,0),COLOR000099;STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC;STICKLINE(进出量>0,0,进出量,1.5,0),COLOR0000FF;STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF;N:=5;M:=31;N日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN;流入:IF(N日内净流入>REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;连红天:BARSLASTCOUNT(进出量>0);M日内翻红天:COUNT(进出量>0,M),COLORRED;走熊天:BARSLASTCOUNT(N日内净流入<0),COLORCYAN;走牛天:BARSLASTCOUNT(N日内净流入>0),COLORRED;强势天:BARSLASTCOUNT((N日内净流入>REF(N日内净流入,1))>0 AND N日内净流入>0); 弱势天:BARSLASTCOUNT((N日内净流入<REF(N日内净流入,1))>0 AND N日内净流。
通达信资金抄底指标公式
通达信资金抄底指标公式(实用版)目录1.通达信资金抄底指标公式概述2.通达信资金抄底指标公式的组成部分3.通达信资金抄底指标公式的计算方法4.通达信资金抄底指标公式的应用法则5.通达信资金抄底指标公式的示例正文一、通达信资金抄底指标公式概述通达信资金抄底指标公式是一种用于判断股票市场底部的技术指标。
通过分析股票市场的资金流入和流出情况,该指标可以帮助投资者发现市场底部并及时抄底,从而实现盈利。
二、通达信资金抄底指标公式的组成部分通达信资金抄底指标公式主要由以下几个部分组成:1.VAR1: (C - REF(C, 1)) / REF(C, 1)2.VAR2: (INDEXC - REF(INDEXC, 1)) / REF(INDEXC, 1)3.个股:EMA(SUM(VAR1, 20), 5)4.大盘:EMA(SUM(VAR2, 20), 5)5.领涨:(个股 - 大盘) > 06.VAR3: (C - LLV(L, 125)) / (HHV(H, 125) - LLV(L, 125)) * 1007.VAR4: SMA(VAR3, 72, 1)8.VAR5: SMA(VAR4, 34, 1)9.中线趋势:3 * VAR4 - 2 * VAR510.中线趋势升:(中线趋势 - REF(中线趋势,1)) > 011.均五升:(MA(C, 5) - REF(MA(C, 5), 1)) > 012.均十升:(MA(C, 10) - REF(MA(C, 10), 1)) > 013.STICKLINE 函数14.趋势:EMA(0.618 * REF(操作,1) + 0.382 * 操作,3)15.操作:EMA((2CHL) / 4, 13) - 5016.强弱界:017.运动:IF(操作 > 趋势 AND 均五升 AND 均十升 AND 中线趋势升,1, 0)18.买进:IF(运动 = 1 AND COUNT(运动,5) = 1, 8, 0)三、通达信资金抄底指标公式的计算方法通达信资金抄底指标公式的计算方法较为复杂,涉及多个变量的计算。
通达信神奇数字指标公式(一)
通达信神奇数字指标公式(一)通达信神奇数字指标公式简介通达信是一款常用于股票分析的软件,其中包含了许多神奇数字指标公式,这些公式可以帮助投资者进行技术分析和预测。
在本文中,我们将列举一些常用的通达信神奇数字指标公式,并通过举例进行解释说明。
1. MACD 指标公式MACD(Moving Average Convergence/Divergence)即移动平均收敛/背离指标,主要用于预测价格趋势和判断买卖信号。
公式:DIFF: EMA(12) - EMA(26)DEA: EMA(DIFF,9)MACD: (DIFF - DEA) * 2解释说明: - DIFF:短期EMA(Exponential Moving Average)与长期EMA的差值,用于衡量市场的短期变动力度。
- DEA:DIFF的9日EMA,用于平滑DIFF的变化。
- MACD:DIFF与DEA的差值,倍增后的结果,可用于判断价格的快速变化和拐点。
2. KDJ 指标公式KDJ 指标是一种反映价格波动和买卖信号的技术指标,常用于短期股票交易中。
公式:RSV: (CLOSE - MIN(LOW, N))/(MAX(HIGH, N) - MIN(LO W, N))* 100K: SMA(RSV, M1)D: SMA(K, M2)J: 3K - 2D解释说明: - RSV:未成熟随机指标,计算最近N天内收盘价相对于N天内的最低价和最高价的比例。
用于度量价格的强弱程度。
- K:RSV的M1日简单移动平均值,用于平滑RSV的变动。
- D:K的M2日简单移动平均值,用于平滑K的变动。
- J:K与D的差值的3倍,用来判断价格的超买和超卖情况。
3. RSI 指标公式RSI(Relative Strength Index)指标用于衡量市场的买卖力量,帮助判断价格的超买和超卖情况。
公式:RSI: EMA(MAX(CLOSE - PRE_CLOSE, 0),N) / EMA(ABS (CLOSE - PRE_CLOSE),N) * 100解释说明: - RSI:相对强弱指数,通过计算一段时间内上涨日的平均涨幅和下跌日的平均跌幅,来判断市场的超买和超卖情况。
通达信指标公式源码移动筹码分布主图指标
使用方法:公式的左上角写明的不同周期内量和价的情况。
如果背景色是红色,预示着对应周期内的均线指标会上涨。
如果背景颜色是绿色,预示着对应周期内均线指标会下跌。
只有当对应周期内的价和量都预示为上涨或者都预示为下跌的时候。
才会在右边出现文字,提示这条均价线是助长涨(支撑),还是领跌(压力)的作用。
DRAWTEXT(CURRBARSCOUNT=5,HIGH*1.01,'5日');{DRAWLINE(扣抵5,C,C,MA(C,5),0),COLORWHITE,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=10,HIGH*1.01,'10日');{DRAWLINE(扣抵10,C,C, MA(C,10),0),COLORYELLOW,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=20,HIGH*1.01,'20日');{DRAWLINE(扣抵20,C,C, MA(C,20),0),COLORMAGENTA,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=60,HIGH*1.01,'60日');{DRAWLINE(扣抵60,C,C, MA(C,60),0),COLORRED,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=120,HIGH*1.01,'120日');{DRAWLINE(扣抵120,C,C, MA(C,120),0),COLORGRAY,LINETHICK2;} DRAWTEXT(CURRBARSCOUNT=250,HIGH*1.01,'250日');{DRAWLINE(扣抵250,C,C, MA(C,250),0),COLORBLUE,LINETHICK2;} {DRAWICON(CURRBARSCOUNT=5,HIGH,14);DRAWICON(CURRBARSCOUNT=10,HIGH,14);DRAWICON(CURRBARSCOUNT=20,HIGH,14);DRAWICON(CURRBARSCOUNT=60,HIGH,14);DRAWICON(CURRBARSCOUNT=120,HIGH,14);DRAWICON(CURRBARSCOUNT=250,HIGH,14);}MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);MA120:MA(CLOSE,120);MA250:MA(CLOSE,250);DRAWRECTREL(0,0,240,350,RGB(0,0,1));DRAWTEXT_FIX(C>0,0.04 ,0.07,1,'当前情况:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.11,1,'005日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.15,1,'010日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.19,1,'020日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.23,1,'060日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.04 ,0.27,1,'120日扣抵:'),COLORYELLOW; DRAWTEXT_FIX(C>0,0.005 ,0.090,0,'----------------------------------------------------------------------------------------'),COLORGRAY;DRAWTEXT_FIX(C>0,0.065 ,0.03,1,'价(元)'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>0,0.065 ,0.07,1,VAR2STR(C,2)),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,4),0.065 ,0.11,1,VAR2STR(REF(C,4),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,4),0.065 ,0.11,1,VAR2STR(REF(C,4),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,4),0.065 ,0.11,1,VAR2STR(REF(C,4),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,9),0.065 ,0.15,1,VAR2STR(REF(C,9),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,9),0.065 ,0.15,1,VAR2STR(REF(C,9),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,9),0.065 ,0.15,1,VAR2STR(REF(C,9),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,19),0.065 ,0.19,1,VAR2STR(REF(C,19),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,19),0.065 ,0.19,1,VAR2STR(REF(C,19),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,19),0.065 ,0.19,1,VAR2STR(REF(C,19),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,59),0.065 ,0.23,1,VAR2STR(REF(C,59),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,59),0.065 ,0.23,1,VAR2STR(REF(C,59),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,59),0.065 ,0.23,1,VAR2STR(REF(C,59),2)),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,119),0.065 ,0.27,1,VAR2STR(REF(C,119),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,119),0.065 ,0.27,1,VAR2STR(REF(C,119),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,119),0.065 ,0.27,1,VAR2STR(REF(C,119),2)),COLORGREEN; VART1:=ABS((C-REF(C,4)))*100/C,NODRAW;VART1_1:=IF(VART1>999,999.9,VART1),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,4),0.09 ,0.11,1,STRCAT(VAR2STR(VART1_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,4),0.09 ,0.11,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,4),0.09 ,0.11,1,STRCAT(VAR2STR(VART1_1,1),'%')),COLORGREEN; VART2:=ABS((C-REF(C,9)))*100/C,NODRAW;VART2_1:=IF(VART2>999,999.9,VART2),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,9),0.09 ,0.15,1,STRCAT(VAR2STR(VART2_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,9),0.09 ,0.15,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,9),0.09 ,0.15,1,STRCAT(VAR2STR(VART2_1,1),'%')),COLORGREEN; VART3:=ABS((C-REF(C,19)))*100/C,NODRAW;VART3_1:=IF(VART3>999,999.9,VART3),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,19),0.09 ,0.19,1,STRCAT(VAR2STR(VART3_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,19),0.09 ,0.19,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,19),0.09 ,0.19,1,STRCAT(VAR2STR(VART3_1,1),'%')),COLORGREEN ;VART4:=ABS((C-REF(C,59)))*100/C,NODRAW;VART4_1:=IF(VART4>999,999.9,VART4),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,59),0.09 ,0.23,1,STRCAT(VAR2STR(VART4_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,59),0.09 ,0.23,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,59),0.09 ,0.23,1,STRCAT(VAR2STR(VART4_1,1),'%')),COLORGREEN ;VART5:=ABS((C-REF(C,119)))*100/C,NODRAW;VART5_1:=IF(VART5>999,999.9,VART5),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>REF(C,119),0.09 ,0.27,1,STRCAT(VAR2STR(VART5_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC=REF(C,119),0.09 ,0.27,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC<REF(C,119),0.09 ,0.27,1,STRCAT(VAR2STR(VART5_1,1),'%')),COLORGREE N;DRAWTEXT_FIX(C>0,0.12 ,0.03,1,'量(万)'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDC>0,0.12 ,0.07,1,VAR2STR(V/10000,2)),COLORYELLOW;TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60, IF(PERIOD=5,TOTALFZNUM,1))))),NODRAW;MTIME:=MOD(FROMOPEN,TOTAL),NODRAW;CTIME:=IF(MTIME<0.5,TOTAL,MTIME),NODRAW;VVOL:=IF((CURRBARSCOUNT=1 ANDDYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),0),NODRAW; DRAWTEXT_FIX(C>0,0.18 ,0.03,1,'虚拟量(万)'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDVVOL>0,0.18 ,0.07,1,VAR2STR(VVOL/10000,2)),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,4),0.12 ,0.11,1,VAR2STR(REF(V/10000,4),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,4),0.12 ,0.11,1,VAR2STR(REF(V/10000,4),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,4),0.12 ,0.11,1,VAR2STR(REF(V/10000,4),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,9),0.12 ,0.15,1,VAR2STR(REF(V/10000,9),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,9),0.12 ,0.15,1,VAR2STR(REF(V/10000,9),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,9),0.12 ,0.15,1,VAR2STR(REF(V/10000,9),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,19),0.12 ,0.19,1,VAR2STR(REF(V/10000,19),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,19),0.12 ,0.19,1,VAR2STR(REF(V/10000,19),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,19),0.12 ,0.19,1,VAR2STR(REF(V/10000,19),2)),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,59),0.12 ,0.23,1,VAR2STR(REF(V/10000,59),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,59),0.12 ,0.23,1,VAR2STR(REF(V/10000,59),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,59),0.12 ,0.23,1,VAR2STR(REF(V/10000,59),2)),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,119),0.12 ,0.27,1,VAR2STR(REF(V/10000,119),2)),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,119),0.12 ,0.27,1,VAR2STR(REF(V/10000,119),2)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,119),0.12 ,0.27,1,VAR2STR(REF(V/10000,119),2)),COLORGREEN; VART21:=ABS((V-REF(V,4)))*100/V;VART21_1:=IF(VART21>999,999.9,VART21),NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,4),0.155 ,0.11,1,STRCAT(VAR2STR(VART21_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,4),0.155 ,0.11,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,4),0.155 ,0.11,1,STRCAT(VAR2STR(VART21_1,1),'%')),COLORGREE N;VART22:=ABS((V-REF(V,9)))*100/V;VART22_1:=IF(VART22>999,999.9,VART22);DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,9),0.155 ,0.15,1,STRCAT(VAR2STR(VART22_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,9),0.155 ,0.15,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,9),0.155 ,0.15,1,STRCAT(VAR2STR(VART22_1,1),'%')),COLORGREE N;VART23:=ABS((V-REF(V,19)))*100/V;VART23_1:=IF(VART23>999,999.9,VART23);DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,19),0.155 ,0.19,1,STRCAT(VAR2STR(VART23_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,19),0.155 ,0.19,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,19),0.155 ,0.19,1,STRCAT(VAR2STR(VART23_1,1),'%')),COLORGRE EN;VART24:=ABS((C-REF(C,59)))*100/C;VART24_1:=IF(VART24>999,999.9,VART24);DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,59),0.155 ,0.23,1,STRCAT(VAR2STR(VART24_1,1),'%')),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,59),0.155 ,0.23,1,VAR2STR(0,2)),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,59),0.155 ,0.23,1,STRCAT(VAR2STR(VART24_1,1),'%')),COLORGRE EN;VART25:=ABS((C-REF(C,119)))*100/C;VART25_1:=IF(VART25>999,999.9,VART25);DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV>REF(V,119),0.155 ,0.27,1,STRCAT(VAR2STR(VART25_1,1),'%')),COLORRE D;DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV=REF(V,119),0.155 ,0.27,1,VAR2STR(0,2)),COLORWHITE;{W } DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDV<REF(V,119),0.155 ,0.27,1,STRCAT(VAR2STR(VART25_1,1),'%')),COLORGR EEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,4) ANDVVOL>REF(V,4),0.16 ,0.11,0,'5日均线助涨'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,4) ANDVVOL<REF(V,4),0.16 ,0.11,0,'5日均线领跌'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,9) ANDVVOL>REF(V,9),0.16 ,0.15,0,'10日均线助涨'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,9) ANDVVOL<REF(V,9),0.16 ,0.15,0,'10日均线领跌'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,19) ANDVVOL>REF(V,19),0.16 ,0.19,0,'20日均线助涨'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,19) ANDVVOL<REF(V,19),0.16 ,0.19,0,'20日均线领跌'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,59) ANDVVOL>REF(V,59),0.16 ,0.23,0,'60日均线助涨'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,59) ANDVVOL<REF(V,59),0.16 ,0.23,0,'60日均线领跌'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,119) ANDVVOL>REF(V,119),0.16 ,0.27,0,'120日均线助涨'),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,119) ANDVVOL<REF(V,119),0.16 ,0.27,0,'120日均线领跌'),COLORGREEN;。
【股票指标公式下载】-【通达信】四色副图(趋势线、底线、顶线)
【通达信】四色副图(趋势线、底线、顶线)-指标公式源码N1:=17;N2:=34;STICKLINE(C>0,40,60,10,0),COLOR999999;RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;短K:SMA(RSV,3,1),COLORF580F5,LINETHICK0;短D:SMA(短K,3,1),COLORCCDD33,LINETHICK0;RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;中K:SMA(RSV1,5,1),COLORRED,LINETHICK0;中D:SMA(中K,10,1),COLOR00FFFF,LINETHICK0;短:=3*短K-2*短D,COLORRED,LINETHICK4;中:=3*中K-2*中D,COLORRED,LINETHICK4;趋势线:(短+中)/2,COLORFF9900,LINETHICK2;底线:10,COLORWHITE;顶线:90,COLOR33FF33;BB:=IF(BARSLAST(CROSS(短K,RSV))>=3 AND CROSS(RSV,短K) AND 短K<30,20,0);STICKLINE(BB,0,50,2.8,1),COLOR0000BB;STICKLINE(BB,0,50,1.4,1),COLOR0000DD;STICKLINE(BB,0,50,0.7,1),COLOR0000FF;AA:=IF(BARSLAST(CROSS(RSV,短K))>=4 AND CROSS(短K,RSV) ANDRSV>50,20,0);STICKLINE(AA,80,100,2.8,1),COLORD8D8D8;STICKLINE(AA,80,100,1.4,1),COLORE8E8E8;STICKLINE(AA,80,100,0.7,1),COLORFFFFFF;STICKLINE(短K>短D,短K,短D,2.8,1),COLOR820082;STICKLINE(短K>短D,短K,短D,1.4,1),COLORB700B7;STICKLINE(短K>短D,短K,短D,0.7,1),COLORF700F7;STICKLINE(短K>短D,短K,短D,0.1,1),COLORFF37FF;STICKLINE(短K<=短D,短K,短D,2.8,1),COLORBFBF00;STICKLINE(短K<=短D,短K,短D,1.4,1),COLORE8E800;STICKLINE(短K<=短D,短K,短D,0.7,1),COLORFFFF15;STICKLINE(短K<=短D,短K,短D,0.1,1),COLORFFFF46;STICKLINE(中K>中D,中K,中D,2.8,0),COLOR000099;STICKLINE(中K>中D,中K,中D,1.4,0),COLOR0000DD;STICKLINE(中K>中D,中K,中D,0.7,0),COLOR0000CC;STICKLINE(中K>中D,中K,中D,0.1,0),COLOR0000FF;STICKLINE(中K<=中D,中K,中D,2.8,0),COLOR009FFF;STICKLINE(中K<=中D,中K,中D,1.4,0),COLOR00B5FF;STICKLINE(中K<=中D,中K,中D,0.7,0),COLOR00E4FF;STICKLINE(中K<=中D,中K,中D,0.1,0),COLOR00FFFF;【通达信】四色副图(趋势线、底线、顶线)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】底部尽现(均线流、超跌、井喷)
【通达信】底部尽现(均线流、超跌、井喷)-指标公式源码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 ANDVAR14>-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 ANDVAR13<=-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 ANDVAR53>-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,2 0,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,2 0,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 ANDVAR122<200,10,0);VAR144:=IF(VAR11<=-150 AND VAR11>-200 AND VAR122<=-150 ANDVAR122>-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 ANDVAR11<=-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) ANDREF(ZIG(3,10),1)>REF(ZIG(3,10),2);{ZIG 有未来}VAR2AAA:=ZIG(3,10)>REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)<REF(ZIG(3,10),2);果断买入:IF(VAR2AAA ANDCOUNT(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) OR REF(VAR96,27)) ORREF(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 ANDCOUNT(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)))<BARSLAST(CROSS(MA(CLO SE,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>XX200 AND 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>XX202 AND 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>XX204 AND 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>XX206 AND 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;【通达信】底部尽现(均线流、超跌、井喷)-指标公式效果图(文档来源:若水财经社区)。
通达信指标公式源码通达信趋势波浪指标源码打破一买就跌一卖就涨
通达信指标公式源码通达信趋势波浪指标源码打破一买就跌一卖就涨K1:=10;K2:=20;K3:=30;K4:=40;K5:=50;K6:=60;K7:=70;K8:=80;K9:=90;K10:=100;K11:=110;K12:=120;N1:=K1*2-1;N2:=K2*2-1;N3:=K3*2-1;N4:=K4*2-1;N5:=K5*2-1;N6:=K6*2-1;N7:=K7*2-1;N8:=K8*2-1;N9:=K9*2-1;N10:=K10*2-1;N11:=K11*2-1;N12:=K12*2-1;S1:=EMA(C,N1); S2:=EMA(C,N2); S3:=EMA(C,N3); S4:=EMA(C,N4); S5:=EMA(C,N5); S6:=EMA(C,N6); S7:=EMA(C,N7); S8:=EMA(C,N8); S9:=EMA(C,N9); S10:=EMA(C,N10); S11:=EMA(C,N11); S12:=EMA(C,N12);M1:=EMA(S1,K1);M2:=EMA(S2,K2);M3:=EMA(S3,K3);M4:=EMA(S4,K4);M5:=EMA(S5,K5);M6:=EMA(S6,K6);M7:=EMA(S7,K7);M8:=EMA(S8,K8);M9:=EMA(S9,K9);M10:=EMA(S10,K10);M11:=EMA(S11,K11);M12:=EMA(S12,K12);TJB:=(M1+M2+M3+M4+M5+M6+M7+M8+M9+M10+M11+M12)/12;由于股市中的涨跌曲线非常复杂,买超强涨股,卖跌停股,是一种吸血模式,有利于无穷的累计财富,因此建立更稳定的趋势波浪指标特别重要。
趋势波浪指标,被称为TJB指标,它由短期均线和长期均线组成,分别由短期周期最高的10、20、30、40、50、60、70、80、90、100、110、120拟合出的短期均线,长期周期最高的10、20、30、40、50、60、70、80、90、100、110、120拟合出的长期均线,组合起来即为TJB指标,通常情况下,TJB指标的上升趋势表明股票正处于上涨趋势。
通达信公式主图
通达信公式主图LC:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100); TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW -REF(CLOSE,1)))),10);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);PDI:=((DMP * 100) / TR);MDI:=((DMM * 100) / TR);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX);DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);0,COLORFF00FF;WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10);阶段底部:=(AV + NEWVOL);STICKLINE((阶段底部 >= 0),0,阶段底部,0.3,1),LINETHICK2,COLORCC6600;STICKLINE((阶段底部 < 0),0,阶段底部,0.8,1),LINETHICK6,COLORRED;趋势线:LLV(阶段底部,1),COLORFFFFFF;STICKLINE((趋势线 >230 ),250,趋势线,0.8,1),LINETHICK6,COLORGREEN;230,COLORFFFFFF;第二个N:=9; KN:=3; DN:=3;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,KN,1), COLORWHITE;D:SMA(K,DN,1),COLORYELLOW;J:3*K-2*D,COLORMAGENTA;IF(J>=REF(J,1),J,DRA WN ULL),COLORMAGENTA;IF(J<REF(J,1),J,DRA WNULL),COLORGREEN;0.00;20.00;50.00;80. 00;100.00;DRAWICON(CROSS(J,1),J,1);IF(J<0,J,DRA WNULL),COLORGREEN,LINETHICK2;IF(K>90,K,DRA WNULL),COLOR0000FF,LINETHICK2;IF(D>85,D,DRA WNULL),COLORFFFF11,LINETHICK2;DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);。
通达信分时顶底之王指标公式(一)
通达信分时顶底之王指标公式(一)通达信分时顶底之王指标公式简介通达信分时顶底之王指标是一种技术分析指标,用于判断股票的分时图形态,进而预测价格的趋势。
本文将介绍该指标的相关公式,并举例解释说明其应用。
公式×1001.顶底之王指标公式一:K=C−LH−L其中,C代表收盘价,L代表当日最低价,H代表当日最高价。
该公式计算了收盘价在当日最低价和最高价之间的相对位置,用百分比表示。
数值越高,说明收盘价离当日最高价越近,可能代表股票价格处于顶部。
×1002.顶底之王指标公式二:D=H−CH−L其中,C代表收盘价,L代表当日最低价,H代表当日最高价。
该公式计算了收盘价在当日最低价和最高价之间的相对位置,用百分比表示。
数值越高,说明收盘价离当日最低价越远,可能代表股票价格处于底部。
应用举例假设某股票的分时图数据如下:时间 | 最高价 | 最低价 | 收盘价 |||||| | 09:30 | | | | | 09:31 | | | | | 09:32 | | | | | 09:33 | | | | | 09:34 | | | |根据公式一,我们可以计算出每个时间点的顶底之王指标K值:时间 | K值 |||| | 09:30 | | | 09:31 | | | 09:32 | | | 09:33 | | | 09:34 | |根据公式二,我们可以计算出每个时间点的顶底之王指标D值:时间 | D值 |||| | 09:30 | | | 09:31 | | | 09:32 | | | 09:33 | | | 09:34 | |通过观察K值和D值的变化,我们可以判断分时图的形态。
在本例中,09:33时间点的K值和D值相近,说明收盘价的相对位置较为均衡,可能代表价格处于横盘整理阶段;而09:34时间点的K值较高,D 值较低,说明收盘价离最高价较近,离最低价较远,可能代表价格即将上涨。
通过类似的分析,我们可以对股票的价格趋势进行预测和判断。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR);
MDI:=((DMM * 100) / TR);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
0,COLORFF00FF;
WR10:=((ቤተ መጻሕፍቲ ባይዱ00 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
(文档来源:若水财经社区)
NEWVOL:=(RSI5 - WR10);
阶段底部:=(AV + NEWVOL);
STICKLINE((阶段底部>= 0),0,阶段底部,0.3,1),LINETHICK2,COLORCC6600;
STICKLINE((阶段底部< 0),0,阶段底部,0.8,1),LINETHICK6,COLORRED;
【通达信】送红包(阶段底部、趋势线)-指标公式源码
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
趋势线:LLV(阶段底部,1),COLORFFFFFF;
STICKLINE((趋势线>230 ),250,趋势线,0.8,1),LINETHICK6,COLORGREEN;
【通达信】送红包(阶段底部、趋势线)-指标公式效果图
下载次数: 0
2010-12-11 11:43
下载(65.59 KB)
2010-12-11 11:41