牛股拉升指标公式源码

    ZTM1:=REF(CLOSE,1)*110;{算当日涨停价精确值,到分}

    ZTM2:=INTPART(ZTM1);{取整}

    ZTMC:=IF((ZTM1-ZTM2)>0.49,ZTM2+1,ZTM2);{得到最后当日涨停价整数价格,通达信显示小

    数点2位,实际内部不止2位}

    ZTREAL:=CLOSE;

    ZTTJ:=IF(ABS(ZTREAL-ZTMC/100)<0.00006,1,0);

    STICKLINE(ZTTJ,H,L,0,1)COLORYELLOW;

    STICKLINE(ZTTJ,C,O,3.1,0)COLORRED;

    STICKLINE(ZTTJ,C,O,1.5,0)COLORYELLOW;

    五日线:MA(C,5),COLORWHITE;

    十三日线:EMA(C,13),COLORYELLOW,LINETHICK2;

    二三日线:EMA(C,23),COLORLIGREEN,LINETHICK2;

    牛熊线:EMA(CLOSE,60),COLORLIBLUE,LINETHICK2;

    年线:EMA(C,250),DOTLINE,COLORMAGENTA;

    VAT4:=(LOW+HIGH+CLOSE+O)/4;

    操作:=MA(VAT4,5);

    压力:HHV(操作,60),COLORLIMAGENTA,LINETHICK3;

    压力1:=HHV(操作,20),COLORYELLOW;

    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

    DEA:=EMA(DIF,9);

    MACD:=(DIF-DEA)*2,COLORSTICK;

    DD:=MA(DEA,250),COLORYELLOW;

    XG:=CROSS(DIF,DEA)ANDDD>0;

    DRAWICON(XG,L*0.98,1);

    副图

    AA1:=VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN)));

    AA2:=AA1*(CLOSE-OPEN);

    A3:=((SUM(AA2,0))/CAPITAL)*100;

    A4:=SUM((IF((AA2>=0),AA2,0)),0);

    A5:=SUM((IF((AA2<0),AA2,0)),0);

    罗陀:(A4-ABS(A5))/FINANCE(37)-20000,LINETHICK0;

    M5:MA(罗陀,5),COLOR00D0DD;

    M13:MA(罗陀,13),COLORFF9900;

    M26:MA(罗陀,26),COLORGREEN;

    M62:MA(罗陀,62),COLORFFDDFF;

    M120:MA(罗陀,120),COLORDD00DD;

    SLOPE(罗陀,3),LINETHICK0;

    STICKLINE((AA2>=0),(REF(罗陀,1)),罗陀,3,1),COLORRED;

    STICKLINE((AA2<0),(REF(罗陀,1)),罗陀,3,1),COLORGREEN;

    TY:=罗陀;

    A1:=REF(TY,N)=HHV(TY,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);HD:=FILTER(C1,N);

    A2:=REF(TY,N)=LLV(TY,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);LD:=FILTER(C2,N);

    前期高位:REF(罗陀,BARSLAST(HD)),COLORYELLOW,POINTDOT;

    STICKLINE(罗陀,前期高位,前期高位,2,0),COLORYELLOW;

    XG:=CROSS(罗陀,前期高位);

    VAT4:=(LOW+HIGH+CLOSE+O)/4;

    操作:=MA(罗陀,5);

    压力:=HHV(操作,60),COLORLIMAGENTA;

    P1:=60;P2:=5;P3:=10;

    REFLINE:0;

    K1:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-L

    OW);

    K2:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CL

    OSE);

    DT:=VOL*K1/(K1+K2);

    KT:=VOL-DT;

    买量:=SUM(DT,1);

    卖量:=SUM(KT,1);

    DDX:EMA(买量-卖量,5)*VOL/CAPITAL*100,COLORSTICK,LINETHICK2;

    STICKLINE(DDX>0,0,DDX,3,0),COLOR000088;

    STICKLINE(DDX>0,0,DDX,2.5,0),COLOR0000AA;

    STICKLINE(DDX>0,0,DDX,1.5,0),COLOR0000CC;

    STICKLINE(DDX>0,0,DDX,1,0),COLOR0000EE;

    STICKLINE(DDX<0,0,DDX,3,0),COLOR008800;

    STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;

    STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;

    STIC

    DDX

    DDX

    DDX

    预警

    天:=

    DRA

    以

    CKLINE(DDX<0

    X1:SMA(DDX,3

    X2:SMA(DDX1

    X3:EMA(DDX2

    警:DDX>0AND

    =COUNT(DDX

    AWTEXT(预警

    下为部

    0,0,DDX,1,0),

    3,1),COLORFF

    1,3,1),COLOR0

    2,5),COLORFF

    DMA(V,5)>M

    >0,5),COLOR

    警,DDX*1.06,'★

    分行情

    COLOR00EE0

    FFFFF;

    00FFFF;

    F00FF;

    A(MA(V,5),5)

    RED;

    ★'),LINETHIC

    情截图

    00;

    )ANDCROSS

    CK3,COLOR00

    (DDX1,DDX2)

    FFFF;

    ),LINETHICK;

image.png

   暴涨牛股指标源码

    DRAWGBK(CURRBARSCOUNT=1,RGB(110,108,108),RGB(88,30,0),0,'',0);

    VARA:=REF(LOW,1);

    VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;

    VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);

    VARD:=LLV(LOW,30);

    VARE:=HHV(VARC,30);

    VARF:=IF(MA(CLOSE,58),1,0);

    VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF;

    VARH:=IF(VARG>28,28,VARG);

    吸筹:STICKLINE(VARH>-120,0,VARH,6,1),COLOR0FFFFF;

    备钱:IF(吸筹,1,0),COLOR0FFFFF;

    RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);

    K:=SMA(RSV,3,1);

    D:=SMA(K,3,1);

    J:=3*K-2*D;

    X:=LLV(J,2)=LLV(J,8);

    买入时机:IF(CROSS(J,3),65,0),COLORFF00FF,LINETHICK3;

    DRAWTEXT(买入时机,70.1,'跟庄'),COLOR00FF00;

    VA:=(2*C+H+L)/4;

    VB:=LLV(L,5);

    VC:=HHV(H,5);

    红线上穿买:EMA((VA-VB)/(VC-VB)*100,5),COLORRED;

    红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;

    趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,

    1),COLOR00FFFF;

    秘密买点:IF(趋势<=3,20,0),COLOR00FF00,LINETHICK3;

    机构建仓:IF(趋势<5,40,0),COLORFFFFFF,LINETHICK3;

image.png

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