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

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


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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    双线擒牛副图指标公式


    VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

    zm:=IF(CLOSEOPEN,VAR1*(HIGH-LOW),IF(CLOSEOPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));

    zm1:=IF(CLOSEOPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEOPEN,0-VAR1*(HIGH-LOW),0-VOL/2));

    mmb:=(SUM(zm,30)+SUM(zm1,30))/10;

    sg:=mmb0 AND REF(mmb,1)mmb;

    上攻周期:COUNT(sg,5),colorwhite;

    FILLRGN(3,上攻周期,上攻周期3,RGB(200,0,120));

    jsc:=上攻周期1;

    dbqd:=FILTER(COUNT(jsc,5)3 AND NOT(jsc),10);

    DRAWICON(dbqd,0,1);

    FILLRGN(0.5,上攻周期,jsc,RGB(0,0,255));

    STICKLINE(COUNT(上攻周期3,5)=3 AND sg,0,上攻周期,4,0),colorred;

    DRAWGBK(DATE900103,STRIP(RGB(43,33,100),RGB(83,73,200),1));

    SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,13)/HHV(C,13))*100100,100,(AMOUNT/C)/(HHV(AMOUNT,13)/HHV(C,13))*100);

    反弹确认线:EMA((LLV(L,5)+(((EMA(((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*0.8*C),3)-((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*0.8*C))*5)*0.8+LLV(L,5))+((EMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*0.8*C,3)-((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*0.8*C))*5))/3,5),coloryellow;

    量:=(CLOSE - LLV(LOW,21)) / (HHV(HIGH,21) - LLV(LOW,21)) * 1.2 * CLOSE;

    量1:=EMA(量,3);

    量2:=EMA(量,5);

    量3:=EMA(量,7);

    STICKLINE(量1 = 量2,量3,量1,10,0),color0000AA;

    STICKLINE(量1 = 量2,量3,量1,7,0),color0000BB;

    STICKLINE(量1 = 量2,量3,量1,6,0),color0000CC;

    STICKLINE(量1 = 量2,量3,量1,5,0),color0000DD;

    STICKLINE(量1 = 量2,量3,量1,4,0),color0000EE;

    STICKLINE(量1 = 量2,量3,量1,3,0),color0000FF;

    STICKLINE(量1 = 量2,量3,量1,10,0),colorFF0000;

    STICKLINE(量1 = 量2,量3,量1,7,0),colorFF3300;

    STICKLINE(量1 = 量2,量3,量1,6,0),colorFF5500;

    STICKLINE(量1 = 量2,量3,量1,5,0),colorFF7700;

    STICKLINE(量1 = 量2,量3,量1,4,0),colorFF9900;

    STICKLINE(量1 = 量2,量3,量1,3,0),colorFFBB00;

    STICKLINE(量1 = 量2,量3,量1,2,0),colorFFDD00;

    STICKLINE(量1 = 量2,量3,量1,1,0),colorFFFF00;

    T1:=量2 = 量3 AND 量1  REF(量1,1);

    T2:=量2  量3 AND 量1  REF(量1,1);

    STICKLINE(T1,量1,量3,10,0),colorFFBB11;

    STICKLINE(T1,量1,量3,7,0),colorFFCC22;

    STICKLINE(T1,量1,量3,5,0),colorFFDD33;

    STICKLINE(T1,量1,量3,3,0),colorFFEE44;

    STICKLINE(T1,量1,量3,1,0),colorFFFF55;

    STICKLINE(T2,量1,量3,10,0),color338FDD;

    STICKLINE(T2,量1,量3,8,0),colorFF00FF;

    STICKLINE(T2,量1,量3,1,0),color00DDFF;

    STICKLINE(T2,量1,量3,8,0),color00AAFF;

    STICKLINE(T2,量1,量3,6.6,0),color00BBFF;

    STICKLINE(T2,量1,量3,4.4,0),color00CCFF;

    STICKLINE(T2,量1,量3,3.3,0),color00DDFF;

    STICKLINE(T2,量1,量3,2.2,0),color00EEFF;

    STICKLINE(T2,量1,量3,1,0),color00FFFF;

    0,coloryellow;

    qs1:=IF(CMA(C,4),1,0);

    qs2:=IF(CMA(C,4),-1,0);

    qs3:=IF(MA(C,5)REF(MA(C,5),1),1,0);

    qs4:=IF(MA(C,5)REF(MA(C,5),1),-1,0);

    qs:=qs1+qs2+qs3+qs4;

    STICKLINE((qs=-2 AND CO),H,L,0,0),Color00FF00;

    STICKLINE((qs=-2 AND CO),OPEN,CLOSE,10,0),Color009900;

    STICKLINE((qs=-2 AND CO),OPEN,CLOSE,8,1),Color00C200;

    STICKLINE((qs=-2 AND CO),OPEN,CLOSE,4,0),Color00D600;

    STICKLINE((qs=-2 AND CO),OPEN,CLOSE,2,0),Color00FF00;

    STICKLINE((qs=-2 AND CO),H,L,0,0),Color2492FF;

    STICKLINE((qs=-2 AND CO),O,C,10,0),Color003E7B;

    STICKLINE((qs=-2 AND CO),O,C,8,1),Color0053A6;

    STICKLINE((qs=-2 AND CO),O,C,4,0),Color006AD5;

    STICKLINE((qs=-2 AND CO),O,C,2,0),Color0984FF;

    STICKLINE((qs=0 AND CO),H,L,0,0),ColorFFFFFF;

    STICKLINE((qs=0 AND CO),O,C,10,0),ColorCCCCCC;

    STICKLINE((qs=0 AND CO),O,C,8,1),ColorDEDEDE;

    STICKLINE((qs=0 AND CO),O,C,4,0),ColorF6F6F6;

    STICKLINE((qs=0 AND CO),O,C,2,0),ColorFFFFFF;

    STICKLINE((qs=0 AND CO),H,L,0,0),Color009FFF;

    STICKLINE((qs=0 AND CO),O,C,10,0),Color009FFF;

    STICKLINE((qs=0 AND CO),O,C,8,1),Color00B5FF;

    STICKLINE((qs=0 AND CO),O,C,4,0),Color00E4FF;

    STICKLINE((qs=0 AND CO),O,C,2,0),Color00FFFF;

    STICKLINE((qs=2 AND CO),H,L,0,0),ColorFF00FF;

    STICKLINE((qs=2 AND CO),O,C,10,0),ColorBB00BB;

    STICKLINE((qs=2 AND CO),O,C,8,1),colorFF5BFF;

    STICKLINE((qs=2 AND CO),O,C,4,0),colorF900F9;

    STICKLINE((qs=2 AND CO),O,C,2,0),ColorFF11FF;

    STICKLINE((qs=2 AND CO),H,L,0,0),Color0000bb;

    STICKLINE((qs=2 AND CO),O,C,10,0),Color000066;

    STICKLINE((qs=2 AND CO),O,C,8,1),Color000077;

    STICKLINE((qs=2 AND CO),O,C,5,0),Color000099;

    STICKLINE((qs=2 AND CO),O,C,3,0),Color0000bb;

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

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

    低吸:IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX0,2) AND CROSS(DX,MA(DX,2)),1,0),ColorFFFFFF;

    LC:=REF(CLOSE,1);

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

    DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02), #39; #39;),Color00E1E1;


    image.png



    双线擒牛主图指标


     

    Var1:=HHV(HIGH,55); 

    Var2:=LLV(LOW,55); 

    人:SMA((CLOSE-Var2)/(Var1-Var2),8,1)*100,colorgreen,Linethick2; 

    天:EMA(HHV(人,3),1),colorred,Linethick2; 

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

    STICKLINE(C =O,C,O,4,0),COLOR7070FF{B0B0FF}; 

    STICKLINE(C =O,C,O,2,0),COLORYELLOW; 

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

    STICKLINE(C =O,C,O,7,0),COLORFF2020; 

    STICKLINE(C =O,C,O,4,0),COLORFF6600; 

    STICKLINE(C =O,C,O,2,0),{COLORCYAN;}COLORFFCC66; 

    STICKLINE(C =O,H,L,0,0),{COLORCYAN}COLORFFCC66; 

    操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2; 

    界点:MA(CLOSE,20),COLORMAGENTA; 

    MA5:MA(CLOSE,5),COLORWHITE; 

    DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW, #39;进 #39;),COLORRED,LINETHICK1; 

    DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH, #39;出 #39;),COLORGREEN,LINETHICK1; 

    VAR1:=LLV(LOW,21); 

    VAR2:=HHV(HIGH,21); 

    AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5); 

    AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13); 

    DD:=EMA(((0.667*REF(AK1,1))+(0.333*AK1)),2); 

    VAR3:=LLV(LOW,55); 

    VAR4:=HHV(HIGH,34); 

    VAR5:=EMA((((CLOSE-VAR3)/(VAR4-VAR3))*100),3); 

    VAR6:=((AK+VAR5)/2); 

    VAR7:=EMA(((0.667*REF(VAR5,1))+(0.333*AK1)),2); 

    VAR8:=EMA(VAR6,5); 

    BB:=EMA(((0.667*REF(VAR8,1))+(0.333*VAR8)),2); 

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

    C2:=EMA(C1,6); 

    C3:=EMA(C2,5); 

    C4:=CROSS(C2,C3); 

    DRAWTEXT(C4,LOW/1.05, #39;追 #39;),,COLORLIGRAY; 

    C5:=CROSS(C3,C2); 

    DRAWTEXT(C5,HIGH*1.03, #39;逃 #39;),,COLORGREEN; 

    上升线:EMA(C,3),COLORRED,LINETHICK2; 

    下降线:EMA(C,5),COLOR00FF00,LINETHICK2; 

    中间线:EMA(下降线,5),COLORWHITE,LINETHICK2; 

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

    VAR2:=REF(VAR1,1); 

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

    VAR4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; 

    VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,5); 

    VAR6:=IF(VOL =1.3*MA(VOL,5)ANDCOUNT(VAR4 =VAR5ANDVAR4 -17,3)ANDREF(LOW,1)=LLV(LOW,120),1,0); 

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

    VAR8:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100; 

    VAR9:=IF(COUNT(VAR8 20,5) =1ANDCOUNT(VAR1=LLV(VAR1,10),10) =1ANDCLOSE =OPEN*1.038ANDVOL MA(VOL,5)*1.2,1,0); 

    DRAWICON(FILTER(REF(VAR3,1) 81ANDVAR3 80ORCROSS(82,VAR7),5),HIGH,2); 

    DRAWTEXT(FILTER(REF(VAR3,1) 81ANDVAR3 80ORCROSS(82,VAR7),5),HIGH, #39;快卖 #39;),COLORYELLOW; 

    DRAWTEXT(FILTER(VAR9ORVAR6,5),LOW, #39;注意买入 #39;),COLORGREEN; 

    DRAWICON(FILTER(CROSS(上升线,下降线)AND中间线 =REF(中间线,1)ANDVAR3 50,5),上升线,1);


    image.png






    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 双线擒牛副图指标公式 双线擒牛主图指标 加入收藏