最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 指标资讯

    正文概述    2024-05-04 03:28:18  

    通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、跟庄选股指标公式    N:=21;    M1:=3;    M2:=3;    RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;    K:SMA(RSV,M1,1),colorwhite;    D:SMA(K,M2,1),coloryellow;    J:3*K-2*D,colorff00ff    MA5:MA(CLOSE,5);    MA10:MA(CLOSE,10);    MA20:MA(CLOSE,20);    MA60:MA(CLOSE,60);    BB:=REF(INDEXC,1) REF(INDEXC,2)ANDREF(C,2)*0.95 =REF(C,1)AND    REF(O,1)/REF(C,1) =1.05    ANDREF(C,1) REF(O,1)ANDC OANDC/O =1.05ANDC REF(O,1)    ANDREF(VOL,1) REF(VOL,2);    STICKLINE(BB,O,C,4,0),COLORRED;    STICKLINE(BB,O,H,0,0),COLORRED;    STICKLINE(BB,L,C,0,0),COLORRED;    DRAWTEXT(BB,L*0.98, 抢入 ),COLORYELLOW;    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);    VAR2:=8;    CC:=CROSS(VAR1,VAR2);    DRAWTEXT(CC,L*0.98, 介入吃肉! ),COLOR0099FF;    TYP:=(H+L+C)/3;    TYP1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)) =20AND    REF(MA(C,21),1) MA(C,21);    TJ1:=O MAX(REF(C,1),REF(O,1));    TJ2:=REF(C,1) =MA(C,21)ANDL/MA(C,21) =1.015AND    MA(C,144) MA(C,250)ANDV MA(V,10)ANDMIN(REF(V,2),REF(V,1))     TJ3:=REF(MA(C,250),90) REF(MA(C,144),90)ANDMA(C,144) MA(C,250)    ANDO MA(C,250);    TJ4:=MAX(REF(H,10)ANDREF(H,9)ANDREF(H,8)ANDREF(H,7),REF(H,6));    TOUJI:=TYP1ANDTJ1ANDTJ2ANDREF(C,2)/REF(O,2) 1.06AND    C/O =1.05ANDHHV(H,5)/LLV(L,30) =1.65ANDREF(H,5)/REF(L,1) =1.15    ANDREF(C,1)/REF(O,1) =0.995AND(L REF(L,2)OR    (REF(H,2)-REF(L,2))/(H-L) =2)ANDO/REF(L,1) =1.04    ORTYP1ANDTJ1ANDO/REF(L,1) 1.05ANDREF(L,1)/REF(O,4) =0.85AND    REF(C,1)/REF(O,1) =1.03ANDO REF(C,1)ANDHHV(H,5)/LLV(L,35) 1.35    ANDV MA(V,10);    TOUJI2:=TYP1ANDTJ1ANDTJ2ANDO/REF(L,1) 1.05ANDO/LLV(L,3) 1.1    ANDREF(C,1)/REF(0,1) =1.05ANDHHV(H,4)/LLV(L,16) =1.35AND    REF(O,4)/REF(C,2) =1.08ANDREF(C,2)/REF(O,2) =0.995AND    (REF(L,2) REF(L,3)OR(REF(H,3)-REF(L,3))/(REF(H,1)-REF(L,1)) =2)AND    L MIN(REF(C,1),REF(O,1))    ORTYP1ANDTJ1ANDHHV(H,10)/LLV(L,25) =1.3ANDREF(C,5) REF(H,5)    ANDREF(C,4) REF(C,5)ANDREF(C,3) REF(C,4)ANDREF(C,2) REF(C,3)    ANDREF(C,1) REF(C,2)ANDL REF(L,1)ANDMA5/O     DATOUJI:=TYP1ANDTJ3ANDO REF(C,5)ANDO =REF(C,1)AND    REF(H,10)/O =1.17ANDHHV(H,10)/LLV(L,30) 1.4AND    (MA(V,10)/HHV(V,10) 0.5ANDV/HHV(V,10) 0.2ANDV/HHV(V,10) 0.4OR    REF(V,3) REF(V,2)ANDREF(V,2) REF(V,1))ANDREF(C,1)/REF(C,2) =1.02;    DATOUJI1:=TYP1ANDTJ3ANDO REF(L,6)ANDO MIN(REF(C,5)AND    REF(O,5),5);    DRAWTEXT(TOUJIORTOUJI2ORDATOUJIORDATOUJI1,L*0.98, △    ),COLORYELLOW;    DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20))ANDMA(VOL,5) MA(VOL,10)    ANDL MA(C,20)ANDC =MA(C,20),L*0.98, 量托 ),COLORWHITE;    卖    出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(    CLOSE,1)),6,1)*100);    DRAWTEXT(卖出,H*1.05, 吃肉 ),COLORGREEN;    C3:=REF(C,1);    涨停:=IF((C-C3)*100/C3 =(10-0.01*100/C3),1,0);    STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;    跌停:=IF((C3-C)*100/C3 =(10-0.01*100/C3),1,0);    STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;    W1:=C=HHV(C,20);    W2:=BARSLAST(W1);    W3:=IF(W2 0,REF(C,W2),REF(C,W2));    W4:=CROSS(C,REF(W3,1));    突破盘整:=W4ANDCOUNT(W4,5)=1;    DRAWICON(突破盘整,L-0.10,1);    VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;    VAR2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;    VAR3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;    VAR4:=(VAR1+2*VAR2+3*VAR3)/6;    VAR5:=MA(VAR4,3)-STD(VAR4,3);    VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;    K:=SMA(VARA,3,1),COLORYELLOW;    VARB:=SMA(K,3,1);    J:=3*K-2*VARB,COLORGREEN;    主力介入:CROSS(J,VARB)ANDCOUNT(VAR5 -16,4) =1,COLORWHITE;    ST1:=IF(NAMELIKE( ST ),0,1);    ST2:=IF(NAMELIKE( *ST ),0,1);    ST3:=IF(NAMELIKE( S*ST ),0,1);    ST4:=IF(NAMELIKE( SST ),0,1);    ST5:=IF(NAMELIKE( S ),0,1);    ST6:=IF(NAMELIKE( N ),0,1);    QST:=ST1ANDST2ANDST3ANDST4ANDST5ANDST6;    SX:=IF(DATE 1121230,0,1);    停牌:=(DYNAINFO(4)=0);    QSTTP:=QST*SXANDNOT(停牌);    MA5:=MA(CLOSE,5);    MA10:=MA(CLOSE,10);    MA20:=MA(CLOSE,20);    MA60:=MA(CLOSE,60);    BB:=REF(INDEXC,1) REF(INDEXC,2)ANDREF(C,2)*0.95 =REF(C,1)AND    REF(O,1)/REF(C,1) =1.05    ANDREF(C,1) REF(O,1)ANDC OANDC/O =1.05ANDC REF(O,1)    ANDREF(VOL,1) REF(VOL,2);    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);    VAR2:=8*SX;    CC:=CROSS(VAR1,VAR2)*SX;    XGX:CCANDQSTTP;    MA5:=MA(C,5);    EMA10:=MA(C,10);    EMA30:=MA(C,30);    HY1:=CROSS(MA5,EMA10);    HY2:=CROSS(MA5,EMA30);    HY3:=CROSS(EMA10,EMA30);    XG:=HY1ORHY2ORHY3;    LWH:=100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42));    N:=34;    RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;    K:=SMA(RSV,3,1);    D:=SMA(K,3,1);    J:=3*K-2*D;    主力:=EMA(J,6);    主上穿散:=CROSS(主力,LWH);    跟庄抓牛:主上穿散ANDXG;    AA:=EXIST(V REF(V,1),3);    BB:=FILTER(C/REF(C,1) 1.05ANDC=H,5);    XG:ABS(WR.WR1(21,42)-WR.WR2(21,42)) 0.01ANDWR.WR1(21,42) 20ANDWR.WR2(21,42) 20ANDAAANDBB;二、庄股选股公式    VAR3:=EMA(IF(LOW =LLV(LOW,34),FORCAST(C,5),0),5);    N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);    QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));    QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));    QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));    QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));    DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000);    DDY:=((QJ2+QJ4)-(QJ1+QJ3))/IF(CAPITAL=0,1000000,10000);    QJ5:=QJ1+QJ2;QJ6:=QJ3+QJ4;DD:=(QJ5-QJ6)/(QJ5+QJ6)*100;    DDZ:=DD*17;    TJ1:=(SUM(DDX 0,5) =4ANDDDZ =300)OR(EVERY(DDY 0,3)ANDDDZ =300);    TJ2:FILTER(TJ1,5)ANDVAR3 1;    N:=24;    均价:=(2*C+(C+H+L+O)/4+O)/4;    R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;    A:=SUMBARS(V,CAPITAL);    OBV:SUM(IF(CLOSE (R+R1)/2,VOL,IF(CLOSE (R+R1)/2,-VOL,0)),0)/1000000,COLORWHITE;    M3:=EMA(OBV,3);    M5:=EMA(OBV,5);    M8:=EMA(OBV,8);    M13:=EMA(OBV,13);    M21:=EMA(OBV,21);    M34:=EMA(OBV,34);    M55:=EMA(OBV,55);    M89:=EMA(OBV,89);    M144:=EMA(OBV,144);    M233:=EMA(OBV,233);    生命线:Ema((M3+M5+M8+M13+M21+M34+M55)/7,(3+5+8+13+21+34+55)/7),COLORRED,LINETHICK;    操作线:EMA(生命线+(eMA(OBV,2)-生命线),14),COLORYELLOW;    STICKLINE(生命线 REF(生命线,1),REF(生命线,1),生命线,10,0),COLOR00bb00;    STICKLINE(生命线 =REF(生命线,1),REF(生命线,1),生命线,10,0),COLORRED;    天:=REF(HHV(OBV,N),1),COLORGREEN,LINEDOT;    地:REF(LLV(OBV,N),1),COLORAAAA00,LINEDOT;    人:REF(HHV(OBV,n*2/3),1),COLOR7F00FF,LINEDOT;    INPUT:N(8,1,60),M(90,1,300);    均价:=(2*C+(C+H+L+O)/4+O)/4;    R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;    CCI:=((R+R1)/2-MA((R+R1)/2,36))/(0.015*AVEDEV((R+R1)/2,36))/4+50;    DRAWGBK(CCI =25ANDCCI 50,COLORRGB(30,30,30),COLORRGB(130,130,130),1);    DRAWGBK(CCI =25ANDCCI REF(CCI,1),COLORRGB(110,95,0),COLORRGB(0,20,0),1);    DRAWGBK(CCI =50,COLORRGB(110,0,0),COLORRGB(0,0,0),0);    DRAWGBK(CCI =50ANDCCI REF(CCI,1),COLORRGB(20,50,50),COLORRGB(30,30,140),1);    DRAWGBK(CCI 25,COLORRGB(0,110,0),COLORRGB(0,0,0),0);    M3:=EMA(COST(3),3);    M5:=EMA(COST(5),5);    M8:=EMA(COST(8),8),COLORWHITE;    M13:=EMA(COST(13),13);    M21:=EMA(COST(21),21),COLORYELLOW;    M34:=EMA(COST(34),34);    M55:=EMA(COST(55),55);    M89:=EMA(COST(89),89);    M144:=EMA(COST(144),144);    M233:=EMA(COST(233),233);    M377:=EMA(COST(377),377);    M610:=EMA(COST(610),610);    成本线:Ema((M3+M5+M8+M13+M21+M34+M55)/7,    (3+5+8+13+21+34+55)/7),COLORYELLOW,LINETHICK2;    跟庄线:IF(DATATYPE=5,EMA(成本线+EMA((eMA((R+R1)/2,2)-成本线),4),N),EMA(成本线+EMA((eMA((R+R1)/2,2)-成本线),4),N/4))COLORAAAA00;    FILLRGN(成本线 跟庄线,成本线,跟庄线),COLORBROWN;    FILLRGN(成本线 跟庄线,成本线,跟庄线),COLOR00AA99,COLORBLUE;    多空线:IF(DATATYPE=5,EMA(成本线+EMA((eMA((R+R1)/2,3)-成本线),6),M),EMA(成本线+EMA((eMA((R+R1)/2,3)-成本线),6),M/4)),COLORWHITE;    压力线:=Ema((M3+M5+M8+M13+M21+M34+M55+M89+M144+M233)/10,(3+5+8+13+21+34+55+89+144+233)/10),COLORRED,LINETHICK2;    kX:=(R+R1)/2;    STICKLINE(kX =CLOSE,HIGH,LOW,0.2,0),colorFFCC00;    STICKLINE(kX =CLOSE,CLOSE,kX,8,0),colorFF9F68;    STICKLINE(kX =CLOSE,CLOSE,kX,7,0),colorFF9900;    STICKLINE(kX =CLOSE,CLOSE,kX,6,0),colorFFAA11;    STICKLINE(kX =CLOSE,CLOSE,kX,5,0),colorFFBB11;    STICKLINE(kX =CLOSE,CLOSE,kX,4,0),colorFFCC22;    STICKLINE(kX =CLOSE,CLOSE,kX,3,0),colorFFDD22;    STICKLINE(kX =CLOSE,CLOSE,kX,2,0),colorFFEE33;    STICKLINE(kX =CLOSE,CLOSE,kX,1,0),colorFFFF33;    STICKLINE(C kX,HIGH,LOW,0.2,0),colorFF;    STICKLINE(CLOSE kX,CLOSE,kX,8,0),colorCC;    STICKLINE(CLOSE kX,CLOSE,kX,7,0),color3300CC;    STICKLINE(CLOSE kX,CLOSE,kX,6,0),color33CC;    STICKLINE(CLOSE kX,CLOSE,kX,5,0),color6633CC;    STICKLINE(CLOSE kX,CLOSE,kX,4,0),color3333FF;    STICKLINE(CLOSE kX,CLOSE,kX,3,0),color6633FF;    STICKLINE(CLOSE kX,CLOSE,kX,2,0),color3366FF;    STICKLINE(CLOSE kX,CLOSE,kX,1,0),color6666FF;    RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;    LWR1:=SMA(RSV,3,1);    LWR2:=SMA(LWR1,3,1);    LWR金叉:LWR1 LWR2;[源码注释]通达信公式动态公式解读输出XG: 收盘价/10日前的收盘价 1.2 并且 收盘价/10日前的收盘价 1.1 推荐阅读:跟庄买入指标公式    AA:=CROSS(MA(C,5),MA(C,20))ANDCROSS(MA(C,5),MA(C,30))AND    CROSS(MA(C,5),MA(C,60));    BBB:=MA(C,60) MA(C,10)ANDCROSS(MA(C,10),MA(C,30))ANDMA(C,30) MA(C,20)    ANDABS(MA(C,60)-MA(C,20))/MA(C,20) 0.05;    CCC:=MA(C,30) MA(C,5)ANDCROSS(MA(C,5),MA(C,20))ANDMA(C,20) MA(C,10);    DD:=ABS((MA(C,5)-MA(C,10))+(MA(C,10)-MA(C,20))+(MA(C,20)-MA(C,30))) 0.02AND    MA(C,5) REF(MA(C,5),1)ANDMA(C,10) REF(MA(C,10),1);    EE:=MA(C,20) MA(C,5)ANDCROSS(MA(C,5),MA(C,10))ANDMA(C,10) MA(C,60)AND    ABS(MA(C,20)-MA(C,60))/MA(C,60) 0.05;    FF:=AAORBBBORCCCORDDOREE;    探测:=FFANDFILTER(FF,8);    DRAWTEXT(探测,L*0.958, ●(庄现) ),COLORRED;    STICKLINE(探测,H,L,0.3,0),COLORRED;    STICKLINE(探测,O,C,5,0),LINETHICK2,COLORRED;    AA1:=AMOUNT/VOL;    BB1:=L1.2;    DD1:=L MA(C,5)*0.921;    EE1:=VOL MA(V,5)*1.5;    FF1:=BB1ANDCC1ANDDD1ANDEE1,COLORRED,LINETHICK0;    DRAWTEXT(FF1,L*0.99, ●(潜伏) ),COLORYELLOW;    STICKLINE(FF1,H,L,0.3,0),COLORYELLOW;    STICKLINE(FF1,O,C,5,0),LINETHICK2,COLORYELLOW;    DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),    HIGH*1.02, ●警 ),COLORGREEN;    N:=5;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;AAA:=2*E-LOW,NODRAW;AB:=2*E-HIGH,NO    DRAW;ACC:=E+(HIGH-LOW),NODRAW;ADD:=E-(HIGH-LOW),NODRAW;今阻    力:REF(AAA,1),COLORWHITE,NODRAW;今支撑:REF(AB,1),COLORYELLOW,NODRAW;明阻    力:AAA,COLORCYAN,NODRAW;明支撑:AB,COLORMAGENTA,NODRAW;明突    破:ACC,COLORGREEN,NODRAW;明反转:ADD,COLORLICYAN,NODRAW;{压力+支撑}压    力:MA(REF(HHV(C,30),1),2),COLORBLACK;支撑:MA(REF(LLV(C,30),1),2),COLORBLACK;    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*RE    F(MID,14)+5    *REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COL    ORRED;    马线:MA(牛线,6),COLORGREEN;    MAA5:MA(C,5),COLORFF00FF,LINETHICK2;    A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;    A4:=SMA(A3,3,1);    A5:=SMA(A4,3,1);    A6:=3*A4-2*A5;    VAR4:=(LOW+HIGH+CLOSE)/3;    操作:MA(VAR4,5);    拉升:HHV(操作,13);    压力:HHV(操作,60);    买卖:LLV(操作,13);    底部支撑:LLV(LOW,60)*1.02;    顶部:HHV(HIGH,60)*0.98;    STICKLINE(C 1.095*REF(C,1),O,C,8,0),COLORYELLOW;    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;    n{1,100,14}    MA1:=EMA(EMA(EMA(C,3),2),2);    MA2:=EMA(EMA(EMA(C,5),2),2);    MA11:=EMA(EMA(EMA(C,3),2),2);    MA12:=EMA(EMA(EMA(C,5),2),2);    VAR1111:=EMA(CLOSE,4)-EMA(CLOSE,13);    AA2222:=VAR1111 =REF(VAR1111,1);    BB2222:=VAR1111 REF(VAR1111,1);    给:=EMA(C,2);    力:=EMA(SLOPE(C,9)*20+C,37);    LC:=REF(CLOSE,1);    RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;    底部区域:=49;    风险区域:=80;    ZB1:=RSI1 底部区域;    建仓:=IF(CROSS(RSI1,底部区域),80,1);    N1:=5;N2:=26;N3:=45;N4:=7;    DIF1:=EMA(CLOSE,N1)-EMA(CLOSE,N2);    DEA1:=EMA(DIF1,N3);    DIF2:=EMA(CLOSE,N4)-EMA(CLOSE,N3);    DEA2:=EMA(DIF2,N4);    只做波段:=2*(DIF1-DEA1),COLOR0088F5,LINETHICK2;    MMA:=MA(只做波段,N1);    见好就收:=0;    波段:=2*(DIF1-DEA1);    波段是金:=MA(只做波段,3);    VAR1:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2);    VAR2:=REF(VAR1,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR3:=REF(VAR2,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR4:=REF(VAR3,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR5:=REF(VAR4,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR6:=REF(VAR5,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR7:=REF(VAR6,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR8:=REF(VAR7,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR9:=REF(VAR8,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VARA:=REF(VAR9,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VARB:=REF(VARA,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VARC:=REF(VARB,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VARD:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2);    VARE:=REF(VARD,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VARF:=REF(VARE,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR10:=REF(VARF,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR11:=REF(VAR10,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR12:=REF(VAR11,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR13:=REF(VAR12,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR14:=REF(VAR13,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR15:=REF(VAR14,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR16:=REF(VAR15,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR17:=REF(VAR16,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR18:=REF(VAR17,1)ANDCLOSE =REF(CLOSE,1)AND    CLOSE =REF(CLOSE,2);    VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12OR    VAR13OR    VAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1;    VAR1A:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7    OR    VAR8ORVAR9ORVARAORVARBORVARC,1)ANDVARD;    摘星手:FILTER(VAR19=1,N)ORCROSS(给,力)ANDCROSS(RSI1,底部区域)    ANDC =MA1;    趋    势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SM    A(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),CO    LOR00FFFF;    秘密买点:IF(趋势 =3,20,0),COLOR00FF00,LINETHICK3;    机构建仓:IF(趋势 5,40,0),COLORFFFFFF,LINETHICK3;    A01:=DYNAINFO(7);    A03:=BARSCOUNT(CLOSE);    A04:=(SMA((CLOSE/HHV(HIGH,120)),3,1)*100);    A05:=IF((A03 20),A04,0);    A06:=IF((LOW A01),0,IF((HIGH0)AND(A07 REF(A07,1)))AND(A05 =88)),A07,0);    VAR1:=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)    ;    VAR2:=EMA(VAR1,8);    VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C    -LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);    趋势:=EMA(VAR3,3)-10;    (趋势     DRAWICON(CROSS(趋势,0),0,1);    ((A09 0AND(趋势 20OR趋势 REF(趋势,1)AND趋势 50))),COLORFFFF00;    机构建仓区:0,LINETHICK0,COLORFFFF00;    VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;    STICKLINE(趋势 =13,0,20,5,0),COLORCC9900;    DRAWTEXT(FILTER(趋势 =13,15),30, 准备现金 ),COLORCC9900;    STICKLINE(趋势 =13ANDVAR4 13,0,50,5,0),COLOR0099FF;    VAR5:=FILTER((趋势 =13ANDVAR4 13),10);    DRAWTEXT(VAR5,60, 买入 ),COLOR0099FF;    STICKLINE(趋势 =90ANDVAR4,0,30,5,0),COLORGRAY;    VAR6:=FILTER((趋势 =90ANDVAR4),10);    DRAWTEXT(VAR6,40, 清仓 ),COLORGRAY;    VAR7:=LLV(LOW,30);    VAR8:=HHV(HIGH,30);    VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;    STICKLINE(VAR9 90,100,105,10,2),COLORRED;    VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100;    DRAWTEXT(IF(CROSS(VAR9,VAR10)ANDVAR9 87,95,0),88, 险 ),COLOR00FF00,;    DRAWICON(CROSS(90,VAR9),95,9);    VAR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;    VAR12:=HHV(VAR11,30)*8;    火焰山:EMA(IF(LOW =VAR7AND趋势    40,(VAR11+VAR12),0),3)/618,COLORRED,LINETHICK2;    STICKLINE(火焰山 0,0,火焰山*1.2,5,0),COLORRED;    VAR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;    VAR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;    趋势线:趋势,COLORFF0000;    VAR16:=MAX(EMA(VAR13,2)-EMA(VAR14,5),0)*200;    VAR17:=EMA(VAR16,5);    波浪峰:VAR17,STICK,COLORFF00FF;    STICKLINE(VAR17 REF(VAR17,1),0,VAR17,1,0),COLOR00FF00;    VAR18:=MA(趋势线,8);    IF(CROSS(VAR2,VAR18)ANDVAR2 15,50,0),COLORRED;    DRAWTEXT(CROSS(趋势线,VAR2)AND趋势线 REF(趋势线,1)AND趋势线 50,50,     追涨 ),COLORFF0000;    买入:IF(VAR5,60,0);    P:=13;S:=5;M:=1;    DIFF:EMA(C,S)-EMA(C,P);    DEA:EMA(DIFF,M),COLORRED;    MACD:2*(DIFF-DEA),COLORSTICK;    P1:=P;S1:=S;    DIFF1:EMA(C,S1)-EMA(C,P1);    DEA1:EMA(DIFF,M),COLORRED;    MACD1:=2*(DIFF1-DEA1),COLORSTICK;    MACD2:=DEA;    STICKLINE(MACD2 =REF(MACD2,1)ANDMACD2 0,0,MACD2*50,3,0),COLOR00AAFF;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 0,0,MACD2*50,1.8,0),COLOR00BBFF;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 0,0,MACD2*50,1.3,0),COLOR00CCFF;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 0,0,MACD2*50,1.2,0),COLOR00DDFF;    STICKLINE(MACD2 =REF(MACD2,1)ANDMACD2 0,0,MACD2*50,1,0),COLOR00EEFF;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 0,0,MACD2*50,0.5,0),COLOR00FFFF;    STICKLINE(MACD2 REF(MACD2,1)AND    MACD2 0,0,MACD2*50,3.4,0),COLOR0000AA;    STICKLINE(MACD2 REF(MACD2,1)AND    MACD2 0,0,MACD2*50,3.2,0),COLOR0011BB;    STICKLINE(MACD2 REF(MACD2,1)ANDMACD2 0,0,MACD2*50,3,0),COLOR0022CC;    STICKLINE(MACD2 REF(MACD2,1)ANDMACD2 0,0,MACD2*50,2,0),COLOR0033DD;    STICKLINE(MACD2 REF(MACD2,1)ANDMACD2 0,0,MACD2*50,1,0),COLOR0044EE;    STICKLINE(MACD2 REF(MACD2,1)AND    MACD2 0,0,MACD2*50,0.5,0),COLOR0055FF;    STICKLINE(MACD2 REF(MACD2,1)AND    MACD2 =0,0,MACD2*50,3.4,0),COLORAA00BB;    STICKLINE(MACD2 REF(MACD2,1)AND    MACD2 =0,0,MACD2*50,3.2,0),COLORBB11BB;    STICKLINE(MACD2 REF(MACD2,1)ANDMACD2 =0,0,MACD2*50,3,0),COLORCC22BB;    STICKLINE(MACD2 REF(MACD2,1)ANDMACD2 =0,0,MACD2*50,2,0),COLORDD33BB;    STICKLINE(MACD2 REF(MACD2,1)ANDMACD2 =0,0,MACD2*50,1,0),COLOREE44BB;    STICKLINE(MACD2 REF(MACD2,1)AND    MACD2 =0,0,MACD2*50,0.5,0),COLORFF55BB;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 =0,0,MACD2*50,3,0),COLORFF7700;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 =0,0,MACD2*50,1.5,0),COLORFF8811;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 =0,0,MACD2*50,1.2,0),COLORFFAA22;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 =0,0,MACD2*50,1.0,0),COLORFFBB33;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 =0,0,MACD2*50,0.8,0),COLORFFDD44;    STICKLINE(MACD2 =REF(MACD2,1)AND    MACD2 =0,0,MACD2*50,0.5,0),COLORFFFF55;    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;    STICKLINE(C 0,-100,200,8,0),COLOR444444;    N:=1.5;    M:=3;    P:=64;    DIFF:=EMA((EMA(CLOSE,N*12)-EMA(CLOSE,N*26))/EMA(CLOSE,N*26)*1000,M);    DEA:=EMA(DIFF,N*9),COLOR000088;    MACD:=2*(DIFF-DEA);    MACDX:=MACD;    MACDO:=EMA(MACD,5),COLORFF77FF;    DIFFO:=EMA(DEA,P)*1.8;    B:=MACD-REF(MACD,1);    (MACD 0ANDB 0,0,MACD,0,1),COLOR0000CD;    STICKLINE(MACD 0ANDB 0,0,MACD,0,0),COLOR0000CD;    V1:=EMA(CLOSE,60)-EMA(CLOSE,300);    V2:=EMA(V1,300);    V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;    V4:SMA(V3,2,1);    V5:SMA(V4,2,1);    V6:=CLOSE/REF(CLOSE,3) =1.1;    V7:=BACKSET(V6,3);    暴涨:IF((V7ANDCOUNT(V7,3)=1),30,0),COLORYELLOW,LINETHICK3;    DRAWTEXT(暴涨,35, 暴涨 ),COLORYELLOW,LINETHICK3;    STICKLINE(MACD 0ANDB 0,0,MACD,0,1),COLORCYAN;    STICKLINE(MACD 0ANDB 0,0,MACD,0,0),COLORCYAN;    STICKLINE(DIFF DEA,DIFF,DEA,4,0),COLOR0089FF;    STICKLINE(DIFF DEA,DIFF,DEA,4,0),COLORBLUE;    发现机构入场:IF(DIFF =REF(DIFF,1)AND    DEA REF(DEA,1),DIFF,DRAWNULL),COLOR00C500,LINETHICK4;    短线出局:IF(DIFF REF(DIFF,1)AND    DEA REF(DEA,1),DIFF,DRAWNULL),COLORYELLOW,LINETHICK4;    IF(DIFF =REF(DIFF,1)ANDDEA REF(DEA,1),DIFF,DRAWNULL),COLORGRAY;    IF(DIFF REF(DIFF,1)ANDDEA REF(DEA,1),DIFF,DRAWNULL),COLORBLUE;    IF(DIFFO =REF(DIFFO,1),DIFFO,DRAWNULL),COLORYELLOW;    IF(DIFFO=REF(DIFFO,1),DIFFO,DRAWNULL),COLORYELLOW;    IF(DIFFO REF(DIFFO,1),DIFFO,DRAWNULL),COLORMAGENTA;    DRAWTEXT(C=CANDCURRBARSCOUNT=150,180, 操作:蓝转绿试买;见橙加仓;维持橙持股    ),COLOR008987;    DRAWTEXT(C=CANDCURRBARSCOUNT=150,150, 橙转黄减仓;蓝色空仓 ),COLOR008987;每日公式解答:    公式编写要求:    60日内最大的换手率的公式。    公式编写方法:    HHV(HSL.HSL,60);

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 指标资讯 加入收藏