相关简介:通达信主力吸筹分时图指标选股器公式源码分享

     通达信指标公式源码概况:

  指标类别:通达信指标公式

  授权方式:免费版

  指标评级:★★★★★

  指标分类:策略

  画线方法:副图

   可以参考下图

   红箭头吸筹信号出现,如下2条件全部满足即可买入(均在蓝线之上)

   1.黄线和紫线全部上穿吸筹信号;

   2.黄线和紫线趋势线向上

   重点:黄线上穿攻击线,出现钱袋子,拉升或大行情开启!

   使用方法,当指标出现红绿柱时就要开始关注,未来几天如果黄线上穿紫线,即是买点【黄线穿过紫线的当天即可买入】此指标成功率极高,绝对无私奉献

通达信指标公式源码:

   0,COLORWHITE;

   ZJX1:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;

   ZJX2:=EMA(CLOSE,2)-EMA(CLOSE,89);

   ZJX3:=2*(ZJX2-EMA(ZJX2,30))*10;

   ZJX4:=EMA(CLOSE,2)-EMA(CLOSE,150);

   ZJX5:=2*(ZJX4-EMA(ZJX4,100));

   庄家线:(POW(ZJX3,3)*0.1+POW(ZJX3,2))/45+(POW(ZJX5,3)*0.1+POW(ZJX5,1))*5,COLORRED;

   庄家均线:EMA(庄家线,5),COLORWHITE;

   STICKLINE(庄家均线>REF(庄家均线,1),0,庄家均线,1,1),COLORRED;

   STICKLINE(庄家均线<=REF(庄家均线,1),0,庄家均线,1,1),COLORGREEN;

   STICKLINE(CROSS(庄家线,庄家均线),0,庄家均线*1.2,3,0),COLORRED;

   STICKLINE(CROSS(庄家均线,庄家线),0,庄家均线*1.2,3,0),COLORGREEN;

   TYP:=(HIGH+LOW+CLOSE)/3;

   CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

   CC1:=IF(CCI<-40,1,0);{加CCI限制乱出信号}

   H2:=V/CAPITAL;

   H3:=IF(ABS(H2-REF(H2,1))<0.03,0,1);{成交量不断萎缩};

   H1:=H2*H3;

   B1:=IF((HHV(H,4)-L)/L>0.2,1,0);{前期有大跌幅}

   B2:=IF(B1ORREF(B1,1)ORREF(B1,2)ORREF(B1,3)ORREF(B1,4),1,0);

   A1:=ABS((O-C)/2/C);

   A2:=IF(A1<0.01,0,1);{后期平台整理}

   A3:=A1*A2;

   A4:=IF(H1=0ANDA3=0,1,0);

   A5:=IF(COUNT(A4,4)=4,1,0);

   A6:IF(A5ANDB2ANDCC1,1,0);

   A7:=IF(COUNT(A6,50)>1,1,0);{选庄家习惯历史股票用时去掉=号};

   VAR1:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);

   STICKLINE(VAR1>20ANDVAR1<80,VAR1,VAR1,10,1),COLORRED;

   STICKLINE(VAR1<REF(VAR1,1),VAR1,VAR1,10,1),COLORFFCC66;

   STICKLINE(VAR1>80,VAR1,VAR1,8,1),COLOR00FF00;

   STICKLINE(VAR1<20,VAR1,VAR1,8,1),COLORYELLOW;

   ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,2);

   M1:=EMA(ABV,12);

   M2:=EMA(ABV,26);

   MTM:=CLOSE-REF(CLOSE,1);

   MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6));

   MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12));

   MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26));

   MMA:=C-REF(C,1);

   MMB:=100*EMA(EMA(MMA,9),9)/EMA(EMA(ABS(MMA),9),9);

   MMC:=MA(MMB,5);

   A:=((VOL)/(CAPITAL))*(100);

   S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));

   Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));

   X:=1;

   V1:=(HIGH+OPEN+LOW+(2)*(CLOSE))/(5);

   V2:=REF(V1,1);

   V3:=MAX(V1-V2,0);

   V4:=ABS(V1-V2);

   V5:=SMA(V3,10,1);

   V6:=SMA(V4,10,1);

   V8:=COUNT(((V5)/(V6)<0.2),5);

   V9:=COUNT((LLV(V1,10)=V1),10);

   主力进出:IF((MMS>REF(MMS,1)ANDMMB>REF(MMB,1)ANDCROSS(ABV,M2)ANDABV>REF(ABV,1)ANDM1>REF(M1,1)ANDM2>REF(M2,1)),65,0),COLORWHITE,POINTDOT;

   主进主轨:=ABV>M2ANDCROSS(ABV,M1)ANDCROSS(MMB,MMC);

   STICKLINE(主力进出OR主进主轨,65,0,4,1),COLORWHITE;

   精准买卖:=V8>=1ANDV9>=1ANDCLOSE>OPENANDREF(CLOSE,1)>REF(OPEN,1)AND(VOL>REF(VOL,1))ANDMMS>MMLANDCROSS(ABV,M2);

   短线买点:=V8>=1ANDV9>=1ANDCLOSE>OPENANDREF(CLOSE,1)>REF(OPEN,1)AND(VOL>REF(VOL,1))ANDCROSS(MMS,MML)ANDABV>REF(ABV,1);

   中线买点:=V8>=1ANDV9>=1ANDCLOSE>OPENANDREF(CLOSE,1)>REF(OPEN,1)AND(VOL>REF(VOL,1))

   ANDABV>REF(ABV,1)ANDMMS>MMLANDCROSS(MMM,MML)ANDMMS>REF(MMS,1)ANDMMM>REF(MMM,1)ANDMML>REF(MML,1);

   主进主买:=ABV>M2ANDMMB>MMCANDCROSS(MMS,MML)ANDMMS>REF(MMS,1)ANDMMM>REF(MMM,1)ANDMML>REF(MML,1);

   短中精:=精准买卖OR短线买点OR中线买点OR主进主买;

   主力买卖:IF(短中精,60,0),COLORFF00FF,POINTDOT;

   STICKLINE(主力买卖,60,0,4,1),COLORFF00FF;

   主力轨迹:IF(ABV>M2ANDMMS>MMLANDCROSS(MMB,MMC)ANDMMB>REF(MMB,1)ANDMMC>REF(MMC,1),55,0),COLORFFCC66,POINTDOT;

   STICKLINE(主力轨迹,55,0,4,1),COLORFFCC66;

   拉升在即:IF(S<XANDY<XANDMMS>MMLANDABV>M1ANDCROSS(S,Y),50,0),COLORYELLOW,POINTDOT;

   STICKLINE(拉升在即,50,0,4,1),COLORYELLOW;

   底部构成:IF(V8>=1ANDV9>=1ANDCLOSE>OPENANDREF(CLOSE,1)>REF(OPEN,1)ANDVOL>REF(VOL,1)

   ANDABV>M2ANDMMB>MMC,45,0),COLOR00FF00,POINTDOT;

   STICKLINE(底部构成,45,0,4,1),COLOR00FF00;

   ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;

   HSL:=100*VOL/CAPITAL;

   冲击波:IF(CROSS(ROC,16)ANDHSL>3.5,40,0),COLOR0099FF,POINTDOT;

   STICKLINE(冲击波,40,0,4,1),COLOR0099FF;

[源码注释]通达信公式动态翻译结果

AA赋值:以收盘价计算的获利盘比例*100

输出XG:60日内AA的最高值

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。