最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 神奇趋势线主图指标公式(趋势k线主图指标公式)

    正文概述    2024-05-04 04:00:45  

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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图





    一、神奇线主图指标公式

     

    DRAWGBK(C 0,RGB(0,0,00),RGB(0,0,0),0, W20 ,0); 

    DRAWKLINE(H,O,L,C); 

    QWX1:=HHV(CLOSE,30); 

    QWX2:=LLV(CLOSE,30); 

    QWX3:=CONST((QWX1+QWX2)/2); 

    QWX4:=ABS((2*CLOSE+HIGH+LOW)/4- 

    MA(CLOSE,20))/MA(CLOSE,20); 

    QWX5:=CONST((1-7/100)*(DMA(CLOSE,QWX4))); 

    QWX6:=CONST((1+7/100)*(DMA(CLOSE,QWX4))); 

    {KDJ} 

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

    KX:=SMA(RSV,3,1); 

    DX:=SMA(KX,3,1); 

    JX:=3*KX-2*DX; 

    {MACD} 

    DIF:=(EMA(CLOSE,12)- 

    EMA(CLOSE,26))*2+QWX3,COLORWHITE; 

    DEA:=EMA(DIF,9),COLORYELLOW; 

    MACD:(DIF-DEA)*5+QWX3,COLORYELLOW,LINETHICK2; 

    DRAWBAND(MACD,RGB(120,0,100),QWX3,RGB(60,100,50)); 

    DRAWKLINE(HIGH,OPEN,LOW,CLOSE); 

    牛 

    D; 

    M5:MA(CLOSE,5),COLORWHITE,DOTLINE; 

    IF(MA(C,5) =REF(MA(C,5),1),MA(C,5),DRAWNULL),COLORYE 

    LLOW,LINETHICK3; 

    M10:MA(CLOSE,10),COLORYELLOW,DOTLINE; 

    熊线:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2,LINETHICK2,COLORRE 

    IF(MA(C,10) =REF(MA(C,10),1),MA(C,10),DRAWNULL),COLO 

    R330099,LINETHICK2; 

    M20:MA(CLOSE,20),COLORFF00FF; 

    IF(MA(C,20) =REF(MA(C,20),1),MA(C,20),DRAWNULL),COLO 

    RLIMAGENTA,LINETHICK2; 

    M60:MA(CLOSE,60),COLOR6699CC; 

    IF(MA(C,60) =REF(MA(C,60),1),MA(C,60),DRAWNULL),CIRCL 

    EDOT,LINETHICK2; 

    M120:MA(CLOSE,120),COLORLIBLUE,DOTLINE; 

    M250:MA(CLOSE,250),COLORMAGENTA,DOTLINE; 

    VAR1:=IF(CLOSE OPEN,CLOSE,OPEN); 

    VAR2:=MEMA(CLOSE,5); 

    VAR3:=ATAN((VAR2/REF(VAR2,1)-1)*100); 

    VAR4:=IF(VAR3 0,VAR3,VAR3); 

    VAR5:=(CLOSE/REF(CLOSE,1)-1)*100; 

    VAR6:=VAR5 1.5ANDVAR5 -1.5; 

    今日之升★:LAST(VAR6,4,1)ANDVAR5 2AND 

    VOL REF(VOL,1),NODRAW,COLORYELLOW; 

    DRAWTEXT(今日之升★,L/1.01, ★ ),COLORYELLOW; 

    强整支撑:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX5,DRA 

    WNULL),DRAWNULL),COLORCYAN; 

    阻力:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX6,DRA 

    WNULL),DRAWNULL),COLORYELLOW; 

    N:=120; 

    势理 

    :IF(VAR4 =REF(VAR4,1) 

    :IF(VAR4 REF(VAR4,1) 

    AND 

    AND 

    VAR4 =0,M10,DRAWNULL),COLORRED,LINETHICK2; 

    VAR4 0,M10,DRAWNULL),COLORGREEN,LINETHICK2; 

    K:=BARSLAST(CURRBARSCOUNT=N); 

    GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点} 

    DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点} 

    KJ:=GD-DD;{高低点差值=分区高度} 

    GD4:IF(CURRBARSCOUNT =N/30,GD,DRAWNULL); 

    底:IF(CURRBARSCOUNT =N/30,DD,DRAWNULL),COLORFFF 

    F00; 

    高:IF(CURRBARSCOUNT =N/30,GD,DRAWNULL),COLOR00F 

    FFF; 

    撑:IF(CURRBARSCOUNT =N/30,DD+KJ*0.191,DRAWNULL), 

    COLOR00FFFF; 

    强 

    IF(CURRBARSCOUNT =N/30,DD+KJ*0.382,DRAWNULL),COLOR 

    FF00FF; 

    :IF(CURRBARSCOUNT =N/30,DD+KJ/2,DRAWNULL),COLOR0 

    000FF; 

    警示:IF(CURRBARSCOUNT =N/30,DD+KJ*0.618,DRAWNULL),COL 

    OR00FFFF; 

    压力:IF(CURRBARSCOUNT =N/30,DD+KJ*0.809,DRAWNULL),COL 

    OR00FF00; 

    低涨:IF(CURRBARSCOUNT =N/30,(C/LLV(LOW,K)- 

    1)*100,DRAWNULL),COLOR0000FF,NODRAW; 

    天数:BARSLAST(L=DD),COLORCYAN,NODRAW; 

    今顶点日保护价:(REF(C,2)+REF(C,1)+O)/3,COLORCC3299,NODRAW; 

    :IF(CURRBARSCOUNT =60, 

    CONST(IF(ISLASTBAR=1,HHV(H, 

    BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED, 

    DOTLINE; 

    低点:IF(CURRBARSCOUNT =60, 

    CONST(IF(ISLASTBAR=1,LLV(L, 

    BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORYELL 

    OW,DOTLINE; 

    STICKLINE(CCI =200ANDH =顶点,O,C,3,0),COLORBLUE; 

    STICKLINE(CCI =100ANDL =低点,O,C,3,0),COLORYELLOW; 

    DRAWBAND(高,RGB(200,200,0),压力,RGB(0,0,0)); 

    DRAWBAND(压力,RGB(0,190,0),警示,RGB(0,0,0)); 

    DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0)); 

    DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0)); 

    DRAWBAND(强势,RGB(120,0,0),支撑,RGB(0,0,0)); 

    DRAWBAND(支撑,RGB(80,80,80),底,RGB(0,0,0)); 

    STICKLINE(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORGRE 

    EN; 

    STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN; 

    STICKLINE(CURRBARSCOUNT =N/30, 

    撑,4,0),COLORFF00FF; 

    STICKLINE(CURRBARSCOUNT =N/30, 

    势,4,0),COLORFF00FF; 

    STICKLINE(CURRBARSCOUNT =N/30, 

    破,4,0),COLORABABAB; 

    STICKLINE(CURRBARSCOUNT =N/30, 

    示,4,0),COLOR00FFFF; 

    STICKLINE(CURRBARSCOUNT =N/30, 

    力,4,0),COLOR00FFFF; 

    DRAWTEXT(CURRBARSCOUNT=1, 

    力, 0.809 ),COLOR00FFFF; 

    DRAWTEXT(CURRBARSCOUNT=1,警压压力,压警示,警突破,突强势,强支撑,支 

    示, 0.618 ),COLOR00FFFF; 

    DRAWTEXT(CURRBARSCOUNT=1, 

    破, 0.500 ),COLORFFFFFF; 

    DRAWTEXT(CURRBARSCOUNT=1, 

    势, 0.382 ),COLOR00FFFF; 

    DRAWTEXT(CURRBARSCOUNT=1, 

    撑, 0.191 ),COLOR00FFFF; 

    {柱型显示} 

    STICKLINE(CLOSE REF(CLOSE,1)*1.0985 

    CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF; 

    STICKLINE(CLOSE REF(CLOSE,1)*0.9015 

    CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN; 

    {蓝} 

    STICKLINE(OPEN =CLOSE,CLOSE,OPEN,3,0),COLORFF7700; 

    STICKLINE(OPEN =CLOSE,CLOSE,OPEN,2.2,0),COLORFF990 

    0; 

    STICKLINE(OPEN =CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB0 

    0; 

    STICKLINE(OPEN =CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN; 

    {红} 

    STICKLINE(CLOSE OPEN,CLOSE,OPEN,3,0),COLOR000099; 

    STICKLINE(CLOSE OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC; 

    STICKLINE(CLOSE OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF; 

    STICKLINE(CLOSE OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF; 

    {绿} 

    STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,3,0) 

    ,COLOR009900; 

    STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,2.2, 

    0),COLOR00BB00; 

    STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,1.5, 

    AND 

    AND 

    支强突 

    0),COLOR00DD00; 

    STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,0.5, 

    0),COLOR00FF00; 

    {灰} 

    STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,3,0 

    ),COLOR999999; 

    STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,2.2 

    ,0),COLORBBBBBB; 

    STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,1.5 

    ,0),COLORDDDDDD; 

    STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,0.5 

    ,0),COLORFFFFFF; 

    STICKLINE(CROSS(JX,DX),OPEN,CLOSE,0.5,0),COLORYELLOW; 

    STICKLINE(CROSS(DX,JX),OPEN,CLOSE,0.5,0),{COLOR000099 

    }COLORBLACK; 

    超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; 

    TESTSKIP(NOT(超BOR大BOR中BOR小BOR超SOR大S 

    OR中SOR小S)!=0); 

    大宗进:=(超B)+(大B),NODRAW; 

    大宗出:=(超S)+(大S),NODRAW; 

    非大宗进:=(中B)+(小B),NODRAW; 

    非大宗出:=(中S)+(小S),NODRAW; 

    大宗进限制:=IF((超B+大B)=0,0,大宗进); 

    大宗出限制:=IF((超S+大S)=0,0,大宗出); 

    非大宗进限制:=IF(中B+小B=0,0,非大宗进); 

    非大宗出限制:=IF(中S+小S=0,0,非大宗出); 

    净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW; 

    净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW; 

    净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小 

    S),COLORRED,NODRAW; 

    大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW; 

    大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入); 

    大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW; 

    大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比); 

    总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+ 

    大S+中S+小S)*100,NODRAW; 

    总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+ 

    大S+中S+小S)*100,NODRAW; 

    成交总量:=(超B+大B+中B+小B+超S+大S+中S+小 

    S),NODRAW; 

    参与度:=(超B+超S+大B+大S)/成交总量 

    *100,COLORYELLOW,NODRAW; 

    大单强度:=(超B+大B-超S-大S)/成交总量 

    *100,COLORYELLOW,NODRAW; 

    大单强度限制:=IF(大单强度=0,-100,大单强度); 

    大单强度比:=IF(大单强度 =0,(大单强度限制+100)/2,100- 

    ABS((大单强度限制-100)/2)),NODRAW; 

    超单强度:=(超B-超S)/(超B+超 

    S)*100,COLORYELLOW,NODRAW; 

    超单强度限制:=IF(超单强度=0,-100,超单强度); 

    超单强度比:=IF(超单强度 0,(超单强度限制+100)/2,IF(超单强度 

    0,100-ABS((超单强度限制-100)/2),0)),NODRAW; 

    DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗 

    出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW; 

    DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV))- 

    20,30,950,IF(CONST(大宗进 0),RGB(250,125,0),RGB(25,150,250))); 

    DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))- 

    20,62,950,IF(CONST(大宗出 0),RGB(25,150,250),RGB(250,125,0))); 

    DRAWRECTREL(102,CONST(950-(ABS( 

    进)*250/DAZHIV))-20,132,950,IF(CONST( 

    DRAWRECTREL(134,CONST(950-(ABS( 

    出)*250/DAZHIV))-20,164,950,IF(CONST( 

    DRAWRECTREL(204,CONST(950-(ABS( 

    入)*250/DAZHIV))-20,234,950,IF(CONST( 

    DRAWTEXT_FIX(1,0.00,0.95,0,STRCAT(STRCAT(  

    ,CON2STR(主力净流入,0)), 万 )),COLORMAGENTA; 

    DRAWTEXT_FIX(1,0.10,0.95,0,STRCAT(STRCAT(  

    ,CON2STR(散户净流入,0)), 万 )),COLORCYAN; 

    DRAWTEXT_FIX(1,0.20,0.95,0,STRCAT(STRCAT(  

    ,CON2STR(净流入,0)), 万 )),COLORYELLOW; 

    主买A:=ACTINVOL,COLORRED,NODRAW; 

    主卖A:=ACTOUTVOL,COLORGREEN,NODRAW; 

    主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED; 

    主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN; 

    大 

    OL); 

    大 

    VOL); 

    单卖比:=LARGEOUTTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRD 

    单买比:=LARGEINTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRDV 

    净流入散户入 0),RGB(200,0,0),RGB(0,125,50))); 

    主力出 0),RGB(25,150,250),RGB(250,125,0))); 

    净净流流进 0),RGB(250,125,0),RGB(25,150,250))); 

    非非大大宗宗非非大大宗宗 

    主主力动净买量差 

    :=(LARGEINTRDVOL- 

    :=(ACTINVOL￾LARGEOUTTRDVOL),COLORYELLOW,NODRAW; 

    ACTOUTVOL),COLORMAGENTA,NODRAW; 

    主力差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)- 

    L2_AMO(1,1)))/10000,COLORCYAN,NODRAW; 

    主力买力度:=LARGEINTRDVOL*100/VOL; 

    主力卖力度:=LARGEOUTTRDVOL*100/VOL; 

    主买力度比:=主力买力度/(主力买力度+主力卖力度)*100,NODRAW; 

    主卖力度比:=主力卖力度/(主力买力度+主力卖力度)*100,NODRAW; 

    力度比限制:=IF((LARGEINTRDVOL+LARGEOUTTRDVOL)=0,0, 

    大单买比); 

    JGV:=(L2_VOL(0,0) 

    L2_VOL(0,1))*VOL/100000000,COLORRED; 

    DHV:=(L2_VOL(1,0) 

    L2_VOL(1,1))*VOL/100000000,COLORFF00FF; 

    ZHV:=(L2_VOL(2,0) 

    L2_VOL(2,1))*VOL/100000000,COLOR00FFFF; 

    SHV:=(L2_VOL(3,0) 

    L2_VOL(3,1))*VOL/100000000,COLORFFFFFF; 

    NOTEXT大量动向:=MA((JGV+DHV),5),COLORYELLOW; 

    超级大量:=JGV,COLOR0000FF,NODRAW; 

    机构大量:=DHV,COLORMAGENTA,NODRAW; 

    大量博弈:=(JGV+DHV),COLORYELLOW,NODRAW; 

    小量博弈:=(ZHV+SHV),COLORWHITE,NODRAW; 

    大量资金比:=大量博弈 

    /(ABS(JGV)+ABS(DHV)+ABS(ZHV)+ABS(SHV))*100,COLORYELLO 

    W,NODRAW; 

    ---- 

    大量资金比限制:=IF(大量资金比=0,-100,大量资金比); 

    大量强度比:=IF(大量资金比 0,(大量资金比限制+100)/2,IF(大量 

    资金小比量 

    0,100-ABS(( 

    资金大比量 

    := 

    资金小比量限博制-弈 

    100)/2),0)),COLORGREEN,NODRAW; 

    /(ABS(JGV)+ABS(DHV)+ABS(ZHV)+ABS(SHV))*100,COLORYELLO 

    W,NODRAW; 

    小量强度比:=IF(小量资金比 =0,(小量资金比+100)/2,100- 

    ABS((小量资金比-100)/2)),COLORCYAN,NODRAW; 

    MVR:=REF(MA(V,5),1); 

    FVR:=REF(V,1); 

    PVR:=(MVR+FVR)/2; 

    比:=V/(V+PVR)*100/FROMOPEN*240; 

    {量能饱和度} 

    SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)); 

    【{活跃度} 

    LC:=REF(CLOSE,1); 

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

    WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)- 

    LLV(LOW,3))*100; 

    活跃度:=(RSI5-WR10),COLORFFFF00,LINETHICK1,NODRAW; 

    活跃度比:=IF(活跃度 =0,(活跃度+100)/2,100-ABS((活跃度- 

    100)/2)); 

    DRAWRECTREL(80,0,240,40,RGB(0,75,200)); 

    DRAWRECTREL(80,0,160,40,RGB(0,250,50)); 

    DRAWRECTREL(80,0,80+CONST( 

    *160/100),40,RGB(200,0,50)); 

    力度比限制量能饱 

    和】:=IF(SAT 1,1,SAT)*100,COLORYELLOW,NODRAW; 

    DRAWTEXT_FIX(1,0.00,0.00,0,STRCAT(STRCAT( 买卖力度比 

    ,CON2STR(大单买比,2)), %买 )),COLORYELLOW; 

    DRAWTEXT_FIX(1,0.33,0.00,0,STRCAT(STRCAT( ,CON2STR(大 

    单卖比,2)), %卖 )),COLORGREEN; 

    DRAWRECTREL(80,50,240,90,RGB(0,100,0)); 

    DRAWRECTREL(80,50,160,90,RGB(0,250,50)); 

    DRAWRECTREL(80,50,80+CONST( 

    *160/100),90,RGB(175,50,250)); 

    DRAWTEXT_FIX(1,0.00,0.05,0,STRCAT(STRCAT( 大量强度比 

    ,CON2STR(大量强度比,2)), %买 )),COLORYELLOW; 

    DRAWRECTREL(330,0,490,40,RGB(0,75,200)); 

    DRAWRECTREL(330,0,410,40,RGB(0,250,50)); 

    DRAWRECTREL(330,0,330+CONST( 

    *160/100),40,RGB(175,50,250)); 

    DRAWTEXT_FIX(1,0.25,0.00,0,STRCAT(STRCAT( 主动买卖比 

    ,CON2STR(主买,2)), % )),COLORYELLOW; 

    {DRAWTEXT_FIX(1,0.33,0.10,0,STRCAT(STRCAT( ,CON2STR( 

    主卖,2)), %卖 )),COLORGREEN;} 

    DRAWRECTREL(330,50,490,90,RGB(0,100,0)); 

    DRAWRECTREL(330,50,410,90,RGB(0,250,50)); 

    BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; 

    UP:BBI+2.58*STD(BBI,10),COLOR000099,LINETHICK2; 

    LOOW:BBI-2.58*STD(BBI,10),COLOR000099,LINETHICK2; 

    SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100 100,100,(AMOUNT/C)/(HHV(AMOUN 

    T,20)/HHV(C,20))*100); 

    AA10:MA(CLOSE,8),COLOR0000FF; 

    AA12:MA(CLOSE,12),COLOR0000FF; 

    BB10:=((ATAN((AA10-REF(AA10,1)))*3.1416)*10); 

    BB12:=((ATAN((AA12-REF(AA12,1)))*3.1416)*10); 

    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); 

    DRAWTEXT(FILTER(BB13 1ANDEMA(X1,13) REF(EMA(X1,8),1),10),EMA8, ∠45上升 

    ),COLORWHITE; 

    压力:=MA(REF(HHV(C,30),1),2); 

    支撑:=MA(REF(LLV(C,30),1),2); 

    AA1:=AMOUNT/V;BB1:=L AA1*0.9; 

    CC1:=(C-REF(C,1))/REF(C,1)*100 DD1:=L MA(C,5)*0.921;EE1:=V MA(V,5)*1.5; 

    FF1:=BB1ANDCC1ANDDD1ANDEE1;DRAWTEXT(FF1,(LOW*0.99), 老鼠仓  

    A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HH 

    V(H,55)-LLV(L,55))*100,5,1); 

    线:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; 

    趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2)); 

    DRAWTEXT(CROSS(趋势线,0)AND黑马线 40,(HIGH*0.97), ▲大黑马 ),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); 

    DRAWTEXT(CROSS(FF,MA15),(LOW*0.99), 底 ),COLORA6E500; 

    DRAWTEXT(CROSS(88,RSI),(HIGH*1.02), 顶背离 ),COLOR1880FF; 

    VAR2:=LLV(LOW,27); 

    VAR3:=HHV(HIGH,34); 

    VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25; 

    注意买:=IF((VAR4 10),80,100); 

    RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; 

    K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D; 

    超跌:=IF(J 0,10,0);BDDD:=LLV(J,2)=LLV(J,8); 

    买入:=IF(CROSS(J,REF(J+0.01,1))ANDBDDDANDJ 20,30,0); 

    DRAWTEXT(买入AND注意买=100AND超跌=0,LOW, ),COLOR8000FF; 

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

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

    买:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX 0,2)ANDCROSS(DX,MA(DX,2)),1,0); 

    DRAWTEXT(FILTER(买=1,5),LOW-0.03, 拉升 ),COLORFFDE00; 

    A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+ 

    HIGH+LOW+CLOSE)/4,68))/3; 

    VAR7:=FORCAST(A7,6); 

    MA3K:VAR7,COLORRED,LINETHICK3; 

    MA5K:VAR7,COLORYELLOW,LINETHICK1; 

    STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,1,1),COLORRED; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,6,0),COLOR000055; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR000077; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR000099; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF; 

    STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,1,1),COLORWHITE; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,6,0),COLOR555555; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF; 

    STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,1,1),COLORCYAN; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,6,0),COLOR990000; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLORCC0000;


    image.png


    二、趋势主图指标公式

     

    MA5:MA(CLOSE,5); 

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

    DIF:=EMA(CLOSE,5)-EMA(CLOSE,34); 

    DEA:=EMA(DIF,5); 

    MA10:MA(CLOSE,10); 

    MA20:MA(CLOSE,20); 

    MA30:MA(CLOSE,30); 

    MA60:MA(C,60);MA120:MA(C,120); 

    通1:=AA*102/100; 

    通2:=AA*(200-102)/100; 

    量_价:=1; 

    CTKG:=1; 

    W:=量_价; 

    EPSL:=0.0001; 

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

    STICKLINE(DIF =DEA,CLOSE,OPEN,3,0),COLOR009900; 

    STICKLINE(DIF =DEA,CLOSE,OPEN,2.2,0),COLOR00BB00; 

    展开全⽂ 

    STICKLINE(DIF =DEA,CLOSE,OPEN,1.5,0),COLOR00DD00; 

    STICKLINE(DIF =DEA,CLOSE,OPEN,0.5,0),COLOR00FF00; 

    STICKLINE(DIF =DEA,CLOSE,OPEN,3,0),COLOR000099; 

    STICKLINE(DIF =DEA,CLOSE,OPEN,2.2,0),COLOR0000CC; 

    STICKLINE(DIF =DEA,CLOSE,OPEN,1.5,0),COLOR0000FF; 

    STICKLINE(DIF =DEA,CLOSE,OPEN,0.5,0),COLORCC66FF; 

    V2V:=V/REF(V,1) =1.9ANDC REF(C,1); 

    TJA:=ZZ =MAX(C,O)ANDCTKG=1; 

    TJB:=ZZ =MIN(C,O)ANDCTKG=1; 

    ZF:=IF(TJA,1,IF(TJB,-1,0)); 

    TJ0:=TJAORTJB; 

    TJ1:=H=LANDC REF(C,1); 

    TJ2:=H=LANDC REF(C,1); 

    TJ3:=H=LANDC=REF(C,1); 

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

    DD:=DMA(CLOSE,CC); 

    STICKLINE(V2V,OPEN,CLOSE,0.5,0),COLORYELLOW; 

    ZT:=C/REF(C,1) 1.097; 

    量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE; 

    EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0)); 

    ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE)); 

    JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL; 

    差:=(JGL_DX*量_价)/20000,COLOR13AADD,NODRAW; 

    DX:=JGL_DX*100,NODRAW; 

    上:(1+7/100)*DD,CROSSDOT,COLORFF1CAE; 

    下:(1-7/100)*DD,CROSSDOT,COLOR00FF7F; 

    中:(上+下)/2,CROSSDOT,COLORCFB53B; 

    买:=量_价*(1+JGL_DX)/20000,COLOR1133AA,NODRAW; 

    卖:=量_价*(1-JGL_DX)/20000,COLORFFFF00,NODRAW; 

    卖:=量_价*(1-JGL_DX)/20000,COLORFFFF00,NODRAW; 

    量差:=买-卖,NODRAW,COLORYELLOW; 

    STICKLINE(ZT,OPEN,CLOSE,0.5,0),COLORYELLOW; 

    STICKLINE(量差 =0,CLOSE,OPEN,3,0),COLOR009900; 

    STICKLINE(量差 =0,CLOSE,OPEN,2.2,0),COLOR00BB00; 

    STICKLINE(量差 =0,CLOSE,OPEN,1.5,0),COLOR00DD00; 

    STICKLINE(量差 =0,CLOSE,OPEN,0.5,0),COLOR00FF00; 

    STICKLINE(量差 =0,CLOSE,OPEN,3,0),COLOR000099; 

    STICKLINE(量差 =0,CLOSE,OPEN,2.2,0),COLOR0000CC; 

    STICKLINE(量差 =0,CLOSE,OPEN,1.5,0),COLOR0000FF; 

    STICKLINE(量差 =0,CLOSE,OPEN,0.5,0),COLORCC66FF; 

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

    V3V:=V/REF(V,1) =1.9ANDC REF(C,1); 

    STICKLINE(V2V,OPEN,CLOSE,0.5,0),COLORYELLOW; 

    STICKLINE(ZT,OPEN,CLOSE,0.5,0),COLORYELLOW; 

    STICKLINE(V3V,OPEN,CLOSE,0.5,0),COLORBLUE; 

    买:(ZTPRICE(REF(C,1),0.1)+REF(ZTPRICE(REF(C,1),0.1),1))/2,COLORRED,NODRAW; 

    STICKLINE(ISLASTBAR,C,C,20000,1),COLORRED; 

    筹移:WINNER(C)*100-REF(WINNER(C)*100,1),COLORRED,NODRAW; 

    平均:COST(50),COLORRED,NODRAW; 

    昨获利:REF(WINNER(C)*100,1),COLORRED,NODRAW; 

    筹转:DRAWTEXT(筹移 50,L*0.992, 转 ),COLORYELLOW; 

    MA51:MA(H,5); 

    MA5:MA(C,5); 

    MA10:MA(C,10); 

    昨量差(倍):REF(V,1)/REF(V,2),COLORRED,NODRAW; 

    昨量⽐:REF(V/REF(MA(V,5),1),1),COLORRED,NODRAW; 

    价:ZTPRICE(REF(C,1),0.1),COLORRED,NODRAW; 

    跌停价:DTPRICE(REF(C,1),0.1),COLOR00A600,NODRAW; 

    展开全⽂ 

    涨停:=CLOSE =ZTPRICE(REF(CLOSE,1),0.1); 

    跌停:=CLOSE =DTPRICE(REF(CLOSE,1),0.1); 

    STICKLINE(涨停,O,C,3,0),COLORRED; 

    STICKLINE(跌停,O,C,3,0),COLORGREEN; 

    BK1:=STRCAT(STRSPACE(DYBLOCK),HYBLOCK); 

    BK2:=STRCAT(STRSPACE(BK1),GNBLOCK); 

    BK3:=STRCAT(STRSPACE(BK2),FGBLOCK); 

    BK4:=STRCAT(STRSPACE(BK3),ZHBLOCK); 

    DRAWTEXT_FIX(1,0.09,1,0,BK4),COLORWHITE; 

    HS:=100*DYNAINFO(8)/CAPITAL; 

    ZHWS:=STRCAT(VAR2STR(DYNAINFO(8)/10000,2), 万⼿  

    JHS:=STRCAT( 今换⼿: ,STRCAT(VAR2STR(HS,2), %  

    JHS1:=STRCAT(JHS, ≈  

    DRAWTEXT_FIX(1,0.67,0.85,0,STRCAT(JHS1,ZHWS))COLORYELLOW; 

    LTPDW:=IF((FINANCE(46))/1000000 1, 亿股 , 万股  

    LTP:=IF((FINANCE(46))/1000000 1,CON2STR((FINANCE(46))/100000000,2),CON2STR((FINANCE(46))/10000,0)); 

    LTP1:=STRCAT(STRCAT( ⾃由流通盘: ,LTP),LTPDW); 

    LTPWS:=STRCAT(VAR2STR(FINANCE(46)/1000000,2), 万⼿  

    LTP2:=STRCAT(LTP1, ≈  

    DRAWTEXT_FIX(1,0.67,0.65,0,STRCAT(LTP2,LTPWS))COLORMAGENTA; 

    DRAWTEXT_FIX(1,0.67,0.55,0,STRCAT(STRCAT( 流通市值: ,CON2STR(FINANCE(46)*C/100000000,2)), 亿元 ))COLORMAGENTA; 

    KP:=(DYNAINFO(4)-DYNAINFO(3))/DYNAINFO(3)*100; 

    DRAWTEXT_FIX(1,0.2,0.65,0,STRCAT( 开盘: ,STRCAT(VAR2STR(KP,2), % )))COLORYELLOW; 

    DRAWTEXT_FIX(1,0.35,0.65,0,STRCAT( 最⾼价: ,CON2STR(DYNAINFO(5),2)))COLORYELLOW; 

    DRAWTEXT_FIX(1,0.35,0.75,0,STRCAT( 最低价: ,CON2STR(DYNAINFO(6),2)))COLORYELLOW; 

    今⽇竞价股数:=DYNAINFO(15)/DYNAINFO(4); 

    A:=100*今⽇竞价股数/FINANCE(46)*100*(O-REF(C,1))/REF(C,1); 

    DRAWTEXT_FIX(1,0.2,0.6,0,STRCAT(STRCAT( 竞价动能值: ,CON2STR(A,2)), ))COLORYELLOW; 

    竞价流⽐:=DYNAINFO(15)/DYNAINFO(4)/FINANCE(46)*100; 

    DRAWTEXT_FIX(1,0.2,0.7,0,STRCAT(STRCAT( 竞价流⽐: ,CON2STR(竞价流⽐,2)), ))COLORYELLOW; 

    CJE:=DYNAINFO(8)*DYNAINFO(11); 

    DW:=IF(CJE/1000000 1, 亿 , 万  

    AB:=IF(CJE/1000000 1,CJE/1000000,CJE/100); 

    DRAWTEXT_FIX(1,0.2,0.75,0,STRCAT(STRCAT( 成交额: ,CON2STR(AB,2)),DW))COLORYELLOW; 

    市盈率:=STRCAT( 市盈率: ,CON2STR(C/FINANCE(33),2)); 

    DRAWTEXT_FIX(1,0.3,0.85,0,STRCAT(市盈率, 倍 ))COLORYELLOW; 

    JJCJL:=DYNAINFO(15)/DYNAINFO(4)/100; 

    JJJEDW:=IF(DYNAINFO(15) 10000, 万元 , 元  

    JJJE:=IF(DYNAINFO(15) 10000,CON2STR(DYNAINFO(15)/10000,1),CON2STR(DYNAINFO(15),1)); 

    JJJE1:=STRCAT(JJJE,JJJEDW); 

    JJ:=STRCAT( 竞价: ,STRCAT(CON2STR(JJCJL,0), ⼿  

    JJ1:=STRCAT(JJ, =  

    DRAWTEXT_FIX(1,0.2,0.55,0,STRCAT(JJ1,JJJE1))COLORMAGENTA; 

    DRAWTEXT_FIX(ISLASTBAR,0,0.14,0,STRCAT( 概念: ,GNBLOCK)),COLORWHITE; 

    开盘换⼿:100*JJCJL/CAPITAL,NODRAW,COLORFF00FF; 

    DRAWTEXT_FIX(1,0.2,0.3,0.15,STRCAT( 【涨停原因】 ,EXTERNSTR(0,883))),COLORRED; 

    DRAWTEXT_FIX(1,0.00,0.2,0,STRCAT( 【短线主题】 ,EXTERNSTR(0,7013))),COLORGREEN; 

    DRAWTEXT_FIX(1,0.00,0.4,0,STRCAT( 【雷因】 ,EXTERNSTR(0,7014))),COLORGREEN; 

    跌7画线:STICKLINE(L REF(C,1)*0.93ANDREF(C,1) REF(C,2)*1.0985AND 

    O REF(C,1)*0.97,REF(C,1)*0.93,REF(C,1)*0.93,26,0); 

    跌9画线:STICKLINE(L REF(C,1)*0.91ANDREF(C,1) REF(C,2)*1.0985AND 

    O REF(C,1)*0.95,REF(C,1)*0.91,REF(C,1)*0.91,26,0),COLORGREEN; 

    ZTT:=CLOSE/REF(CLOSE,1) =1.0987; 

    STICKLINE(ZTT,(REF(C,1)+C)/2,(REF(C,1)+C)/2,20,0); 

    STICKLINE(ZTT,(REF(C,1)+C)/3,(REF(C,1)+C)/3,20,0);


    image.png



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


    输出XG:(5日内最高价的最高值-5日内最低价的最低值)/5日内最低价的最低值*100 10


    推荐阅读:神秘买卖主图指标公式

     

    动力线:MA(C,5),LINETHICK3,COLOR00CCFF; 

    牛熊线:MA(C,13),CIRCLEDOT,COLORYELLOW; 

    生命线:MA(C,34),CIRCLEDOT,COLORMAGENTA; 

    MA05:=MA(C,5); 

    MA10:=MA(C,10); 

    MA20:=MA(C,20); 

    MA30:=MA(C,30); 

    五日乖离率:=(C-MA05)/MA05*100; 

    BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416; 

    速度5:=SMA(EMA((MA05- 

    REF(MA05,1))/REF(MA05,1),3)*100,3,1); 

    加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW; 

    IF(BB05 30ANDMA05 REF(MA05,1), 

    MA05,DRAWNULL),LINETHICK3,COLORRED; 

    BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; 

    IF(BB05 0ANDMA05 REF(MA05,1), 

    MA05,DRAWNULL),LINETHICK3,COLORGREEN; 

    三拾日乖离率:=(C-MA30)/MA30*100,NODRAW; 

    VAR1:=(MA20-MA30) REF((MA20-MA30),1) 

    MA20 REF(MA20,1)ANDMA30 REF(MA30,1); 

    VAR2:=(MA30-MA20) REF((MA30-MA20),1) 

    MA20 REF(MA20,1)ANDMA30 REF(MA30,1); 

    BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416; 

    强势狙击:=FILTER(BB30 30ANDBB10 45AND 

    CROSS(BB05,60),10); 

    加仓:=FILTER(COUNT(CROSS(BB05,30),5) =1AND 

    MA05 REF(MA05,1)AND三拾日乖离率 REF(三拾日乖离率,1) 

    ANDMA10 REF(MA10,1) 

    AND 

    AND 

    AND加速度5 REF(加速度5,1)AND速度5 REF(速度5,1),10); 

    清仓:=FILTER(COUNT(CROSS(30,BB05),5) =1AND(C MA30 

    ORO MA30)ANDMA05 REF(MA05,1)AND三拾日乖离率 

    REF(三拾日乖离率,1)ANDMA10 REF(MA10,1),10); 

    DRAWTEXT(加仓,LOW*0.98, ◆加二 ),COLORYELLOW; 

    JC:=CROSS(0,五日乖离率)AND三拾日乖离率 REF(三拾日乖离 

    率,1)ANDMA10 REF(MA10,1); 

    减仓:=FILTER(JC,10); 

    MR:=COUNT(CROSS(五日乖离率,0),3) =1AND三拾日乖离 

    率 REF(三拾日乖离率,1)ANDMA05 REF(MA05,1)AND 

    (C/REF(C,1)-1)*100 5ANDREF(C,1) MA30; 

    买入:=FILTER(MR,10); 

    DRAWTEXT(减仓,HIGH*1.02, ◆风险 ),COLORCYAN; 

    DRAWTEXT(买入,LOW*0.96, ◆买二 ),COLORYELLOW; 

    DRAWTEXT(清仓,HIGH*1.00, ◆清仓 ),COLORGREEN; 

    VAR21:=MAX(ABS(HIGH￾AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); 

    VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100); 

    MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50; 

    压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF; 

    支撑:MA(REF(LLV(C,30),1),2),COLORABFF46; 

    {彩色K线} 

    TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3); 

    TYX4:=MA((C+L+O+H)/4,13); 

    TYX5:=EMA((C+L+O+H)/4,21); 

    {空心红} 

    STICKLINE(C TYX5ANDC O,H,L,0,0),COLORRED; 

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

    {深绿} 

    STICKLINE(C TYX5ANDC O,H,L,0,0),COLOR007700; 

    STICKLINE(C TYX5ANDC O,C,O,3,0),COLOR005500; 

    STICKLINE(C TYX5ANDC O,C,O,2,0),COLOR006600; 

    STICKLINE(C TYX5ANDC O,C,O,1,0),COLOR007700; 

    {蓝} 

    STICKLINE(C TYX5ANDC O,H,L,0,0),COLORFFDD44; 

    STICKLINE(C TYX5ANDC O,C,O,3,0),COLORFF7700; 

    STICKLINE(C TYX5ANDC O,C,O,2,0),COLORFFAA22; 

    STICKLINE(C TYX5ANDC O,C,O,1,0),COLORFFDD44; 

    {黄} 

    STICKLINE(C TYX5ANDC O,H,L,0,0),COLOR00EEFF; 

    STICKLINE(C TYX5ANDC O,C,O,3,0),COLOR00AAFF; 

    STICKLINE(C TYX5ANDC O,C,O,2,0),COLOR00CCFF; 

    STICKLINE(C TYX5ANDC O,C,O,1,0),COLOR00EEFF; 

    {粉红} 

    STICKLINE(C TYX4ANDC O,H,L,0,0),COLORFF66AA; 

    STICKLINE(C TYX4ANDC O,C,O,3,0),COLORFF11FF; 

    STICKLINE(C TYX4ANDC O,C,O,2,0),COLORFF44FF; 

    STICKLINE(C TYX4ANDC O,C,O,1,0),COLORFF66FF; 

    {亮灰} 

    STICKLINE(C TYX4ANDC O,H,L,0,0),COLOR999999; 

    STICKLINE(C TYX4ANDC O,C,O,3,0),COLOR555555; 

    STICKLINE(C TYX4ANDC O,C,O,2,0),COLOR777777; 

    STICKLINE(C TYX4ANDC O,C,O,1,0),COLOR999999; 

    {深红} 

    STICKLINE(C TYX3ANDC O,H,L,0,0),COLOR0000DD; 

    STICKLINE(C TYX3ANDC O,C,O,3,0),COLOR000099; 

    STICKLINE(C TYX3ANDC O,C,O,2,0),COLOR0000BB; 

    STICKLINE(C TYX3ANDC O,C,O,1,0),COLOR0000DD; 

    {涨跌停K线} 

    STICKLINE(HIGH=LOWANDCLOSE=OPENAND 

    (CLOSE/REF(CLOSE,1)) 1.048,HIGH,LOW,3,0),COLORRED; 

    STICKLINE(HIGH=LOW 

    {突破} 

    STICKLINE(REF(COUNT(C TYX3,5)=5,1)ANDC TYX3AND 

    C O,C,O,1,0),COLOR00CCFF; 

    {买卖主图} 

    MA18:=MA(CLOSE,18); 

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

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

    买:=LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX 0,2)AND 

    CROSS(DX,MA(DX,2)); 

    DRAWTEXT(FILTER(买=1,5),LOW, ★买一 ),COLORRED; 

    加1:=MA18 =REF(MA18,3)ANDCROSS(CLOSE,MA18); 

    DRAWTEXT(加1,LOW*0.99, ★加一 ),COLORCC66FF; 

    卖一:=HHV(DX,2)=HHV(DX,7)ANDCOUNT(DX 50,2)AND 

    CROSS(MA(DX,2),DX); 

    DRAWTEXT(FILTER( 

    ),COLORGREEN; 

    {牛熊通吃} 

    AA1:=AMOUNT/V; 

    BB1:=L AA1*0.9; 

    CC1:=(C-REF(C,1))/REF(C,1)*100  

    DD1:=L MA(C,5)*0.921; 

    EE1:=V MA(V,5)*1.5; 

    FF1:=BB1ANDCC1ANDDD1ANDEE1; 

    DRAWTEXT(FF1,LOW*0.99, 老鼠仓 ),COLOR4080FF; 

    {预测明天} 

    XXS:=MA(LOW,5)*(1-5/100); 

    XXS1:=MA(HIGH,5)*(1+5/100); 

    卖一=1,1),HIGH*1.01, ★卖一 

    ANDCLOSE=OPENAND 

    (REF(CLOSE,1)/CLOSE) 1.048,HIGH,LOW,3,0),COLOR00FF00; 

    均线:=C,COLORGREEN; 

    AAAA:=CLOSE/REF(CLOSE,3) =0.85 

    ANDC REF(C,1),LINETHICK0; 

    DRAWTEXT(AAAA,L*0.95, 下影买 ),COLORRED; 

    BBAA:=CROSS(XXS1,C); 

    DRAWTEXT(CROSS(XXS1,C),H, 开盘逃 ),COLORWHITE; 

    DDDD:=CROSS(C,XXS1); 

    DRAWTEXT(DDDD,H, 明日走 ),COLORYELLOW; 

    {兄弟指标} 

    AAA:=MA(LOW,5)*(1-5/100); 

    BBB:=(HHV(AAA,5)+LLV(AAA,5))/2; 

    DRAWTEXT(CROSS(BBB,L)ANDBBB REF(BBB,1),L*0.98, ←兄 

    弟回马枪 ),COLORWHITE; 

    {天河指标} 

    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); 

    DEA:=EMA(DIF,9); 

    DRAWTEXT(REF(CROSS(DEA,DIF),1) 

    CROSS(DIF,DEA),L*0.97, ←天河回马抢 ),COLORMAGENTA; 

    {见好就收} 

    VSR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)- 

    LLV(LOW,20))*100; 

    VSR3:=SMA(VSR2,4,1); 

    VSR4:=SMA(VSR3,2,1); 

    DRAWTEXT(VSR4 82ANDVSR3 89,HHV(C,30)*1.02, 收 

    ),COLORGREEN; 

    N:=8; 

    M:=REF(CLOSE,1); 

    A:=SMA(MAX(CLOSE-M,0),N,1)/SMA(ABS(CLOSE-M),N,1)*100,COLORYELLOW,LINETHICK1; 

    B0:=A=DRAWLINE(A =HHV(A,N),A,A =LLV(A,N),1,A),COLOR00FF00; 

    B1:=A=DRAWLINE(A =HHV(A,N),A,A =LLV(A,N),A,1),COLOR00FF00; 

    B2:=A REF(A,1); 

    B3:=A REF(1,A); 

    C1:=DRAWICON(B1ANDB2,A,9); 

    C2:=DRAWICON(B0ANDB3,A,15); 

    DRAWICON(FILTER(C1 0,1),L*0.97,9); 

    DRAWICON(FILTER(C2 0,1),H*1.02,15); 

    ⽹1:EXPMEMA(CLOSE,6); 

    ⽹2:MA(CLOSE,12),POINTDOT; 

    ⽹3:MA(CLOSE,33),COLORFF00FF,LINETHICK3; 

    IF(⽹3 REF(⽹3,1),⽹3,DRAWNULL),COLOR00FF00,LINETHICK3; 

    垂点:=REFDATE(HHV(H,N)/1.01,DATE); 

    DRAWTEXT(CURRBARSCOUNT=N,垂点, ⽹雪 ),COLORDDDD00; 

    VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3); 

    VAR2222:=CROSS(VAR1111,0.9); 

    VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3); 

    VAR4444:=CROSS(VAR3333,0.9); 

    压⼒:=REF(HIGH,BARSLAST(VAR2222)); 

    STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),0.5,1),COLOREA91B5,L 

    INETHICK3; 

    ⽀撑:=REF(LOW,BARSLAST(VAR4444)); 

    STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW,BARSLAST(VAR4444)),0.5,1),COLOR00B4FF,LI 

    NETHICK3; 

    下档线:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100); 

    RRRSV:=SMA(下档线,3,1); 

    KKK:=SMA(RRRSV,3,1); 

    DDD:=((3*RRRSV)-(2*KKK)); 

    JJ12:=(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*100); 

    RSV24:=SMA(JJ12,3,1); 

    K24:=SMA(RSV24,3,1); 

    D24:=((3*RSV24)-(2*K24)); 

    压⼒2:=IF(CROSS(D24,DDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDD)))),COLORFFFFFF; 

    压⼒位:=IF(ISLASTBAR,压⼒2,DRAWNULL); 

    STICKLINE(ISLASTBAR,压⼒位,压⼒位,120,0),LINETHICK4,COLORFFFFFF; 

    底部:=LLV(HIGH,30),COLOR00FF00; 

    底部位:=IF(ISLASTBAR,底部,DRAWNULL); 

    STICKLINE(ISLASTBAR,底部位,底部位,100,0),LINETHICK4,COLOR00FF00; 

    {交易指⽰} 

    DATA:=5; 

    {多头买⼊}DRAWICON(ZIG(3,DATA) REF(ZIG(3,DATA),1) 

    ANDREF(ZIG(3,DATA),1) =REF(ZIG(3,DATA),2) 

    ANDREF(ZIG(3,DATA),2) =REF(ZIG(3,DATA),3),L*0.98,1); 

    {多头卖出}DRAWICON(ZIG(3,DATA) REF(ZIG(3,DATA),1) 

    ANDREF(ZIG(3,DATA),1) =REF(ZIG(3,DATA),2) 

    ANDREF(ZIG(3,DATA),2) =REF(ZIG(3,DATA),3),H*1.02,2); 

    {BS} 

    VAR11:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LOW,14)))); 

    VAR21:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LOW,14)))); 

    VAR31:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34)); 

    DRAWICON(CROSS(VAR21,MA(VAR31,6)),(LOW-(LOW*0.04)),7); 

    DRAWICON(CROSS(MA(VAR31,6),VAR11),(HIGH+(HIGH*0.03)),8); 

    {压⼒⽀撑} 

    E:=(HIGH+LOW+OPEN+2*CLOSE)/5; 

    AAA:=2*E-LOW,NODRAW; 

    AB:=2*E-HIGH,NODRAW; 

    ACC:=E+(HIGH-LOW),NODRAW; 

    ADD:=E-(HIGH-LOW),NODRAW; 

    今阻⼒:REF(AAA,1),COLORWHITE,NODRAW; 

    今⽀撑:REF(AB,1),COLORYELLOW,NODRAW; 

    明阻⼒:AAA,COLORCYAN,NODRAW; 

    明⽀撑:AB,COLORMAGENTA,NODRAW; 

    明突破:ACC,COLORGREEN,NODRAW; 

    明:ADD,COLORLICYAN,NODRAW; 

    GJ:=(C+H+L+O)/4; 

    明⽇阻⼒:=L+(GJ-L)+(C-L); 

    明⽇⽀撑:=L+(C-GJ); 

    今⽇阻⼒:REF(明⽇阻⼒,1),NODRAW; 

    今⽇⽀撑:REF(明⽇⽀撑,1),NODRAW; 

    STICKLINE(ISLASTBARANDC =今⽇阻⼒,今⽇阻⼒,今⽇阻⼒,10,1),COLOR0000FF; 

    STICKLINE(ISLASTBARANDC 今⽇阻⼒,今⽇阻⼒,今⽇阻⼒,10,1),COLOR00FF00; 

    STICKLINE(ISLASTBARANDC =今⽇⽀撑,今⽇⽀撑,今⽇⽀撑,10,1),COLORFF00FF; 

    ·STICKLINE(ISLASTBARANDC 今⽇⽀撑,今⽇⽀撑,今⽇⽀撑,10,1),COLORFF8800;

    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 神奇趋势线主图指标公式(趋势k线主图指标公式) 加入收藏