最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信突破底部箱体指标公式源码分享

    正文概述    2024-05-04 04:30:24  
    支撑价:LLV(LOW,19),LINETHICK2 , COLOR00FF00; 阻力价:HHV(HIGH,19),COLORRED, LINETHICK2; VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26); VAR2:=EMA(VAR1,9); VAR3:=(CLOSE*2.5/100+CLOSE); VAR4:=EMA(C,3); VAR5:=LLV(HIGH,240); VAR6:=100*(CLOSE-VAR5)/VAR5; VAR7:=REF(LLV(CLOSE,480),1); VAR8:=REF(HHV(CLOSE,480),1); VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7); VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100; VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; VARE:=VARC 98.5 OR VARD 98.5; VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4; VAR13:=VARA=0 AND VARC=0 AND VAR6 VAR14:=VARA=100 AND VARC=100; VAR15:=VARB=0 OR VARD=0 AND VAR9 VAR16:=VARB=100 AND VARD=100; VAR17:=VAR6 0 AND VAR9 VAR18:=VAR13 AND VAR15; VAR19:=VAR14 AND VAR16; VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100; VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100; VAR1D:=BARSCOUNT(CLOSE); VAR1E:=VAR1B 20 AND VAR1C 23 AND VAR1D VAR1F:=VAR1E AND COUNT(VAR1E,1)=1; VAR20:=REF(CLOSE,1); VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100; VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100; VAR23:=BARSCOUNT(CLOSE); VAR24:=VAR21 20 AND VAR22 23 AND VAR23 VAR25:=VARA=0 AND VARF 1.2 AND VAR17; VAR27:=VAR18 AND VARF 1.2 AND VAR17; VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100; VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100; VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80) VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1; 买点:=VAR25 AND VAR2B; 绝对卖点:=(VAR19 OR VARA)AND VARF 23 OR VARE ; VAR2D:=VAR1F AND VAR2C AND VAR25; GHWYH:=(CLOSE/REF(CLOSE,1) 1.04 AND (CLOSE 10.8 AND CLOSE 10.83 OR CLOSE 6.86 AND CLOSE 6.88 OR CLOSE 13.82 AND CLOSE 13.84 OR CLOSE 7.28 AND CLOSE 7.3 OR CLOSE 12.4 AND CLOSE 12.42 OR CLOSE 22.33 AND CLOSE 22.35 OR CLOSE 4.68 AND CLOSE 4.7 OR CLOSE 26.29 AND CLOSE 26.31 OR CLOSE 7.65 AND CLOSE 7.67 OR CLOSE 13.4 AND CLOSE 13.42 OR CLOSE 7.58 AND CLOSE 7.6 OR CLOSE 20.43 AND CLOSE 20.45 OR CLOSE 19.57 AND CLOSE 19.59 OR CLOSE 6.26 AND CLOSE 6.28 OR CLOSE 7.14 AND CLOSE 7.16 OR CLOSE 6.61 AND CLOSE 6.63 OR CLOSE 11.9 AND 11.92 OR CLOSE 6.7 AND CLOSE 6.72 OR CLOSE 8.19 AND CLOSE 8.21)); DRAWTEXT(FILTER(绝对卖点 0,3),H,'别贪'),COLORWHITE; DRAWTEXT(GHWYH 0,L,'☆追涨'),COLORYELLOW ; DRAWICON(买点 0,L,4); DRAWTEXT(买点 0,L,'扫描神针'),COLORF00FF0; DRAWTEXT(VARF 0.7 AND VAR27 AND VAR25 0,L,'万元'),COLORYELLOW; STICKLINE(VAR2D 0,O,C,10,0), COLORRED; DRAWTEXT(VAR2D 0,L,'大方神针'),COLORRED; DRAWICON(COUNT(REF(VAR4,1) REF(VAR4,2),5)=5 AND VAR4 REF(VAR4,1),L*0.98,4); DRAWICON(FILTER(COUNT(VAR6 0,5)AND CROSS(VAR6,0)AND VARF REF(VARF,1)AND C O,3),L,1); DRAWICON(FILTER(REF(VAR4,1) REF(VAR4,2)AND VAR4 REF(VAR4,1)AND VARF 17 AND VAR1 VAR2,5),H,2); DRAWICON(阻力价 REF(阻力价,1)AND CROSS(阻力价,VAR3)AND C O,H*1.02,5); A1:=REF(C,1) REF(O,1) AND C O AND C REF(O,1) AND O =REF(C,1); 压力:MA(REF(HHV(C,30),1),2),COLORMAGENTA,LINETHICK2; 支撑:MA(REF(LLV(C,30),1),2),COLORLIGREEN,LINETHICK2; X1A:=30; X1B:HHV(C,X1A),COLORFF5500,LINETHICK3; X1C:=IF(ISLASTBAR,BARSLAST(C=CONST(X1B))+1,1/0); X1D:=IF(X1C=1,' 1',IF(X1C=2,' 2',IF(X1C=3,' 3',IF(X1C=4,' 4',IF(X1C=5,' 5', IF(X1C=6,' 6',IF(X1C=7,' 7',IF(X1C=8,' 8',IF(X1C=9,' 9',IF(X1C=10,' 10', IF(X1C=11,' 11',IF(X1C=12,' 12',IF(X1C=13,' 13',IF(X1C=14,' 14',IF(X1C=15,' 15', IF(X1C=16,' 16',IF(X1C=17,' 17',IF(X1C=18,' 18',IF(X1C=19,' 19',IF(X1C=20,' 20', IF(X1C=21,' 21',IF(X1C=22,' 22',IF(X1C=23,' 23',IF(X1C=24,' 24',IF(X1C=25,' 25', IF(X1C=26,' 26',IF(X1C=27,' 27',IF(X1C=28,' 28',IF(X1C=29,' 29',IF(X1C=30,' 30',' 0')))))))))))))))))))))))))))))); X1E:DRAWTEXT(ISLASTBAR,X1B,X1D),COLORRED; X2A:=30; X2B:LLV(C,X2A),COLORFF00FF,LINETHICK2; X2C:=IF(ISLASTBAR,BARSLAST(C=CONST(X2B))+1,1/0); X2D:=IF(X2C=1,' 1',IF(X2C=2,' 2',IF(X2C=3,' 3',IF(X2C=4,' 4',IF(X2C=5,' 5', IF(X2C=6,' 6',IF(X2C=7,' 7',IF(X2C=8,' 8',IF(X2C=9,' 9',IF(X2C=10,' 10', IF(X2C=11,' 11',IF(X2C=12,' 12',IF(X2C=13,' 13',IF(X2C=14,' 14',IF(X2C=15,' 15', IF(X2C=16,' 16',IF(X2C=17,' 17',IF(X2C=18,' 18',IF(X2C=19,' 19',IF(X2C=20,' 20', IF(X2C=21,' 21',IF(X2C=22,' 22',IF(X2C=23,' 23',IF(X2C=24,' 24',IF(X2C=25,' 25', IF(X2C=26,' 26',IF(X2C=27,' 27',IF(X2C=28,' 28',IF(X2C=29,' 29',IF(X2C=30,' 30',' 0')))))))))))))))))))))))))))))); X2E:DRAWTEXT(ISLASTBAR,X2B,X2D),COLORFF00FF; VAR1AA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5); VAR2AA:=VOL; 上升价格线:(SUM((VAR1AA)*(VAR2AA),8))/(SUM(VAR2AA,8)),COLOR0000FF; 下降价格线:LLV(上升价格线,8),COLOR00FF00; 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); DRAWTEXT(FILTER((VAR4AA 90),34),(LOW)*(0.94999998),'加仓'),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA 90),34),(LOW)*(0.99000001),'★'),COLOR00FFFF; A1AA:=9; A2AA:=(REF(CLOSE,A1AA+1) CLOSE); DRAWTEXT(FILTER((A2AA 0),34),(HIGH)*(1.02),''),COLORGREEN; VAR1:=REF(CLOSE,1); VAR2:=MA(CLOSE,5); VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100; VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100; VAR5:=SMA(MAX(CLOSE-VAR1,0),24,1)/SMA(ABS(CLOSE-VAR1),24,1)*100; VAR6:=IF(CROSS(VAR3,VAR5),LOW,REF(LOW,BARSLAST(CROSS(VAR3,VAR5)))); VAR7:=IF(CROSS(VAR5,VAR3),HIGH,REF(HIGH,BARSLAST(CROSS(VAR5,VAR3)))); VAR8:=IF(CLOSE =MA(CLOSE,20),80,50); VAR9:=IF(CLOSE =MA(CLOSE,20),50,20); VARA:=IF(VAR3 VAR8 AND REF(VAR3,1) =VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3 =VAR8 AND REF(VAR3,1) VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3 =VAR8 AND REF(VAR3,1) VAR8)-1),BARSLAST(VAR3 VAR8 AND REF(VAR3,1)))); VARB:=IF(HIGH VARA,LOW,REF(LOW,BARSLAST(HIGH VARA))); VARC:=IF(HIGH VARA,VAR3,REF(VAR3,BARSLAST(HIGH VARA))); VARD:=IF(HIGH VARB AND VAR3 VARC AND VAR3 VAR5,HIGH,REF(HIGH,BARSLAST(HIGH VARB AND VAR3 VARC AND VAR3 VAR5))); VARE:=IF(VAR3 VAR9 AND REF(VAR3,1) =VAR9,LLV(REF(LOW,1),BARSLAST(VAR3 =VAR9 AND REF(VAR3,1) VAR9)-1),REF(LLV(REF(LOW,1),BARSLAST(VAR3 =VAR9 AND REF(VAR3,1) VAR9)-1),BARSLAST(VAR3 VAR9 AND REF(VAR3,1)))); VARF:=IF(LOW VARE,HIGH,REF(HIGH,BARSLAST(LOW VARE))); VAR10:=IF(LOW VARE,VAR3,REF(VAR3,BARSLAST(LOW VARE))); VAR11:=IF(LOW VARF AND VAR3 VAR10 AND VAR3 VAR5,LOW,REF(LOW,BARSLAST(LOW VARF AND VAR3 VAR10 AND VAR3 VAR5))); 支撑线: VAR11,COLORFF00FF ,LINETHICK2 ; 压力线: VARD, COLORBLUE,LINETHICK2 ; DING:=MAX(O,C);{实顶} DI:=MIN(O,C);{实底} YANG:=(DI =REF(DING,1)) OR (C O AND NOT(DING =REF(DI,1))) OR (C REF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DING,1)=C);{阳线} YIN:=NOT(YANG); {YIN:=(C O AND NOT(DI =REF(DING,1))) OR (C O AND DING =REF(DI,1)) OR (C REF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DI,1)=C);{阴线}} YANGSHENG:YANG AND C =REF(DING,BARSLAST(YIN)) AND (V REF(V,BARSLAST(YIN)) OR (BETWEEN(V,REF(V,BARSLAST(YIN))*0.95,REF(V,BARSLAST(YIN))*1.05))),NODRAW; LIANGJIABI:V/C,NODRAW; MALIANGJIABI:MA(LIANGJIABI,3),NODRAW; LIANGJIABIXISHU:=1.5; BLZ:=V REF(V,1)*1.5; PLZ:=BETWEEN(V,REF(V,1)*0.95,REF(V,1)*1.05) OR BETWEEN(V,REFX(V,1)*0.95,REFX(V,1)*1.05) OR (BETWEEN(V,REF(V,2)*0.95,REF(V,2)*1.05) AND V REF(V,1)*1.2) OR (BETWEEN(V,REF(V,3)*0.95,REF(V,3)*1.05) AND V REF(MA(V,2),1)*1.2 AND V REF(HHV(V,2),1)) OR (BETWEEN(V,REF(V,4)*0.95,REF(V,4)*1.05) AND V REF(MA(V,3),1)*1.2 AND V REF(HHV(V,3),1)) OR (BETWEEN(V,REF(V,5)*0.95,REF(V,5)*1.05) AND V REF(MA(V,4),1)*1.2 AND V REF(HHV(V,4),1)) OR (BETWEEN(V,REF(V,6)*0.95,REF(V,6)*1.05) AND V REF(MA(V,5),1)*1.2 AND V REF(HHV(V,5),1)) OR (BETWEEN(V,REF(V,7)*0.95,REF(V,7)*1.05) AND V REF(MA(V,6),1)*1.2 AND V REF(HHV(V,6),1)) OR (BETWEEN(V,REF(V,8)*0.95,REF(V,8)*1.05) AND V REF(MA(V,7),1)*1.2 AND V REF(HHV(V,7),1)) OR (BETWEEN(V,REF(V,9)*0.95,REF(V,9)*1.05) AND V REF(MA(V,8),1)*1.2 AND V REF(HHV(V,8),1)) OR (BETWEEN(V,REF(V,10)*0.95,REF(V,10)*1.05) AND V REF(MA(V,9),1)*1.2 AND V REF(HHV(V,9),1)) OR (BETWEEN(V,REF(V,11)*0.95,REF(V,11)*1.05) AND V REF(MA(V,10),1)*1.2 AND V REF(HHV(V,10),1)) OR (BETWEEN(V,REF(V,12)*0.95,REF(V,12)*1.05) AND V REF(MA(V,11),1)*1.2 AND V REF(HHV(V,11),1)); GLZ:=V=HHV(V,3) AND V=REFX(HHV(V,3),2); TLZ:=(V*1.1 REFX(V,1) AND REFX(V,1)*1.1 REFX(V,2)) OR (V REF(V,1)*1.1 AND V*1.1 REFX(V,1)) OR (V REF(V,1)*1.1 AND REF(V,1) REF(V,2)*1.1); JSLS:=C =REFX(C,1) AND REFX(C,1) =REFX(C,2) AND LIANGJIABI REFX(LIANGJIABI,1) AND REFX(LIANGJIABI,1) REFX(LIANGJIABI,2); JZ:=BLZ OR GLZ OR PLZ OR TLZ,NODRAW; JJZ:=CURRBARSCOUNT =4 AND YANG AND (YANGSHENG) AND JZ AND REFX(LLV(DI,3),3) =DI AND (REFX(MA(LIANGJIABI,3),3) =LIANGJIABIXISHU*LIANGJIABI OR REFX(JSLS,1)) AND REFX(C,3) =DING,NODRAW; HJZ1:=JJZ AND REFX(MA(C,3),3) =DING AND REFX(MA(LIANGJIABI,3),3) =LIANGJIABI AND REFX(YANG,3); HJZ2:=YANG AND YANGSHENG AND JZ AND REFX(DI,1) =DI AND REFX(JJZ,2) AND REFX(C,2) DING AND REFX(LIANGJIABI,1) LIANGJIABI; HJZ3:=YANG AND YANGSHENG AND JZ AND REFX(LLV(DI,2),2) =DI AND REFX(JJZ,3) AND REFX(C,3) DING AND REFX(MA(LIANGJIABI,2),2) LIANGJIABI; HJZ4:=JJZ AND REFX(LLV(DI,3),3) =DING AND REFX(MA(LIANGJIABI,3),3) =LIANGJIABI AND REFX(YANG,3) AND (REFX(YANG,1) OR REFX(YANG,2)); WP:JJZ OR HJZ1 OR HJZ4 OR HJZ2 OR HJZ3,NODRAW; CONDJJZ:=JJZ AND REF(NOT(WP),1); CONDHJZ1:=(HJZ1 OR HJZ2 OR HJZ3) AND REF(NOT(WP),1); STICKLINE(CONDJJZ,C,O,1,0),COLORYELLOW; STICKLINE(CONDHJZ1,C,O,1,0),COLORMAGENTA; DRAWTEXT(HJZ4 AND REF(NOT(HJZ4),1),L*0.98,'H'),COLORRED; DRAWLINE(CONDJJZ,DING,REF(CONDJJZ,1),REF(DING,1),1),COLORBROWN; DRAWLINE(CONDJJZ,DI,REF(CONDJJZ,1),REF(DI,1),1),COLORBROWN; DRAWLINE(CONDHJZ1,DING,REF(CONDHJZ1,1),REF(DING,1),1),COLORBROWN; DRAWLINE(CONDHJZ1,DI,REF(CONDHJZ1,1),REF(DI,1),1),COLORBROWN; VOL5:=MA(VOL,5),COLORWHITE; VOL10:=MA(VOL,10),COLORYELLOW; VOL40:=MA(VOL,40),COLORFF00FF ; MA5:=MA(CLOSE,5),COLORWHITE; MA10:=MA(CLOSE,10),COLORYELLOW; MA20:=MA(CLOSE,20),COLORMAGENTA; MA60:=MA(CLOSE,60),COLORGREEN; MA120:=MA(CLOSE,120),COLORLIMAGENTA; MA240:=MA(CLOSE,240),COLORBLUE,NODRAW; 量托:=VOL5 =VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1) REF(VOL40,1); DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE; AA1:=BARSLAST(MA60 MA20 AND (MA20=MA10 OR MA20 MA10)); BB1:=REF(COUNT(C MA60,AA1)=AA1,1); CC1:=CROSS(C,MA60) AND VOL MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100 芙蓉出水:=BB AND CC1,COLOR00FF00; DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF; STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF; STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF; MA1:=MA(CLOSE,14); MA2:=MA(CLOSE,25); MA3:=MA(CLOSE,99); ZJ:=AMOUNT/10000;{} TM:=V-MA(V,10);{量填满} 一穿三:=MA1 O AND MA2 O AND MA3 O AND MA1 C AND MA2 C AND MA3 C AND CLOSE OPEN ; DRAWTEXT(一穿三,L-0.012,'穿'),COLORFF00FF; TY:=C; A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10); 前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT; STICKLINE(C,前期高位,前期高位,8,0),COLORRED; STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW) 0.667,H,C,0.8,0),COLORBLUE; 三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2)) =REF(L,3); 三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2)) REF(V,3)); 三日价涨A:=C =REF(C,1); 三日价涨B:=C REF(C,1); 三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2)) =REF(L,3); TIM:=IF(DATE 1140214,1,0); 缩倍柱:=(VOL*1.95 =REF(VOL,1))*TIM; 百日低量:=(VOL=LLV(VOL,100))*TIM; 倍量柱:=C REF(C,1)*1.04 AND (VOL =1.9*REF(VOL,1))*TIM; 四日前倍量柱:=(REF(VOL,3) 1.9*REF(VOL,4))*TIM; 四日前高量柱:=(REF(VOL,3) =REF(VOL,4) AND REF(VOL,3) 1.9*REF(VOL,4) AND 三日量缩)*TIM; 前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0; 倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 黄金柱:=倍量黄金柱 OR 高量黄金柱; 次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次黄金柱:=次倍量黄金柱 OR 次高量黄金柱; 准倍量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前倍量柱 AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3) =1 AND 三日不破)) AND 前三引用不成立; 准高量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前高量柱 AND (三日量缩 AND 三日价涨C) AND 前三引用不成立; 准黄金柱:=准倍量黄金柱 OR 准高量黄金柱; 倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 将军柱:=倍量将军柱 OR 高量将军柱; 次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次将军柱:=次倍量将军柱 OR 次高量将军柱; 准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立; 准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立; 准将军柱:=准倍量将军柱 OR 准高量将军柱; BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4); FILTER100:=FILTER(BACKSET100,3),NODRAW; BACKSET101:=BACKSET(黄金柱,4); FILTER101:=FILTER(BACKSET101,3); BACKSET102:=BACKSET(次黄金柱,4); FILTER102:=FILTER(BACKSET102,3); BACKSET103:=BACKSET(准黄金柱,4); FILTER103:=FILTER(BACKSET103,3); BACKSET104:=BACKSET(将军柱,4); FILTER104:=FILTER(BACKSET104,3); BACKSET105:=BACKSET(次将军柱,4); FILTER105:=FILTER(BACKSET105,3); BACKSET106:=BACKSET(准将军柱,4); FILTER106:=FILTER(BACKSET106,3); 黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) =REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) =MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2)) REF(L,3),LINETHICK0; 黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) =REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) =MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) REF(H,3); 黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3)); 黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2)); 黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2)); 黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2)); BACKSET201:=BACKSET(黄金线下影线,4); FILTER201:=FILTER(BACKSET201,3),NODRAW; BACKSET202:=BACKSET(黄金线实体下端,4); FILTER202:=FILTER(BACKSET202,3),NODRAW; BACKSET203:=BACKSET(黄金线上影线,4); FILTER203:=FILTER(BACKSET203,3),NODRAW; BACKSET204:=BACKSET(黄金线实体上端,4); FILTER204:=FILTER(BACKSET204,3),NODRAW; BACKSET205:=BACKSET(黄金线实体中间,4); FILTER205:=FILTER(BACKSET205,3),NODRAW; BACKSET2051:=BACKSET(黄金线实体中间1,4); FILTER2051:=FILTER(BACKSET2051,3),NODRAW; BACKSET2052:=BACKSET(黄金线实体中间2,4); FILTER2052:=FILTER(BACKSET2052,3),NODRAW; BACKSET2053:=BACKSET(黄金线实体中间3,4); FILTER2053:=FILTER(BACKSET2053,3),NODRAW; BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201)); BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER202)); BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203)); BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204)); BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER205)); BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2051)); BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052)); BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053)); 最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053); DAY1:=SUMBARS(FILTER100,1),NODRAW; HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NODRAW; HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW; HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NODRAW; HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW; HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1 2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW; HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1 3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW; HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1 4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW; 黄金线:HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NODRAW; 立桩量:=VOL=HHV(VOL,40) AND VOL 1.9*REF(VOL,1); 立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE REF(HIGH,3),1,0))); 立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3) =MIN(MIN(C,REF(C,1)),REF(C,2)); BACKSET300:=BACKSET(立桩量三日不破,4); BACKSET301:=BACKSET(立桩量三日突破,4); 立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量; DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLORRED; DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW; DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW; DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW; MMM:=1; Svol:=INTPART(SUM(V,0)/CAPITAL); TJ0:=SVOL REF(SVOL,1)ORBARSSINCE(CLOSE)=0; SF1:=BArslAst(TJ0)+1; TJJ2:=SF1 REF(SF1,1); S2:=IF(TJJ2,REF(SF1,1)+1,SF1); S3:=SUM(TJJ2,0); ZK1:="kd.K#WEEK"(9,3,3); ZD2:="KD.D#WEEK"(9,3,3); ZF1:=".DIF#WEEK"(5,34,5); ZA2:="MacD.DEA#WEEK"(5,34,5); 换手:=V/CAPITAL*100,LINETHICK0; JCD:=crOSS(ZK1,ZD2)ANDREF(ZD2,1) 低点:=EXIST(JCD,MMM),COLORYELLOW,NODRAW; STICKLINE(IF(波段低点,20,0),-4,0,2,0),COLORBROWN; {DRAWTEXT(波段低点,-4,'▲黑夜之眼'),COLORWHITE;} {金坑重叠要拉一波} VAR1A:=Dma(AMOUNT/VOL/100,VOL/CAPITAL); VAR4AA:=CLOSE/(REF(CLOSE,1)) 1.05AND(HIGH/CLOSE 1.01);{1.05;1.01} 游资进场:=(FILTER(VAR4AA 0,34)ANDDYNAINFO(4) 0)*8,COLORYELLOW;{34;4;8} A100:=5; {STICKLINE(XYSHSL 2.1ANDCYS13 5,53,86,5,0),COLOR000055;} STICKLINE(游资进场,10,18,2.4,0),COLORWHITE;{白色柱} DRAWTEXT(游资进场,18,'要拉一波'),COLORMAGENTA; {财神来敲门} LS:=C/REF(C,1) 1.048ANDC=HANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,6),2.1*FORCAST(V,6)); 拉升:=FILTER(LS,10); STICKLINE(拉升,0,16,1,0),COLORBROWN; DRAWICON(拉升,16.2,9); {DRAWTEXT(拉升,16,'▲财神来敲门'),COLORGREEN;{1.048;0.2;2.1} {跃上金坑.与主图k线配合使用。} A1J:=Abs(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,10))/EMA(CLOSE,10));{23} A2J:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1J); 金线王:=EMA(A2J,5)*1;{200} 金线王2:=EMA(A2J,200)*1.118;{200} 条件:=(C-REF(C,1))/REF(C,1)*100 金K线:=CROSS(C,金线王)AND条件; RRFJ:=金K线,STICK; STICKLINE(IF(RRFJ,20,0),+10,0,2,0),COLORYELLOW;{COLOR000088;} {DRAWTEXT(RRFJ,10,'▲金K迎财神'),COLORYELLOW;} {●主图出黄K底买} VAR11:=REF(LOW,1); VAR2H:=(SMA(ABS(LOW-VAR11),13,1))/(SMA(MAX(LOW-VAR11,0),13,1))*4; VAR3H:=EMA(VAR2H,13); VAR4H:=LLV(LOW,34); VAR5H:=EMA(IF(LOW =VAR4H,VAR3H,0),3); VAR6H:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1) +2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR7H:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1) +2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR8H:=VAR6H REF(VAR7H,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1); STICKLINE(VAR8HANDCOUNT(VAR8H,18)=1,0,6,4,0),COLORBROWN;{粉色住} {DRAWTEXT(VAR8HANDCOUNT(VAR8H,18)=1,6,'●金K底时买'),COLORRED;} T1R:=MA(MA(MA(EMA(CLOSE,1),2),2),2); TR1:=EMA((T1R-REF(T1R,1))/REF(T1R,1),1)*1000,COLORFF00FF,NODRAW; 净:=MA(TR1,11); 流:=EMA(净,11); 动向:=EMA(净+流,1)-MA(净-流,2),COLORFF00FF,NODRAW; MA1:=MA(主力动向,13),COLORFF00FF,NODRAW; MA3:=EMA(MA1,2); LC:=REF(CLOSE,1); :=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100); Vwr5:=C MAX(REF(C,1),REF(O,1))ANDC/MAX(REF(C,1),REF(O,1)) 1.02; VWR6:=REF(VWR5,1)ANDVWR5=0; DOWNQK1:=RSI VWR8:=VWR6ANDDOWNQK1; VWR9:FILTER(VWR8,10); {MACD低位附图;这个MACD不同于以往的MACD,它的柱状体会随着上攻动能增加变红色。 会随着上攻动能对敲出货,而柱状缩小变色,与正在拉升的K线动能呈反向走势,让点更清晰。} VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL); obv6:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); OBV7:=EMA(OBV6,3)-MA(OBV6,9); OBV8:=EMA(IF(OBV7 0,OBV7,0),3); MAC:=MA(C,3); RC:=DYNAINFO(3); AP:=VOL*C; BP:=SUM(AP,1)/SUM(VOL,1); B1:=EMA(BP,17); 资金:=(BP-B1)*100/BP; DIF:=EMA(资金,12)-EMA(资金,26),COLORGREEN; DEA:=EMA(DIF,9),COLORCYAN; MACD:=(DIF-DEA)*2,; STICKLINE(OBV8 REF(OBV8,1)ANDMAC REF(MAC,1),0,MACD,3,0),COLORRED; {持币:STICKLINE((SAR(10,2,20) =H),MACD,0,1.5,0),COLORGREEN; 持股:STICKLINE((sar(10,2,20) =L),0,MACD,1.5,0),COLORCYAN;} 吸:=XLPL.NOTEXT吸,COLORMAGENTA,CIRCLEDOT,LINETHICK3; 拉:=XLPL.NOTEXT拉,COLORRED,CIRCLEDOT,LINETHICK3; 派:=XLPL.NOTEXT派,COLORGREEN,CIRCLEDOT,LINETHICK3; 落:=XLPL.NOTEXT落,COLORWHITE,CIRCLEDOT,LINETHICK3; STICKLINE(吸,0,MACD,4,0),COLORYELLOW; STICKLINE(拉,0,MACD,4,0),COLORMAGENTA; {STICKLINE(派,0,MACD,10,1),COLORGRAY; STICKLINE(落,0,MACD,10,1),COLORGRAY;}; {零轴下红色资金活跃块。属于左侧信号,用于研判右侧交易是否确立信号} DIFZ:=EMA(CLOSE,12)-EMA(CLOSE,26); DEAZ:=EMA(DIFZ,9); MACD6:=(DIFZ-DEAZ)*2,COLORSTICK; 主力进驻:=COUNT(MACD6 0,10)=10,COLORRED,NODRAW; {STICKLINE(主力进驻,0,MACD6*1,10,0),COLORRED;} {MACD低位金叉附图;这个MACD不同于以往的MACD,它的柱状体会随着上攻动能增加变色。 会随着上攻动能对敲出货,而柱状缩小变色,与正在拉升的K线动能呈反向走势,让买卖点更清晰。} VA1:=IF(CLOSE REF(CLOSE,1),VOL,-VOL); OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA1),0); OBV2:=EMA(OBV1,3)-MA(OBV1,9); OBV3:=EMA(IF(OBV2 0,OBV2,0),3); MAC3:=MA(C,3); RCC:=DYNAINFO(3); AP3:=VOL*C; BP3:=SUM(AP3,1)/SUM(VOL,1); B13:=EMA(BP3,17); 资金1:=(BP3-B13)*100/BP3; DIF3:=EMA(资金1,12)-EMA(资金1,26),COLORGREEN; DEA3:=EMA(DIF3,9),COLORCYAN; MACD1:=(DIF3-DEA3)*2,; STICKLINE(OBV3 REF(OBV3,1)ANDMAC3 REF(MAC3,1),0,MACD,2,0),COLORMAGENTA; 持币1:STICKLINE((SAR(10,2,20) =H),MACD1,0,1.5,0),COLORGREEN; 持股1:STICKLINE((SAR(10,2,20) =L),0,MACD1,1.5,0),COLORCYAN; 吸1:=XLPL.NOTEXT吸,COLORMAGENTA,CIRCLEDOT,LINETHICK3; 拉1:=XLPL.NOTEXT拉,COLORMAGENTA,CIRCLEDOT,LINETHICK3; 派1:=XLPL.NOTEXT派,COLORGREEN,CIRCLEDOT,LINETHICK3; 落1:=XLPL.NOTEXT落,COLORWHITE,CIRCLEDOT,LINETHICK3; STICKLINE(吸1,0,MACD1,2,0),COLORMAGENTA; STICKLINE(拉1,0,MACD1,2,0),COLORMAGENTA; STICKLINE(派1,0,MACD1,3,0),COLORGREEN; STICKLINE(落1,0,MACD1,2,0),COLORBLUE; {▲主图有金坑吸筹,无金坑放弃。} LCF:=REF(CLOSE,1); RSI5:=((SMA(MAX((CLOSE-LCF),0),5,1)/SMA(ABS((CLOSE-LCF)),5,1))*100); TR1F:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10); HD:=(HIGH-REF(HIGH,1)); LD:=(REF(LOW,1)-LOW); DMP:=SUM(IF(((HD 0)AND(HD LD)),HD,0),10); DMM:=SUM(IF(((LD 0)AND(LD HD)),LD,0),10); pdi:=((DMP*100)/TR1F); mdi:=((DMM*100)/TR1F); ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5); AV:=(RSI5+ADX); DXR:=(((ADX+REF(ADX,5))/2)+RSI5); WR10:=((100*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60)));{10} NEWVOL:=(RSI5-WR10); 金坑买入:=(AV+NEWVOL); 买入:=IF(CROSS(金坑买入,0),1,0),STICK,COLORRED;{NODRAW} VAR1Z:=SMA(买入选股,8,1);{3} VAR2Z:=SMA(VAR1Z,8,1),COLOR0000FF;{3} VAR3Z:=SMA(VAR2Z,10,1),COLOR00FFFF;{3} 金坑吸筹:=IF(CROSS(VAR2Z,VAR3Z)AND(VAR2Z 40),5,0*10000),COLOR0000FF,LINETHICK1;{40} STICKLINE(金坑吸筹,0,8,1,0),COLORMAGENTA; DRAWTEXT(金坑吸筹 0,8,'▲主图有金坑吸筹'),COLORLIRED; MACD2:=(DIF-DEA)*2,; STICKLINE(OBV3 REF(OBV3,1)ANDMAC3 REF(MAC3,1),0,MACD2,3,0),COLORYELLOW; 持币2:STICKLINE((SAR(10,2,20) =H),MACD2,0,1.5,0),COLORGREEN; 持股2:STICKLINE((SAR(10,2,20) =L),0,MACD2,1.5,0),COLORCYAN; 吸2:=XLPL.NOTEXT吸,COLORMAGENTA,CIRCLEDOT,LINETHICK3; 拉2:=XLPL.NOTEXT拉,COLORMAGENTA,CIRCLEDOT,LINETHICK3; 派2:=XLPL.NOTEXT派,COLORGREEN,CIRCLEDOT,LINETHICK3; 落2:=XLPL.NOTEXT落,COLORWHITE,CIRCLEDOT,LINETHICK3; STICKLINE(吸2,0,MACD2,1.2,0),COLORMAGENTA; STICKLINE(拉2,0,MACD2,1.7,0),COLORMAGENTA; STICKLINE(派2,0,MACD2,2,0),COLORBLUE; STICKLINE(落2,0,MACD2,1,1),COLORGRAY; {开始控盘黄箭头} VAR1:=EMA(EMA(CLOSE,9),9); 控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*350; {STICKLINE(控盘 0,控盘,0,1,0),COLORWHITE;} A10:=CROSS(控盘,0); 无庄控盘:=IF(控盘 0,控盘,0),COLORWHITE,NODRAW; {开始控盘:IF(A10,5,0),LINETHICK3,COLORYELLOW;{移至最下方} STICKLINE(控盘 REF(控盘,1)AND控盘 0,控盘,0,1,0),COLORRED; 有庄控盘:IF(控盘 REF(控盘,1)AND控盘 0,控盘,0),COLORRED,NODRAW; VAR2F:=100*WINNER(CLOSE*0.95); STICKLINE(控盘 REF(控盘,1)AND控盘 0,控盘,0,1,0),COLOR00FF00;{绿}; {STICKLINE(游资进场,10,18,1,0),COLORWHITE;{白色柱} DRAWTEXT(游资进场,18,'要拉一波'),COLORMAGENTA; DRAWTEXT(拉升,16,'▲财神来敲门'),COLORYELLOW;{1.048;0.2;2.1} DRAWTEXT(RRFJ,10.5,'▲金K迎财神'),COLORYELLOW; DRAWTEXT(VAR8HANDCOUNT(VAR8H,18)=1,6,'●金K底时买'),COLORWHITE; DRAWTEXT(波段低点,-4,'▲黑夜之眼'),COLORWHITE; {成交放量} AA:=VOL; BB:=REF(MA(VOL,5),1);{5} CC:=AA/BB; A1:=CC =0.001ANDCC A2:=CC =0.5ANDCC A3:=CC =0.8ANDCC A4:=CC =1.5ANDCC {2.5} A5:=CC =2.5ANDCC A6:=CC =5.0ANDCC 10.0; A7:=CC =10.0ANDCC 20.0; 关注线:1.5,COLORFFFFFF,LINETHICK1; 温和放量:=A4,STICK,COLOR00CCFF; STICKLINE(A5,0,CC,2,0),COLORBLUE; 明显放量:A5,STICK,COLORLIBLUE; DRAWTEXT(明显放量,3.5,'▲中量'),COLORWHITE; XG:STICKLINE(A6,0,CC,1.2,0),COLORBLUE; DRAWTEXT(XG,7,'▲成交大量'),COLORCYAN; 放量线:2.5,COLORRED,LINETHICK2; 今日:VOL/REF(MA(VOL,5),1),COLORFFFFFF,NODRAW; DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26); DEA1:=EMA(DIF1,9); AAA1:=(DIF1-DEA1)*2*60;{60} XP1:=10;{10} XP2:=AAA1-REF(AAA1,1); 底部家族:CROSS(XP2,XP1),COLORWHITE,LINETHICK2;


    公式解读:

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信突破底部箱体指标公式源码分享 加入收藏