最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信回踩精准线公式(精准线主图选股)源码分享

    正文概述    2024-05-04 04:03:53  

    公式解读:

    通达信指标公式源码:


       N:=102;M:=7;

       AA:=MA((2*CLOSE+HIGH+LOW)/4,5);

       通道1:AA*N/100;

       通道2:AA*(200-N)/100;

       CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

       DD:=DMA(CLOSE,CC);

       通道3:(1+M/100)*DD;

       通道4:(1-M/100)*DD;

       V2:=IF(CURRBARSCOUNT=1,*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);

       STICKLINE(V2 =1,O,C,2,0),COLORYELLOW;

       MA13:=MA(CLOSE,13);

       X1:=(C+L+H)/3;

       BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;

       EMA8:=EMA(C,8);

       A1:=MIN(O,C);

       B1:=ABS(O-C);

       T1:=FILTER(BB13 1ANDEMA(X1,13) REF(EMA(X1,8),1),10);

       STICKLINE(T1,A1,A1+B1/4,2,0),COLOR007575;

       STICKLINE(T1,A1+B1/4,A1+B1/2,2,0),COLORFF0000;

       STICKLINE(T1,A1+B1/2,A1+B1*3/4,2,0),COLOR007575;

       STICKLINE(T1,A1+B1*3/4,A1+B1,2,0),COLORFF0000;

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

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

       NC1:=SMA(NCC1,3,1);

       NC2:=SMA(NC1,3,1);

       NC3:=3*NC1-2*NC2;

       CB1:=EMA(NC3,5);

       CB2:=REF(CB1,1);

       LC:=REF(CLOSE,1);

       RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

       RSI:=(RSI1-50)*5,LINETHICK2,COLORYELLOW;

       NR1:=SMA(RSI,3,1);

       ND1:=SMA(NR1,3,1);

       NJ1:=3*NR1-2*ND1;

       RR1:=EMA(NJ1,5);

       RR2:=REF(RR1,1);

       RR:=RR1

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

       NK:=SMA(RSVQ,3,1);

       NK1:=(NK-50)*5,COLORRED;

       NK2:=SMA(NK1,3,1);

       ND2:=SMA(NK2,3,1);

       NJ2:=3*NK2-2*ND2;

       NBB1:=EMA(NJ2,5);

       NBB2:=REF(NBB1,1);

       买N入:=RRANDNOT(REF(RR,1))AND(NBB1 -100ANDNBB1 -100)ANDCB1 -100;

       DRAWICON(买N入,L-0.2,13);

       卖N出:=REF(RR,1)=1ANDNOT(RR)ANDCB1 100,LINETHICK0;

       DRAWICON(卖N出,H+0.2,14);

       QS:=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);

       XG:=CROSS(QS,10);

       DRAWICON(XG,L*0.98,9);

       M1:=5;

       M2:=10;

       Vvol:IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;

       stICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;

       VOLUME:VOL,VOLSTICK;

       maVOL1:MA(VOLUME,M1);

       MAVOL2:MA(VOLUME,M2);

       VAR2:=1*AMOUNT;

       MA1:=1*MA(AMOUNT,5);

       MA2:=1*MA(AMOUNT,10);

       三十日天量:=HHV(VAR2,30)=VAR2;

       六十日天量:=HHV(VAR2,60)=VAR2;

       百日天量:=HHV(VAR2,100)=VAR2;

       一年天量:=HHV(VAR2,250)=VAR2;

       STICKLINE(三十日天量,VOLUME,VOLUME*0.7,1,0),COLORMAGENTA;

       STICKLINE(六十日天量,VOLUME,VOLUME*0.7,1,0),COLORYELLOW;

       STICKLINE(百日天量,VOLUME,VOLUME*0.7,1,0),COLORGREEN;

       STICKLINE(一年天量,VOLUME,VOLUME*0.7,1,0),COLORFF7100;

       三十日地量:=LLV(VAR2,30)=VAR2;

       六十日地量:=LLV(VAR2,60)=VAR2;

       百日地量:=LLV(VAR2,100)=VAR2;

       一年地量:=LLV(VAR2,250)=VAR2;

       STICKLINE(三十日地量,-50000,0,1,0),COLORMAGENTA;

       STICKLINE(六十日地量,-50000,0,1,0),COLORYELLOW;

       STICKLINE(百日地量,-50000,0,1,0),COLORGREEN;

       STICKLINE(一年地量,-50000,0,1,0),COLORFF7100;

       IF(crOSS(0.9,1/VOL*1000 0.01AND".J" 0),VOLUME*5,0),COLORYELLOW,LINETHICK2;

       A1A:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1),COLOR330066;

       A5A:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;

       A:=(3*C+L+O+H)/6;

       X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+

       14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)

       +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+

       REF(A,20))/215,COLORWHITE,LINETHICK1;

       F1:=CROSS(A1A,EMA(A1A,5))ANDEMA(A1A,5)

       F2:=BARSLAST(F1);

       F3:=(L-X)/REF(C,1)*100;

       F4:=LLV(F3,F2-1);

       F2 6ANDF4 -1ANDF3



    [源码注释]通达信公式动态公式解读

    输出XG:成交额(元)上穿成交额(元)的10日简单移动平均




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信回踩精准线公式(精准线主图选股)源码分享 加入收藏