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

    正文概述    2024-05-04 04:27:09  


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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、轨迹指标通达信指标公式源码


     

    ya:=IF(C =O,MONEY,0); 

    yaobv:=SUM(ya,0); 

    mOBV:=SUM(MONEY,0); 

    bl:=100*yaobv/mobv; 

    MAbl3:IF(BARSSINCE(C) =3,MA(bl,3),50),colormagenta; 

    MAbl30:=IF(BARSSINCE(C) =30,MA(bl,30),MAbl3); 

    PARTLINE(MAbl30,REF(MAbl30,1) =MAbl30,colorred,1,colorblue),Linethick2; 

    MA60:=MA(C,60); 

    MAi60:=MA(INDEXC,60); 

    Ls:=REF(MA60,1) MA60ANDREF(MAi60,1) MAi60;// 

    STICKLINE(LsANDMAbl3 MAbl30,MAbl3,MAbl30,6,0),coloryellow; 

    STICKLINE(NOT(Ls)ANDMAbl3 MAbl30,MAbl3,MAbl30,1,0),colorred; 

    STICKLINE(MAbl3 =MAbl30,MAbl3,MAbl30,1,0),colorgreen; 

    VERLINE(CROSS(MAbl3,MAbl30)ANDCOUNT(MAbl30 MAbl3,BARSLAST(CROSS(MAbl30,MAbl3))) 30,1); 

    持仓1:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66; 

    主力持仓1:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORMAGENTA; 

    VAR1A:=IF(CLOSE =REF(CLOSE,1),VOL,0); 

    VAR2A:=IF(CLOSE =REF(CLOSE,1),VOL,0); 

    VAR3:=SUM(VAR1A,10); 

    VAR4:=SUM(VAR2A,10); 

    VAR5:=IF(CLOSE =MA(CLOSE,5),VOL,0); 

    VAR6:=IF(CLOSE =MA(CLOSE,5),VOL,0); 

    VAR7:=SUM(VAR5,10); 

    VAR8:=SUM(VAR6,10); 

    VAR9:=IF(MA(CLOSE,5) =REF(MA(CLOSE,5),1),VOL,0); 

    VARA:=IF(MA(CLOSE,5) =REF(MA(CLOSE,5),1),VOL,0); 

    VARB:=SUM(VAR9,10); 

    VARC:=SUM(VARA,10); 

    VARD:=IF(EMA(CLOSE,10) =REF(EMA(CLOSE,10),1),VOL,0); 

    VARE:=IF(EMA(CLOSE,10) =REF(EMA(CLOSE,10),1),VOL,0); 

    VARF:=SUM(VARD,10); 

    VAR10:=SUM(VARE,10); 

    A1:=FORCAST(EMA(CLOSE,3),6); 

    A2:=FORCAST(EMA(CLOSE,5),6); 

    A3:=FORCAST(EMA(CLOSE,7),6); 

    A4:=FORCAST(EMA(CLOSE,11),6); 

    A5:=FORCAST(EMA(CLOSE,14),6); 

    B:=A1+A2+A3+A4-4*A5; 

    TOWERC:=EMA(B,2); 

    VAR1:=ABS(TOWERC)+ABS(REF(TOWERC,1))*50; 

    VAR2:=(3*CLOSE+2*OPEN+HIGH+LOW)/7; 

    A6:=FORCAST(EMA(VAR2,12),6); 

    红实芯:STICKLINE(TOWERC =REF(TOWERC,1)ANDA6 =REF(A6,1),0,V*10{VAR1},2,0),COLOR3434FF; 

    蓝实芯:STICKLINE(TOWERC REF(TOWERC,1)ANDA6 =REF(A6,1),0,V*10{VAR1},2,0),COLORFFFF82; 

    蓝空芯:STICKLINE(TOWERC =REF(TOWERC,1)ANDA6 REF(A6,1),0,V*10{VAR1},2,1),COLORFFFF82; 

    红空芯:STICKLINE(TOWERC REF(TOWERC,1)ANDA6 =REF(A6,1),0,V*10{VAR1},2,1),COLOR3434FF; 

    主力:VAR3+VAR7+VARB+VARF,COLORRED,LINETHICK2; 

    散户:VAR4+VAR8+VARC+VAR10,COLOR00FF00,LINETHICK2; 

    VAR1:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*20,1); 

    多方:EMA(WINNER(C)*10,1),COLORRED,LINETHICK2; 

    多方筹码月均:EMA(多方筹码,21),COLORWHITE; 

    移筹长期:EMA(EMA(多方筹码,1),89),COLOR009500; 

    筹码:VAR1-多方筹码+WINNER(C),COLORYELLOW; 

    STICKLINE(散户持仓1 0,0,散户持仓1,3,0),COLORFFAA66; 

    STICKLINE(主力持仓1 0,0,主力持仓1,1.8,1),COLORMAGENTA; 

    散户持仓:散户持仓1,COLORFFAA66NODRAW; 

    主力持仓:主力持仓1,COLORMAGENTANODRAW; 

    庄筹集中度:WINNER(C)*100,COLORREDLINETHICK3; 

    散筹集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,COLORGREENLINETHICK2; 

    红出蓝退可涨:0,COLORWHITE; 


    image.png



    二、通达信主力轨迹副图指标

     

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

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

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

    KT:=VOL-DT; 

    买量:=SUM(DT,3); 

    卖量:=SUM(KT,3); 

    DX:=EMA(买量-卖量,5)*VOL/CAPITAL*100; 

    STICKLINE(DX 0,0,DX,2,0),COLOR000088; 

    STICKLINE(DX 0,0,DX,2,0),COLOR0000AA; 

    STICKLINE(DX 0,0,DX,2,0),COLOR0000CC; 

    STICKLINE(DX 0,0,DX,2,0),COLOR0000EE; 

    STICKLINE(DX 0,0,DX,2,0),COLOR008800; 

    STICKLINE(DX 0,0,DX,2,0),COLOR00AA00; 

    STICKLINE(DX 0,0,DX,2,0),COLOR00CC00; 

    STICKLINE(DX 0,0,DX,2,0),COLOR00EE00; 

    YX:=BARSSINCE(DX)+1; 

    QM:=BARSLAST(DX =0); 

    主力强买:IF(QM 0,YX,QM),COLOR00FFFF; 

    QM卖:=BARSLAST(DX =0); 

    主力强卖:IF(QM卖 0,YX,QM卖),COLOR00FF00; 

    力度:(主力强买-主力强卖),COLORRED; 

    VAR1:=1; 

    VAR55:=LLV(LOW,8); 

    VAR66:=HHV(HIGH,8); 

    VAR77:=(VAR66-VAR55)/10; 

    VAR88:=SMA((CLOSE-VAR55)/VAR77,20,1); 

    VARA:=3*VAR88-2*SMA(VAR88,15,1); 

    散户筹码集中度:(10-VARA)*VAR1*6,COLORGREEN,LINETHICK2; 

    筹码集中度:EMA(WINNER(C)*70,3),LINETHICK2,COLORRED; 

    主力筹码:10*WINNER(CLOSE*0.9)*8,COLORCYAN; 

    十天主力筹码:EMA(主力筹码,10),LINETHICK2,COLORYELLOW; 

    VAR100:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(10); 

    增减力度:VAR100*6,COLORMAGENTA,LINETHICK2; 

    70,COLORGREEN; 

    0,COLORYELLOW; 

    N:=30; 

    M:=60; 

    É¢»§Ïß:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORGREEN; 

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

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

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

    J:=3*K-2*D; 

    Ö÷Á¦Ïß:EMA(J,6),COLORRED; 

    100,COLOR00FF00,POINTDOT; 

    50,COLOR00FFFF,POINTDOT; 

    0,COLORWHITE,POINTDOT; 

    LC:=REF(CLOSE,1); 

    VID:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100); 

    RC:=(CLOSE-LC)*VID; 

    LONG:=SUM(RC,0); 

    DIFF:=SMA(LONG,10,1); 

    DEA:=SMA(LONG,20,1); 

    LON:=DIFF-DEA; 

    LLL:=MA(LON,10); 

    TDXSTEP134:IF(LLL =REF(LLL,1),LLL,DRAWNULL),COLORRED; 

    V2:EMA(LON,1),COLORGREEN; 

    V3:EMA(V2,3),COLORGREEN; 

    V4:EMA(V3,3),COLORGREEN; 

    V5:EMA(V4,3),COLORGREEN; 

    V6:EMA(V5,3),COLORGREEN; 

    TDXSTEP135:IF(V2 =REF(V2,1),V2,DRAWNULL),COLORRED; 

    TDXSTEP136:IF(V3 =REF(V3,1),V3,DRAWNULL),COLORRED; 

    TDXSTEP137:IF(V4 =REF(V4,1),V4,DRAWNULL),COLORRED; 

    TDXSTEP138:IF(V5 =REF(V5,1),V5,DRAWNULL),COLORRED; 

    TDXSTEP139:IF(V6 =REF(V6,1),V6,DRAWNULL),COLORRED; 

    TDXSTEP140:0,COLORWHITE; 

    TDXSTEP141:STICKLINE(V2 REF(V2,1),V2,REF(V2,1),3,0),COLORRED; 

    TDXSTEP142:STICKLINE(V2 REF(V2,1),V2,REF(V2,1),3,0),COLORGREEN; 

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

    VAR2B:=SMA(VAR1B,9,1)+100; 

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

    VAR4B:=SMA(VAR3B,3,1); 

    VAR5B:=SMA(VAR4B,3,1)+100; 

    VAR6B:=VAR5B-VAR2B; 

    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)/999*VAR7Q; 

    火焰山:=IF(VAR8Q 100,100,VAR8Q); 

    TDXSTEP143:STICKLINE(火焰山 0AND火焰山 REF(火焰山,1),0,火焰山*1.2,3.5,0),COLOR4444FF; 

    TDXSTEP144:STICKLINE(火焰山 0AND火焰山 REF(火焰山,1),0,火焰山*1.2,2.5,0),COLOR5555FF; 

    TDXSTEP145:STICKLINE(火焰山 0AND火焰山 REF(火焰山,1),0,火焰山*1.2,1.5,0),COLOR7777FF; 

    TDXSTEP146:STICKLINE(火焰山 0AND火焰山 REF(火焰山,1),0,火焰山*1.2,0.5,0),COLOR9999FF; 

    :=CROSS(82,RSI.RSI1); 

    TDXSTEP147:STICKLINE(逃顶,逃顶,10,3.5,0),COLORFF5500; 

    TDXSTEP148:STICKLINE(逃顶,逃顶,15,2.5,0),COLORFF8800; 

    TDXSTEP149:STICKLINE(逃顶,逃顶,20,1.5,0),COLORFFAA00; 

    TDXSTEP150:STICKLINE(逃顶,逃顶,25,0.5,0),COLORFFCC00; 

    TDXSTEP151:STICKLINE(逃顶,逃顶,30,0.1,0),COLORCYAN; 

    强弱线:50,POINTDOT,COLORGREEN; 

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

    TDXSTEP152:DRAWICON(CROSS(82,VARR1),10,15); 

    TDXSTEP153:DRAWTEXT(CROSS(82,VARR1),35,7),COLORYELLOW; 

    VAR6:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); 

    VAR7:=SMA(ABS(VAR6-HIGH),13,1)/SMA(MAX(VAR6-HIGH,0),10,1); 

    VAR8:=EMA(VAR7,10); 

    VAR9:=HHV(HIGH,33); 

    VAR0:=EMA(IF(HIGH =VAR9,VAR8,0),3); 

    主力出场:IF(VAR0 REF(VAR0,1),(-VAR0)+100,100),COLORGREEN; 

    VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); 

    VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1); 

    VAR3:=EMA(VAR2,10); 

    VAR4:=LLV(LOW,33); 

    VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3); 

    主力进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED; 

    地量:DRAWTEXT(CROSS(0.9,1/VOL*1000 0.01ANDKDJ.J 0),LOW*1,8),COLORYELLOW; 

    TDXSTEP154:STICKLINE(地量 0,0,30,2,0),COLOR008888; 

    TDXSTEP155:STICKLINE(地量 0,0,30,1.5,0),COLOR00AAAA; 

    TDXSTEP156:STICKLINE(地量 0,0,30,0.8,0),COLOR00DDDD; 

    TDXSTEP157:STICKLINE(地量 0,0,30,0.3,0),COLORYELLOW; 

    TDXSTEP158:DRAWICON(CROSS(82,VARR1),10,15); 

    VAR10:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); 

    VAR11:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); 

    VAR12:=VAR10 REF(VAR11,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1); 

    TDXSTEP159:DRAWTEXT(VAR12ANDCOUNT(VAR12,30)=1,40,9),COLORRED; 

    A2:=5; 

    A3:=(2*CLOSE+HIGH+LOW)/4; 

    A4:=LLV(LOW,34); 

    A5:=HHV(HIGH,34); 

    A6:=EMA((A3-A4)/(A5-A4)*100,13); 

    A7:=EMA(0.667*REF(A6,1)+0.333*A6,2); 

    轨迹:EMA(A7,A2),COLORRED; 

    A8:=HHV(HIGH,9)-LLV(LOW,9); 

    A9:=HHV(HIGH,9)-CLOSE; 

    A10:=CLOSE-LLV(LOW,9); 

    A11:=A9/A8*100-70; 

    A12:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; 

    A13:=SMA(A10/A8*100,3,1); 

    A14:=SMA(A13,3,1)-SMA(A11,9,1); 

    A15:=IF(A14 100,A14-100,0); 

    A16:=EMA((A3-A4)/(A5-A4)*100,8); 

    A17:=EMA(A16,5); 

    A18:=EMA(CLOSE,2); 

    A19:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42); 

    A20:=HHV(MA(HIGH,13),13); 

    A21:=LLV(MA(HIGH,13),1); 

    A22:=EMA(CLOSE,4); 

    A23:=A18 =A19ANDA21=A20ANDA18 A22ANDCLOSE A21ANDREF(A21,1) REF(A20,1); 

    A24:=BARSLAST(A23)+1; 

    A25:=LLV(LOW,A24)*1.3; 

    A26:=LLV(LOW,20)*1.418; 

    A27:=A18 =A19ANDA21=A20ANDCLOSE/REF(CLOSE,1) =1.07ANDA24 =30ANDCLOSE =A25ANDCLOSE =A26; 

    A28:=A27ANDFILTER(A27,A24); 

    A30:=A18 =A19ANDA21=A20ANDCLOSE/REF(CLOSE,1) =1.035ANDA24 =30ANDCLOSE =A25ANDCLOSE =A26;

    A31:=A30ANDFILTER(A30,20); 

    TDXSTEP160:DRAWICON(A28ORA31,庄家轨迹,26);


    image.png

    公式解读:

    推荐阅读:通达信轨道主图指标公式

     

    N:=20; 

    P:=2; 

    MID:MA(CLOSE,N); 

    UPPER:MID+P*STD(CLOSE,N); 

    LOWER:MID-P*STD(CLOSE,N); 

    JRH:=HHV(C,2); 

    JRL:=LLV(C,2); 

    MA3:=MA(CLOSE,3); 

    YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6; 

    VAR1:=(CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2)); 

    VAR2:=(REF(VAR1,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR3:=(REF(VAR2,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR4:=(REF(VAR3,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR5:=(REF(VAR4,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR6:=(REF(VAR5,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR7:=(REF(VAR6,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR8:=(REF(VAR7,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR9:=(REF(VAR8,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VARA:=(REF(VAR9,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VARB:=(REF(VARA,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VARC:=(REF(VARB,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VARD:=(CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2)); 

    VARE:=(REF(VARD,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VARF:=(REF(VARE,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR10:=(REF(VARF,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR11:=(REF(VAR10,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR12:=(REF(VAR11,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR13:=(REF(VAR12,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR14:=(REF(VAR13,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR15:=(REF(VAR14,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR16:=(REF(VAR15,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR17:=(REF(VAR16,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR18:=(REF(VAR17,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); 

    VAR19:=((REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,1))ANDVAR1); 

    VAR1A:=((REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC,1))ANDVARD); 

    红色持股:=IF((VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC),1,0); 

    离场:=IF(红色持股,JRL,0); 

    明离场价:=离场; 

    今离场价:=REF(离场,1),COLOR0000FF,LINETHICK0; 

    青色观望:=IF((VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18),1,0); 

    进:=IF(青色观望,JRH,0); 

    明进场价:=进; 

    今进场价:=REF(明进场价,1),COLOR00FF00,LINETHICK0; 

    短买:=VAR19; 

    品红离场:=VAR1A; 

    白色急速超跌:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100 -14; 

    辰星线:=(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+ 

    11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211; 

    牵牛线:=MA(CLOSE,26); 

    等待:=IF(MA3 辰星线,辰星线,MA3); 

    PARTLINE(等待,等待 REF(等待,1),RGB(255,90,0)),LINETHICK2; 

    PARTLINE(辰星线,辰星线 REF(辰星线,1),RGB(255,0,0),辰星线 REF(辰星线,1),RGB(0,255,0)),LINETHICK2; 

    PARTLINE(牵牛线,牵牛线 REF(牵牛线,1),RGB(255,0,255),牵牛线 REF(牵牛线,1),RGB(80,200,80)),LINETHICK2; 

    STICKLINE(ISNULL(REFX( amp;CLOSE,1))AND(红色持股ORREF(红色持股,1)=1)AND今离场价 0,今离场价,今离场价,30,1),COLOR00ffFF; 

    STICKLINE(ISNULL(REFX( amp;CLOSE,1))AND(青色观望ORREF(青色观望,1)=1)AND今进场价 0,今进场价,今进场价,30,1),COLOR00FF00; 

    STICKLINE(C =O,L,H,0,0),COLOR0000CC; 

    STICKLINE(C O,L,H,0,0),COLOR999900; 

    STICKLINE(红色持股,CLOSE,O,7,0),COLOR000055; 

    STICKLINE(红色持股,CLOSE,O,6,0),COLOR000077; 

    STICKLINE(红色持股,CLOSE,O,5,0),COLOR000088; 

    STICKLINE(红色持股,CLOSE,O,4,0),COLOR0000AA; 

    STICKLINE(红色持股,CLOSE,O,3,0),COLOR0000CC; 

    STICKLINE(红色持股,CLOSE,O,2,0),COLOR0000EE; 

    STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000FF; 

    STICKLINE(青色观望,CLOSE,O,6,0),COLOR555500; 

    STICKLINE(青色观望,CLOSE,O,5,0),COLOR888800; 

    STICKLINE(青色观望,CLOSE,O,4,0),COLORAAAA00; 

    STICKLINE(青色观望,CLOSE,O,3,0),COLORCCCC00; 

    STICKLINE(青色观望,CLOSE,O,2,0),COLOREEEE00; 

    STICKLINE(青色观望,CLOSE,O,1,0),COLORFFFF00; 

    CO:=(C-O); 

    STICKLINE(白色急速超跌,O,C-CO/2,6,0),COLOR555555; 

    STICKLINE(白色急速超跌,O,C-CO/2,5,0),COLOR888888; 

    STICKLINE(白色急速超跌,O,C-CO/2,4,0),COLORAAAAAA; 

    STICKLINE(白色急速超跌,O,C-CO/2,3,0),COLORCCCCCC; 

    STICKLINE(白色急速超跌,O,C-CO/2,2,0),COLOREEEEEE; 

    STICKLINE(白色急速超跌,O,C-CO/2,1,0),COLORFFFFFF; 

    STICKLINE(短买,O,O+CO/3,6,0),COLOR335555; 

    STICKLINE(短买,O,O+CO/3,5,0),COLOR338888; 

    STICKLINE(短买,O,O+CO/3,4,0),COLOR33AAAA; 

    STICKLINE(短买,O,O+CO/3,3,0),COLOR33CCCC; 

    STICKLINE(短买,O,O+CO/3,2,0),COLOR33EEEE; 

    STICKLINE(短买,O,O+CO/3,1,0),COLOR33FFFF; 

    DRAWTEXT(短买,LLV(L,3), ← ),COLOR00FFFF; 

    STICKLINE(品红离场,O,O+CO/3,6,0),COLOR550055; 

    STICKLINE(品红离场,O,O+CO/3,5,0),COLOR880088; 

    STICKLINE(品红离场,O,O+CO/3,4,0),COLORAA00AA; 

    STICKLINE(品红离场,O,O+CO/3,3,0),COLORCC00CC; 

    STICKLINE(品红离场,O,O+CO/3,2,0),COLOREE00EE; 

    STICKLINE(品红离场,O,O+CO/3,1,0),COLORFF00FF; 

    DRAWTEXT(品红离场,HHV(H,3), ← ),COLOR00FFFF; 

    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*REF(MID,14)+5 

    *REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,colorred; 

    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; 

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

    A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6); 

    买:=LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8 0,2)ANDCROSS(A8,MA(A8,2)); 

    DRAWTEXT(FILTER(买=1,5),LOW-0.05, ↖买进 ),coloryellow; 

    STICKLINE(买,OPEN,CLOSE,2,0),coloryellow; 

    LC:=REF(CLOSE,1); 

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

    FF:=EMA(CLOSE,3); 

    MA15:=EMA(CLOSE,21); 

    日:=150;昨前:=3; 

    高1:=REF(HHV(H,日),昨前); 

    低1:=REF(LLV(L,日),昨前); 

    H1:=高1-(高1-低1)*0.191; 

    H2:=高1-(高1-低1)*0.382; 

    H3:=高1-(高1-低1)*0.5; 

    H4:=高1-(高1-低1)*0.618; 

    H5:=高1-(高1-低1)*0.809; 

    顶:REFDATE(高1,DATE),colorred; 

    底:REFDATE(低1,DATE),colorcyan; 

    AA:=(HIGH+LOW+CLOSE)/3,COLORWHITE,LINETHICK1; 

    100*(0.015*AVEDEV(AA,14))+MA(AA,14),COLORYELLOW,LINETHICK2; 

    0*(0.015*AVEDEV(AA,14))+MA(AA,14),COLORCYAN; 

    -100*(0.015*AVEDEV(AA,14))+MA(AA,14),COLORYELLOW,LINETHICK2; 

    UPPER:(1+6/100)*MA(CLOSE,25); 

    LOWER:(1-6/100)*MA(CLOSE,25); 

    ENE:(UPPER+LOWER)/2; 

    JJJ:=IF(DYNAINFO(8) 0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3)); 

    DDD:=(DYNAINFO(5) 0.01||DYNAINFO(6) 0.01); 

    JJJT:=IF(DDD,1,(JJJ (DYNAINFO(5)+0.01) amp; amp;JJJ (DYNAINFO(6)-0.01))); 

    成本线:IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120)); 

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

    K:=MA(RSV,2.5); 

    D:=MA(K,2.5); 

    J:=3*K-2*D; 

    JJ:=J 20; 

    STICKLINE(REF(J,1) 20ANDEMA(C,20) REF(EMA(C,20),1)ANDNOT(JJ),(C+O)/2,O,3,0),COLORAA00BB; 

    SR1:=SAR(10,2,10); 

    IF(CLOSE SR1,SR1,DRAWNULL),CIRCLEDOT,COLORRED; 

    IF(CLOSE SR1,SR1,DRAWNULL),CIRCLEDOT,COLORGREEN; 

    DRAWICON(REF(C,1) REF(SR1,1)ANDC SR1,H,0); 

    VAR1:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); 

    VARD:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); 

    VARE:=REF(VARD,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VARF:=REF(VARE,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR10:=REF(VARF,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR11:=REF(VAR10,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR12:=REF(VAR11,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR13:=REF(VAR12,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR14:=REF(VAR13,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR15:=REF(VAR14,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR16:=REF(VAR15,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR17:=REF(VAR16,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR18:=REF(VAR17,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR 

    VAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1; 

    STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW; 

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

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

    N:=CROSS(CCI,100); 

    DRAWICON(N,LOWER,11); 

    M01:=COST(01);M10:=COST(10);M20:=COST(20);M30:=COST(30);M40:=COST(40); 

    M50:=COST(50);M60:=COST(60);M70:=COST(70);M80:=COST(80);M90:=COST(90);M99:=COST(99); 

    D01:=M10-M01;D02:=M20-M10;D03:=M30-M20;D04:=M40-M30;D05:=M50-M40; 

    D06:=M60-M50;D07:=M70-M60;D08:=M80-M70;D09:=M90-M80;D10:=M99-M90; 

    MN1:=MIN(MIN(D01,D02),D03); 

    MN2:=MIN(MIN(MIN(D04,D05),D06),D07); 

    MN3:=MIN(MIN(D08,D09),D10); 

    Q01:=IF(D01=MN1,D01,IF(D02=MN1,D02,D03)); 

    Q02:=IF(D04=MN2,D04,IF(D05=MN2,D05,IF(D06=MN2,D06,D07))); 

    Q03:=IF(D08=MN3,D08,IF(D09=MN3,D09,D10)); 

    X01:=IF(Q01=D01,M01,IF(Q01=D02,M10,M20)); 

    X02:=IF(Q02=D04,M30,IF(Q02=D05,M40,IF(Q02=D06,M50,M60))); 

    X03:=IF(Q03=D08,M70,IF(Q03=D09,M80,M90)); 

    S01:=IF(Q01=D01,M10,IF(Q01=D02,M20,M30)); 

    S02:=IF(Q02=D04,M40,IF(Q02=D05,M50,IF(Q02=D06,M60,M70))); 

    S03:=IF(Q03=D08,M80,IF(Q03=D09,M90,M99)); 

    DRAWBAND(S01,RGB(0,100,0),X01,0); 

    DRAWBAND(S02,RGB(100,100,100),X02,0); 

    DRAWBAND(S03,RGB(100,0,0),X03,0); 

    DRAWKLINE(H,O,L,C);


    image.png

    每日公式解答:


     

    股票公式编写要求: 

    股价小于20元,流通市值低于20亿,5、10、20、30揉搓粘合向上发散,10%以下的公式。 

    股票公式编写结果: 

    N:=1.01; 

    A1:=MAX(MAX(MAX(MA(C,5),MA(C,10)),MA(C,20)),MA(CLOSE,30)); 

    A2:=MIN(MIN(MIN(MA(C,5),MA(C,10)),MA(C,20)),MA(CLOSE,30)); 

    去ST:=NAMELIKE( ST )=0ANDNAMELIKE( *ST )=0ANDNAMELIKE( SST )=0ANDNAMELIKE( S*ST )=0; 

    LT:=FINANCE(40)/100000000; 

    XG:C 20ANDLT 10ANDA1/A2 NANDHSL.HSL 10AND去ST;




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 主力轨迹指标通达信指标公式源码(通达信主力轨迹副图指标) 加入收藏