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

    正文概述    2024-05-04 03:00:58  

    通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、通达信红绿线指标公式    DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);    DEA:EMA(DIFF,9);    MACD:2*(DIFF-DEA),NODRAW;    MACDHS:=IF(MACD 0ANDMACD REF(MACD,1),MACD,0);    MACDHX:=IF(MACD 0ANDMACD REF(MACD,1),MACD,0);    MACDLX:=IF(MACD 0ANDMACD REF(MACD,1),MACD,0);    MACDLS:=IF(MACD 0andmacd REF(MACD,1),MACD,0);    STICKLINE(MACDHS 0,0,MACD,2,0),COLORRED;    STICKLINE(MACDHX 0,0,MACD,2,0),COLORYELLOW;    STICKLINE(MACDLX 0,MACD,0,2,0),COLORCYAN;    STICKLINE(MACDLS 0,MACD,0,2,0),COLORLIGREEN;    绿柱面积:10*IF(MACD 0,sum(macd,barslast(macd 0)),0),NODRAW,COLORCYAN;    红柱面积:10*IF(MACD 0,SUM(MACD,BARSLAST(MACD 0)),0),NODRAW,COLORRED;    DRAWNUMBER(REF(MACD,1) 0ANDMACD =0,HHV(MACD,8),REF(红柱面    积,1)),COLORRED;    DRAWNUMBER(REF(MACD,1) 0andmacd =0,LLV(MACD,4),REF(ABS(绿柱面    积),1)),COLORCYAN;    DRAWNUMBER(ISLASTBARANDMACD 0,LLV(MACD,8),ABS(绿柱面积)),COLORCYAN;    DRAWNUMBER(ISLASTBARANDMACD 0,HHV(MACD,4),ABS(红柱面积)),COLORRED;    N:=9;    中期牛熊线:=MA(CLOSE,26);    短期牛熊线:=MA(CLOSE,5);    VAR1:=EMA(EMA(CLOSE,N),N);    控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;    STICKLINE(控盘 0,控盘,0,1,0),COLORYELLOW;    黄色观望:IF(控盘 0,控盘,0),COLORYELLOW,NODRAW;    STICKLINE(中期牛熊线 短期牛熊线,控盘,0,1,0),COLORRED;    红色买进持有:中期牛熊线 短期牛熊线,COLORRED;    STICKLINE(控盘0,控盘,0,1,0),COLOR00FF00;    绿色卖出:IF(控盘0,控盘,0ANDCLOSE 短期牛熊    线),COLOR00FF00,NODRAW;    说明0上是牛市:黄色观望,LINETHICK;    说明0下是熊市:黄色观望,LINETHICK;    AL:=(C+L+H+O)/4;    A1:=EMA(AL,1)-EMA(AL,60);    A2:=(EMA(A1,3)-EMA(A1,20));    A3:=(EMA(A2,3)-EMA(A2,5))*100;    M5:SUM(A3,0);    DRAWBAND(M5,255,0,RGB(34,139,34));    M10:MA(M5,5);    M20:MA(M10,5);    STICKLINE(1,M5,M10,0,0),COLORBROWN;    DRAWKLINE(M5,REF(M5,1),REF(M5,1),M5);    A1:=MA(C,1);    B1:=SMA(SMA(SMA(A1,2,1),2,1),2,1);    C1:=MA(B1,3);    DRAWBAND(B1,RGB(255,0,0),C1,RGB(0,255,0));    线A1:=(MA(VOL,5)+MA(VOL,10)+MA(VOL,25))/3,COLOR00FF00;    线A2:=(MA(VOL,5)+MA(VOL,10)+MA(VOL,20)+MA(VOL,60)+MA(VOL,120))/5,COLOR00FF00;    线A3:=(MA(VOL,20)+MA(VOL,60)+MA(VOL,120))/3,COLOR00FF00,LINETHICK2;    ZX:2*(线A1-线A2),COLORSTICK;STICKLINE(线A1 线A3,线A1,线A3,0.1,1),COLORFF0080;    STICKLINE(线A1 =线A3,线A1,线A3,0.1,1),COLOR22CC33;    线1:IF(线A1 线A3,线A1,线A3),COLOR00FF00;    IF(线A1 线A3,线A3,线A1),COLORRED;    线2:IF(线A2 线A3,线A2,线A3),COLOR00FF00;    IF(线A2 线A3,线A3,线A2),COLORRED;    线3:IF(线A3 线A1,线A3,线A3),COLOR00FF00,LINETHICK2;    IF(线A1 线A3,线A3,线A3),COLORRED,LINETHICK2;    DIFF:=EMA(CLOSE,26)-EMA(CLOSE,12);    DEA:=EMA(DIFF,9);    MACD:=(DIFF-DEA),COLORSTICK;    MACD金叉:IF(CROSS(DIFF,DEA),MACD-0.02,0),COLORFF00FF,POINTDOT;    DRAWTEXT(CROSS(DIFF,DEA),MACD-0.03, ● ),COLORFF00FF;    TYP:=(HIGH+LOW+CLOSE)/3;    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;    JK金叉:IF(CROSS(J,K),MACD-0.02,0),COLORYELLOW,POINTDOT;    DRAWTEXT(CROSS(J,K),MACD-0.03, ● ),COLORYELLOW;    上涨缺口:IF(L REF(H,1),MACD-0.01,0),COLORRED,POINTDOT;    DRAWTEXT(L REF(H,1),REF(H,1), ☆ ),COLORRED;二、通达信波段红绿线指标公式    VAR1:=3;    VAR3:=(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));    CROSS(VAR3,VAR1);    RSV:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100;    K:SMA(RSV,14,1),COLOR009900,LINETHICK2;D:SMA    (K,10,1),COLORFF00FF,LINETHICK3;    MA6:=MA(C,6);    MA34:=MA(C,34);    STICKLINE(CROSS(MA6,MA34)ANDK D,K+9,D,3,0),COLOR00FFFF;    DRAWTEXT(CROSS(MA6,MA34)ANDK D,K, ★波段起爆 ),COLOR0080FF;    SCD:IF(CROSS(MA34,MA6),K,D),COLOR00FFFF,LINETHICK2;    DRAWTEXT(CROSS(MA34,MA6),K, ★休息 ),COLOR00FFFF;    STICKLINE(CROSS(K,D)ANDK 30ANDD 30,K+5,D-2,5,0),COLORRED;    n:{0,2500,13}    m:{0,2500,5}    以下是源码:    超B:=L2_AMO(0,2)/10000.0;    大B:=L2_AMO(1,2)/10000.0;    中B:=L2_AMO(2,2)/10000.0;    小B:=L2_AMO(3,2)/10000.0;    超S:=L2_AMO(0,3)/10000.0;    大S:=L2_AMO(1,3)/10000.0;    中S:=L2_AMO(2,3)/10000.0;    小S:=L2_AMO(3,3)/10000.0;    净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S);    大宗净流入:=(超B+大B)-(超S+大S);    当天:=大宗净流入/MA(V,N)/C*100;    三天:=SUM(大宗净流入,3)/SUM(MA(V,N)*C,3)*100;    五天:=SUM(大宗净流入,5)/SUM(MA(V,N)*C,5)*100;    十天:=SUM(大宗净流入,10)/SUM(MA(V,N)*C,10)*100;    廿天:=SUM(大宗净流入,20)/SUM(MA(V,N)*C,20)*100;    叁天:=SUM(大宗净流入,30)/SUM(MA(V,60)*C,30)*100;    TEN:SUM(十天,M);    TWE:SUM(廿天,M);    THI:SUM(叁天,M);    Z:=(L+H+C*2)/4;    Z1:=EMA(Z,14)COLORBLUE,LINETHICK2;    Z2:=EMA(Z,25)COLORLIBLUE,LINETHICK2;    Z1B:=(Z1-REF(Z1,1))/REF(Z1,1)*100;    Z2B:=(Z2-REF(Z2,1))/REF(Z2,1)*100;    NN:=(3*CLOSE+OPEN+LOW+HIGH)/6;    MM:(20*NN+19*REF(NN,1)+18*REF(NN,2)+17*REF(NN,3)+16*REF(NN,4)+15*REF(NN,    5)+14*REF(NN,6)    +13*REF(NN,7)+12*REF(NN,8)+11*REF(NN,9)+10*REF(NN,10)+9*REF(NN,11)+8*REF(    NN,12)    +7*REF(NN,13)+6*REF(NN,14)+5*REF(NN,15)+4*REF(NN,16)+3*REF(NN,17)+2*REF(    NN,18)+    REF(NN,20))/210,COLORRED;    CC:MA(MM,5),COLORGREEN;    N:=IF(BARSCOUNT(C) =10,10,BARSCOUNT(C));    STICKLINE(C =MA(C,N),MA(C,N),MA(C,N*0.7),2,0),COLORYELLOW;    STICKLINE(C MA(C,N),MA(C,N),MA(C,N*0.7),2,0),COLORBLUE;    DRAWKLINE(H,O,L,C);    短波段A:IF(C =MA(C,N),MA(C,N),MA(C,N*0.7));    短波段B:IF(C MA(C,N),MA(C,N),MA(C,N*0.7));    NOTEXT1:IF(CLOSE 短波段AANDCLOSE!=短波段A,短波段    A,DRAWNULL),COLORYELLOW;    NOTEXT2:IF(CLOSE 短波段AANDCLOSE!=短波段A,短波段A,DRAWNULL),COLORBLUE;    NOTEXT3:IF(CLOSE 短波段BANDCLOSE!=短波段B,短波段    B,DRAWNULL),COLORYELLOW;    NOTEXT4:IF(CLOSE 短波段BANDCLOSE!=短波段B,短波段B,DRAWNULL),COLORBLUE;    R:=IF(BARSCOUNT(C) =45,45,BARSCOUNT(C));    STICKLINE(C =MA(C,R),MA(C,R),MA(C,R*0.78),2,0),COLORMAGENTA;    STICKLINE(C MA(C,R),MA(C,R),MA(C,R*0.78),2,0),COLORLIGREEN;    DRAWKLINE(H,O,L,C);    长波段A:IF(C =MA(C,R),MA(C,R),MA(C,R*0.78));    长波段B:IF(C MA(C,R),MA(C,R),MA(C,R*0.78));    NOTEXT5:IF(CLOSE 长波段AANDCLOSE!=长波段A,长波段    A,DRAWNULL),COLORMAGENTA;    NOTEXT6:IF(CLOSE 长波段AANDCLOSE!=长波段A,长波段    A,DRAWNULL),COLORLIGREEN;    NOTEXT7:IF(CLOSE 长波段BANDCLOSE!=长波段B,长波段    B,DRAWNULL),COLORMAGENTA;    NOTEXT8:IF(CLOSE 长波段BANDCLOSE!=长波段B,长波段    B,DRAWNULL),COLORLIGREEN;    VR1:=(REF(C,2)-REF(C,1))/REF(C,2) 0.05;    VR2:=(REF(C,3)-REF(C,2))/REF(C,3) 0.05;    VR3:=REF(H,2)-REF(H,1);    VR4:=REF(H,1)-VR3;    VR5:=V/CAPITAL*100;    VR6:=1-(VR5 15and(h-l) c= 0.045ANDC VR4ANDVR1ANDVR2ANDC OAND    MA(C,60)-MA(C,9)/2.68     VR7:=VR6;    AA10:=MA(C,10);    BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;    STICKLINE(BB10 1ANDAA10 REF(AA10,1),AA10,REF(AA10,1),8,0),COLORRED;    STICKLINE(BB10 1ANDAA10 REF(AA10,1),AA10,REF(AA10,1),8,1),COLORGREEN;    AA20:=MA(C,20);    BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416;    STICKLINE(BB20 1,AA20,REF(AA20,1),8,0),COLORYELLOW;    STICKLINE(BB20 1,AA20,REF(AA20,1),8,1),COLORBBCCCC;    MA1:eMA(CLOSE,30);    MA2:eMA(CLOSE,60);    MA3:eMA(CLOSE,120);    MA4:eMA(CLOSE,240);    波段    VARA:=LLV(LOW,35);    VARB:=HHV(HIGH,30);    VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;    QS:=VARC,COLORWHITE;    STICKLINE(VARC 10     100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)) 97,0,25,3,0),CO    LORYELLOW;    STICKLINE(VARC 90,100,85,3,0),COLORRED;    VARD:=87.5;    VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;    一:=CROSS(QS,VARD)ANDVARE=100;    二:=CROSS(VARD,QS);    三:=CROSS(QS,VARE)ANDQS     DRAWTEXT(一,56, 目标     DRAWTEXT(二,85, 跑     DRAWTEXT(三,70, 卖     VAR6:=(2*CLOSE+HIGH+LOW)/4;    VAR8:=LLV(LOW,30);    VARAA:=HHV(HIGH,30);    B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);    B1:=EMA(B,5);    STICKLINE(B 0 B-B1 =0,79,80,3,0),COLORWHITE;    STICKLINE(B 0 B-B1 0,79,80,3,0),COLORCYAN;    STICKLINE(B 0 B-B1 =0,49,50,3,0),COLORRED;    STICKLINE(B 0 B-B1 0,49,50,3,0),COLORRED;    STICKLINE(B 0 B-B1 =0,19,20,3,0),COLORWHITE;    STICKLINE(B 0 B-B1 0,19,20,3,0),COLORCYAN;    STICKLINE(B-B1 0,B,B1,3,1),COLORRED;    STICKLINE(B-B1 0,B,B1,3,1),COLORWHITE;    张氏买卖    VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;    VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;    VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;    VAR6:=(VAR3+VAR4+VAR5)/3;    VAR7:=EMA(VAR6,5);    ZHIB:EMA(EMA(VAR3,5),5)*3,COLORSTICK;    VAR8:=IF(VAR6 =-20,10,0);    VAR9:=HHV(VAR8,10);    STICKLINE(VAR8=10,20,10,3,0),COLORRED;    VARA:=IF(VAR9 CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);    K:EMA(VAR7,5)*2,COLORGREEN;    D:EMA(K,5),COLORWHITE;    J:K*3-D*2,COLORYELLOW;    VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) J     DRAWTEXT(VARA=20,15, 底部     STICKLINE((VARA=20),0,10,3,0),COLORWHITE;    VARC:=(ZIG(3,5) REF(ZIG(3,5),1)) (REF(ZIG(3,5),1) =REF(ZIG(3,5),2))    (REF(ZIG    (3,5),2) =REF(ZIG(3,5),3));    VARD:=(ZIG(3,5)=REF(ZIG(3,5),2))    (REF(ZIG    (3,5),2) =REF(ZIG(3,5),3));    STICKLINE((VARC=1),(-14),0,3,0),COLORMAGENTA;    DRAWTEXT((VARC=1),(-14), 买     STICKLINE((VARD=1),14,0,3,0),COLORGREEN;    DRAWTEXT((VARD=1),18, 卖     VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2    0;    VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10    0,20,1)+2*SMA(SMA    ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);    VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10    0,20,1)+2*SMA(SMA    ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);    VAR11:=VARFREF(VOL,1) CLOSE REF(CLOSE,1);    DRAWTEXT(VAR11 COUNT(VAR11,30)=1,15, 大资金活动     STICKLINE(VAR11 COUNT(VAR11,30)=1,1,10,3,0),COLORCYAN;    VAR12:=(HIGH+LOW+CLOSE)/3;    VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));    VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));    VAR15:=IF(VAR13 =150 VAR13 200 var14 =150     VAR14 200,10,0);    VAR16:=IF(VAR13 =-150 var13 -200 VAR14 =-150     VAR14 -200,-10,VAR15);    VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;    VAR18:=100-ABS(VAR17);    VAR19:=IF(VAR18 90,VAR18,100);    VAR1A:=IF(VARE 0,VARE,0);    VAR1B:=IF(VAR14 =200 VAR13 =150,15,IF(VAR14 =-200     VAR13 =-150,-15,VAR16))+60;    VAR1C:=VAR1A 48 VAR1B 60 VAR19     DRAWTEXT(VAR1C COUNT(VAR1C,30)=1,15, 大笔出货     STICKLINE(VAR1C COUNT(VAR1C,30)=1,0,10,3,0),COLORYELLOW;[源码注释]通达信公式动态公式解读CCI1赋值:CCI的3日指数移动平均CCI2赋值:CCI的6日指数移动平均MRD赋值:(CCI1上穿CCI2 OR (CCI1 =CCI2)) AND CCI1 =-101 AND CCI1 =1日前的CCI1 AND 1日前的CCI1 -101 输出尾盘套利:MRD推荐阅读:通达信红线和绿指标    N1:=5;N2:=10;    LC:=REF(CLOSE,1);    A0:=(2*C+H+L)/4;    均线:=MA(A0,3) REF(MA(A0,3),1);    安全线:2,COLORLIGRAY,POINTDOT,LINETHICK4;    A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;    K:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,COLORF00FF0;    D:MA(K,3),COLORFF0000,LINETHICK1;    J:3*K-2*D,LINETHICK1,COLORF00FF0;    DRAWBAND(K,RGB(155,50,50),D,RGB(0,100,50));    VAR1:=C-REF(C,1);    VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);    MA5:=EMA(C,5);    MA13:=EMA(C,13);    UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROS    S    (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CR    OSS    (MA5,MA13))+1),0),COLOR0000FF;    DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(    CROSS    (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROS    S    (MA13,MA5))+1),0),COLOR00FF00;    BT:=(LLV(VAR2,2)=LLV(VAR2,7)ANDCOUNT(VAR2 0,2)AND    CROSS(VAR2,MA(VAR2,2)))AND    REF(DOWN,1)REF(DOWN,1);    底线:0,COLORFF00FF;    顶线:10,COLORFF0000;    STICKLINE(UP,0,0.2,3,0),COLOR0000FF;    STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;    STICKLINE(BT,0,3,2,0),COLOR000088;    STICKLINE(BT,0,3,1,0),COLOR0000CC;    STICKLINE(BT,0,3,0.22,0),COLOR0000FF;    DRAWTEXT(BT,3, 短牛 ),COLOR0000FF;    TJ1:=REF(DOWN,1)REF(DOWN,1)ANDC HHV(H,21)*0.82;    STICKLINE(TJ1,0,2,3,0),COLOR880088;    STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;    STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;    STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;    DRAWTEXT(TJ1,2, 中牛 ),COLORFF00FF;    HR:=HHV(HIGH,55);    HRY:=LLV(LOW,55);    HRY11:=HR*HRY;    HRY33:=SQRT(HRY11);    TJ2:=REF(DOWN,1)REF(DOWN,1)ANDC HRY33;    STICKLINE(TJ2,0,1,5,0),COLOR008888;    STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;    STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;    STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;    DRAWTEXT(TJ2,1, 大牛 ),COLOR00FFFF;    ST:=REF(UP,1) REF(UP,2)ANDDOWN REF(UP,1);    STICKLINE(ST,10,9,5,0),COLOR008800;    STICKLINE(ST,10,9,2,0),COLOR00AA00;    STICKLINE(ST,10,9,1,0),COLOR00CC00;    STICKLINE(ST,10,9,0.2,0),COLOR00FF00;    DRAWTEXT(ST,9, 卖 ),COLOR00FF00;    DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);    DEA:EMA(DIFF,9),COLORFFFF00;    A11:=BARSLAST(REF(CROSS(DIFF,DEA),1));    底背离:=REF(CLOSE,A11+1) CLOSEANDDIFF REF(DIFF,A11+1)AND    CROSS(DIFF,DEA);    DRAWTEXT(底背离,-0.6, 底背离 ),COLORWHITE;    A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));    顶背离:=REF(CLOSE,A22+1)DIFFAND    CROSS(DEA,DIFF);    DRAWTEXT(顶背离,9, 顶背离 ),COLORWHITE;    RSV2:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*10;    K周:=SMA(RSV2,15,1),COLORWHITE;    D周:=SMA(K周,3,1),COLORYELLOW;    J周:=3*K周-2*D周,COLORRED;    DRAWBAND(J周,RGB(200,0,0),D周,RGB(0,150,150));    DRAWICON(CROSS(K周,D周),D周-1,13);    DRAWICON(CROSS(D周,K周),K周+1,14);    VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;    VAR2:=SMA(VAR1,9,1)+100;    VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;    VAR4:=SMA(VAR3,3,1);    VAR5:=SMA(VAR4,3,1)+100;    VAR6:=VAR5-VAR2;    趋势:IF(VAR6 45,VAR6-45,0);    STICKLINE(REF(趋势,1) 趋势,趋势,REF(趋势,1),2,0),COLORMAGENTA;    STICKLINE(REF(趋势,1) 趋势,趋势,REF(趋势,1),2,0),COLORGREEN;    强弱分界:50,COLORFFFFCC;    底部:0,COLOR00FFFF;    安全:20,COLORFFAA66,LINETHICK1;    预警:80,COLORFFAA66,LINETHICK1;    顶部:100,COLORFFFF33;    V1:=LLV(LOW,10);    V2:=HHV(H,25);    价位线:=EMA((C-V1)/(V2-V1)*4,4);    DRAWTEXT(CROSS(价位线,0.3),20+4, ●买 ),COLORRED;    DRAWTEXT(CROSS(3.5,价位线),100-4, ●卖 ),COLORGREEN;    VAR2Q:=REF(LOW,1);    VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;    VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);    VAR5Q:=LLV(LOW,30);    VAR6Q:=HHV(VAR4Q,30);    VAR7Q:=IF(MA(CLOSE,58),1,0);    VAR8Q:=EMA(IF(LOW =VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;    VAR9Q:=IF(VAR8Q 100,100,VAR8Q);    吸筹:STICKLINE(VAR9Q -120,0,VAR9Q,3,1),COLORYELLOW;    建仓:IF(VAR9Q -120,VAR9Q,0);    AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;    AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;    AA5:=SMA(AA4,13,8);    走势:=CEILING(SMA(AA5,13,8));    AA6:=SMA(AA3,21,8);    卖临界:STICKLINE(走势-AA6 85,103,100,15,1),COLORRED,LINETHICK2;    主力线:=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),LINETHIC    K1,POINTDOT;    超短线:(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力    线,21)))*(4))*(25),LINETHICK2,COLORLIRED;    VAR11:=3;    VAR21:=(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));    股价准备启动:IF(CROSS(VAR21,VAR11),100,0),COLORRED,LINETHICK2;    DRAWICON(CROSS(超短线,18),20,1);    DRAWICON(CROSS(90,超短线),20,2);    一号:EMA(C,44),COLORRED,LINETHICK2;    二号:EMA(C,144),LINETHICK2;    三号:EMA(C,336),COLORWHITE,COLORCYAN,LINETHICK2;    百年:EMA(C,500),POINTDOT,LINETHICK4;    千年:EMA(C,1000),COLOR0099FF,POINTDOT,LINETHICK4;    GAO:=HHV(C,60)-LLV(C,60);    RSI:=SMA(MAX((C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.3    82-REF((C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,1),0),5,    1)/SMA(ABS((C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382-    REF((C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,1)),5,1);    STICKLINE(CROSS(RSI,0.1),(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*R    EF(C,4))/2.382+GAO*(RSI-0.5),REF((C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0    .146*REF(C,4))/2.382+GAO*(RSI-0.5),1),1,0),COLORMAGENTA;    C2:=REF(C,1);    涨停:=IF((C-C2)*100/C2 =(10-0.01*100/C2),1,0);    STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;    STICKLINE(涨停,H,L,0,0),COLORRED;    跌停:=IF((C2-C)*100/C2 =(10-0.01*100/C2),1,0);    STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;    STICKLINE(跌停,H,L,0,1),COLORGREEN;    STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORYELLOW;    STICKLINE(涨停,H,L,0,0),COLORYELLOW;    STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;    STICKLINE(跌停,H,L,0,1),COLORBLUE;    大阳线:=IF((C-C2)*100/C2 =5,1,0) IF((C-C2)*100/C2 (10-0.01*100/C2),1,0)OR    IF((C-O)*100/O =5,1,0) IF((C-C2)*100/C2 (10-0.01*100/C2),1,0);    STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;    STICKLINE(大阳线,H,L,0,1),COLORRED;    大阴线:=IF((C2-C)*100/C2 =5,1,0) IF((C2-C)*100/C2 (10-0.01*100/C2),1,0)OR    IF((O-C)*100/O =5,1,0) IF((C2-C)*100/C2 (10-0.01*100/C2),1,0);    STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;    STICKLINE(大阴线,H,L,0,1),COLORGREEN;    大盘指数:INDEXC,NODRAW,COLORLIMAGENTA;    大盘指数涨跌:(大盘指数-REF(大盘指数,1)),NODRAW;    涨家数:INDEXADV,NODRAW,COLORLIMAGENTA;    跌家数:INDEXDEC,NODRAW,COLORGREEN;    Q2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;    Q3:=SMA(Q2,9,1);    Q4:=SMA(Q3,3,1);    长趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK3;    趋势线:EMA(Q3,3),COLORRED,LINETHICK3;    DRAWTEXT(CROSS(趋势线,长趋势)ANDREF(长趋势,1) 80,REF(长趋势,3), 顶    ),COLORRED,LINETHICK5;    逢低买:DRAWTEXT(REF(CROSS(趋势线,长趋势),82)AND趋势线 1.3*长趋势,长趋势, 逢    低买 ),LINETHICK1;    买:DRAWTEXT(REF(CROSS(长趋势,趋势线),1)AND长趋势 1.3*趋势线,趋势线, 买    ),COLORRED,LINETHICK1;    VAR3:=PEAKBARS(3,15,1)     VAR5:=IF(VAR3=1,2,0);    顶:=IF(VAR5=2,2,0);    顶A:IF(顶 REF(顶,1),50,0),COLORGREEN;    DRAWTEXT(顶A=50,45, 快逃 ),COLOR00FF00;    金叉:CROSS(长趋势,趋势线);    DRAWTEXT(金叉,趋势线, ★ ),COLORRED;    VA1:=HHV(HIGH,9)-LLV(LOW,9);    VA2:=HHV(HIGH,9)-CLOSE;    VA3:=CLOSE-LLV(LOW,9);    VA4:=VA2/VA1*100-70;    VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;    VA6:=(2*CLOSE+HIGH+LOW)/4;    VA7:=SMA(VA3/VA1*100,3,1);    VA8:=LLV(LOW,34);    VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);    VARA:=IF(VA9 100,VA9-100,0);    VARB:=HHV(HIGH,34);    VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);    VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);    VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEX    C,1))/INDEXC,8,1)*100-25;    VARF:=MA(VARE,3);    生命线:EMA(VARD,1),COLORFF00FF;    VAR1:=HHV(HIGH,9)-LLV(LOW,9);    VAR2:=HHV(HIGH,9)-CLOSE;    VAR3:=CLOSE-LLV(LOW,9);    VAR4:=((VAR2)/(VAR1))*(100)-70;    VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);    VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);    VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);    VAR8:=LLV(LOW,34);    VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);    VAR10:=IF((VAR9 100),VAR9-100,0);    VAR11:=HHV(HIGH,34);    B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);    B2:EMA(B1,5),COLORFF7000;    STICKLINE(B1-B2 0,B1,B2,2,0),COLORFFFFFF;    STICKLINE(B1-B2 0,B1,B2,2,0),COLOR00FF00;    V1:=MA(C,5)=HHV(MA(C,5),20);    V2:=MA(C,5) MA(C,10);    V3:=MA(V,5) MA(V,40)*1.01;    V4:=COUNT(MA(C,1) REF(C,1),2)=2;    VV:=V1ANDV2ANDV3ANDV4;    STICKLINE(V1ANDV2ANDV3ANDV4,100,110,2,0),COLOR00FF00;    A1:=EMA(CLOSE,8);    A2:=EMA(A1,20);    A3:=CROSS(A1,A2);    A4:=A1 EMA(CLOSE,120);    STICKLINE(A3ANDA4,100,110,2,0),COLOR00FF00;    A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*    SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);    安全位:=20;    低位转强:IF(CROSS(A5,安全位),50,0),COLORRED,STICK,LINETHICK4;    开始拉升:IF(CROSS(VARC,生命线)ANDVARC VARDANDVARC 55AND    C O,50,0),COLORFF00FF,STICK,LINETHICK4;    A6:=LLV(C,500)=LLV(C,5)ANDC/REF(C,1) (1+9.8/100);    极低涨:IF(A6,50,0),COLORYELLOW,STICK,LINETHICK4;    MA5:MA(C,5),COLORF00FF0;    MA10:MA(C,10),COLORYELLOW;    MA21:MA(C,21),COLORE66878;    MA30:MA(C,30),COLORWHITE;    MA120:MA(C,120),COLOR399C7F,POINTDOT;    MA240:MA(C,240),COLOR000999,POINTDOT;    X1:=(C+L+H)/3;    X2:=EMA(X1,6);    X3:=EMA(X2,5);    DRAWICON(CROSS(X2,X3),L*0.98,7);    DRAWICON(CROSS(X3,X2),H*1.02,8);    STICKLINE(X2 =X3,LOW,HIGH,0.1,1),COLORRED;    STICKLINE(X2 =X3,CLOSE,OPEN,2,2),COLORRED;    STICKLINE(X2 =X3,CLOSE,OPEN,2,8),COLORBROWN;    STICKLINE(X2 X3,LOW,HIGH,0.1,1),COLORGREEN;    STICKLINE(X2 X3,CLOSE,OPEN,2,2),COLORGREEN;    STICKLINE(CROSS(X2,X3),OPEN,CLOSE,2,1),COLORYELLOW;    STICKLINE(CROSS(X3,X2),OPEN,CLOSE,2,1),COLORBLUE;    VAR1:=0.809*MA(FORCAST(CLOSE,2),40),POINTDOT,COLORF7E300;    VAR2:=0.618*MA(FORCAST(CLOSE,2),40),POINTDOT,COLOR0000FF;    买线A:IF(开启线1=1,VAR1,DRAWNULL);    买线B:IF(开启线2=1,VAR2,DRAWNULL);    {NO.2}    VAR3:=(3*CLOSE+LOW+OPEN+HIGH)/6;    VAR4:=(20*VAR3+19*REF(VAR3,1)+18*REF(VAR3,2)+17*REF(VAR3,3)+16*REF(VA    R3,4)+15*REF(VAR3,5)+14*REF(VAR3,6)+13*REF(VAR3,7)+12*REF(VAR3,8)+11*    REF(VAR3,9)+10*REF(VAR3,10)+9*REF(VAR3,11)+8*REF(VAR3,12)+7*REF(VAR3,    13)+6*REF(VAR3,14)+5*REF(VAR3,15)+4*REF(VAR3,16)+3*REF(VAR3,17)+2*REF    (VAR3,18)+REF(VAR3,20))/210,COLORRED;    VAR5:=MA(VAR4,6),COLORGREEN;    DRAWBAND(VAR4,RGB(155,50,50),VAR5,RGB(0,100,50));    红线:VAR4,COLORRED;    绿线:VAR5,COLORGREEN;    {NO.3}    VAR6:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;    VAR7:=SMA(VAR6,3,1);    VAR8:=(O+H+L+C)/4;    VAR9:=IF(BARSCOUNT(C) 60,VOL/SUM(VOL,60),VOL/SUM(VOL,BARSCOUNT(C)));    VAR10:=DMA(VAR8,VAR9/0.50);    VAR11:=DMA(VAR8,VAR9);    VAR12:=(VAR10/VAR11-1)*100;    VAR13:=IF(VAR12 0,85,if(var12 =0ANDVAR12 5,60,if(var12 =5AND    VAR12 15,35,if(var12 =15,15,90))));    持仓量:100-(VAR7+VAR13)/2,NODRAW;每日公式解答:    公式编写要求:    左侧有大阴线或者是高峰,近期有涨停板突破前期高峰的选股公式。    公式编写方法:    N:=60;    XG:CROSS(C,REF(H,BARSLAST(C O H=HHV(H,60) V=HHV(V,N)))) C=ZTPRICE(REF(C,1),0.1);

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