通达信左侧加仓点主图 指标源码

DRAWTEXT_FIX(1,0.00,0.01,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.035,0.01,0,DYBLOCK)COLORGREEN;DRAWTEXT_FIX(1,0.07,0.01,0,GNBLOCK)COLORRED;红K连续天数:=1;XA_1:=IF(DATE<9942.459961*500,1,1);XA_2:=IF(DATETODAY(DATE)<9881,1,1);XA_4:=EMA(CLOSE,5)>EMA(CLOSE,20)*XA_2;XA_5:=EMA(CLOSE,5)<EMA(CLOSE,20)*XA_2;XA_6:=EMA(CLOSE,5)>EMA(CLOSE,10)*XA_2;XA_7:=EMA(CLOSE,5)<EMA(CLOSE,10)*XA_1;XA_8:=CLOSE<OPEN;STICKLINE(XA_4,HIGH,LOW,0,0),COLORRED;STICKLINE(XA_4,OPEN,CLOSE,3,1),COLORRED;STICKLINE(XA_4 AND XA_8,OPEN,CLOSE,3,0),COLORRED;STICKLINE(XA_5,HIGH,LOW,0,0),COLORGREEN;STICKLINE(XA_5,OPEN,CLOSE,3,1),COLORGREEN;STICKLINE(XA_5 AND XA_8,OPEN,CLOSE,3,0),COLORGREEN;STICKLINE(XA_5 AND XA_6,HIGH,LOW,0,1),COLORWHITE;STICKLINE(XA_5 AND XA_6,OPEN,CLOSE,3,1),COLORWHITE;STICKLINE(XA_5 AND XA_6 AND XA_8,OPEN,CLOSE,3,0),COLORWHITE;STICKLINE(XA_4 AND XA_7,HIGH,LOW,0,0),COLORWHITE;STICKLINE(XA_4 AND XA_7,OPEN,CLOSE,3,1),COLORWHITE;STICKLINE(XA_4 AND XA_7 AND XA_8,OPEN,CLOSE,3,0),COLORWHITE;MA05:MA(C,5)LINETHICK3,COLOR00CCFF; MA10:=MA(C,10); MA20:=MA(C,20); MA30:=MA(C,30); 五日乖离率:=(C-MA05)/MA05*100; BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416; 速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1); 加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW; IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORRED; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; IF(BB05<0 AND MA05<REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORGREEN; 三拾日乖离率:=(C-MA30)/MA30*100,NODRAW; VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1); VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1); BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416; 强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10); 压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF; 支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;GUB1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));GUB2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),GUB1);筹码线:EMA(GUB2,200)*1.118,COLORFF00FF,LINETHICK5,POINTDOT;趋势线2:=EMA(GUB2,200)*1.118,LINETHICK1;TJ:=(C-REF(C,1))/REF(C,1)*100>5;TJ2:=CROSS(C,筹码线) AND TJ;STICKLINE(TJ2,HIGH,LOW,0,1),COLORC06000;STICKLINE(TJ2,CLOSE,OPEN,3.2,1),COLORC06000;{下跌阳K}XDYK1:=C/REF(C,1)<=0.9999 AND C>OPEN;YX:=C<O OR (C=O AND C<REF(C,1));STICKLINE(XDYK1 ,O,C,3,0),COLORMAGENTA;下跌阳K线:XDYK1,COLORYELLOW,NODRAW;昨阴下跌阳K线:XDYK1 AND REF(YX,1),COLORMAGENTA,NODRAW;Q1:=PEAK(CLOSE,5,1)*0.98,COLORFF00FF,LINETHICK1;Q2:=TROUGH(CLOSE,5,1)*1.02,COLORFF00FF,LINETHICK1;ZT:=IF((C/REF(C,1)>1.0984),1,0);QD:=(Q1-Q2)/Q1*100;涨停牛:=IF((CROSS(C, Q1) AND ZT=1 AND QD<7),1,0),COLORRED,LINETHICK1,NODRAW;STICKLINE(C/REF(C,1)>1.0984,C,O,1.6,0),COLORYELLOW;STICKLINE(涨停牛=1,O,C,0.8,0),COLORRED; F3:=ZIG(3,8)*100,COLORWHITE;G3:=MA(F3,2),COLORYELLOW;中买:=IF(CROSS(F3,G3),1,0),COLORRED,LINETHICK2;DRAWTEXT(中买=1,L*0.994,'←买'),COLORRED,LINETHICK3;VF3:=ZIG(3,8)*100;VG3:=MA(VF3,2);VG4:=IF(CROSS(VG3,VF3),1,0);DRAWTEXT(VG4=1,H*1.000,'←卖'),COLORGREEN,LINETHICK3;JJ:=(3*C+H+L+O)/6;VAR99:=(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>VAR99 AND C>REF(C,1);HJZ:=FILTER(TJ1,5);STICKLINE(HJZ,OPEN,CLOSE,2,0),COLORFF00FF;A3:=(REF(C,1)-C)/C>0.093;STICKLINE(A3=1,O,C,2,0),COLORBLUE;{前高线}{F1:=ZIG(3,5)*100,COLORWHITE;G1:=MA(F1,2),COLORYELLOW;}SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1); SR2:=FILTER(SR1,10); SR3:=BACKSET(SR2,10+1); HD:=FILTER(SR3,10); 前高:REF(H,BARSLAST(HD)),COLORRED,POINTDOT; QH11:=IF(CROSS(C,前高),前高*1.01,DRAWNULL),LINETHICK3,COLORFF00FF;STICKLINE(H,前高,前高,8,0),LINETHICK1,COLORRED;{3度测强度}VP:=5;YA:=REF(HIGH,VP)=HHV(HIGH,2*VP+1);YBB:=FILTER(YA,VP);YDD:=BACKSET(YBB,VP+1);YE:=FILTER(YDD,VP);R11:=BACKSET(ISLASTBAR,BARSLAST(YE)+1);S11:=R11>REF(R11,1);压力轨:DRAWLINE(YE,HIGH,S11,HIGH,1),COLORYELLOW,LINETHICK2;ZDF:=(C-REF(C,1))/REF(C,1)*100;AA4:=(C<O OR (H>L AND C=O AND C<H)) AND C>=REF(C,1) AND  C/REF(C,1)>1.03;VAR20:=MA(CLOSE,80)-MA(CLOSE,10)/3;VAR23:=(CLOSE<VAR20 AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3);进场:=IF(VAR23,1,0),COLORYELLOW;STICKLINE(H,前高,前高,8,0),LINETHICK1,COLORRED;STICKLINE(涨停牛=1,O,C,0.8,0),COLORRED;STICKLINE(H,前高,前高,8,0),LINETHICK1,COLORRED;STICKLINE(AA4,C,O,1,0),COLORRED; STICKLINE(ZDF<-9.9,O,C,1.6,0),COLORBLUE;STICKLINE(进场=1,OPEN,CLOSE,0.9,0),COLORRED;买:中买=1,NODRAW,COLORRED;卖:VG4=1,NODRAW,COLORGREEN; 全K线:C/REF(C,1)>1.0984 AND 涨停牛=1,NODRAW,COLORRED;{粉色K线选股}粉色K线选股:HJZ,NODRAW;蓝色K线选股:HJZ,NODRAW;{X_1:=MA(CLOSE,10);X_2:=MA(CLOSE,55);X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;X_4:=FILTER(X_3,10);X_5:=BARSLAST(X_4);X_6:=REF(HIGH,X_5+2);X_7:=REF(HIGH,X_5+1);X_8:=REF(HIGH,X_5);X_9:=MAX(X_6,X_7);X_10:=MAX(X_9,X_8);X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;X_12:=X_5<150;X_13:=(OPEN-X_10)/X_10*100<30;X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;X_16:=VOL/MA(VOL,5)<3.5;X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;X_19:=FILTER(X_18,15);X_20:=(CLOSE-X_2)/X_2<0.1;X_21:=(CLOSE-X_1)/X_1<0.3;X_22:=(X_20=1 AND X_21=1)*0.2;X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);X_24:=X_23=(-0.1);X_25:=X_19 OR X_24;X_26:=DYNAINFO(7)/REF(CLOSE,1)>1.05 AND DYNAINFO(7)/OPEN>1.05;X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);X_29:=X_25 AND X_26 AND X_27 AND X_28 AND REF(NOT(X_28),1);DRAWTEXT(X_29,L*0.95,'↖黄金柱'),COLORMAGENTA;}A:=REF(HIGH,9)=HHV(HIGH,2*9+1);B:=FILTER(A,9);AB:=BACKSET(B,9+1);倍量:=VOL/REF(VOL,1)>=1.1;突破前高:=CROSS(C,前高);XG:=倍量AND突破前高;STICKLINE(XG,OPEN,CLOSE,0.2,0),COLOR00FFFF;DRAWTEXT(XG,L*0.98,'↖左肩'),COLORYELLOW;HDD:=FILTER(SR3,10);前高高:=REF(H,BARSLAST(HDD));倍量量:=VOL/REF(VOL,1)>=1.9;突破前高高:=CROSS(C,前高高);强庄:=倍量量 AND 突破前高高;重点:=XG AND 强庄;DRAWTEXT(重点,L*0.95,'↖火箭'),COLORRED;BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2 ,IF(INBLOCK('ST板块'),0.05,0.1)));CZT:=H>=ZTPRICE(REF(C,1),BK) AND C<H;STICKLINE(CZT,H,H,100,0),COLORMAGENTA;TPQG:=CROSS(C,前高);TPYL:=CROSS(C,压力);TPTJ:=TPYL;STICKLINE(TPTJ,O,C,3,0),COLORBROWN;STICKLINE(TPTJ,H,L,0,0),COLORBROWN;TPSJ:=BARSLAST(TPTJ);TPSJH:=REF(H,TPSJ);TPHX:CONST(TPSJH),COLORYELLOW,LINETHICK2,POINTDOT;


未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:PEAK
该公式包含未来函数:TROUGH
该公式包含未来函数:BACKSET
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图