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

    正文概述    2024-05-04 04:15:02  


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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图


    指标公式源码 


    A:=V*100/CAPITAL;

    主力:MA(A,4),COLORYELLOW,POINTDOT;

    游资:MA(A,9),COLORGREEN,POINTDOT;

    大户:MA(A,17),COLORRED,POINTDOT;

    :MA(A,34),COLORF2E9E7,POINTDOT;

    关注线:MA(A,180),COLORFF00FF,LINETHICK2;

    STICKLINE(主力0,0,主力,1,0),COLORYELLOW;

    STICKLINE(游资0,0,游资,1,0),COLORGREEN;

    STICKLINE(大户0,0,大户,1,0),COLORRED;

    STICKLINE(散户0,0,散户,1,0),COLORF2E9E7;

    N:=13;

    KS:=(C-MA(C,13))/MA(C,13)*(-100);

    RKS:=REF(KS,1);

    MLS:=RKS/KS=1.23 AND RKS=8 AND C/REF(C,1)=1.02;

    超跌:STICKLINE(KS=8,H,L,0,1),COLORWHITE,LINETHICK2;

    反弹:STICKLINE(MLS=1,H,L,0,1),LINETHICK2;

    STICKLINE(C=O,C,O,8,0) ,COLORRED;

    STICKLINE(C=O,C,O,8,0) ,COLORGREEN;

    STICKLINE(KS=8,O,C,8,1),COLORWHITE,LINETHICK2;

    STICKLINE(MLS=1,O,C,8,1),LINETHICK2;

    EMA(C,10),COLORYELLOW;

    EMA(KS/10+EMA(C,10),3),COLORFF9933;

    上涨:EMA(C,10),COLOR0099FF;

    下跌:EMA(KS/10+EMA(C,10),3);

    分水岭:EMA(C,N),LINETHICK2;

    N1:=6;N2:=12;N3:=26;

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

    DX:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLOR00FF00;

    ZX:=100*EMA(EMA(MTM,N2),N2)/EMA(EMA(ABS(MTM),N2),N2),COLOR00FFFF;

    CX:=100*EMA(EMA(MTM,N3),N3)/EMA(EMA(ABS(MTM),N3),N3),COLORFF00FF;

    DXGD:=LLV(DX,2)=LLV(DX,5) AND CROSS(DX,MA(DX,2));

    ZXGD:=LLV(ZX,2)=LLV(ZX,5) AND CROSS(ZX,MA(ZX,2)) AND DXZX;

    短买:IF(DXGD AND BETWEEN(DX,0,60) AND ZX0,1,0),COLORFFFFFF,POINTDOT,LINETHICK0;

    中买:IF(ZXGD AND BETWEEN(DX,0,50) AND BETWEEN(CX,0,50),2,0),COLOR00FFFF,POINTDOT,LINETHICK0;

    DTPL:=DXZX AND ZXCX AND CX0;

    QSXS:=DXREF(DX,1) AND ZXREF(ZX,1);

    TSJC:=CROSS(DX,CX) AND CROSS(ZX,CX);

    优选:IF(CROSS(DTPL,0.8) AND (TSJC OR COUNT(QSXS,3)=3) AND CX40,1,0),COLOR0000FF,POINTDOT,LINETHICK0;

    :IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX0,2) AND CROSS(DX,MA(DX,2)),1,-50),COLOR00FF00;

    :IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX50,2) AND CROSS(MA(DX,2),DX),50,80),COLOR0000FF;

    短卖:=IF(CROSS(ZX,DX),1,0);

    中卖:=IF(CROSS(CX,ZX) AND DXZX,2,0);

    {以下设置副图显示方式}

    STICKLINE(DX0,0,DX,2,0),COLOR00FF00;

    STICKLINE(ZX0,0,ZX,2,0),COLOR00FFFF;

    STICKLINE(CX0,0,CX,2,0),COLORFF00FF;

    0,COLORFFFFFF;

    DRAWTEXT(短买,0, #39;△ #39;),COLORFFFFFF;

    DRAWTEXT(中买,0, #39;★ #39;),COLOR00FFFF;

    DRAWTEXT(短卖,0, #39; #39;),COLORFFFF00;

    DRAWTEXT(中卖,0, #39;□ #39;),COLORFF6600;

    DRAWICON(优选,0,1);


    image.png


    主力资金进出指标源码 

    STICKLINE(C0,0,100,15,0),COLOR7C221C;

    VAR2:=REF(LOW,1);

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

    VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);

    VAR5:=LLV(LOW,30);

    VAR6:=HHV(VAR4,30);

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

    VAR8:=EMA(IF(LOW=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;

    VAR9:=IF(VAR8100,100,VAR8);

    吸筹:STICKLINE(VAR9-120,0,VAR9,6,1),COLORF00FF0;

    LC:=REF(CLOSE,1);

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

    黄买:FILTER((REF(CLOSE,2)CLOSE AND RSI25),7),COLORYELLOW;

    STICKLINE(黄买,0,18,10,1),COLORYELLOW;

    黄卖:=FILTER((REF(CLOSE,2)CLOSE AND RSI80),7);

    STICKLINE(黄卖,100,82,10,1),COLORYELLOW;

    红买:FILTER(CROSS(RSI,11),7),COLORRED;

    STICKLINE(红买,0,12,6,1),COLORRED;

    红卖:=FILTER(CROSS(89,RSI),7);

    STICKLINE(红卖,100,88,6,1),COLORRED;

    绿买:FILTER(CROSS(RSI,20),7),COLOR00FF00;

    STICKLINE(绿买,0,6,6,1),COLOR00FF00;

    绿卖:=FILTER(CROSS(80,RSI),7);

    STICKLINE(绿卖,100,94,6,1),COLOR00FF00;

    ★遵守纪律★:100,COLORRED;

    ★交易之魂★:100,COLORRED;

    ZLC:= EMA((WINNER(CLOSE) * 70),3);

    SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3);

    主力控盘: ((ZLC / (ZLC+ SHC)) * 100),COLOR00FFFF,LINETHICK2;

    上限: HHV(主力控盘,20),COLORGREEN,LINETHICK2;

    下限: LLV(主力控盘,20),COLORRED,LINETHICK2;

    :(上限 + 下限)/2,COLORYELLOW,POINTDOT,LINETHICK2;

    60,LINETHICK4,POINTDOT,COLORYELLOW;

    10,LINETHICK4,POINTDOT,COLORFF00FF;

    VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

    VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;

    VAR400:=EMA(VAR300,5);

    操盘:=3*VAR300-2*VAR400;

    A1:=CROSS(操盘,VAR300) AND VAR3002.1 AND CO;

    STICKLINE(A1,30,0,4,0),COLOR770077;

    STICKLINE(A1,30,0,3,0),COLOR990099;

    STICKLINE(A1,30,0,2,0),COLORBB00BB;

    STICKLINE(A1,30,0,1,0),COLORDD00DD;

    STICKLINE(A1,30,0,0.3,0),COLORFF00FF;

    DRAWTEXT(A1,36, #39;满仓 #39;),COLORRED;

    VAR1:=SMA(AMOUNT,10,1)/1000000;

    VAR2:=REF(VAR1,1);

    VAR3:=MA(REF(CLOSE,1),5);

    最高:VAR1*HIGH/VAR3*1/10,POINTDOT,COLOR009900,COLORGRAY;

    最低:VAR1*LOW/VAR3*1/10,POINTDOT,COLOR009900,COLORYELLOW;

    开盘:VAR1*OPEN/VAR3*1/10,POINTDOT,COLOR009900,COLORMAGENTA;

    收盘:VAR1*CLOSE/VAR3*1/10,COLOR009900,COLORGREEN,POINTDOT;

    生命线:EMA(收盘,12),COLORWHITE;

    昨收盘:=REF(收盘,1),POINTDOT,COLOR009900,LINETHICK0;

    涨跌:=(收盘-REF(收盘,1))/REF(收盘,1)*100,POINTDOT,COLOR009900,LINETHICK0;

    STICKLINE(收盘开盘,收盘,开盘,3,0),COLORRED;

    STICKLINE(收盘开盘,最高,MAX(收盘,开盘),0,1),COLORRED;

    STICKLINE(收盘开盘,MIN(收盘,开盘),最低,0,1),COLORRED;

    STICKLINE(收盘开盘,收盘,开盘,2,0),COLORGREEN;

    STICKLINE(收盘开盘,最高,MAX(收盘,开盘),0,1),COLORGREEN;

    STICKLINE(收盘开盘,MIN(收盘,开盘),最低,0,1),COLORGREEN;


    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 主力资金指标公式源码 主力资金进出指标源码 加入收藏