个人总结比较实用的通达信公式

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

条件选股公式:N天前涨停个股参数N最小0最大20缺省0Q:=BARSLAST(CLOSE/REF(CLOSE,1)1.0985);AG:Q=N;5日内涨停2次COUNT(CLOSEREF(CLOSE,1)*1.0985,5)=2;技术指标公式:操盘BS买卖点(主图替换)N:=80;M:=3;{操盘手BS买卖}VAR1:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LOW,14))));VAR2:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LOW,14))));VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));DIR1:=ABS(CLOSE-REF(CLOSE,5));VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1;CS1:=ER1*(0.8-2/8)+2/8;CQ1:=CS1*CS1;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;STICKLINE(VAR2MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE;STICKLINE(VAR2MA(VAR3,6),LOW,HIGH,0,1),COLORRED;STICKLINE(((OPENCLOSE)AND(VAR2MA(VAR3,6))),(CLOSE-0.03),OPEN,3.05,0),COLORLIBLUE;STICKLINE(((OPENCLOSE)AND(VAR2MA(VAR3,6))),CLOSE,OPEN,3.05,1),COLORLIBLUE;STICKLINE(((OPENCLOSE)AND(VAR2MA(VAR3,6))),OPEN,(CLOSE-0.03),3.05,0),COLORRED;STICKLINE(((OPENCLOSE)AND(VAR2MA(VAR3,6))),OPEN,CLOSE,3.05,1),COLORRED;DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW-(LOW*0.02)),7);DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.02)),8);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:IF(AHREF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻:IF(NH强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;MM:=IF(ALREF(C,1)/1.1,REF(C,1)/1.1,AL);撑:IF(NLM,CDP-(CDP-M)*0.618,NL)NODRAW;底:IF(ALREF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;主力控盘(副图)VAR1:=EMA(EMA(CLOSE,9),9);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;A10:=CROSS(控盘,0);VAR2:=100*WINNER(CLOSE*0.95);高度控盘:IF(控盘REF(控盘,1)AND控盘0,控盘,0),COLOR0000FF,NODRAW;有庄控盘:IF(VAR250ANDCOST(85)CLOSEAND控盘0,控盘,0),COLORFF00FF,NODRAW;无庄控盘:IF(控盘0,控盘,0),COLORBLUE,NODRAW;开始控盘:IF(A10,5,0),LINETHICK3,COLORYELLOW,NODRAW;主力出货:IF(控盘REF(控盘,1)AND控盘0,控盘,0),COLOR00FF00,NODRAW;STICKLINE(控盘0,控盘,0,2,0),COLORBLUE;STICKLINE(控盘REF(控盘,3)AND控盘0,控盘,0,2,0),COLOR0000FF;STICKLINE(VAR250ANDCOST(85)CLOSEAND控盘0,控盘*0.8,0,2,0),COLORFF00FF;STICKLINE(控盘REF(控盘,3)AND控盘0,控盘,0,2,0),COLOR00FF00;STICKLINE(A10,控盘,0,2,0),COLOR00FFFF;主力追踪(副图)MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;主力:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;IF(主力=REF(主力,1),主力,DRAWNULL),COLORRED,LINETHICK2;IF(主力=REF(主力,1),主力,DRAWNULL),COLORGREEN,LINETHICK2;捕捞季节(副图)WY1001:=(2*CLOSE+HIGH+LOW)/4;WY1002:=EMA(WY1001,2);WY1003:=EMA(WY1002,2);WY1004:=EMA(WY1003,2);XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;STICKLINE(XYS0=0,XYS0,0,2,0),COLORRED;STICKLINE(XYS00,XYS0,0,2,0),COLORGREEN;PJGJ:=AMOUNT/VOL/100;SSRYDJX:=MA(PJGJ,13);SSRCJL:=EMA(VOL,13);SSRCJE:=EMA(AMOUNT,13);SSRCBJX:=SSRCJE/SSRCJL/100;CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;XYSHSL:=EMA(VOL/CAPITAL*100,13);ZZX:0,COLORWHITE;STICKLINE(XYSHSL6.1ANDCYS135,2,0,2,0),COLORGREEN;STICKLINE(XYSHSL3.8ANDCYS135,1.5,0,2,0),COLORYELLOW;STICKLINE(XYSHSL2.1ANDCYS135,1,0,2,0),COLORCYAN;STICKLINE(XYSHSL1.8ANDCYS135,0.5,0,2,0),COLORBLUE;XYS1:EMA(XYS0,1);XYS2:EMA(XYS0,2);智能辅助线(主图叠加)HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORYELLOW;HHJSJDC:MA(HHJSJDB,5),COLORRED;星光灿烂(主图叠加)MA13:MA(C,13),COLORWHITE;MA34:MA(C,34),COLORFF00FF;MA55:MA(C,55),COLORFFCC66;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;低吸:=CROSS(RSI,11);DRAWTEXT(低吸,L,'★'),COLORWHITE;DRAWTEXT(低吸,L-0.05,'低吸'),COLORWHITE;VAR7:=EMA(AMOUNT/VOL/100,3);VAR8:=EMA(VAR7,88);VAR9:=EMA(VAR7,88)*0.85;VARA:=VAR9*0.87;VARB:=LOWVARAANDCLOSEREF(CLOSE,1)*1.02;DRAWTEXT(FILTER(VARB,6),L-0.05,'坚决买进'),COLORFF00FF;DRAWTEXT(FILTER(VARB,6),L,'★'),COLORFF00FF;VARF:=(2*CLOSE+HIGH+LOW)/4;VA4:=LLV(LOW,34);VA5:=HHV(HIGH,34);VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);DRAWTEXT(IF(COUNT(CLOSEREF(CLOSE,1),8)/80.3ANDCOUNT(VA6VA7,3)ANDREF(LOW,1)=LLV(LOW,120)ANDCLOSEOPEN,1,0),L,'★'),COLORYELLOW;DRAWTEXT(IF(COUNT(CLOSEREF(CLOSE,1),8)/80.3ANDCOUNT(VA6VA7,3)ANDREF(LOW,1)=LLV(LOW,120)ANDCLOSEOPEN,1,0),L-0.05,'出击'),COLORYELLOW;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);DRAWTEXT(CROSS(D1,K1),L-0.05,'波段买入'),COLOR0099FF;DRAWTEXT(CROSS(D1,K1),L,'★'),COLOR0099FF;多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIG

1 / 5
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功