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

    正文概述    2024-05-04 04:26:12  


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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信三色指标公式源码

     

    {主线:EMA(EMA(C,10),10),COLORBLUE,LINETHICK3; 

    B:=主趋势线 REF(主趋势线,1); 

    IF(B-1,主趋势线,DRAWNULL)COLORRED,LINETHICK3;} 

    主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK3; 

    B:=主趋势线 REF(主趋势线,1); 

    IF(B-1,主趋势线,DRAWNULL)COLORBLUE,LINETHICK3; 

    {操盘线:EMA(EMA(C,5),5),COLORRED,LINETHICK2; 

    Y:=操盘线 REF(操盘线,1); 

    IF(Y-1,操盘线,DRAWNULL)COLORGREEN,LINETHICK2;} 

    AA:=EMA(C,5) EMA(C,20); 

    BB:=EMA(C,5) EMA(C,20); 

    CC:=EMA(C,5) EMA(C,10); 

    CC1:=EMA(C,5) EMA(C,10); 

    DD:=CLOSE OPEN; 

    STICKLINE(AA,H,L,0,0),COLORRED; 

    STICKLINE(AA,O,C,3,1),COLORRED; 

    STICKLINE(AAANDDD,O,C,3,0),COLORRED; 

    STICKLINE(BB,H,L,0,0),COLORGREEN; 

    STICKLINE(BB,O,C,3,1),COLORGREEN; 

    STICKLINE(BBANDDD,O,C,3,0),COLORGREEN; 

    STICKLINE(BBANDCC,H,L,0,1),COLORWHITE; 

    STICKLINE(BBANDCC,O,C,3,1),COLORWHITE; 

    STICKLINE(BBANDCCANDDD,O,C,3,0),COLORWHITE; 

    STICKLINE(AAANDCC1,H,L,0,0),COLORWHITE; 

    STICKLINE(AAANDCC1,O,C,3,1),COLORWHITE; 

    STICKLINE(AAANDCC1ANDDD,O,C,3,0),COLORWHITE; 

    AAA:=CONST(HHV(C,90)); 

    {DRAWTEXT(T1=1ANDCURRBARSCOUNT=58,AAA, 智能分析:目前处于红色买区,上涨趋势良好,多单持有。 ),COLORRED,LINETHICK4;} 

    DRAWTEXT(CANDCURRBARSCOUNT=80,AAA, 红色K线做多,绿色K线做空,白色K线观望。 ),COLORYELLOW; 

    主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK3; 

    B:=主趋势线 REF(主趋势线,1); 

    IF(B-1,主趋势线,DRAWNULL)COLORBLUE,LINETHICK3; 

    AA:=EMA(C,5) EMA(C,20); 

    BB:=EMA(C,5) EMA(C,20); 

    CC:=EMA(C,5) EMA(C,10); 

    CC1:=EMA(C,5) EMA(C,10); 

    DD:=CLOSE OPEN; 

    STICKLINE(AA,H,L,0,0),COLORRED; 

    STICKLINE(AA,O,C,3,1),COLORRED; 

    STICKLINE(AAANDDD,O,C,3,0),COLORRED; 

    STICKLINE(BB,H,L,0,0),COLORGREEN; 

    STICKLINE(BB,O,C,3,1),COLORGREEN; 

    STICKLINE(BBANDDD,O,C,3,0),COLORGREEN; 

    STICKLINE(BBANDCC,H,L,0,1),COLORWHITE; 

    STICKLINE(BBANDCC,O,C,3,1),COLORWHITE; 

    STICKLINE(BBANDCCANDDD,O,C,3,0),COLORWHITE; 

    STICKLINE(AAANDCC1,H,L,0,0),COLORWHITE; 

    STICKLINE(AAANDCC1,O,C,3,1),COLORWHITE; 

    STICKLINE(AAANDCC1ANDDD,O,C,3,0),COLORWHITE; 

    AAA:=CONST(HHV(C,90)); 

    DRAWTEXT(CANDCURRBARSCOUNT=80,AAA, 红色K线做多,绿色K线做空,白色K线观望。 ),COLORYELLOW; 

    N:=9;M1:=3;M2:=3; 

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

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

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

    J:=3*K-2*D; 

    钝化:=IF(COUNT(K 20,3)=3,10,DRAWNULL)ANDIF(COUNT(K 20,1)=1,10,DRAWNULL); 

    红:=COUNT(钝化,3) =2; 

    MA1:=EMA(CLOSE,8); 

    趋势线:=(5)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1),2,1); 

    GUA1:=((CLOSE =REF(CLOSE,1))AND(REF(CLOSE,1) =REF(CLOSE,2))AND(REF(CLOSE,1) =REF(CLOSE,3))AND(REF(CLOSE,2) =REF(CLOSE,3))AND((REF(CLOSE,4) REF(CLOSE,2))OR(REF(CLOSE,4) =REF(CLOSE,2))AND(REF(CLOSE,5) =REF(CLOSE,3)))OR(CLOSE =REF(CLOSE,1))AND(REF(CLOSE,1) =REF(CLOSE,2)) 

    AND(CLOSE =REF(CLOSE,2))AND((REF(CLOSE,3) REF(CLOSE,1))OR(REF(CLOSE,3) =REF(CLOSE,1))AND(REF(CLOSE,4) =REF(CLOSE,2)))); 

    GUB2:=((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10)))*(100); 

    GUB3:=EMA(GUB2,7); 

    GUB4:=EMA(GUB3,10); 

    GUB5:=(3)*(GUB3)-(2)*(GUB4); 

    GUB6:=EMA(GUB5,5); 

    底部:=IF((趋势线 =5),58,0),COLORFF00FF; 

    串:=EMA(GUB6,1); 

    黄:=串ANDIF(REF((COUNT((串 =REF(串,1)),5)=5),1)AND(串 REF(串,1)),10,0); 

    P1:=3; 

    P2:=3; 

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

    KS:=SMA(RSSV,3,1),COLORYELLOW; 

    DS:=SMA(KS,3,1),COLOR00DD00; 

    蓝:=FILTER(CROSS(KS,DS)ANDKS 20,4); 

    出彩:=红AND黄AND蓝; 

    STICKLINE(出彩,0,75,2,0),COLORWHITE; 

    STICKLINE(出彩,52,73,1.2,0),COLORRED; 

    STICKLINE(出彩,27,48,1.2,0),COLORYELLOW; 

    STICKLINE(出彩,2,23,1.2,0),COLORBLUE; 


    image.png

    公式解读:

    推荐阅读:通达信三色K线主图指标公式

     

    N:=30; 

    DRAWGBK(C 0,RGB(80,60,60),RGB(50,100,200),0, ,0); 

    BOLL2:MA(CLOSE,N/1.5),LINETHICK2,COLORAA00AA; 

    UB2:BOLL2+2*STD(CLOSE,N/1.5),LINETHICK1,COLOR00FF00; 

    LB2:BOLL2-2*STD(CLOSE,N/1.5),LINETHICK1,COLOR00FF00; 

    BOLL:MA(CLOSE,N/3),LINETHICK1,COLOR00DDFF; 

    UB:BOLL+2*STD(CLOSE,N/3),LINETHICK1,DOTLINE,COLORFF0000; 

    LB:BOLL-2*STD(CLOSE,N/3),LINETHICK1,DOTLINE,COLORFF0000; 

    ZMA5:MA.MA1#DAY,COLOR0000FF,NODRAW; 

    STICKLINE(H =MA(C,20)+2*STD(C,20)ANDH/BOLL2 =1.1,H*1.005,L*0.995,5,1),COLOR00FF00; 

    STICKLINE(L MA(C,20)-2*STD(C,20),H*1.005,L*0.995,5,1),COLOR00FFFF; 

    STICKLINE(H =MA(C,10)+2*STD(C,10)ANDH/BOLL2 =1.1,H,L,4.5,0),COLOR00AA00; 

    STICKLINE(L MA(C,10)-2*STD(C,10),H,L,4.5,0),COLOR000033; 

    STICKLINE(C O,H,L,0.02,0),COLOR999000; 

    STICKLINE(C =O,H,L,0.02,0),COLOR000088; 

    STICKLINE(C O,C,O,3.2,0),COLOR777000; 

    STICKLINE(C O,C,O,2.1,0),COLOR888000; 

    STICKLINE(C O,C,O,1,0),COLOR999000; 

    STICKLINE(C =O,C,O,3.2,0),COLOR000066; 

    STICKLINE(C =O,C,O,2.1,0),COLOR000077; 

    STICKLINE(C =O,C,O,1,0),COLOR000088; 

    STICKLINE((C*3+O*2+H+L)/7 =COST((COST(98)-COST(2))/(COST(98)+COST(2))*100)ANDC O,H,L,0.02,0),COLORFFE600; 

    STICKLINE((C*3+O*2+H+L)/7 =COST((COST(98)-COST(2))/(COST(98)+COST(2))*100)ANDC =O,H,L,0.02,0),COLOR0000FF; 

    STICKLINE((C*3+O*2+H+L)/7 =COST((COST(98)-COST(2))/(COST(98)+COST(2))*100)ANDC O,C,O,3.2,0),COLORDDC400; 

    STICKLINE((C*3+O*2+H+L)/7 =COST((COST(98)-COST(2))/(COST(98)+COST(2))*100)ANDC O,C,O,2.1,0),COLOREED500; 

    STICKLINE((C*3+O*2+H+L)/7 =COST((COST(98)-COST(2))/(COST(98)+COST(2))*100)ANDC O,C,O,1,0),COLORFFE600; 

    STICKLINE((C*3+O*2+H+L)/7 =COST((COST(98)-COST(2))/(COST(98)+COST(2))*100)ANDC =O,C,O,3.2,0),COLOR0000DD; 

    STICKLINE((C*3+O*2+H+L)/7 =COST((COST(98)-COST(2))/(COST(98)+COST(2))*100)ANDC =O,C,O,2.1,0),COLOR0000EE; 

    STICKLINE((C*3+O*2+H+L)/7 =COST((COST(98)-COST(2))/(COST(98)+COST(2))*100)ANDC =O,C,O,1,0),COLOR0000FF; 

    主升:=(C*3+O*2+H+L)/7 =(MA(C,60)+MA(C,60)+2*STD(C,60))/2; 

    STICKLINE(C OAND主升,H,L,0.02,0),COLORFFFFFF; 

    STICKLINE(C =OAND主升,H,L,0.02,0),COLORFF00FF; 

    STICKLINE(C OAND主升,C,O,3.2,0),COLORBBBBBB; 

    STICKLINE(C OAND主升,C,O,2.1,0),COLORCCCCCC; 

    STICKLINE(C OAND主升,C,O,1,0),COLORDDDDDD; 

    STICKLINE(C =OAND主升,C,O,3.2,0),COLORBB00BB; 

    STICKLINE(C =OAND主升,C,O,2.1,0),COLORCC00CC; 

    STICKLINE(C =OAND主升,C,O,1,0),COLORDD00DD; 

    STICKLINE((REF(C,1)-C)/REF(C,1) =0.095ANDC=OANDH=L,C,O,4,0),COLORFFF000; 

    STICKLINE((C-REF(C,1))/REF(C,1) =0.095ANDC=OANDH=L,C,O,4,0),COLOR00FFFF; 

    {BOLL3:MA(CLOSE,N),LINETHICK2,COLOR000088; 

    UB3:BOLL3+2*STD(CLOSE,N),LINETHICK2,COLORFFF000; 

    LB3:BOLL3-2*STD(CLOSE,N),LINETHICK2,COLORFFF000;} 

    IF(PERIOD 5,ZMA5,DRAWNULL),COLOR0000FF,LINETHICK1; 

    BOLL2,LINETHICK2,COLORAA00AA; 

    UB2,LINETHICK1,COLOR00FF00; 

    LB2,LINETHICK1,COLOR00FF00; 

    BOLL,LINETHICK1,COLOR00DDFF; 

    UB,LINETHICK1,DOTLINE,COLORFF0000; 

    LB,LINETHICK1,DOTLINE,COLORFF0000; 

    超跌:=ZMA5/L 1.19; 

    DRAWICON(PERIOD 5ANDZMA5/L =1.18,H*1.015,26); 

    DRAWICON(PERIOD 5ANDH/ZMA5 =1.18,H*1.015,15); 

    DRAWICON(PERIOD 5ANDH/MIN(UB,UB2) =1.025,L*0.96,6); 

    DRAWICON(PERIOD 5ANDMAX(LB,LB2)/L =1.02,L*0.96,5); 

    input:N(21,1,240); 

    主:=WINNER(CLOSE/1.1); 

    var1:=主-ref(主,1); 

    散:=1-WINNER(CLOSE*1.1); 

    var2:=ref(散,1)-散; 

    var3:=sum((var1+var2),2); 

    NN:EMA(sum(var3,N),N/2),Color00FFFF; 

    PARTLINE(NN,(NN REF(NN,1))-1,rgb(0,255,0),1,rgb(255,0,0)),LINETHICK3,LAYER1; 

    STICKLINE(var3 0and散 0.009,0,var3,6,0),Color00FF00; 

    STICKLINE(var3 0and散 0.009,0,-var3,6,0),COLORRED; 

    STICKLINE(var3 0and散 0.23,0,var3,8,0),COLORRED; 

    STICKLINE(var3 0and散 0.23and散 0.6999,0,var3,6,1),ColorFF44FF; 

    STICKLINE(var3 0and散 0.7,0,-var3,6,0),Color00FFFF; 

    N:=9;M1:=3;M2:=3; 

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

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

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

    J:=3*K-2*D; 

    钝化:=IF(COUNT(K 20,3)=3,10,DRAWNULL)ANDIF(COUNT(K 20,1)=1,10,DRAWNULL); 

    红:=COUNT(钝化,3) =2; 

    MA1:=EMA(CLOSE,8); 

    趋势线:=(5)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1),2,1); 

    GUA1:=((CLOSE =REF(CLOSE,1))AND(REF(CLOSE,1) =REF(CLOSE,2))AND(REF(CLOSE,1) =REF(CLOSE,3))AND(REF(CLOSE,2) =REF(CLOSE,3))AND((REF(CLOSE,4) REF(CLOSE,2))OR(REF(CLOSE,4) =REF(CLOSE,2))AND(REF(CLOSE,5) =REF(CLOSE,3)))OR(CLOSE =REF(CLOSE,1))AND(REF(CLOSE,1) =REF(CLOSE,2)) 

    AND(CLOSE =REF(CLOSE,2))AND((REF(CLOSE,3) REF(CLOSE,1))OR(REF(CLOSE,3) =REF(CLOSE,1))AND(REF(CLOSE,4) =REF(CLOSE,2)))); 

    GUB2:=((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10)))*(100); 

    GUB3:=EMA(GUB2,7); 

    GUB4:=EMA(GUB3,10); 

    GUB5:=(3)*(GUB3)-(2)*(GUB4); 

    GUB6:=EMA(GUB5,5); 

    底部:=IF((趋势线 =5),58,0),COLORFF00FF; 

    串:=EMA(GUB6,1); 

    黄:=串ANDIF(REF((COUNT((串 =REF(串,1)),5)=5),1)AND(串 REF(串,1)),10,0); 

    P1:=3; 

    P2:=3; 

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

    KS:=SMA(RSSV,3,1),COLORYELLOW; 

    DS:=SMA(KS,3,1),COLOR00DD00; 

    蓝:=FILTER(CROSS(KS,DS)ANDKS 20,4); 

    出彩:=红AND黄AND蓝; 

    STICKLINE(出彩,0,75,2,0),COLORWHITE; 

    STICKLINE(出彩,52,73,1.2,0),COLORRED; 

    STICKLINE(出彩,27,48,1.2,0),COLORYELLOW; 

    STICKLINE(出彩,2,23,1.2,0),COLORBLUE; 

    N:=99; 

    BOLL1:=MA(CLOSE,N); 

    CMSS:=1.96*SQRT(MA(POW((CLOSE-BOLL1),2),N)); 

    BOLL:BOLL1,COLORFFFFFF; 

    UB:BOLL1+CMSS,COLOR00FFFF; 

    LB:BOLL1-CMSS,COLORFF00FF;


    image.png


    每日公式解答:


    股票公式编写要求:

    1、昨日未;2、流值低于100亿;3、开盘涨幅大于1%,小于6%;4、上市时间大于60天。

    股票公式编写结果:

    XG: IF(NAMELIKE( ST ) OR NAMELIKE( *ST ),REF(C,1) ZTPRICE(REF(C,2),0.05), IF(CODELIKE( 688 ) OR (CODELIKE( 300 )),REF(C,1) ZTPRICE(REF(C,2),0.2), REF(C,1) ZTPRICE(REF(C,2),0.1))) BETWEEN(REF(O,0)/REF(C,1),1.01,1.06) BARSCOUNT(V 0) 60 FINANCE(40) 10000000000;




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信三色指标公式源码(通达信最强三色战法指标公式) 加入收藏