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

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

    通达信公式源码概况:指标类别:通达信公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、通达信黑马选股公式 XWDVN:=LOW*0.9; DWSQZN:=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); SQZVNY:=XWDVN REF(DWSQZN,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1); 买点:SQZVNYANDCOUNT(SQZVNY,30)=1; DP:=(INDEXC-MA(INDEXC,30))/MA(INDEXC,30)*100; DRAWBAND(DP,RGB(150,20,20),0,RGB(10,150,20)); X30:(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100; X60:(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100; X90:(CLOSE-MA(CLOSE,90))/MA(CLOSE,90)*100; X120:(CLOSE-MA(CLOSE,120))/MA(CLOSE,120)*100; CL1:=CROSS(X90,0)ANDREF(CROSS(X60,0),1)ANDREF(CROSS(X30,0),2); CL2:=CROSS(X90,0)ANDCROSS(X60,0)ANDCROSS(X30,0); QD:=ABS(X30-X60) 1ANDABS(X60-X90) 1ANDABS(X90-X120) 1ANDABS(X120-X30) 1; DRAWICON(CL1ORCL2,5,19); DRAWICON(QD,-5,9); DRAWICON(X30 -16.8,0,1); DRAWICON(X30 16.8,0,2); 关注区:IF(X30 DPANDX30 0,-1.8,DRAWNULL),CIRCLEDOT,COLORFF00FF; 危险:=HHV(X30 20,10)ANDCROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,30)+2*STD(CLOSE,30)); DRAWTEXT(危险,X30+10, 危险 ),COLOR00FFFF; DRAWTEXT(FILTER(X30 -9ANDX30 REF(X30,1),18),X30-2, 短底 ),,COLOR0000FF; N:=5; N2:=13; M1:=11; SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100 100,100,(AMOUNT/C)/(HHV(AMOUNT,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); VAR1:=(C+H+O+L)/4; 卖出Q:=XMA(VAR1,20)*(1+80/1000),POINTDOT,COLORGREEN,LINETHICK3; 买入Q:=XMA(VAR1,32)*(1-100/1000),POINTDOT,COLORMAGENTA,LINETHICK3; 幅度:=100*(卖出Q-买入Q)/买入Q,NODRAW; 菩提:买入Q+(卖出Q-买入Q)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底}; 菩:HHV(菩提,2); 提:菩提-(菩-菩提); 般:=XMA(CLOSE,7); 若:=MEMA(CLOSE,3); 全绿K:LONGCROSS(若,般,3)ANDH 菩提; MA13:=MA(CLOSE,13); 趋势:EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4; STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORRED; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR000077; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR000099; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR0000AA; 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,0,1),COLORWHITE; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR777777; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR999999; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORAAAAAA; 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,0,1),COLORCYAN; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR990000; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLORCC0000; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORFF4400; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORFF8800; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORFFCC00; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORCYAN; 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),COLOR00FF00; 支撑:MA(REF(LLV(C,30),1),2),COLOR0000FF; AA1:=AMOUNT/V;BB1:=L AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100 1.2;DD1:=L MA(C,5)*0.921;EE1:=V MA(V,5)*1.5; FF1:=BB1ANDCC1ANDDD1ANDEE1;DRAWTEXT(FF1,(LOW*0.99), 鼠 ),COLOR4080FF; A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(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; FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21); {DRAWTEXT(CROSS(FF,MA15),(LOW*0.99), 底背 ),COLORFF00FF;} STICKLINE(CROSS(FF,MA15),O,C,0.3,0),COLOR00FFFF; {DRAWTEXT(CROSS(88,RSI),(HIGH*1.02), 顶背 ),COLOR00FF00;} STICKLINE(CROSS(88,RSI),O,C,0.3,0),COLOR113311; 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, B ),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, 拉 ),COLOR0000FF; GET:ZIG(3,N),COLORYELLOW; PL5:=ZIG(3,5); EN1:=ZIG(3,5) REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1) =REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2) =REF(ZIG(3,5),3); EX1:=ZIG(3,5) REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1) =REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2) =REF(ZIG(3,5),3); PL10:=ZIG(3,10); EN2:=ZIG(3,10) REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1) =REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2) =REF(ZIG(3,10),3); EX2:=ZIG(3,10) REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1) =REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2) =REF(ZIG(3,10),3); PL20:=ZIG(3,20); EN3:=ZIG(3,20) REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1) =REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2) =REF(ZIG(3,20),3); EX3:=ZIG(3,20) REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1) =REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2) =REF(ZIG(3,20),3); PL40:=ZIG(3,40); 走强1:=BARSLAST(PL5 REF(PL5,1)); 走弱1:=BARSLAST(PL5 REF(PL5,1)); 走强2:=BARSLAST(PL10 REF(PL10,1)); 走弱2:=BARSLAST(PL10 REF(PL10,1)); 走强3:=BARSLAST(PL20 REF(PL20,1)); 走弱3:=BARSLAST(PL20 REF(PL20,1)); ZTJZ5:=IF(PL10 REF(PL10,1),COUNT(EN1,走强2),0); ZTJD5:=IF(PL10 REF(PL10,1),COUNT(EX1,走强2),0); DTJZ5:=IF(PL10 REF(PL10,1),COUNT(EN1,走弱2),0); DTJD5:=IF(PL10 REF(PL10,1),COUNT(EX1,走弱2),0); ZTJZ10:=IF(PL20 REF(PL20,1),COUNT(EN2,走强3),0); ZTJD10:=IF(PL20 REF(PL20,1),COUNT(EX2,走强3),0); DTJZ10:=IF(PL20 REF(PL20,1),COUNT(EN2,走弱3),0); DTJD10:=IF(PL20 REF(PL20,1),COUNT(EX2,走弱3),0); DRAWTEXT(EN1ANDDTJZ5=1,L*0.95, (A) ),COLORFFFF00; DRAWTEXT(EX1ANDDTJD5=2,H*1.02, (B) ),COLORFF00FF; DRAWTEXT(EN2ANDZTJZ5=1,L*0.95, (C) ),COLOR0000FF; DRAWTEXT(EX1ANDPL10 REF(PL10,1)ANDZTJD5=1,H*1.02, ⑴ ),COLOR0000FF; DRAWTEXT(EN1ANDPL10 REF(PL10,1)ANDZTJZ5=2,L*0.98, ⑵ ),COLOR0000FF; DRAWTEXT(EX1ANDPL10 REF(PL10,1)ANDZTJZ5=2,H*1.02, ⑶ ),COLOR0000FF; DRAWTEXT(EN1ANDPL10 REF(PL10,1)ANDZTJZ5=3,L*0.98, ⑷ ),COLOR0000FF; DRAWTEXT(EX2ANDPL20 REF(PL20,1)ANDZTJD10=1,H*1.02, ⑸ ),COLOR0000FF; DRAWTEXT(EN2ANDDTJZ10=1,L*0.93, Ⅰ ),COLORFF00FF; DRAWTEXT(EX2ANDDTJD10=2,H*1.01, Ⅱ ),COLORFFFF00; DRAWTEXT(EN3ANDZTJZ10=1,L*0.93, Ⅲ ),COLOR0000FF; DRAWTEXT(EX2ANDPL20 REF(PL20,1)ANDZTJD10=1,H*1.06, ① ),LINETHICK3,COLOR00FFFF; DRAWTEXT(EN2ANDPL20 REF(PL20,1)ANDZTJZ10=2,L*0.94, ② ),LINETHICK3,COLOR00FFFF; DRAWTEXT(EX2ANDPL20 REF(PL20,1)ANDZTJD10=2OR(ZTJD10=0ORZTJD10=2)ANDEX2,H*1.06, ③ ),LINETHICK3,COLOR00FFFF; DRAWTEXT(EN2ANDPL20 REF(PL20,1)ANDZTJZ10=3,L*0.94, ④ ),LINETHICK3,COLOR00FFFF; V1:=EMA(CLOSE,60)-EMA(CLOSE,453); V2:=EMA(V1,453); V3:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; V4:=SMA(V3,2,1); V5:=SMA(V4,2,1); V6:=CLOSE/REF(CLOSE,3) =1.05; V7:=BACKSET(V6,3); 大涨买:=(V7ANDCOUNT(V7,5)=1); STICKLINE(大涨买,O,((C+O)/2),8,0),COLORYELLOW,LINETHICK2;{底位黄色} STICKLINE(大涨买,O,((C+O)/2),4,0),COLORRED,LINETHICK2;{底位黄色} STICKLINE(大涨买,O,((C+O)/2),2,0),COLORGREEN,LINETHICK2;{底位黄色} DRAWTEXT(大涨买,LOW*0.98, 爆 ),COLOR88FF22; QA3:=REF(H,N2)=HHV(H,2*N2+1); QB3:=FILTER(QA3,N2); QC3:=BACKSET(QB3,N2+1); QD3:=FILTER(QC3,N2);{高点} QA4:=REF(L,N2)=LLV(L,2*N2+1); QB4:=FILTER(QA4,N2); QC4:=BACKSET(QB4,N2+1); QD4:=FILTER(QC4,N2);{低点} VR1:=(HIGH+LOW+CLOSE)/3; VR2:=(VR1-MA(VR1,14))/(0.015*AVEDEV(VR1,14)); VR3:=(VR1-MA(VR1,70))/(0.015*AVEDEV(VR1,70)); VR4:=IF(VR2 =150ANDVR2 200ANDVR3 =150ANDVR3 200,100,IF(VR2 =-150ANDVR2 -200ANDVR3 =-150ANDVR3 -200,-100,0)); VR5:=IF(VR2 =150ANDVR2 200ANDVR3 =150ANDVR3 200,100,0); VR6:=IF(VR2 =-150ANDVR2 -200ANDVR3 =-150ANDVR3 -200,-100,0); VR7:=IF(VR2 =200,200,IF(VR2 =-200,-200,VR4)); 顶:=(0-IF(VR3 =200,200,VR5)+400); 底:=(0-IF(VR3 =200,0,IF(VR3 =-200,-200,VR6))-400); 测底:=-200; 测顶:=200; 买股:=(QD4OR(QD4ANDC OANDVOL REF(LLV(VOL,60),1)))*15.21875 2; 持币:=(QD3OR(QD3ANDC OANDVOL MA(VOL,5)ANDVOL MA(VOL,60)))*15.21875 2; DRAWTEXT(QD3OR(QD3ANDC OANDVOL MA(VOL,5)ANDVOL MA(VOL,60)),H*1.02, 持币! ),COLORWHITE; AD:=(买股AND测底); DRAWTEXT(AD,L, 买股! ),COLORWHITE; STICKLINE(持币,O,(O+C)/2,4,0),COLORBLUE; STICKLINE(持币,O,(O+C)/2,2,0),COLORWHITE; RVAR6:=EMA(HHV(HIGH,500),21); RVAR7:=EMA(HHV(HIGH,250),21); RVAR8:=EMA(HHV(HIGH,90),21); RVAR9:=EMA(LLV(LOW,500),21); RVARA:=EMA(LLV(LOW,250),21); RVARB:=EMA(LLV(LOW,90),21); RVARC:=EMA((RVAR9*0.96+RVARA*0.96+RVARB*0.96+RVAR6*0.558+RVAR7*0.558+RVAR8*0.558)/6,21); RVARD:=EMA((RVAR9*1.25+RVARA*1.23+RVARB*1.2+RVAR6*0.55+RVAR7*0.55+RVAR8*0.65)/6,21); RVARE:=EMA((RVAR9*1.3+RVARA*1.3+RVARB*1.3+RVAR6*0.68+RVAR7*0.68+RVAR8*0.68)/6,21); RVARF:=EMA((RVARC*3+RVARD*2+RVARE)/6*1.738,21); RVAR10:=REF(LOW,1); RVAR11:=SMA(ABS(LOW-RVAR10),3,1)/SMA(MAX(LOW-RVAR10,0),3,1)*100; RVAR12:=EMA(IF(CLOSE*1.35 =RVARF,RVAR11*10,RVAR11/10),3); RVAR13:=LLV(LOW,30); RVAR14:=HHV(RVAR12,30); RVAR15:=IF(MA(CLOSE,58),1,0); RVAR16:=EMA(IF(LOW =RVAR13,(RVAR12+RVAR14*2)/2,0),3)/618*RVAR15; RVAR17:=IF(RVAR16 50,50,RVAR16)/3.82*6; RVAR18:=RVAR17 0ANDAD; 吸筹:STICKLINE(RVAR18,C,(C+O)/2,8,1),COLORGREEN; STICKLINE(RVAR18,C,(C+O)/2,2,1),COLORRED; DRAWTEXT(RVAR18,L*0.96, 加重筹码 ),COLORYELLOW; {全绿K} 全绿K2:=C 卖出QOR(H 卖出QANDO C); STICKLINE(全绿K2,C,O,3,0),COLOR00BB00; STICKLINE(全绿K2,C,O,2,0),COLOR00DD00; STICKLINE(全绿K2,C,O,1,0),COLOR00FF00; STICKLINE(全绿K,O,C,2,1),COLORBLUE; AS:=PEAKBARS(3,M1,3)*1.1521875; 派AH:=CROSS(AS,REF(AS,1)); STICKLINE(派AH,O,(C+O)/2,5,0),COLORWHITE; STICKLINE(派AH,O,(C+O)/2,1,0),COLORBLUE; DRAWTEXT(派AH,H*1.01, 筹码松动 ),COLORCYAN; DRAWTEXT_FIX(1,0.00,0,0, 所属行业: )COLOR0080FF; DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF; DRAWTEXT_FIX(1,0,0.10,0,STRCAT( 千股千评: ,EXTERNSTR(0,1))),COLORYELLOW; DRAWTEXT_FIX(1,0.00,0.18,0, 愚民主题概念: )COLORLIGREEN; DRAWTEXT_FIX(1,0.07,0.18,0,EXTERNSTR(0,2))COLORLIGREEN; DRAWTEXT_FIX(1,0.00,0.26,0, 行业龙头: )COLORFF88FF; DRAWTEXT_FIX(1,0.07,0.26,0,EXTERNSTR(0,3))COLORFF88FF;{生成数据时第1项输3与这里3一致,描述部分输 出千概念  DRAWTEXT_FIX(1,0.00,0.34,0, 主题投资: )COLORLIBLUE; DRAWTEXT_FIX(1,0.07,0.34,0,EXTERNSTR(0,10))COLORLIBLUE; DRAWTEXT_FIX(1,0.00,0.42,0, 主力成本: )COLORLIRED; DRAWTEXT_FIX(1,0.07,0.42,0,EXTERNSTR(0,9))COLORLIRED; DRAWTEXT_FIX(1,0.00,0.50,0, 资金流向: )COLORYELLOW; DRAWTEXT_FIX(1,0.07,0.50,0,EXTERNSTR(0,6))COLORYELLOW; DRAWTEXT_FIX(1,0.00,0.58,0, 智能诊断: )COLORFF88FF; DRAWTEXT_FIX(1,0.07,0.58,0,EXTERNSTR(0,12))COLORFF88FF; DRAWTEXT_FIX(1,0.00,0.66,0, 业绩预告: )COLORLIRED; DRAWTEXT_FIX(1,0.07,0.66,0,EXTERNSTR(0,20))COLORLIRED; X_1:=(CLOSE+HIGH+LOW)/3; X_2:=EMA(X_1,10); X_3:=REF(X_2,1); X_4:=CROSS(X_2,X_3); X_5:=SMA(HIGH,21,2)*1.05; X_6:=SMA(LOW,21,2)*0.969; X_7:=MA(CLOSE,118); X_8:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; X_9:=SMA(X_8,3,1); X_10:=SMA(X_9,3,1); X_11:=3*X_9-2*X_10; X_12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; X_13:=SMA(X_12,3,1); X_14:=SMA(X_13,3,1); X_15:=3*X_13-2*X_14; X_16:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; X_17:=SMA(X_16,3,1); X_18:=SMA(X_17,3,1); X_19:=3*X_17-2*X_18; X_20:=AMOUNT/VOL/100; X_21:=X_20 HIGHORX_20 LOW; X_22:=MA(CLOSE,8); X_23:=MA(CLOSE,21); X_24:=MA(CLOSE,8); X_25:=MA(CLOSE,12); X_26:=ATAN(X_24-REF(X_24,1))*3.1416*10; X_27:=ATAN(X_25-REF(X_25,1))*3.1416*10; X_28:=MA(CLOSE,13); X_29:=FILTER(CLOSE/OPEN 1.04ANDCLOSE-REF(CLOSE,1) 0ANDCLOSE X_6ANDX_24-REF(X_24,1) 0ANDCLOSE X_5,3); X_30:=CLOSE REF(CLOSE,1)ANDREF(OPEN =CLOSE,1); X_31:=21; X_32:=5; X_33:=SUM(IF(CLOSE REF(CLOSE,1),VOL,0),X_31); X_34:=SUM(IF(CLOSE REF(CLOSE,1),VOL,0),X_31); X_35:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),X_31); X_36:=100*(X_33*2+X_35)/(X_34*2+X_35); X_37:=MA(X_36,X_32); X_38:=CROSS(X_36,X_37); X_39:=X_37 100; X_40:=X_37 150ANDX_37 REF(X_37,1); X_41:=X_38ANDX_39; X_42:=X_38ANDX_40; X_43:=FILTER(X_41,5); X_44:=FILTER(X_42,8); X_45:=OPEN REF(CLOSE,1)ANDCLOSE REF(CLOSE,1); X_46:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; X_47:=SMA(X_46,2,1); X_48:=CROSS(X_47,20)ANDREF(CLOSE OPEN,1)ANDX_45; X_49:=IF(X_48,2,0); X_50:=5; X_51:=4*SMA((CLOSE-LLV(LOW,X_50))/(HHV(HIGH,X_50)-LLV(LOW,X_50))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,X_50))/(HHV(HIGH,X_50)-LLV(LOW,X_50))*100,5,1),3.2,1); X_52:=8; X_53:=CROSS(X_51,X_52); 牛股出世:X_4ANDX_29ANDX_49ANDX_53; 二、短线黑马选股公式 VAR111:=IF(DATE 10000000ANDDATE 1000000,1,0); AL:=(C+L+H)/3; AO:=SMA(AL,5,1)-SMA(AL,13,1)*VAR111; BBD:(AO-SMA(AO,3,1))*100,COLORFFCCFF,NODRAW; BBDA:SMA(BBD,5,2),COLORRED,LINETHICK0; RSV1:=BBD*VAR111; RSV2:=BBDA*VAR111; {BBD彩色柱体} VAR11:=IF(DATE 10000000ANDDATE 1000000,1,0); BBD1:=IF(BBD =REF(BBD,1)*VAR11,BBD,DRAWNULL)*VAR111; BBD2:=IF(BBD REF(BBD,1)*VAR11,BBD,DRAWNULL)*VAR111; STICKLINE(BBD1,0,BBD,3,0),COLOR000088; STICKLINE(BBD1,0,BBD,1.5,0),COLOR0000AA; STICKLINE(BBD1,0,BBD,1,0),COLOR0000CC; STICKLINE(BBD1,0,BBD,0.5,0),COLOR0000FF; STICKLINE(BBD2,0,BBD*VAR11,3,0),COLOR888800; STICKLINE(BBD2,0,BBD*VAR11,1.5,0),COLORAAAA00; STICKLINE(BBD2,0,BBD*VAR11,1,0),COLORCCCC00; STICKLINE(BBD2,0,BBD*VAR11,0.5,0),COLORFFFF00; SV1:=BARSLAST(REF(CROSS(RSV1,RSV2),1)); SV1A:=REF(CLOSE,SV1+1) CLOSEANDRSV1 REF(RSV1,SV1+1)AND CROSS(RSV1,RSV2)*VAR11; 上涨BBD:IF(SV1A,RSV2,DRAWNULL),COLORRED; DRAWTEXT(SV1A,RSV2, ─B底背 ),COLOR0033FF; SV2:=BARSLAST(REF(CROSS(RSV2,RSV1),1)); SV2A:=REF(CLOSE,SV2+1) CLOSEANDREF(RSV1,SV2+1) RSV1ANDCROSS(RSV2,RSV1); 下跌BBD:IF(SV2A,RSV2,DRAWNULL),COLORFFFF00; DRAWICON(((((LLV(BBD,4) 0)AND(BBD REF(BBD,1))) AND(REF(BBD*VAR11,1) REF(BBD,2)))AND(REF(BBD*VAR111,2) REF(BBD,3))) ,BBD,2*VAR111)*VAR111; DRAWICON(((((HHV(BBD*VAR111,4) 0)AND(BBD*VAR11 REF(BBD,1))) AND(REF(BBD,1) REF(BBD,2)))AND(REF(BBD,2)  REF(BBD,3))),BBD,1)*VAR111; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26)*10; DEA:=EMA(DIF,9); 上涨:(DIF-DEA)*2,COLOR0000EE,LINETHICK0; 下跌:上涨,COLORCYAN,NODRAW,LINETHICK0; VARF:=TROUGHBARS(3,15,1) 4; 地心引力线:(MA(C,21)+MA(C,72))/2,COLORRED,LINETHICK2; 地心引力区1:地心引力线*1.15; 地心引力区2:地心引力线*0.9; A:C; TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,7))/(0.015*AVEDEV(TYP,7)); 价:=(((C-REF(C,5))/REF(C,5)*100)-REF(((C-REF(C,5))/REF(C,5)*100),1))/2; DRAWICON((CCI 0AND价 2),L,1); 多空:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30)) /MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),LINETHICK1,COLORWHITE; STICKLINE(FILTER(VARF=1,5)AND多空 -10,下跌,0,3.2,1),COLOR00FFFF; STICKLINE(FILTER(VARF=1,5),下跌,0,3,0),COLORAA00AA; STICKLINE(FILTER(VARF=1,5),下跌,0,2.3,0),COLORBB00BB; STICKLINE(FILTER(VARF=1,5),下跌,0,1.6,0),COLORCC00CC; STICKLINE(FILTER(VARF=1,5),下跌,0,0.9,0),COLORDD00DD; STICKLINE(FILTER(VARF=1,5),下跌,0,0.2,0),COLOREE00EE; 明天见底:FILTER(VARF=1,3)ORCROSS(多空,0)ORCROSS(多空,10),COLORFF00FF,NODRAW; M1:MA(C,5); M2:MA(C,21); M3:MA(C,34); XG:=CROSS(C,M1)ANDREF(EXIST(M1 REF(M1,5),1),1)ANDCOUNT(M2 M3,10) =10ANDM2 M3; LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100; RSI金叉:=CROSS(RSI1,RSI2); DRAWGBK(O C,RGB(48,41,124),RGB(0,0,0),0, 1 ,0); VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1); VAR3:=EMA(VAR2,10); VAR4:=LLV(LOW,33); VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3); 主力进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED,NODRAW; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLOR000055; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.6,0),COLOR000077; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.1,0),COLOR000099; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,1.5,0),COLOR0000BB; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.9,0),COLOR0000DD; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.3,0),COLOR0000FF; 拉升:IF(VAR5 REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLOR005500; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.6,0),COLOR007700; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.1,0),COLOR009900; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00; {黑马} A1:=EMA(C,12)-EMA(C,25); A2:=EMA(A1,6); 获利回吐:=(A2 =0)*A2,COLORWHITE,LINETHICK1; 大黑马:=(A2 0)*A2,COLORD4FF7F,LINETHICK1; 坚绝做空:=(A1 0)*A1,COLORB00058,LINETHICK1; 买入持股:=(A1 =0)*A1,COLORRED,LINETHICK1; STICKLINE(A2 =0,A2,0,5,0),COLORWHITE; STICKLINE(A2 0,A2,0,5,0),COLORD4FF7F; STICKLINE(A1 0,A1,0,5,0),COLORB00058; STICKLINE(A1 =0,A1,0,5,0),COLORRED; VAR8:=VOL 2*MA(VOL,30); VAR9:= DMI.ADX (12,6); VARA:= DMI.ADXR (12,6); VARB:=CLOSE MA(CLOSE,30)ANDCLOSE MA(CLOSE,30)*1.04; VARC:=MA(CLOSE,30) REF(MA(CLOSE,30),1); VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10))) BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5))); VARF:=TROUGHBARS(3,15,1) 4; VAR10:=EMA(CLOSE,30) REF(EMA(CLOSE,30),2); VAR11:=IF(VARF=1,50,0); 多空:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;0,COLORRED; STICKLINE(FILTER(VARF=1,5)AND多空 -10,80,0,8,0),COLORF00FF0; STICKLINE(FILTER(VARF=1,5),60,0,4,0),COLORYELLOW; {DRAWTEXT(FILTER(VARF=1,3),25, 黑马 ),COLORRED; {STICKLINE(多空 -10,0,多空,0.85,0),COLORYELLOW; STICKLINE(多空 10,0,多空,0.95,0),COLORRED;}; 周J1:MA( KDJ.J#WEEK (9,3,3),5),COLORGREEN,LINETHICK2; 20,COLORMAGENTA,LINETHICK1; 80,COLORGREEN; DRAWICON(CROSS(周J1,20),20,1); DRAWTEXT(CROSS(周J1,20),15, ++抄 ),COLORRED; DRAWTEXT(CROSS(周J1,80),70, =追 ),COLORYELLOW; {STICKLINE(周J1 0,周J1,0,5,0),COLORLIRED; STICKLINE(CROSS(周J1,0),0,-50,3,0),COLORMAGENTA; DRAWTEXT(CROSS(周J1,0),-35, ———底部 ),COLORMAGENTA;} {抓牛黑马 VAR1000:=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); VAR2000:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100; VAR3000:=SMA(SMA(VAR2000,3,1),3,1); VAR4000:=EMA(VAR3000,5); VAR5000:=LLV(LOW,26); VAR6000:=HHV(HIGH,34); VAR7000:=EMA((CLOSE-VAR5000)/(VAR6000-VAR5000)*4,4)*25; {撞坷状?=IF(CROSS(VAR4000,10)ANDVAR4000 10,50,0),STICK,COLORYELLOW,LINETHICK3;0,STICK,COLOR000000,LINETHICK3; 建仓区:IF((VAR7000 10),20,0),LINETHICK2,COLOR00CCFF; 派发区:IF((VAR7000 90),80,100),LINETHICK2,COLORF00FF0;}; {SWL:=(EXPMA(CLOSE,5)*7+EXPMA(CLOSE,10)*3)/10; SWS:=DMA(EMA(CLOSE,12),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL))));} XGG:={CROSS(SWL,SWS)AND}RSI金叉ANDXG; DRAWICON(XGG,L-0.25,1); STICKLINE(XGG,C,O,3,0)COLORYELLOW; STICKLINE(XGG,L,H,0,0)COLORYELLOW;[源码注释]通达信公式动态公式解读N赋值:10HH赋值:N日内收盘价的最高值LL赋值:N日内收盘价的最低值输出创新高:如果收盘价=HHANDVOL 1,返回1,否则返回0输出创新低:如果收盘价=LLANDVOL 1,返回1,否则返回0每日通达信公式解答: 公式编写要求: 1.均线多头排列;2.如果PDI上穿MDI,在1-5天内,ADX正好大于等于25。 公式编写方法: MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14); HD:=HIGH-REF(HIGH,1); LD:=REF(LOW,1)-LOW; DMP:=EXPMEMA(IF(HD 0 HD LD,HD,0),14); DMM:=EXPMEMA(IF(LD 0 LD HD,LD,0),14); PDI:=DMP*100/MTR; MDI:=DMM*100/MTR; ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6); MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); MA3:=MA(CLOSE,20); DT:=MA1 MA2ANDMA2  选股:DTANDEXIST(CROSS(PDI,MDI),5)ANDADX

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