您现在的位置:  股票知识 > 股票公式 > 通达信股票公式 > 正文
南财搜索

通信达公式指标大全 通达信飞龙寻底幅图公式源码(3)

2018-04-28 15:50    股票知识   zhishi.southmoney.com
    

 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)>CLOSE AND DIFFV>REF(DIFFV,A1V+1) AND CROSS(DIFFV,DEAV);
 DEA0:=EMA(DIFFV*100,9);
 MACD0:=2*(DIFFV*100-DEA0);
 HM:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);
 LHT:=DB2 AND HM;
 QS:LHT;

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)>=2 AND KK>0 AND C>0 AND (H=HHV(H,10) OR C=HHV(C,10)))

*80,STICK,COLORWHITE,LINETHICK3;
 QMM:=(MA(C,30)>REF(MA(C,30),1) AND KK/REF(KK,1)>=2 AND KK>0 AND COUNT(KK<REF

(KK,1),4)>=1
 AND CROSS(KK,45) AND (H=HHV(H,10) OR C=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) OR REF(C,1)>1.05*REF(C,2)) AND

(V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(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:=(Q5 AND Q10)*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:=ZQ1 AND ZQ2,;
 SQ2:=ZQ2 AND ZQ3,;
 SQ3:=ZQ2 AND ZQ3,;
 SQ4:=ZQ3 AND ZQ4,;
 Q3:=ZQ1 AND ZQ2 AND ZQ3,;
 Q4:=ZQ1 AND ZQ2 AND ZQ3 AND ZQ4,;
 QSWW:=SQ1 OR SQ2 OR SQ3 OR SQ4 OR Q3 OR Q4,;
 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:=Z5Q AND Z10Q AND Z60Q,;
 ZSL:=Z5Q AND Z10Q AND Z20Q,;
 DZSL:=Z10Q AND Z20Q AND Z60Q,;
 DZSL2:=Z5Q AND Z10Q AND Z20Q AND Z60Q,;
 ZZS:=ZSL AND DZSL AND DZSL2,;
 ZZSL:=DS OR ZSL OR DZSL OR DZSL2 OR ZZS,;
 QSZ:=(L<DU1 AND ZZSL AND QSWW AND C<DSA AND UP)*0.5,COLORYELLOW,LINETHICK2;
 LO:=(L<DU1 AND C<DSA AND QSWW AND UP)*0.5,COLORMAGENTA,LINETHICK2,LINESTICK;
 CJ:=QSZ AND LO AND H<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>A2 OR REF(HIGH,1)>REF(A2,1),A1,A4),LINETHICK3,COLORRED;
 SSS:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A2,A4),LINETHICK3,COLORFFFFFF;
 ZC:=CCC>SSS,;
 ZA1:=CCC>REF(CCC,1),;
 ZA2:=SSS>REF(SSS,1),;
 ZA:=ZA1 AND ZA2,;
 ZW:=(CJ AND ZC AND ZA) OR (LO AND ZC AND ZA),;
 SSSSS:=((ZW AND XJQ) OR (LO AND XJQ) AND UP)*0.5,COLORLIRED,LINETHICK4,STICK;
 DRAWICON(SSSSS>0,0.1,1);

更多股票公式相关资讯请关注南方财富网

 

(股票知识网zhishi.southmoney.com)
    股票知识网声明:资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。
商务进行时
股票知识学习
联盟广告

关于股票知识网 -版权声明 -诚聘英才 -广告服务 -网站地图 -
特此声明:广告商的言论与行为均与股票知识网无关
zhishi.southmoney.com
股票知识网 © 版权所有 闽ICP备09035581号