以下是通达信拐牛主图指标公式,通达信公式源码和使用说明 使用说明: 通达信拐牛主图指标主要用于判断股票的趋势翻转点,即股价由下跌趋势转变为上涨趋势的拐点。 该指标可以应用于不同的时间周期,如日线、周线或月线,根据交易者的需求选择适合的周期。 当出现“拐牛”点时,意味着股价可能会出现反弹或上涨的机会,这可能是买入的良好时机。 交易者可以结合其他技术指标和分析方法,如移动平均线、成交量等,来确认拐牛点的有效性。通达信拐牛主图指标公式,通达信公式源码: M:=SUM(AMO,240)/SUM(VOL,240)/100;{N日的总均价}; NJ:IF(M,CONST(M),DRAWNULL),COLORRED,LINETHICK3; NJ809:IF(M*0.809,CONST(M*0.809),DRAWNULL),COLORBLUE,LINETHICK1; NJ618:IF(M*0.618,CONST(M*0.618),DRAWNULL),COLORLIGRAY,LINETHICK2; NJ500:IF(M*0.5,CONST(M*0.5),DRAWNULL),COLORGREEN,LINETHICK2; NJ382:IF(M*0.382,CONST(M*0.382),DRAWNULL),COLORCYAN,LINETHICK2; NJ191:IF(M*0.191,CONST(M*0.191),DRAWNULL),COLORBROWN,LINETHICK1; NJ1191:IF(M*1.191,CONST(M*1.191),DRAWNULL),COLORGRAY,LINETHICK1; NJ1382:IF(M*1.382,CONST(M*1.382),DRAWNULL),COLORLIBLUE,LINETHICK2; NJ150:IF(M*1.5,CONST(M*1.5),DRAWNULL),COLORLIGREEN,LINETHICK2; NJ1618:IF(M*1.618,CONST(M*1.618),DRAWNULL),COLORLIRED,LINETHICK2; NJ2:IF(M*2,CONST(M*2),DRAWNULL),COLORYELLOW,LINETHICK2; DPZX:=EMA(C,1),NODRAW; GGZX:=AMOUNT/V/100; 重心:=IF(C 300,GGZX,DPZX),NODRAW; 今重心:LLV(重心,2)COLORGREEN,NODRAW; ZC1:=CONST(LLV(重心,2)); ZC2:=CONST(LLV(重心,4)); VAR1:=(C+H+O+L)/4; MA5:=MA(C,5),COLOR000099; MA10:=MA(C,10),COLOR006600; MA20:=MA(C,20),COLOR005555; ZB1:=EMA(C,34); 长期趋势:EMA(ZB1,13),COLORRED,LINETHICK3; SQX:=(C-MA(CLOSE,13))*100; DIFF:=EMA(MA(SQX,7),1),COLORWHITE; DEA:=EMA(DIFF,7),COLORYELLOW; macd:=(DIFF-DEA)*2,COLORSTICK; FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); TTJ:=crOSS(FF,MA15); 上:=EMA(C,3),COLORBLUE,LINETHICK1; 中:=EMA(C,5),COLORWHITE,LINETHICK1; 下:=EMA(中,5),COLOR00FF00,LINETHICK1; QQ:=C MM:=上 REF(上,1)ANDREF(上,1) REF(上,2); V1:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); V2:=(1-7/100)*(DMA(CLOSE,V1)); V3:=(1+7/100)*(DMA(CLOSE,V1)); V5:=MA((LOW+HIGH+CLOSE)/3,5); MA1Q:=MEMA(CLOSE,5); MA2Q:=ATAN((MA1Q/REF(MA1Q,1)-1)*100)*180/3.1416; MA3Q:=IF(MA2Q 0,MA2Q,MA2Q); MA5Q:=MA(CLOSE,5),COLOR888899; MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2; VAR01:=CLOSE=HHV(C,4)AND(REF(C,1) =REF(C,2)ORREF(C,1) =REF(C,3)) ORREF(C,1)=HHV(C,4)ANDCLOSE =REF(C,2)ORREF(C,2)=HHV(C,4)AND REF(C,3)=LLV(C,4)ANDC =REF(C,1)ORREF(C,3)=HHV(C,4)AND C =REF(C,1)ANDC =REF(C,2); VAR02:=CLOSE=HHV(C,4)ANDREF(C,1)=LLV(C,4); VAR03:=CLOSE=LLV(C,4)AND(REF(C,1) REF(C,2)ORREF(C,1) REF(C,3))OR REF(C,1)=LLV(C,4)ANDC REF(C,2)ORREF(C,2)=LLV(C,4)AND REF(C,1)=HHV(C,4)ANDC REF(C,1)ORREF(C,3)=LLV(C,4)AND C REF(C,1)ANDC REF(C,2); VAR04:=REF(C,1)=LLV(C,4)ANDC =REF(C,2)ORREF(C,2)=LLV(C,4)AND REF(C,1) =REF(C,3)ANDREF(C,2) REF(C,4)ANDC =REF(C,1); VAR05:=REF(C,1)=HHV(C,4)ANDC REF(C,2)OR(REF(C,2)=HHV(C,4)AND REF(C,1) REF(C,3)ORREF(C,3)=HHV(C,4)ANDREF(C,1) REF(C,2))AND REF(C,2) =REF(C,4)ANDC REF(C,1); VAR06:=V5 REF(V5,1)ANDREF(V5,1) REF(V5,2); VAR07:=LOW HHV(V5,13)ANDHIGH HHV(V5,13)ANDCLOSE REF(C,1)ANDCLOSE OPEN; VAR08:=VAR07ANDCOUNT(VAR06,2); VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR10:=EMA(MA(C,13),13); VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7)ANDCOUNT(VAR09 0,2)AND CROSS(VAR09,MA(VAR09,2)))=1,5); VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7)ANDCOUNT(VAR09 50,2)AND CROSS(MA(VAR09,2),VAR09))=1,1); VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10; VAR14:=FILTER(((CROSS(VAR13,0)ORCROSS(C,VAR10))ANDVAR11)=1,3); VAR15:=MA(C,18) =REF(MA(C,18),3)ANDCROSS(C,MA(C,18)); VAR16:=VAR08ANDNOT(REF(VAR08,1)); RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSVQ,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 金叉:=CROSS(J,D); 死叉:=CROSS(D,J); 买1:=(VAR14ORVAR15)ANDVAR11; 买2:=(VAR14ORVAR15)ANDVAR04; 买3:=(VAR14ORVAR15)ANDVAR02; 买4:=(VAR02ANDVAR11)OR(VAR04ANDVAR11); 买5:=(金叉ANDVAR04)OR(金叉ANDVAR02)OR(金叉ANDVAR11); TTJ0:=VAR16; TTJ1:=买1OR买2OR买3OR买4OR买5ANDMM; XG0:=TTJANDTTJ0; XG1:=TTJANDTTJ1; XG11:=XG0ORXG1; XGQ:=XG11; 拐牛:XGQ,COLORRED,NODRAW; DRAWTEXT(XGQ,L*0.99, ●拐牛 ),COLORRED; MA1:=MA(C,5); MA2:=MA(C,10); MA3:=MA(C,21); 破N:=REF(MA1,1) REF(MA2,1)ANDMA2 REF(MA2,1); 试摸N:=C MA(C,10)ORH =MA2; 再上N:=C OANDREF(C,1) MA(C,10)AND试摸NAND破NANDMA(C,21) MA(C,10); 有行情:=再上NAND(CROSS(C,长期趋势)ORCROSS(L,长期趋势)ORCROSS(H,长期趋势)); DRAWTEXT(有行情,LOW*0.98, ● ),COLORGREEN; VAR1MZ:=((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,2))); VAR2MZ:=((REF(VAR1MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR3MZ:=((REF(VAR2MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR4MZ:=((REF(VAR3MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR5MZ:=((REF(VAR4MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR6MZ:=((REF(VAR5MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR7MZ:=((REF(VAR6MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR8MZ:=((REF(VAR7MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR9MZ:=((REF(VAR8MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VARAMZ:=((REF(VAR9MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VARBMZ:=((REF(VARAMZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VARCMZ:=((REF(VARBMZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); {红K} {STICKLINE((((((((((((VAR1MZORVAR2MZ)ORVAR3MZ)ORVAR4MZ)ORVAR5MZ)ORVAR6MZ)ORVAR7MZ)ORVAR8MZ)ORVAR9MZ)ORVARAMZ)ORVARBMZ)ORVARCMZ),C,O,3,0),COLOR000099; STICKLINE((((((((((((VAR1MZORVAR2MZ)ORVAR3MZ)ORVAR4MZ)ORVAR5MZ)ORVAR6MZ)ORVAR7MZ)ORVAR8MZ)ORVAR9MZ)ORVARAMZ)ORVARBMZ)ORVARCMZ),C,O,2,0),COLOR0000BB; STICKLINE((((((((((((VAR1MZORVAR2MZ)ORVAR3MZ)ORVAR4MZ)ORVAR5MZ)ORVAR6MZ)ORVAR7MZ)ORVAR8MZ)ORVAR9MZ)ORVARAMZ)ORVARBMZ)ORVARCMZ),C,O,1,0),COLOR0000DD}; VARDMZ:=((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,2))); VAREMZ:=((REF(VARDMZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VARFMZ:=((REF(VAREMZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR10MZ:=((REF(VARFMZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR11MZ:=((REF(VAR10MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR12MZ:=((REF(VAR11MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR13MZ:=((REF(VAR12MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR14MZ:=((REF(VAR13MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR15MZ:=((REF(VAR14MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR16MZ:=((REF(VAR15MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR17MZ:=((REF(VAR16MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR18MZ:=((REF(VAR17MZ,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); {绿K} {STICKLINE((((((((((((VARDMZORVAREMZ)ORVARFMZ)ORVAR10MZ)ORVAR11MZ)ORVAR12MZ)ORVAR13MZ)ORVAR14MZ)ORVAR15MZ)ORVAR16MZ)ORVAR17MZ)ORVAR18MZ),C,O,3,0),COLOR00BB00; STICKLINE((((((((((((VARDMZORVAREMZ)ORVARFMZ)ORVAR10MZ)ORVAR11MZ)ORVAR12MZ)ORVAR13MZ)ORVAR14MZ)ORVAR15MZ)ORVAR16MZ)ORVAR17MZ)ORVAR18MZ),C,O,2,0),COLOR00DD00; STICKLINE((((((((((((VARDMZORVAREMZ)ORVARFMZ)ORVAR10MZ)ORVAR11MZ)ORVAR12MZ)ORVAR13MZ)ORVAR14MZ)ORVAR15MZ)ORVAR16MZ)ORVAR17MZ)ORVAR18MZ),C,O,1,0),COLOR00FF00}; VAR19MZ:=(REF((((((((((((VARDMZORVAREMZ)ORVARFMZ)ORVAR10MZ)ORVAR11MZ)ORVAR12MZ)ORVAR13MZ)ORVAR14MZ)ORVAR15MZ)ORVAR16MZ)ORVAR17MZ)ORVAR18MZ),1)ANDVAR1MZ); VAR1AMZ:=(REF((((((((((((VAR1MZORVAR2MZ)ORVAR3MZ)ORVAR4MZ)ORVAR5MZ)ORVAR6MZ)ORVAR7MZ)ORVAR8MZ)ORVAR9MZ)ORVARAMZ)ORVARBMZ)ORVARCMZ),1)ANDVARDMZ); {粉红} CAX:=MAX(REF(CLOSE,2),REF(CLOSE,1)); {STICKLINE(VAR19MZ,CAX,O,3,0),COLORBB11BB; STICKLINE(VAR19MZ,CAX,O,2,0),COLORDD44DD; STICKLINE(VAR19MZ,CAX,O,1,0),COLORFF66FF}; {黄色} CIN:=MIN(REF(CLOSE,2),REF(CLOSE,1)); {STICKLINE(VAR1AMZ,CIN,O,3,0),COLOR00AAFF; STICKLINE(VAR1AMZ,CIN,O,2,0),COLOR00CCFF; STICKLINE(VAR1AMZ,CIN,O,1,0),COLOR00EEFF}; 牛节点:=CROSS(EMA(C,5),EMA(C,30))ANDCROSS(EMA(C,10),EMA(C,20)); DRAWICON(牛节点,L*0.99,13); CSAR:=sar(10,2,20); 持股:=IF(CSAR =L,CSAR,0),CIRCLEDOT,COLORRED{持股}; 短期趋势:=EMA(SLOPE(C,21)*20+C,42),POINTDOT,LINETHICK1,COLORYELLOW; STICKLINE(1,短期趋势,短期趋势,1,0),COLORYELLOW; 止损:=EMA(C,5),COLORYELLOW,LINETHICK1; VVAR1D:=((((OPEN+LOW)+HIGH)+CLOSE)/4); 短底:=EMA(VVAR1D,5); 支撑:=HHV(短底,60); MAN:=(SMA(HIGH,21,2)*1.05); 下档线:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100); 中D:=(((((3*CLOSE)+HIGH)+LOW)+OPEN)/6); X1D:=EMA(中D,10); RSVD:=SMA(下档线,3,1); K大:=SMA(RSVD,3,1); D大:=((3*RSVD)-(2*K大)); J12:=(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*100); RSV24:=SMA(J12,3,1); K24:=SMA(RSV24,3,1); D24:=((3*RSV24)-(2*K24)); 压力位:=IF(CROSS(D24,D大),HIGH,REF(HIGH,BArslAST(CROSS(D24,D大)))),COLORFFFFFF; 牛浮面:=CROSS(CLOSE,MA20)ANDHIGH 压力位ANDOPEN MA20 ANDHIGH 支撑ANDMAN-REF(MAN,1) 0ANDX1D-REF(X1D,1) 0AND D大 63ANDMA20-REF(MA20,1) 0,COLORWHITE; DRAWTEXT(牛浮面,L, ●牛浮面 ),COLORWHITE; {STICKLINE(ISLASTBAR,ZC1,ZC1,120,0),LINETHICK1,COLORGREEN; DRAWTEXT(CURRBARSCOUNT=15,ZC1*1.02, 关键价位 ),COLORGREEN; DRAWNUMBER(ISLASTBAR,ZC1*1.02,ZC1+000),COLORGREEN; STICKLINE(ISLASTBAR,ZC2,ZC2,120,0),LINETHICK1,COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=15,ZC2*0.99, 支撑价位 ),COLORYELLOW; DRAWNUMBER(ISLASTBAR,ZC2*0.99,ZC2+000),COLORYELLOW}; 决策:=IF(ISLASTBAR,压力位,DRAWNULL),COLORMAGENTA; {STICKLINE(ISLASTBAR,决策,决策,60,1),LINETHICK3,COLORFFFFFF}; 底部:=LLV(HIGH,30),COLOR00FF00; 超跌:=IF(ISLASTBAR,底部,DRAWNULL),COLORRED; {STICKLINE(ISLASTBAR,超跌,超跌,60,1),LINETHICK3,COLORRED; STICKLINE(ISLASTBAR,REF(今重心,1),REF(今重心,1),10,0),COLORGREEN}; T1:=IF(FINDSTR(EXTERNSTR(0,13), 万元 ),STRCAT( 敢死队席位: ,EXTERNSTR(0,13)), T2:=IF(FINDSTR(EXTERNSTR(0,12), 。 ),STRCAT( 智能诊断: ,EXTERNSTR(0,12)), T3:=IF(FINDSTR(EXTERNSTR(0,8), 公告 ),STRCAT( 年报业绩: ,EXTERNSTR(0,8)), T4:=IF(FINDSTR(EXTERNSTR(0,10), , ),STRCAT( 主题投资: ,EXTERNSTR(0,10)), T5:=IF(FINDSTR(EXTERNSTR(0,15), - ),STRCAT( 解禁日期: ,EXTERNSTR(0,15)), T6:=IF(FINDSTR(EXTERNSTR(0,1), , ),STRCAT( 千股千评: ,EXTERNSTR(0,1)), T7:=IF(FINDSTR(EXTERNSTR(0,14), - ),STRCAT( 业绩预报: ,EXTERNSTR(0,14)), T8:=IF(FINDSTR(EXTERNSTR(0,11), - ),STRCAT( 机构评级: ,EXTERNSTR(0,11)), T9:=IF(FINDSTR(EXTERNSTR(0,9), - ),STRCAT( 中报业绩: ,EXTERNSTR(0,9)), N:=IF(TOTALBARSCOUNT =120,120,TOTALBARSCOUNT); {本输出适用于锁定k线数为120,N可改为你习惯的K线数,见下图} HH0:=HHV(H,N); LL0:=LLV(L,N); MM0:=CONST((HH0+LL0)*0.5); S01:=CONST(IF(REF(C,N-15) MM0,1.00,-0.08)); S02:=CONST(IF(REF(C,N-15) MM0,-1,1)); S1:=IF(FINDSTR(EXTERNSTR(0,13), 万元 ),S01+(0.08*S02),S01),NODRAW; S2:=IF(FINDSTR(EXTERNSTR(0,12), 。 ),S1+(0.08*S02),S1),NODRAW; S3:=IF(FINDSTR(EXTERNSTR(0,8), 公告 ),S2+(0.08*S02),S2),NODRAW; S4:=IF(FINDSTR(EXTERNSTR(0,10), , ),S3+(0.08*S02),S3); S5:=IF(FINDSTR(EXTERNSTR(0,15), - ),S4+(0.08*S02),S4); S6:=IF(FINDSTR(EXTERNSTR(0,1), , ),S5+(0.08*S02),S5); S7:=IF(FINDSTR(EXTERNSTR(0,14), - ),S6+(0.08*S02),S6); S8:=IF(FINDSTR(EXTERNSTR(0,11), - ),S7+(0.08*S02),S7); S9:=IF(FINDSTR(EXTERNSTR(0,9), - ),S8+(0.08*S02),S8); KK:=IF(S1 =0,0.05,IF(S1 =0,-0.05,0)); DRAWTEXT_FIX(1,0,S1+KK,0,T1)COLOR00FFFF; DRAWTEXT_FIX(1,0,S2+KK,0,T2)COLORFFFFFF; DRAWTEXT_FIX(1,0,S3+KK,0,T3)COLORFF00FF; DRAWTEXT_FIX(1,0,S4+KK,0,T4)COLOR0088FF; DRAWTEXT_FIX(1,0,S5+KK,0,T5)COLOR00FF00; DRAWTEXT_FIX(1,0,S6+KK,0,T6)COLOR0000FF; DRAWTEXT_FIX(1,0,S7+KK,0,T7)COLOR00CCFF; DRAWTEXT_FIX(1,0,S8+KK,0,T8)COLORFF88FF; DRAWTEXT_FIX(1,0,S9+KK,0,T9)COLORBBFFFF; X1:=(C+L+H)/3; X2:=EMA(X1,6); X3:=EMA(X2,5); DRAWICON(CROSS(X2,X3),L*0.99,7); XG:CROSS(X2,X3),NODRAW; DRAWICON(CROSS(X3,X2),H*1.01,8); YY1:=C MA(C,5)ANDOPEN MA(C,5); YY3:=C MA(C,10)ANDOPEN MA(C,10); YY5:=C MA(C,30)ANDOPEN MA(C,30); DRAWTEXT(YY1ANDYY5ANDYY3,LOW-0.05, ↖神话 ),COLOR00FFFF; DRAWGBK(C O,RGB(60,0,0),RGB(0,0,0),1,2,1); N:=5; P1:=80; AAA:=(3*C+H+L+O)/6; VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36; VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3; VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3,POINTDOT; VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3; VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3,POINTDOT; VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3; JJ:=(HIGH+LOW+CLOSE)/3; QJ0:=vol/IF(HIGH=LOW,4,HIGH-LOW); QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN)))); QJ3:=IF(CAPITAL=0,QJ0*(HIGH-maX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE)))); QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ))); ddx:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK; V2:=SMA(IF(C =REF(C,1),DDX,-DDX/100),2,1); V5:=SMA(V2*120/FROMOPEN*5,2,1); V10:=SMA(V5,5,1); V20:=SMA(V10,5,1); DY:=CURRBARSCOUNT=1ANDC REF(C,1); DY2:=REF(V2,1)-DY; 异动:=crOSS(V2,REF(V2,1)*1.2)ANDLONGCROSS(CLOSE,REF(C,1)*1.025,4)ANDV/REF(MA(V,5),1) 2,COLORMAGENTA; 抓牛:C OANDDY2 0.02ANDMA(C,5) MA(C,60)ANDC/REF(C,1) =1.02ANDREF(macd,1) MacD,COLORYELLOW,LINETHICK3; GD:=DY2 REF(DY2,1)ANDREF(DY2,1) REF(DY2,2)ANDREF(DY2,2) REF(DY2,3)ANDC OANDVAR3 VAR5ANDC/REF(C,1) =1.02; GD2:=DY2 REF(DY2,1)ANDREF(DY2,1) REF(DY2,2)ANDREF(DY2,2) REF(DY2,3)ANDVAR3 VAR5; DRAWTEXT(CROSS(V2,REF(V2,1)*1.2)ANDLONGCROSS(CLOSE,REF(C,1)*1.025,4)ANDDDX/REF(MA(DDX,5),1) 2,0, ★ ),COLORMAGENTA; MACD:= MACD.MACD ,NODRAW; 拐点:CROSS(C,VAR2)ANDCROSS(C,VAR6)ANDMACD 0ANDREF(MACD,1) MACD,COLORMAGENTA,LINETHICK3; stICKLINE(抓牛=1,0,8,2,0),COLORYELLOW; DRAWTEXT(抓牛=1,5, 抓牛 ),COLORYELLOW; STICKLINE(拐点=1,0,8,2,0),COLORMAGENTA; DRAWTEXT(拐点=1,4, 拐点 ),COLORMAGENTA;通达信拐牛主图指标公式,通达信公式截图