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

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

    通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、通达信隔日涨停指标公式 N:=1; 日K:KDJ.K,COLORWHITE; 日D:KDJ.D,COLORYELLOW; 日J:KDJ.J,COLORMAGENTA; 周K:=KDJ.K#WEEK,NODRAW; 周D:=KDJ.D#WEEK,NODRAW; 周J:=KDJ.J#WEEK,NODRAW; 日金叉:=CROSS(日K,日D)AND(日D 40OR日D  周金叉:=CROSS(周K,周D)AND(周D 40OR周D  共振:=(周金叉AND日金叉); STICKLINE(共振,-30,100,3,0),COLORLIRED; DRAWTEXT((周金叉AND日金叉),-5, 日周共振 ),COLORYELLOW; DRAWTEXT((周金叉AND日金叉),5, KDJ ),COLORYELLOW; DRAWICON((周金叉AND日金叉),-5,5); STICKLINE(日K =日D,-15,-10,3,0),COLORLIRED; STICKLINE(日K 日D,-15,-10,3,0),COLORLIBLUE; STICKLINE(周K =周D,-20,-25,3,0),COLORLIRED; STICKLINE(周K 周D,-20,-25,3,0),COLORLIBLUE; DRAWTEXT(ISLASTBAR,-12, __日KDJ ),COLORWHITE; DRAWTEXT(ISLASTBAR,-22, __周KDJ ),COLORWHITE; {RSI彩条} LC1:=REF(CLOSE,1); RSI11:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100,NODRAW; RSI22:=SMA(MAX(CLOSE-LC1,0),12,1)/SMA(ABS(CLOSE-LC1),12,1)*100,NODRAW; DRAWBAND(RSI11,RGB(150,0,0),RSI22,RGB(0,0,150)); RSI1:SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100,COLOR000096; RSI2:SMA(MAX(CLOSE-LC1,0),12,1)/SMA(ABS(CLOSE-LC1),12,1)*100,COLOR000096; IF(RSI1 RSI2,DRAWNULL,RSI1),COLOR960000; IF(RSI1 RSI2,DRAWNULL,RSI2),COLOR960000; {KDJ底背离和顶背离} A2:=BARSLAST(REF(CROSS( KDJ.K (9,3,3), KDJ.D (9,3,3)),1)); B2:=REF(C,A2+1) CANDREF( KDJ.K (9,3,3),A2+1) KDJ.K (9,3,3)ANDCROSS( KDJ.K (9,3,3), KDJ.D (9,3,3));{KDJ底背} C2:=BARSLAST(REF(CROSS( KDJ.D (9,3,3), KDJ.K (9,3,3)),1)); D2:=REF(C,C2+1) CANDREF( KDJ.K (9,3,3),C2+1) KDJ.K (9,3,3)ANDCROSS( KDJ.D (9,3,3), KDJ.K (9,3,3));{KDJ顶背} DRAWICON((B2 0),日J,1); DRAWTEXT((B2 0),日J, KDJ底背 ),COLORWHITE; DRAWICON((D2 0),日J,2); DRAWTEXT((D2 0),日J, KDJ顶背 ),COLORGREEN; {RSI底背离和顶背离} A3:=BARSLAST(REF(CROSS( RSI.RSI1 (6,12,24), RSI.RSI2 (6,12,24)),1)); B3:=REF(C,A3+1) CANDREF( RSI.RSI1 (6,12,24),A3+1) RSI.RSI1 (6,12,24)ANDCROSS ( RSI.RSI1 (6,12,24), RSI.RSI2 (6,12,24)); C3:=BARSLAST(REF(CROSS( RSI.RSI2 (6,12,24), RSI.RSI1 (6,12,24)),1)); D3:=REF(C,C3+1) CANDREF( RSI.RSI1 (6,12,24),C3+1) RSI.RSI1 (6,12,24)ANDCROSS ( RSI.RSI2 (6,12,24), RSI.RSI1 (6,12,24)); DRAWICON((D3 0),95,2); DRAWTEXT((D3 0),95, RSI顶背 ),COLORCYAN; DRAWICON((B3 0),20,1); DRAWTEXT((B3 0),20, RSI底背 ),COLORRED; {传统KDJ} RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,3,1),COLORWHITE,LINETHICK1; D:SMA(K,3,1),COLORYELLOW,LINETHICK1; J:3*K-2*D,COLORMAGENTA,LINETHICK1; IF1:IF(J 10,J,DRAWNULL),COLORRED,LINETHICK2; IF2:IF(J =80,J,DRAWNULL),COLORFF0080,LINETHICK2; DRAWTEXT(ISLASTBAR,K, ←K ),COLORWHITE; DRAWTEXT(ISLASTBAR,D, ←D ),COLORYELLOW; DRAWTEXT(ISLASTBAR,J, ←J ),COLORMAGENTA; {VAR444:=C; 操作:=MA(VAR444,4); 生命线:HHV(操作,13),LINETHICK2,COLORYELLOW;收盘破此线短逃} 愚公:=IF(1 10,HIGH*1.03,DRAWNULL),POINTDOT,LINETHICK9,COLORYELLOW; 买线:=EMA(C,5); 卖线:=EMA(SLOPE(C,20)*10+C,35); DRAWICON(CROSS(买线,卖线),LOW*0.98,7); DRAWICON(CROSS(卖线,买线),HIGH*1.02,8); STICKLINE(买线 =卖线,LOW,HIGH,0,0),COLORLIRED; STICKLINE(买线 =卖线,CLOSE,OPEN,3,2),COLORLIRED; STICKLINE(买线 卖线,LOW,HIGH,0,0),COLORCYAN; STICKLINE(买线 卖线,CLOSE,OPEN,3,2),COLORCYAN; STICKLINE(OPEN CLOSE,CLOSE,OPEN,2.5,0),COLORCYAN; MA7:EMA(CLOSE,7),COLORFFFFFF,LINETHICK2; MID:MA(CLOSE,20),COLORYELLOW; UPPER:MID+2*STD(CLOSE,20),COLORRED,DOTLINE; LOWER:MID-2*STD(CLOSE,20),COLORGREEN,DOTLINE; 选股公式: MA7:=EMA(CLOSE,7); MID:=MA(CLOSE,20); CROSS(MA7,MID); HS:=VOL/CAPITAL*100; TJ1:=HS TJ2:=HS TJ3:=HS TJ4:=HS  TJ5:=HS TJ6:=HS TJ7:=HS TJ8:=HS  换手率:VOL/CAPITAL*100,NODRAW,COLORFFFF00; 量:VOL,VOLSTICK,COLORFFFF00; 盘=亿:FINANCE(7)/100000000,LINETHICK0,COLORWHITE; 每股收益:FINANCE(33),LINETHICK0,COLORYELLOW; 公积金:FINANCE(18),LINETHICK0,COLORWHITE; 市盈率:DYNAINFO(39),LINETHICK0,COLORWHITE; 地量0__1:0,COLORFFFFFF; 低靡1__2:0,COLORFFFF00; 温和2__3:0,COLOR208FFF; 活跃3__5:0,COLOR00FFFF; 带量5__8:0,COLORFF00FF; 放量8__15:0,COLOR00FF00; 巨量15__25:0,COLORFF5500; STICKLINE(TJ1,0,V*0.3,2.3,0),COLORFFFFFF; STICKLINE(TJ3,V,V*0.5,2.3,0),COLOR208FFF; STICKLINE(TJ4,V,V*0.5,2.3,0),COLOR00FFFF; STICKLINE(TJ5,V,V*0.5,2.3,0),COLORFF00FF; STICKLINE(TJ6,V,V*0.5,2.3,0),COLOR00FF00; STICKLINE(TJ7,V,V*0.5,2.3,0),COLORFF2900; STICKLINE(TJ8,V,V*0.5,2.3,0),COLORFF0000; 五:MA(VOL,5),COLORWHITE,LINETHICK1; 十:MA(VOL,10),COLOR00FFFF,LINETHICK1; M1:=5; M2:=10; VVOL:IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,VVOL,0,(-1),(-1)),COLOR00C0C0; VOLUME:VOL,VOLSTICK; MAVOL1:MA(VOLUME,M1); MAVOL2:MA(VOLUME,M2); X_1:=1*AMOUNT; X_2:=1*MA(AMOUNT,5); X_3:=1*MA(AMOUNT,10); X_4:=HHV(X_1,30)=X_1; X_5:=HHV(X_1,60)=X_1; X_6:=HHV(X_1,100)=X_1; X_7:=HHV(X_1,250)=X_1; STICKLINE(X_4,VOLUME,VOLUME*0.7,1,0),COLORMAGENTA; STICKLINE(X_5,VOLUME,VOLUME*0.7,1,0),COLORYELLOW; STICKLINE(X_6,VOLUME,VOLUME*0.7,1,0),COLORGREEN; STICKLINE(X_7,VOLUME,VOLUME*0.7,1,0),COLORFF7100; X_8:=LLV(X_1,30)=X_1; X_9:=LLV(X_1,60)=X_1; X_10:=LLV(X_1,100)=X_1; X_11:=LLV(X_1,250)=X_1; STICKLINE(X_8,(-50000),0,1,0),COLORMAGENTA; STICKLINE(X_9,(-50000),0,1,0),COLORYELLOW; STICKLINE(X_10,(-50000),0,1,0),COLORGREEN; STICKLINE(X_11,(-50000),0,1,0),COLORFF7100; IF(CROSS(0.9,1/VOL*1000 0.01ANDKDJ.J 0),VOLUME*5,0),COLORYELLOW,LINETHICK2; MAVOL5:MA(VOLUME,5),LINETHICK3,COLORWHITE; 资金异动135:MA(VOLUME,135),LINETHICK4,COLORBLUE; DRAWICON(CROSS(REF(ZIG(3,6),1),ZIG(3,6)),HIGH*0.09,9);二、通达信连续两天涨停公式 {DYNAINFO(3)动态行情:昨日收盘价是不是未来自己看} DRAWBAND(DYNAINFO(3)+2*(SMA(C,3,1)-SMA(C,5,1)),RGB(85,66,66),DYNAINFO (3),RGB(66,85,66)); STICKLINE(C REF(C,1),L,H,0.5,0),COLOR000000; STICKLINE(C REF(C,1),L,H,0.3,0),COLOR0000FF; STICKLINE(C REF(C,1),L,H,0.1,0),COLORCC66FF; STICKLINE(C REF(C,1),O,C,3.5,0),COLOR000000; STICKLINE(C REF(C,1),O,C,3.3,0),COLOR000033; STICKLINE(C REF(C,1),O,C,3,0),COLOR000066; STICKLINE(C REF(C,1),O,C,2.6,0),COLOR000099; STICKLINE(C REF(C,1),O,C,2.1,0),COLOR0000CC; STICKLINE(C REF(C,1),O,C,1.5,0),COLOR0000FF; STICKLINE(C REF(C,1),O,C,0.9,0),COLORCC66FF; STICKLINE(C REF(C,1),O,C,0.3,0),COLORFFBBFF; STICKLINE(C=REF(C,1),L,H,0.5,0),COLOR000000; STICKLINE(C=REF(C,1),L,H,0.3,0),COLORBBBBBB; STICKLINE(C=REF(C,1),L,H,0.1,0),COLORFFFFFF; STICKLINE(C=REF(C,1),O,C,3.5,0),COLOR111111; STICKLINE(C=REF(C,1),O,C,3.3,0),COLOR333333; STICKLINE(C=REF(C,1),O,C,3,0),COLOR555555; STICKLINE(C=REF(C,1),O,C,2.6,0),COLOR777777; STICKLINE(C=REF(C,1),O,C,2.1,0),COLOR999999; STICKLINE(C=REF(C,1),O,C,1.5,0),COLORBBBBBB; STICKLINE(C=REF(C,1),O,C,0.9,0),COLORDDDDDD; STICKLINE(C=REF(C,1),O,C,0.3,0),COLORFFFFFF; STICKLINE(C REF(C,1),L,H,0.5,0),COLOR000000; STICKLINE(C REF(C,1),L,H,0.3,0),COLORFF6600; STICKLINE(C REF(C,1),L,H,0.1,0),COLORFFCC00; STICKLINE(C REF(C,1),O,C,3.5,0),COLOR000000; STICKLINE(C REF(C,1),O,C,3.3,0),COLOR550000; STICKLINE(C REF(C,1),O,C,3,0),COLOR990000; STICKLINE(C REF(C,1),O,C,2.6,0),COLORFF0000; STICKLINE(C REF(C,1),O,C,2.1,0),COLORFF5500; STICKLINE(C REF(C,1),O,C,1.5,0),COLORFF8800; STICKLINE(C REF(C,1),O,C,0.9,0),COLORFFCC00; STICKLINE(C REF(C,1),O,C,0.3,0),COLORFFFF33; 九日回归预测价:FORCAST(C,9)COLOR0000FF,LINETHICK2;{不愿看长标题可换 成X9} 九日回归2日最低:LLV(FORCAST(C,9),2)COLOR00FF00,LINETHICK2;{不愿看长 标题可换成LLX} DRAWTEXT(C/REF(C,1) 1.099,L*0.96, 涨停  DRAWICON(C/REF(C,1) 1.099,L*0.96,1); DRAWTEXT(REF(C,1)/C 1.099,H*1.04, 跌停  DRAWICON(REF(C,1)/C 1.099,H*1.04,2); A:=(C*2+H+L)/4*10; A1:=EMA(A,13)-EMA(A,34); A2:=EMA(A1,5); A3:=2*(A1-A2)*5.5; A4:=IF(A3 =0,A3,0); A5:=A4 REF(A4,1)ANDREF(A3 0,1); A6:=REF(A4,1) =REF(A4,2)ANDA4 REF(A4,1); A7:=C/REF(C,1) 1.07; A5ORA6ANDA7; MA5:=MA(C,5); MA10:=MA(C,10); MA30:=MA(C,30); MA60:=MA(C,60); A:=(MA60-REF(MA60,5))*100 {MA60上拐幅度大于1%} B:=REF(C,1)MA60ANDC/REF(C,1) 0.99; {昨天在MA60下,今天在MA60上,且涨停} D:=MA5 MA10ANDMA10 MA30ANDMA30 MA60; {MA5、MA10、MA30、MA60多头排列} 穿季线涨停:AANDB,DRAWTEXT_FIX(ISLASTBAR,0,0,0,GNBLOCK); 多头季涨停:BANDD,DRAWTEXT_FIX(ISLASTBAR,0,0,0,GNBLOCK); 季上涨停:AANDBANDD,DRAWTEXT_FIX(ISLASTBAR,0,0,0,GNBLOCK); 涨幅:=(H-REF(C,1))/(REF(C,1))*100; 跌幅:=(-(REF(C,1)-L)/(REF(C,1)))*100,LINETHICK0; 振幅:=涨幅+(-跌幅); 真实振幅:=(REF(振幅,1))-(REF(振幅,2))+(REF(振幅,1)),COLORRED; 真实涨跌幅:(ref(c,1)-c)/ref(c,1)*-100,LINETHICK0; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D,LINETHICK0; 明天可能涨停:if(ref(o c,1){and跌幅 =-4.2andref(跌幅,1) -3.5}and真实振幅 13 and振幅 =5and振幅 ref(振幅,1)andj 20,5,0)COLORMAGENTA; N1:=7; N2:=75; N3:=75; LC:=REF(CLOSE,1); RSI$1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; RSI$2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100; RSI$3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100; a:20; d:80; STICKLINE(C =REF(C,1)*1.095ANDC=H,C,O,2,0),COLOR00FFFF; DRAWTEXT(C =REF(C,1)*1.095ANDC=H,C*0.97, △ ),COLORFF00FF; VAR3:=LLV(HIGH,240); VAR4:=100*(CLOSE-VAR3)/VAR3; VAR5:=REF(LLV(CLOSE,480),1); VAR6:=REF(HHV(CLOSE,480),1); VAR7:=100*(CLOSE-VAR5)/(VAR6-VAR5); VAR8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VAR9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100; VARA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; VARB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; VARC:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4; VARD:=IF(VARC 23.16,VARC,0); VARE:=VARC  VARF:=VARD; VAR10:=VAR4 0ANDVAR7  VAR12:=(HIGH+LOW+CLOSE*2)/4; VAR13:=EMA(VAR12,21); VAR14:=STD(VAR12,21); VAR15:=((VAR12-VAR13)/VAR14*100+200)/4; VAR16:=(EMA(VAR15,89)-25)*1.56; VAR17:=EMA(VAR16,5)*1.22; VAR18:=EMA(VAR17,3); VAR19:=3*VAR17-2*VAR18; VAR1A:=IF(CROSS(VAR19,VAR17)ANDCROSS(VAR19,VAR18)ANDCROSS(VAR17,VAR18),1,0); VAR1B:=IF(CROSS(VAR17,VAR19)ANDCROSS(VAR18,VAR19)ANDCROSS(VAR18,VAR17),1,0); 买点:IF(FILTER(VAR8=0ANDVAREANDVAR10ANDVAR1A,5)=1,10,0); 卖点:IF(FILTER(VAR8=100ANDVARFANDVAR1B,5)=1,10,0); VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4; VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89); VAR1E:=EMA(VAR1D,30); VAR1F:=2*(VAR1D-VAR1E)*10; VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2); VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); VAR22:=EMA(VAR21*0.97,3); VAR23:=(HIGH+LOW+CLOSE)/3; VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14)); VAR25:=IF(VAR1F 0.015,VAR20,0)/45; 拉升资金:VAR25,colorred; VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150); VAR27:=EMA(VAR26,100); VAR28:=2*(VAR26-VAR27); VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1); VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); VAR2B:=EMA(VAR2A*0.97,3); VAR2C:=(HIGH+LOW+CLOSE)/3; VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14)); 主力资金:=IF(VAR28 0.1,VAR29,0)*5;[源码注释]通达信公式动态公式解读输出DIF:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均,COLOR00FFFF输出DEA:DIF的9日指数移动平均,画白色,NODRAW,线宽为2输出平滑异同平均:2*(DIF-DEA),画红色,NODRAW输出DEA1:DIF的9日指数移动平均,画白色,线宽为5DIF,如果DEA1,返回DIF,否则返回无效数,COLOR00FFFF,线宽为5如果DIF 1日前的DIF,返回DIF,否则返回无效数,画蓝色,线宽为5如果DIF 1日前的DIF,返回DIF,否则返回无效数,画红色,线宽为5推荐阅读:通达信明天涨停指标公式 {筹码成本} 五十成本集中:=(COST(75)-COST(25))/(COST(75)+COST(25))*100; 成本价1:COST(五十成本集中),COLORGREEN; 五十成本集中1:=100-五十成本集中; 成本价2:COST(五十成本集中1),COLORBLUE; 底部:=(COST(95)-COST(5))/(COST(95)+COST(5))*100; 底部成本价:COST(底部),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=1AND底部成本价,底部成本价,底部成本价),COLORYELLOW; 顶部:=100-底部; 顶部成本价:COST(顶部),COLORGREEN; DRAWNUMBER(CURRBARSCOUNT=1AND顶部成本价,顶部成本价,顶部成本价),COLORWHITE; 均值:=(底部+顶部)/2; 均值成本:COST(均值),COLORLICYAN,LINETHICK3; DRAWBAND(顶部成本价,RGB(68,0,1),均值成本,RGB(68,0,1)); DRAWBAND(均值成本,RGB(3,43,63),底部成本价,RGB(3,43,63)); DRAWKLINE(H,O,L,C); DRAWNUMBER(CURRBARSCOUNT=1AND均值成本,均值成本,均值成本),COLORLIGREEN; 底部突破1:=REF(成本价1,2) REF(成本价1,1)AND成本价1 REF(成本价1,1); DRAWTEXT(底部突破1,L*0.99, 大底 ),COLORCYAN; 顶部突破3:=REF(成本价2,2) REF(成本价2,1)AND成本价2 REF(成本价2,1); 顶部突破4:=REF(成本价2,2)=REF(成本价2,1)AND成本价2 REF(成本价2,1); DRAWTEXT(顶部突破3OR顶部突破4,L*0.99, 跃 ),COLORBROWN; 买点1:=REF(均值成本,2) REF(均值成本,1)AND均值成本 REF(均值成本,1); 买点2:=REF(均值成本,2)=REF(均值成本,1)AND均值成本 REF(均值成本,1); DRAWTEXT(买点1OR买点2ANDC O,L*0.99, 买 ),COLORMAGENTA; 底部突破:=REF(底部成本价,2) REF(底部成本价,1)AND底部成本价 REF(底部成本价,1); DRAWTEXT(底部突破,L*0.995, 底 ),COLORWHITE; 顶部突破:=REF(顶部成本价,2) REF(顶部成本价,1)AND顶部成本价 REF(顶部成本价,1); 顶部突破2:=REF(顶部成本价,2)=REF(顶部成本价,1)AND顶部成本价 REF(顶部成本价,1); 突破顶部:=CROSS(C,顶部成本价); 突破均值成本:=CROSS(C,均值成本); {涨幅} 涨幅:=(C-REF(C,1))/REF(C,1)*100  {压力线} TY:=C; HD1:=FILTER(BACKSET(FILTER(REF(TY,7)=HHV(TY,2*7+1),7),7+1),7); LD1:=FILTER(BACKSET(FILTER(REF(TY,3)=LLV(TY,2*7+1),7),7+1),7); A:=REF(C,BARSLAST(HD1)); B:=REF(C,BARSLAST(LD1)); T1:=BARSLAST(HD1) BARSLAST(LD1)ANDNOT(HD1); T2:=BARSLAST(HD1) BARSLAST(LD1)ANDNOT(LD1); 波浪顶:IF(T1,A,A),COLORFF00FF,DOTLINE; 突破:=CROSS(C,波浪顶); DF2:=(C-REF(C,1))/REF(C,1)*100  DF3:=(C-O)/O*100  当天涨幅:(C-O)/O*100,NODRAW; V型反转:=L 底部成本价ANDDF2; V型反转2:=CROSS(C,底部成本价)ANDDF2; V型反转3:=L 底部成本价ANDDF3; 成立:=V型反转ORV型反转2ORV型反转3; STICKLINE(成立,HIGH,LOW,0,1),COLORRED; STICKLINE(成立,OPEN,CLOSE,3,0),COLOR000055; STICKLINE(成立,OPEN,CLOSE,2.7,0),COLOR000077; STICKLINE(成立,OPEN,CLOSE,2.1,0),COLOR000099; STICKLINE(成立,OPEN,CLOSE,1.5,0),COLOR0000BB; STICKLINE(成立,OPEN,CLOSE,0.9,0),COLOR0000DD; STICKLINE(成立,OPEN,CLOSE,0.3,0),COLOR0000FF; STICKLINE(成立,O,C,0,1),COLORMAGENTA; DRAWTEXT(成立,L*0.99, ↖狙击 ),COLOR00FFFF; DF:=(C-REF(C,1))/REF(C,1)*100  DF4:=(C-O)/O*100  AA:=BARSLAST(DF); 突破箱体:=CROSS(C,REF(C,AA)); 箱顶:DRAWLINE(DF,O,REF(DF,1),REF(O,1),1),COLORMAGENTADOTLINE; 箱顶1:DRAWLINE(DF4,O,REF(DF4,1),REF(O,1),1),COLORYELLOWDOTLINE; 箱底:=LLV(MIN(L,REF(L,AA)),AA),COLORCYAN,LINETHICK2; 反转:=CROSS(C,箱顶)ANDREF(DF,1)=1; 反转1:=CROSS(C,箱顶1)ANDREF(DF4,1)=1; 白K:突破顶部AND涨幅ANDC=H; STICKLINE(白K,C,O,3.5,0),COLORWHITE; DRAWTEXT(白K,L*0.99, ↖白K ),COLORWHITE; 红K:突破均值成本AND涨幅ANDC=H; STICKLINE(红K,C,O,3.5,0),COLORRED; DRAWTEXT(红K,L*0.99, ↖红K ),COLORRED; 黄K:反转OR反转1AND涨幅ANDC=H; STICKLINE(黄K,C,O,3.5,0),COLORYELLOW; DRAWTEXT(黄K,L*0.99, ↖黄K ),COLORYELLOW; 粉K:=顶部突破3OR顶部突破4AND涨幅ANDC=H; STICKLINE(粉K,C,O,3.5,0),COLORLIRED; DRAWTEXT(粉K,L*0.99, ↖粉K ),COLORLIRED; 绿K:买点1OR买点2AND涨幅ANDC=H; STICKLINE(绿K,C,O,3.5,0),COLORGREEN; DRAWTEXT(绿K,L*0.99, ↖绿K ),COLORGREEN; A111:=COST(85); A222:=COST(15); A333:=A111-A222; A444:=(A111+A222)/2; DFMJ:=A333/A444*100 30,LINETHICK0; B1:=HHV(HIGH,250); B2:=LLV(LOW,250); BH3:=B1-B2; B4:=(A444-B2); DW:=A444 (BH3*04+B2),LINETHICK0; DWDF:=DWANDDFMJ; B5:=C/REF(C,1) 1.04ANDC=H; CMJZ:DWDFANDB4ANDWINNER(C) =0.95ANDB5; DRAWICON(CMJZ,LOW*0.99,27); DRAWTEXT_FIX(1,0,0.05,0, 1、☆白K:突破顶部 )COLORWHITE; DRAWTEXT_FIX(1,0,0.10,0, 2、☆红K:突破均值成本 )COLORRED; DRAWTEXT_FIX(1,0,0.15,0, 3、☆黄K:反转 )COLORYELLOW; DRAWTEXT_FIX(1,0,0.20,0, 4、☆粉K:=跃 )COLORLIRED; DRAWTEXT_FIX(1,0,0.25,0, 5、☆绿K:买 )COLORGREEN; N:=14; 计算:=REF(CLOSE,1)*0.865; 再计算:=REF(CLOSE,13)*0.772; 流通A:=100*VOL/CAPITAL; 明买:IF((CLOSE-MIN(计算,再计算))/CLOSE 0.1ANDSUM(流通A,5)/5 1.8,10,0), COLORRED; 0,COLORWHITE; 100,COLORWHITE; -100,COLORWHITE; TYP:=(HIGH+LOW+CLOSE)/3; 月:(TYP-MA(TYP,280))/(0.015*AVEDEV(TYP,280)),COLORYELLOW,LINETHICK2; 周:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),COLORGREEN,LINETHICK2; 日:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORWHITE,LINETHICK2; BB日:=日-REF(日,1); BB周:=周-REF(周,1); BB月:=月-REF(月,1); IF(BB日 =0,日,DRAWNULL),COLORRED,LINETHICK2; IF(BB周 =0,周,DRAWNULL),COLORMAGENTA,LINETHICK2; IF(BB月 =0,月,DRAWNULL),COLORRED,LINETHICK2; 上涨值:=MA((H+REF(L,1))/2,3); 买进高点:=MA((H+REF(H,1))/2,3); VAR1:=((H+L+C)/3)*2-L; 突破买入值:=MA(VAR1,3);{LSS轴点突破买入值} 下跌值:=MA((REF(H,1)+L)/2,3); 卖出低点:=MA((REF(L,1)+L)/2,3); VAR2:=((H+L+C)/3)*2-H; 突破卖出值:=MA(VAR2,3); 次日卖出点:(上涨值+买进高点+突破买入值+H)/4,LINETHICK0; 次日买入点:(下跌值+卖出低点+突破卖出值+L)/4,LINETHICK0; 日强弱指数:(C-L)/(H-L)*100; X:=HHV(H,5)-REF(O,5); Y:=C-LLV(L,5); Z:=(HHV(H,5)-LLV(L,5))*2; 摆荡指标:(X+Y)/Z*100; 看跌线:30; 50; 看涨线:70; DRAWTEXT(ISLASTBARAND(摆荡指标 =30),摆荡指标, LSS 30看跌 ),COLORGREEN; DRAWTEXT(ISLASTBARAND(日强弱指数 =50),日强弱指数, 日强弱指数数 50看跌 ),COLORLIGREEN; DRAWTEXT(ISLASTBARAND(摆荡指标 =70),摆荡指标, LSS 70看涨; ),COLORRED; DRAWTEXT(ISLASTBARAND(日强弱指数 =50),日强弱指数, 日强弱指数数 50看涨; ),COLORLIMAGENTA; {虚拟涨停K} KXZT:=IF(CURRBARSCOUNT=1ANDPERIOD=5ANDNOT(C 150)ANDC O,REF(CLOSE,1)*1.1,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,KXZT,MAX(OPEN,CLOSE),-1,-1),COLOR00C0C0; DRAWKLINE(HIGH,OPEN,LOW,CLOSE); {虚拟跌停K} KXDT:=IF(CURRBARSCOUNT=1ANDPERIOD=5ANDNOT(C 150)ANDC O,REF(CLOSE,1)*0.9,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,KXDT,MIN(OPEN,CLOSE),-1,-1),COLORLIBLUE; DRAWKLINE(HIGH,OPEN,LOW,CLOSE);每日公式解答:股票公式编写要求:净利润大于50万的选股公式。股票公式编写结果:XG:(FINVALUE(96)/10000)

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 指标资讯 加入收藏