最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 量化分析指标公式源码 量化趋势指标公式

    正文概述    2024-05-04 04:06:33  

    公式解读:

    量化分析指标公式源码 


    DKX:=(EMA(C,18)),POINTDOT; 

    STICKLINE(((C =DKX)AND(C =O)),H,L,0,1),COLORRED; 

    STICKLINE(((C =DKX)AND(C =O)),O,C,2,1),COLORRED; 

    STICKLINE(((C =DKX)AND(C =O)),H,L,0,0),COLORRED; 

    STICKLINE(((C =DKX)AND(C =O)),O,C,2,0),COLORRED; 

    STICKLINE(((C DKX)AND(C =O)),H,L,0,1),COLORGREEN; 

    STICKLINE(((C DKX)AND(C =O)),O,C,2,1),COLORGREEN; 

    STICKLINE(((C DKX)AND(C =O)),H,L,0,0),COLORGREEN; 

    STICKLINE(((C DKX)AND(C =O)),O,C,2,0),COLORGREEN; 

    VAR1:=(HHV(HIGH,15)-LLV(LOW,15)); 

    VAR2:=(HHV(HIGH,15)-CLOSE); 

    VAR3:=(CLOSE-LLV(LOW,15)); 

    VAR4:=(((VAR2/VAR1)*100)-70); 

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

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

    VAR7:=SMA(((VAR3/VAR1)*100),3,1); 

    VAR8:=LLV(LOW,34); 

    VAR9:=(SMA(VAR7,3,1)-SMA(VAR4,9,1)); 

    VAR10:=IF((VAR9 100),(VAR9-100),0); 

    VAR11:=HHV(HIGH,34); 

    VAR12:=EMA((((VAR6-VAR8)/(VAR11-VAR8))*100),15); 

    VAR13:=EMA(((0.667*REF(VAR12,1))+(0.333*VAR12)),2); 

    MA11:=EMA(VAR13,5); 

    DRAWTEXT(CROSS(VAR12-VAR13,0),L-1, 多  

    DRAWTEXT(CROSS(0,VAR12-VAR13),H+1, 空  

    (副图) 

    VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80; 

    VAR2:=SMA(VAR1,10,1); 

    慢速:=SMA(VAR2,5,1); 

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

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

    FATK:=SMA(RSV1,3,1); 

    形态:=SMA(FATK,3,1); 

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

    VARB:=SMA(VARA,3,1); 

    VARC:=SMA(VARB,3,1); 

    加速:EMA(3*VARB-2*VARC,2),COLORYELLOW; 

    底:6,COLOR00BF00; 

    大底:-6,COLOR007300; 

    顶:90,COLORFFA500; 

    大顶:100,COLORWHITE; 

    VAR11:=LLV(LOW,5)=LLV(LOW,45)ANDCLOSE =OPEN*1.04; 

    VAR22:=CLOSE (REF(HIGH,1)+REF(LOW,1))/2; 

    买入:=VAR11ANDVAR22,LINETHICK2,COLORRED; 

    VAR3:=REF(CLOSE,1); 

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

    卖出:=CROSS(80,VAR4),LINETHICK2,COLORGREEN; 

    VAR5:=CROSS(加速,100);VAR6:=CROSS(加速,-6); 

    VAR7:=CROSS(80,加速);VAR8:=CROSS(加速,6); 

    DRAWTEXT(VAR5,85, 注意顶 ),COLORBLUE; 

    DRAWTEXT(VAR6,0, 关注底 ),COLORRED; 

    DRAWTEXT(VAR7,95, 空 ),COLORGREEN; 

    DRAWTEXT(VAR8,5, 多 ),COLORMAGENTA; 

    S1:80,COLOR996699,PRECIS0; 

    B1:20,COLORGREEN,PRECIS0; 

    A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED; 

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

    D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2; 

    长期线:A+100,COLOR9900FF; 

    短期线:B+100,COLOR888888; 

    中期线:D+100,COLORYELLOW,LINETHICK2; 

    见顶:(REF(中期线,1) 85ANDREF(短期线,1) 85ANDREF(长期线,1) 65)ANDCROSS(长 

    期线,短期线),PRECIS0; 

    顶部区域:(中期线 REF(中期线,1)ANDREF(中期线,1) 80)AND(REF(短期线,1) 95OR 

    REF(短期线,2) 95)AND长期线 60AND短期线 83.5AND短期线 中期线AND短期 

    线 长期线+4,PRECIS0; 

    顶部:=FILTER(顶部区域,4); 

    底部区域:(长期线 12AND中期线 8AND(短期线 7.2ORREF(短期线,1) 5)AND(中期 

    线 REF(中期线,1)OR短期线 REF(短期线,1)))OR(长期线 8AND中期线 7AND短期线 

    15AND短期线 REF(短期线,1))OR(长期线 10AND中期线 7AND短期线 

    1),PRECIS0; 

    STICKLINE(顶部,98,103,20,1),COLORRED; 

    STICKLINE(底部区域,-4,0,22,0),COLORGREEN; 

    STICKLINE(底部区域,40,44,22,0),COLORGREEN; 

    低位:长期线 15ANDREF(长期线,1) 15AND中期线 18AND短期线 REF(短期线,1) 

    ANDCROSS(短期线,长期线)AND短期线 中期线AND(REF(短期线,1) 5ORREF(短期 

    线,2) 5)AND(中期线 =长期线ORREF(短期线,1) 1),PRECIS0; 

    PARTLINE(中期线 REF(中期线,1),中期线),COLORMAGENTA,LINETHICK2; 

    PARTLINE(长期线 =REF(长期线,1),长期线),COLORFFFF00,LINETHICK1; 

    STICKLINE(低位金叉,0,4,11,0),COLORRED; 

    S0:10,COLORCC6633,LINETHICK2,PRECIS0; 

    B0:90,COLOR9966BB,LINETHICK2,PRECIS0; 

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

    MA(SMA 

    ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); 

    VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100; 

    VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100; 

    VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100; 

    VAR6:=(VAR3+VAR4+VAR5)/3; 

    ZH:EMA(EMA(VAR3,5),5)*3,COLORSTICK; 

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

    MA(SMA 

    ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); 

    VAR8:=IF(VAR6 =-20,10,0); 

    STICKLINE(VAR8=10,20,10,4,0),COLORRED; 

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

    DRAWTEXT(VAR11ANDCOUNT(VAR11,30)=1,5, 狮子提醒 ),COLORFF00FF; 

    STICKLINE(VAR11ANDCOUNT(VAR11,30)=1,1,10,8,0),COLORYELLOW; 

    DRAWTEXT(VAR11ANDCOUNT(VAR11,30)=1,3, 大进入 ),COLORFF00FF;

    VAR1:=(HHV(HIGH,13)-LLV(LOW,13)); 

    VAR2:=(HHV(HIGH,13)-CLOSE); 

    VAR3:=(CLOSE-LLV(LOW,13)); 

    VAR4:=(((VAR2/VAR1)*100)-70); 

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

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

    VAR7:=SMA(((VAR3/VAR1)*100),3,1); 

    VAR8:=LLV(LOW,34); 

    VAR9:=(SMA(VAR7,3,1)-SMA(VAR4,9,1)); 

    VAR10:=IF((VAR9 100),(VAR9-100),0); 

    VAR11:=HHV(HIGH,34); 

    VAR12:=EMA((((VAR6-VAR8)/(VAR11-VAR8))*100),N); 

    VAR13:=EMA(((0.667*REF(VAR12,1))+(0.333*VAR12)),2); 

    STICKLINE(((VAR12-VAR13) 0),VAR12,VAR13,4,0),COLOR0000FF; 

    STICKLINE(((VAR12-VAR13) 0),VAR12,VAR13,4,0),COLORFF0000; 

    MA11:EMA(VAR13,5);

    AA10:=MA(C,10); 

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

    STICKLINE(BB10 1ANDAA10 REF(AA10,1),AA10,REF(AA10,1),8,0),COLORRED; 

    STICKLINE(BB10 1ANDAA10 REF(AA10,1),AA10,REF(AA10,1),8,1),COLORGREEN; 

    AA20:=MA(C,20); 

    BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416; 

    STICKLINE(BB20 1,AA20,REF(AA20,1),8,0),COLORYELLOW; 

    STICKLINE(BB20 1,AA20,REF(AA20,1),8,1),COLORBBCCCC;


    image.png


    量化指标公式 


     

    VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100; 

    做空能量线:SMA(VAR1,3,1),LINETHICK2,COLORGREEN; 

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

    机构做多能量线:SMA(VAR2,5,1)-8,LINETHICK2,COLORRED; 

    弱势区:20,POINTDOT,COLORGREEN; 

    强弱分水岭:50,POINTDOT,COLORWHITE; 

    强势区:80,POINTDOT,COLORF00FF0; 

    N1:=21; 

    VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)- 

    3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLOR 

    YELLOW,LINETHICK1; 

    VAR2:=8,COLORGREEN,LINETHICK0; 

    小试牛刀:IF(CROSS(VAR1,VAR2),50,0),STICK,COLORRED; 

    DRAWICON(小试牛刀 0,50,4); 

    发现庄迹:IF(VAR1 =8,15,0),STICK,COLORCYAN,LINETHICK2; 

    VARO5:=LLV(LOW,27); 

    VARO6:=HHV(HIGH,34); 

    VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25; 

    建仓区:IF((VARO7 10),100,118),COLOR00CCFF,LINETHICK1; 

    CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))-0.7; 

    CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9)); 

    CD3:=SMA(SMA(CD2,3,1),3,1); 

    CD4:=(CD3-SMA(CD1,9,1))-0.5; 

    CD5:=IF(CD4 0.00,CD4,0.00); 

    CD6:=REF(CD5,1); 

    VAR81:=MA(C,9),COLORRED; 

    空头1:=IF(CD6-CD5,CD6,CD5),LINETHICK3,COLORGREEN; 

    减仓空仓:CROSS(CD6,CD5),COLORGREEN; 

    DRAWICON(减仓空仓 0,113,5); 

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

    VAR2A:=SMA(VAR1A,9,1)+100; 

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

    VAR4A:=SMA(VAR3A,3,1); 

    VAR5A:=SMA(VAR4A,3,1)+100; 

    VAR6A:=VAR5A-VAR2A; 

    端庄窝:=IF(VAR6A N1,VAR6A-N1,0),COLORLIRED; 

    果断出击:IF(CROSS(端庄窝,0.01),100,0),STICK,COLORGREEN,LINETHICK2; 

    DRAWICON(果断出击 0,100,4),COLORGREEN; 

    XG:=CROSS(端庄窝,0.01); 

    LC:=REF(CLOSE,1); 

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

    E:=CROSS(83,RSI); 

    STICKLINE(REF(端庄窝,1) 端庄窝,端庄窝,REF(端庄窝,1),3,0),COLORRED; 

    STICKLINE(REF(端庄窝,1) 端庄窝,端庄窝,REF(端庄窝,1),3,0),COLOR00FF00; 

    红持绿空:0,COLORGREEN; 

    中分线:20; 

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

    VAR2E:=SMA(SMA(VAR1E,3,1),3,1); 

    VAR3E:=EMA(VAR2E,5); 

    GZ:=3*VAR2E-2*VAR3E; 

    趋势J:EMA(GZ,3),colorgreen,linethick3; 

    partline(趋势J ref(趋势J,1),趋势J),colorred,linethick3; 

    VAR37:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; 

    VAR38:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; 

    VAR39:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; 

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

    K:SMA(RSV,3,1); 

    D:SMA(K,3,1); 

    J:=3*K-2*D; 

    100,COLOR00FF00; 

    0,COLORFF00FF; 

    STICKLINE(J REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORRED; 

    STICKLINE(J REF(J,1),J,REF(J,1),3,0),COLORRED; 

    STICKLINE(J REF(J,1),J,REF(J,1),2,0),COLOR000099;; 

    STICKLINE(J REF(J,1),J,REF(J,1),1,0),COLOR2F2FF0; 

    STICKLINE(J REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORFFAA00; 

    STICKLINE(J REF(J,1),J,REF(J,1),3,0),COLORFF3300; 

    STICKLINE(J REF(J,1),J,REF(J,1),1.5,0),COLORFF6600; 

    STICKLINE(J REF(J,1),J,REF(J,1),0,0),COLORFFAA00; 

    STICKLINE(C =OOR(C=OANDC REF(C,1)),O,C,4,1),COLORRED; 

    STICKLINE((C =OANDC H)OR(C=OANDC REF(C,1)),C,H,0.1,0),COLORRED; 

    STICKLINE((C =OANDL O)OR(C=OANDC REF(C,1)),L,O,0.1,0),COLORRED; 

    STICKLINE(C OOR(C=OANDC REF(C,1)),O,C,4,0),COLORCYAN; 

    STICKLINE((C OANDC H)OR(C=OANDC REF(C,1)),C,H,0.1,1),COLORCYAN; 

    STICKLINE((C OANDL O)OR(C=OANDC REF(C,1)),L,O,0.1,1),COLORCYAN; 

    压力:HHV(MA((LOW+HIGH+CLOSE)/3,1),34),LINETHICK2,COLORGREEN; 

    支撑:LLV(MA((LOW+HIGH+CLOSE)/3,1),34),LINETHICK2,COLORRED; 

    RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; 

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

    VA1:=SMA(RV,3,1); 

    VA2:=SMA(VA1,3,1); 

    ZZ:=EMA(SMA(RG,3,1),2); 

    XX:=SMA(ZZ,3,1); 

    DRAWICON(CROSS(VA1,VA2)ANDCROSS(ZZ,XX),L,1); 

    DRAWICON(CROSS(VA2,VA1)ANDCROSS(XX,ZZ),H,2); 

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

    :(8*均 

    +7*REF(均,1)+6*REF(均,2)+5*REF(均,3)+4*REF(均,4)+3*REF(均,5)+2*REF(均,6)+REF(均,7 

    ))/36,COLORWHITE,PRECIS0; 

    :(LLV(短线,3)+LLV(短线,5)+LLV(短线,8))/3,COLORYELLOW,PRECIS0; 

    VAR1A:=LLV(LOW,21); 

    VAR2A:=HHV(HIGH,21); 

    AK1:=EMA((((CLOSE-VAR1A)/(VAR2A-VAR1A))*100),5); 

    AK:=EMA((((CLOSE-VAR1A)/(VAR2A-VAR1A))*50),13); 

    AB:=CROSS(AK1,AK); 

    DRAWTEXT((AB=1),L, 建多 ),COLORYELLOW; 

    VAR3AA:=IF((CLOSE REF(CLOSE,1)),88,0); 

    VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1)) 1.05)AND((HIGH)/(CLOSE) 1.01)AND 

    (VAR3AA 0),91,0); 

    STICKLINE(C =OOR(C=OANDC REF(C,1)),O,C,4,1),COLORRED; 

    STICKLINE((C =OANDC H)OR(C=OANDC REF(C,1)),C,H,0.1,0),COLORRED; 

    STICKLINE((C =OANDL O)OR(C=OANDC REF(C,1)),L,O,0.1,0),COLORRED; 

    STICKLINE(C OOR(C=OANDC REF(C,1)),O,C,4,0),COLORCYAN; 

    STICKLINE((C OANDC H)OR(C=OANDC REF(C,1)),C,H,0.1,1),COLORCYAN; 

    STICKLINE((C OANDL O)OR(C=OANDC REF(C,1)),L,O,0.1,1),COLORCYAN; 

    DRAWTEXT(FILTER((VAR4AA 90),45),L, ★大胆多 ),COLOR00FFFF; 

    VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100; 

    VAR2:=SMA(VAR1,3,1); 

    VAR3:=SMA(VAR2,3,1); 

    VAR5:=CROSS(SMA(VAR2,3,1),SMA(VAR3,3,1))ANDSMA(VAR2,3,1)  

    DRAWTEXT(FILTER(VAR5,10)=1,LOW, ),COLORYELLOW; 

    VARA:=LLV(LOW,35); 

    VARB:=HHV(HIGH,30); 

    VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25; 

    DRAWTEXT(IF(CROSS(87.5,VARC),87,0),H, 空 ),COLOR00FF00; 

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

    DEA:=EMA(DIFF,9); 

    STICKLINE(DIFF DEA,CLOSE,OPEN,3,0),COLORRED; 

    STICKLINE(DIFF DEA,HIGH,LOW,3,0),COLORRED; 

    STICKLINE(DIFF =DEA,CLOSE,OPEN,3,0),COLORGREEN; 

    STICKLINE(DIFF =DEA,HIGH,LOW,3,0),COLORGREEN; 

    R1:3*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1)-2*SMA(SMA(( 

    CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1),2,1); 

    ZP:IF(R1 7,20,0),COLORGREEN; 

    XG:IF(CROSS(R1,7),38,0),COLORRED; 

    A:95,COLORGREEN;

    HH:=HHV(HIGH,3); 

    LL:=LLV(LOW,3); 

    HH1:=BARSLAST((HH REF(HH,1))); 

    LL1:=BARSLAST((LL REF(LL,1))); 

    IF((HH1 LL1),LL,HH),LINETHICK2,COLORBB0066; 

    IF((HH1 LL1),HH,LL),LINETHICK2,COLOR1B8800; 

    STICKLINE((HH1 LL1),CLOSE,OPEN,3,0),COLORRED; 

    STICKLINE((HH1 LL1),HIGH,LOW,0,0),COLORRED; 

    STICKLINE((HH1 LL1),CLOSE,OPEN,3,0),COLORFF0000; 

    STICKLINE((HH1 LL1),HIGH,LOW,0,0),COLORFF0000; 

    DRAWTEXT(CROSS(HH1,LL1),HH, 开空 ),COLORYELLOW; 

    DRAWTEXT(CROSS(LL1,HH1),LL, 开多 ),COLORFF00FF;


    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 量化分析指标公式源码 量化趋势指标公式 加入收藏