通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、通达信神龙指标公式 DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:=EMA(DIF,MID); MACD:=(DIF-DEA)*2; A1:=BARSLAST(REF(CROSS(DIF,DEA),1)); 一号:(DIF REF(DIF,1)ANDMACD REF(MACD,1)ANDDIF/CLOSE -0.06)*1; 二号:(CROSS(DIF,DEA)ANDDIF -0.01)*1.5; 三号:(REF(CLOSE,A1+1) CLOSEANDDIF REF(DIF,A1+1)ANDCROSS(DIF,DEA)AND DIF 0.1)*2; N:=8; M:=20; 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,COLORRED; STICKLINE(J 0,J,0,1,0),COLORRED; STICKLINE(J 100,J,100,1,0),COLORGREEN; A:0,COLORRED,LINETHICK1; B:100,COLORGREEN,LINETHICK1; DRAWGBK(O C,RGB(160,32,240),RGB(56,94,15),0, 背景图 ,0); A01:=(WINNER((CLOSE*1))*100.000); A02:=(WINNER((CLOSE*1.1))*100.000); A03:=(WINNER((CLOSE*0.9))*100.000); A04:=MA(A03,5); A06:=(100-MA(A02,5)); {STICKLINE(1,A06,MA(A02,5),2,1),COLORGREEN;} A08:=(MA(A02,5)-MA(A03,5)); {STICKLINE(1,A04,MA(A02,5),2,1),COLORYELLOW;} A0A:=(((((HHV(A04,15)-A03)/A03)*100) 30)AND(HHV(A04,15) 50)); STICKLINE(A0A,(0-2),2,2,1); STICKLINE(NOT(A0A),(0-2),2,2,1),COLORBLUE; STICKLINE(A03 REF(A03,1),0,A03,2,0),COLORRED; STICKLINE(A03 REF(A03,1),0,A03,2,1),COLORRED; 获利:=MA(A03,1),COLORMAGENTA,DOTLINE; 主力:MA(A03,10),COLORMAGENTA,LINETHICK2; 套牢:=100-A02,COLORLIBLUE,DOTLINE; 散户:(100.000-MA(A02,10)),COLORLIBLUE,LINETHICK2; 浮动:=A02-A03,COLORLIRED,DOTLINE; 游资:(MA(A02,10)-MA(A03,10)),COLORLIRED,LINETHICK2; STICKLINE(1,100,100,5,1),COLORGREEN;二、通达信飞龙在天指标公式 {N2506 LL03520 LH6510080} 涨停:=IF(REF(C,1)*1.1-C 0.2,1,0); STICKLINE(涨停,OPEN,CLOSE,4,2),COLORRED; STICKLINE(涨停,OPEN,CLOSE,0.8,0),COLORMAGENTA; STICKLINE(涨停,H,L,0,0),COLORMAGENTA; ZT:=C/REF(C,1) 1.095; STICKLINE(MA(CLOSE,5) REF(MA(CLOSE,5),1)ANDZT,O,C,0.9,0),COLORMAGENTA; STICKLINE(MA(CLOSE,5) =REF(MA(CLOSE,5),1)ANDZT,O,C,0.6,0),COLORMAGENTA; 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),45),(LOW)*(0.91), 乘龙去 ),COLOR00FFFF; {归隐}LC:=REF(CLOSE,1); RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100; 归隐:=CROSS(80,RSI5); DRAWICON(归隐,H*1.015,2); DRAWTEXT(归隐,H*1.025, 归隐 )COLORGREEN; VAR121:=ZIG(3,6) REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1) =REF(ZIG(3,6),2)AND REF(ZIG(3,6),2) =REF(ZIG(3,6),3); VAR141:=ZIG(3,22) REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1) =REF(ZIG(3,22),2)AND REF(ZIG(3,22),2) =REF(ZIG(3,22),3); VAR161:=ZIG(3,51) REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1) =REF(ZIG(3,51),2)AND REF(ZIG(3,51),2) =REF(ZIG(3,51),3); VAR181:=ZIG(3,72) REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1) =REF(ZIG(3,72),2)AND REF(ZIG(3,72),2) =REF(ZIG(3,72),3); 卖线:=(VAR121+VAR141+VAR161+VAR181); 压力平台:DRAWLINE(卖线,(C+O)*0.508,BARSLAST(卖 线) =1,REF((C+O)*0.508,BARSLAST(卖线)),1),LINETHICK2,COLORBLUE,; 飞龙:EMA(COST(80),13)COLORYELLOW; 云层:MA(C,100)COLORRED; 持股:MA(C,8)COLORWHITE; YJ:=持股; IF(YJ*1.008 REF(YJ,1),YJ,DRAWNULL),COLORYELLOW,LINETHICK2; IF(YJ REF(YJ,1),YJ,DRAWNULL),COLORRED,LINETHICK2; 持币:MA(C,13)COLORFFFF33,POINTDOT; NOTEXTJ3:=MA(C,3); DRAWICON(CROSS(NOTEXTJ3,持股)ANDH 持股ANDC/O =1.02,L*0.97,1); DRAWTEXT(CROSS(NOTEXTJ3,持股)ANDH 持股ANDC/O =1.02,L*0.94, 腾云 )COLORYELLOW; SR1X:=REF(HIGH,10)=HHV(HIGH,2*10+1); SR2X:=FILTER(SR1X,10); SR3X:=BACKSET(SR2X,10+1); HDX:=FILTER(SR3X,10); 前高X:=REF(H,BARSLAST(HDX)); 倍量X:=VOL/REF(VOL,1) =1.9; 突破前高X:=CROSS(C,前高X); Y2:=倍量XAND突破前高X; YY2:=倍量XANDC SJ:=BARSLAST(Y2); {STICKLINE(YY2,OPEN,CLOSE,3,0),COLORYELLOW; DRAWTEXT(YY2,L*0.955, ),COLORYELLOW;} STICKLINE(Y2,OPEN,CLOSE,3,0),COLORYELLOW; DRAWTEXT(Y2,L*0.955, 倍量过左峰 ),COLORYELLOW; {LC:=REF(CLOSE,1);} WRSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100; 买:=CROSS(WRSI,LL)COLORRED; 卖:=CROSS(LH,WRSI)COLORGREEN; DRAWICON(买ANDH =持股,L*0.97,1); DRAWTEXT(买ANDH =持股,L*0.94, 腾云 )COLORYELLOW; DRAWICON(卖,H*1.015,2); VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL); OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); MAOBV:=MA(OBV,30); DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*1; DEA:=(EMA(DIF,9))*1; MACD:=(DIF-DEA)*2,COLORSTICK; M:=CROSS(DIF,DEA); HJZ:=(3*C+H+L+O)/6; HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36; HJZ3:=VOL=HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE HJZ2ANDC H1:=FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4; HJ:=COUNT(H1,6)=1; MA6:=MA(CLOSE,60); MA5:=MA(CLOSE,5); V05:=MA(VOL,5),LINETHICK1,COLORWHITE; V35:=MA(VOL,35),LINETHICK1,COLORYELLOW; VL135:=MA(VOL,135),LINETHICK1,COLORMAGENTA; ML:=(CROSS(V05,VL135)ORCROSS(V05,V35))ANDOBV MAOBV; MLL:=CROSS(C,MA6); MA13:=EMA(C,13); UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),0),COLOR0000FF; DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),0),COLOR00FF00; STICKLINE(UP,0,0.05,3,0),COLOR0000FF; STICKLINE(DOWN,0,0.05,3,0),COLOR00FF00; HR:=HHV(HIGH,55); HRY:=LLV(LOW,55); HRY11:=HR*HRY; HRY33:=SQRT(HRY11); TJ202:=REF(DOWN,1) REF(DOWN,2)ANDUP REF(DOWN,1)ANDC HRY33; ZN:MLANDMLLANDCOUNT(TJ202,50) =1,COLORMAGENTA; {DRAWICON(ZN,1,5);} DRAWTEXT(ZN,0.6, 抓 ),COLORGREEN; DRAWTEXT(ZN,0.3, 牛 ),COLORGREEN; VARF:=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); VAR10:=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); VAR11:=VARF REF(VAR10,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1); DZJ:=VAR11ANDCOUNT(VAR11,30)=1; STICKLINE(DZJ,0,0.15,3,0),COLORFF80FF; STICKLINE(DZJ,0.15,0.35,2,0),COLOR3000FF; STICKLINE(DZJ,0.35,0.51,1,0),COLOR00FFFF; DRAWTEXT(DZJ,0.55, 大资金 ),COLORMAGENTA; DIF18:=EMA(DCLOSE,12)-EMA(DCLOSE,26); DEA18:=EMA(DIF18,9); AAA1:=(DIF18-DEA18)*2*60; AA:=AAA1-REF(AAA1,1); VAR18:=(CLOSE*2+HIGH+LOW)/4; VAR28:=EMA(VAR18,13)-EMA(VAR18,34); VAR38:=EMA(VAR28,5); BB:=(VAR38-VAR28)*5,COLORGREEN,LINETHICK2; CC:=(VAR28-VAR38)*5,COLORWHITE,LINETHICK2; LZL:=VOL=HHV(VOL,40)ANDVOL 1.9*REF(VOL,1); LT:=IF(BARSLAST(LZL)=1ANDCLOSE REF(HIGH,1),1,IF(BARSLAST(LZL)=2ANDCLOSE REF(HIGH,2),1,IF(BARSLAST(LZL)=3ANDCLOSE REF(HIGH,3),1,0))); LB:=BARSLAST(LZL)=3ANDREF(LOW,3) =MIN(MIN(C,REF(C,1)),REF(C,2)); BACKSET300:=BACKSET(LB,4); BACKSET301:=BACKSET(LT,4); LL:=FILTER(BACKSET300,3)ANDBACKSET301ANDLZL; QN:CROSS(AA,15)ANDCC BB,COLORYELLOW,LINETHICK4,STICK; DRAWICON(QN,0.6,1); DRAWICON(QN,0.8,1); QQN:=COUNT(QN,3)=1ANDCOUNT(LL,3) =1ANDHJ,COLORRED; BLZ:=VOL REF(V,1)*1.9; BLZ1:=VOL REF(LLV(VOL,13),1); BLZ2:=VOL REF(LLV(VOL,55),1); BL2:=BLZANDREF(BLZ,1); X:=CONST(DATE); Y:=IF(DATE X,240,FROMOPEN); ZR:=BARSCOUNT(CLOSE); LD:=IF((VOL/Y*240)=CONST(LLV(VOL,60))AND(VOL/Y*240) CONST(LLV(VOL,ZR)),6,0); ZD:=IF((VOL/Y*240)=CONST(LLV(VOL,60))AND(VOL/Y*240)=CONST(LLV(VOL,ZR)),6,0); DL:ZDORLD; DRAWTEXT(DL,0.4, 量底 ),COLORYELLOW; {DRAWICON(QQN 0,0.9,9);} VAR1:=C-REF(C,1); VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6); BT:=(LLV(VAR2,2)=LLV(VAR2,7)ANDCOUNT(VAR2 0,2)ANDCROSS(VAR2,MA(VAR2,2)))AND REF(DOWN,1) REF(DOWN,2)ANDUP REF(DOWN,1); TJ1:=REF(DOWN,1) REF(DOWN,2)ANDUP REF(DOWN,1)ANDC HHV(H,21)*0.82; ND:=TJ202ANDTJ1ANDBT; STICKLINE(ND,0,0.8,0.1,0),COLORRED; DRAWTEXT(ND,0.7, 牛底 ),COLORYELLOW; YK:= KDJ.K (89,3,3),COLOR00FF00; YD:= KDJ.D (89,3,3),COLOR00FF00,LINETHICK2; ZK:= KDJ.K (27,3,3),COLORRED; Z1D:= KDJ.D (27,3,3),COLORRED,LINETHICK2; RK:= KD.K (5,3,3),COLORWHITE; RD:= KD.D (5,3,3),COLORWHITE,LINETHICK2; RJC:=IF(CROSS(RK,RD),50,0),COLORFFFFFF; ZJC:=IF(CROSS(ZK,Z1D),30,0),COLORRED; YJC:=IF(CROSS(YK,YD),20,0),COLOR0080FF; HZ:=COUNT(MACD 0,4)=4ANDCOUNT(MACD REF(MACD,1),4) 2ANDMACD REF(MACD,1)ANDMA(C,5) REF(MA(C,5),1); NN:=(HZANDRJCANDZJCANDYJC)ANDUP; N22:NN; DRAWTEXT(N22,0.6, 牛 ),COLORRED; DRAWTEXT(N22,0.3, 庄 ),COLORRED; DIFFV:=EMA(DCLOSE,9)-EMA(DCLOSE,27); DEAV:=EMA(DIFFV,5); A1V:=CROSS(DIFFV,DEAV); DB2:=REF(CLOSE,A1V+1) CLOSEANDDIFFV REF(DIFFV,A1V+1)ANDCROSS(DIFFV,DEAV); DEA0:=EMA(DIFFV*100,9); MACD0:=2*(DIFFV*100-DEA0); HM:=(MACD0 REF(MACD0,1)*2.5ANDMACD0 LHT:=DB2ANDHM; DRAWTEXT(LHT,0.3, 牛势 ),COLORRED; DRAWICON(LHT,0.1,1); KK:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.14159,COLORSTICK; MAA:=(KK/REF(KK,1) =2ANDKK 0ANDC 0AND(H=HHV(H,10)ORC=HHV(C,10)))*80,STICK,COLORWHITE,LINETHICK3; QMM:=(MA(C,30) REF(MA(C,30),1)ANDKK/REF(KK,1) =2ANDKK 0ANDCOUNT(KK REF(KK,1),4) =1 ANDCROSS(KK,45)AND(H=HHV(H,10)ORC=HHV(C,10)))*100,COLORWHITE,LINETHICK2; N:=14;MM:=6; MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N); HD:=HIGH-REF(HIGH,1); LD1:=REF(LOW,1)-LOW; DMP:=EXPMEMA(IF(HD 0 HD LD1,HD,0),N); DMM:=EXPMEMA(IF(LD1 0 LD1 HD,LD1,0),N); PDI:=DMP*100/MTR; MDI:=DMM*100/MTR; ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM); ADXR:=EXPMEMA(ADX,MM); MAI:=IF(CROSS(PDI,MDI)AND(C 1.05*REF(C,1)ORREF(C,1) 1.05*REF(C,2))AND(V 2*REF(V,1)ORREF(V,1) 2*REF(V,2))ANDMA(V,5) MA(V,60),20,0),COLORRED,LINETHICK2; RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K1:=SMA(RSV9,3,1); DK1:=K1-REF(K1,1),COLORSTICK; MA10:=MA(CLOSE,10),; MA20:=MA(CLOSE,20); MA30:=MA(CLOSE,30); MA60:=MA(CLOSE,60); Q5:=MA5 REF(MA5,1),; Q10:=MA10 REF(MA10,1),; Q20:=MA20 REF(MA20,1),; Q30:=MA30 REF(MA30,1),; Q60:=MA60 REF(MA60,1),; XJQ:=(Q5ANDQ10)*0.5,; JJD:=(H+L+C)/3; QSX1:=HHV(MA((((LOW+HIGH)+CLOSE)/3),8),60),COLORRED,LINETHICK2; QSX2:=HHV(MA((((LOW+HIGH)+CLOSE)/3.18),8),20),COLORWHITE,LINETHICK2; QSX3:=HHV(MA((((LOW+HIGH)+CLOSE)/3.258),8),10),COLORYELLOW,LINETHICK2; QSX4:=HHV(MA((((LOW+HIGH)+CLOSE)/3.08),80),13),COLORLIMAGENTA,LINETHICK2; ZQ1:=QSX1 REF(QSX1,1),; ZQ2:=QSX2 REF(QSX2,1),; ZQ3:=QSX3 REF(QSX3,1),; ZQ4:=QSX4 REF(QSX3,1),; SQ1:=ZQ1ANDZQ2,; SQ2:=ZQ2ANDZQ3,; SQ3:=ZQ2ANDZQ3,; SQ4:=ZQ3ANDZQ4,; Q3:=ZQ1ANDZQ2ANDZQ3,; Q4:=ZQ1ANDZQ2ANDZQ3ANDZQ4,; QSWW:=SQ1ORSQ2ORSQ3ORSQ4ORQ3ORQ4,; VV:=(C+L+H)/3; DSA:=SMA(XMA(VV,15),2,1)LINETHICK3; DU1:=DSA*0.9518,COLORLICYAN,LINETHICK1; MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); MA3:=MA(CLOSE,20); MA4:=MA(CLOSE,60); Z5Q:=MA1 REF(MA1,1),; Z10Q:=MA2 REF(MA2,1),; Z20Q:=MA3 REF(MA3,1),; Z60Q:=MA4 REF(MA4,1),; DS:=Z5QANDZ10QANDZ60Q,; ZSL:=Z5QANDZ10QANDZ20Q,; DZSL:=Z10QANDZ20QANDZ60Q,; DZSL2:=Z5QANDZ10QANDZ20QANDZ60Q,; ZZS:=ZSLANDDZSLANDDZSL2,; ZZSL:=DSORZSLORDZSLORDZSL2ORZZS,; QSZ:=(L DU1ANDZZSLANDQSWWANDC DSAANDUP)*0.5,COLORYELLOW,LINETHICK2; LO:=(L DU1ANDC DSAANDQSWWANDUP)*0.5,COLORMAGENTA,LINETHICK2,LINESTICK; CJ:=QSZANDLOANDH DSA,COLORRED,; A:=MA(C,30); A1:=A*1.1; A4:=A*0.9; A2:=A1-(A1-A4)*0.191; CCC:=IF(HIGH*1.01 A2ORREF(HIGH,1) REF(A2,1),A1,A4),LINETHICK3,COLORRED; SSS:=IF(HIGH*1.01 A2ORREF(HIGH,1) REF(A2,1),A2,A4),LINETHICK3,COLORFFFFFF; ZC:=CCC SSS,; ZA1:=CCC REF(CCC,1),; ZA2:=SSS REF(SSS,1),; ZA:=ZA1ANDZA2,; ZW:=(CJANDZCANDZA)OR(LOANDZCANDZA),; SSSSS:=((ZWANDXJQ)OR(LOANDXJQ)ANDUP)*0.5,COLORLIRED,LINETHICK4,STICK; DRAWICON(SSSSS 0,0.1,1); Q2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100; Q3:=SMA(Q2,9,1); Q4:=SMA(Q3,3,1); 长趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK2; 趋势线:EMA(Q3,3),COLORRED,LINETHICK2; DRAWTEXT(CROSS(趋势线,长趋势)ANDREF(长趋势,1) 80,REF(长趋势,3), 顶 ),COLORRED,LINETHICK5; 逢低买:DRAWTEXT(REF(CROSS(趋势线,长趋势),82)AND趋势线 1.3*长趋势,长趋势, 逢低买 ),LINETHICK1; 买:DRAWTEXT(REF(CROSS(长趋势,趋势线),1)AND长趋势 1.3*趋势线,趋势线, 买 ),COLORRED,LINETHICK1; VAR3:=PEAKBARS(3,15,1) VAR5:=IF(VAR3=1,2,0); 顶:=IF(VAR5=2,2,0); 顶A:IF(顶 REF(顶,1),50,0),COLORGREEN; DRAWTEXT(顶A=50,45, 快逃 ),COLOR00FF00; 金叉:CROSS(长趋势,趋势线); DRAWTEXT(金叉,趋势线, ★ ),COLORRED;[源码注释]通达信公式动态公式解读输出XG:最近5日一直存在收盘价 OANDC 1日前的收盘价ANDV 1日前的成交量(手)推荐阅读:通达信黄金神龙指标 活筹:=(100*WINNER(REF(CLOSE,1)*1.1)-100*WINNER(REF(CLOSE,1)*0.9)); M活筹:=SMA(SMA(活筹,3,1),3,1),COLORWHITE; 死筹:=100*WINNER(CLOSE),COLORGREEN; M死筹:=SMA(SMA(死筹,3,1),3,1); 主力筹码:=100*WINNER(CLOSE*0.9),COLORCYAN; M主力筹码:=SMA(主力筹码,3,1); 穿透筹码:=(100*WINNER(CLOSE)-100*WINNER(REF(CLOSE,1)*1)),COLORF00FF0; VAR1:=1; VAR2:=1/WINNER(CLOSE); VAR3:=MA(CLOSE,13); VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100); VAR5:=LLV(LOW,75); VAR6:=HHV(HIGH,75); VAR7:=(VAR6-VAR5)/100; VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1); VARA:=3*VAR8-2*SMA(VAR8,15,1); 散户线:=(100-VARA)*VAR1,COLORWHITE,LINETHICK2; 主力线:=MA(WINNER(CLOSE*0.95)*100,3)*VAR1,COLORFF00FF,LINETHICK2; 新庄:=(100-IF(VAR2 5,IF(VAR2 100,VAR2,VAR4-10),0))*VAR1,COLORGREEN,LINETHICK1,POINTDOT; VARD:=散户线 VAR4; 0,COLORBLUE,LINETHICK2; 25; -50; STICKLINE(主力线 散户线,0,主力线-散户线,0,0),COLORYELLOW; STICKLINE(主力线 散户线AND主力线 50,50-散户线,主力线-散户线,0,0),COLORRED; STICKLINE(主力线 散户线,0,主力线-散户线,0,0),COLORWHITE; STICKLINE(主力线 散户线AND主力线-散户线 -50,-50,主力线-散户线,0,0),COLORGREEN; STICKLINE(VARD,-75,主力线-散户线,1,0),COLORFF00FF; 庄散搏杀选股:IF(VARDAND主力线-散户线 -75,1,0); DIFF1:=EMA(CLOSE,16)-EMA(CLOSE,58),COLORWHITE; DEA1:=EMA(DIFF1,88),COLORYELLOW; MACD1:2*(DIFF1-DEA1)*100; MAMACD1:MA(MACD1,5),,COLORWHITE; DWX:LLV(MACD1,20); GWX:HHV(MAMACD1,20),COLORRED; DIFF:=EMA(CLOSE,8)-EMA(CLOSE,26),COLORWHITE; DEA:=EMA(DIFF,50),COLORYELLOW; MACD:2*(DIFF-DEA)*100; MAMACD:MA(MACD,5),,COLORWHITE; STICKLINE(MACD1 MAMACD1,0,MACD1,2,0),COLORGREEN; STICKLINE(MACD MAMACD,MACD1*0.6,0,2,0),COLORYELLOW; STICKLINE(MACD 0,MAMACD,MACD1,2,0),COLORGREEN; STICKLINE(MACD1 MAMACD1ANDMACD MAMACD,0,MACD1,2,0),COLORRED; VAR2:=LLV(LOW,10); VAR3:=HHV(HIGH,25); VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4); T1:=VAR4 REF(VAR4,1)ANDREF(VAR4,1) REF(VAR4,2); T2:=C O*1.03; T3:=V T4:=NOT(NAMELIKE( S )ORNAMELIKE( *S DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2;T5:=REF(MACD,1) T6:=DIF 前高:=HHV(MACD,26);T7:=REF(DIF,1) T8:=REF(MACD,1) T10:=REF(MA(C,5),1) REF(MA(C,10),1); T9:=REF(DIF,1) T11:=MA(C,5) MA(C,10); 神龙摆尾:T1ANDT2ANDT3ANDT4ANDT5ANDT6ANDT7ANDT8ANDT9ANDT10 ANDT11; DRAWBAND(神龙摆尾,RGB(255,0,0),0,RGB(0,255,0));