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

无未来准确率高的通达信指标公式 通达信绝好分时公式源码(2)

2018-06-29 17:01    股票知识   zhishi.southmoney.com
    

 MMA30:=EMA(CLOSE,30);
 强弱界定:=EMA(CLOSE,900);
 DRAWBAND(MMA30,RGB(100,0,0),强弱界定,RGB(0,255,0));
 DRAWICON(CROSS(MMA30,强弱界定),H,1);
 CC:=CLOSE,COLORWHITE,LINETHICK2;
 VAR7:=SMA(CC,6.18,1);
 VAR8:=SMA(VAR7,3.14,1);
 RCC:=DYNAINFO(3);
 S2:=SMA(C,3,1);
 S6:=SMA(C,5,1);
 DK:=4*(S2-S6);
 KK:=1;
 {暗轨}
 {AA1:=PLOYLINE(CLOSE<COST(50) AND T>5,COST(20));
 BB1:=PLOYLINE(CLOSE<COST(50) AND T>5,COST(80));
 DRAWBAND(BB1,RGB(50,50,50),AA1,DRAWNULL);
 {CYC}
 VAR1:=AMOUNT/VOL/100;
 VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
 VAR3:=SUM(AMOUNT,5)/VAR1/100;
 VAR4:=SUM(AMOUNT,13)/VAR1/100;
 VAR5:=SUM(AMOUNT,34)/VAR1/100;
 CYC5:=DMA(VAR2,VOL/VAR3);
 CYC13:=DMA(VAR2,VOL/VAR4);
 CYC34:=DMA(VAR2,VOL/VAR5);
 DRAWBAND(CYC5,RGB(00,50,50),CYC13,DRAWNULL);
 DRAWBAND(CYC13,RGB(00,150,150),CYC34,DRAWNULL);
 {分时MACD}
 昨收:=DYNAINFO(3);
 HH:=DYNAINFO(5);
 LL:=DYNAINFO(6);
 FK:=MAX(HH-昨收,昨收-LL)*0.1;
 ZS:=昨收-FK*3.2;
 Q1:=昨收-FK*3.22;
 Q2:=昨收-2*FK*3.22;
 Q3:=昨收-3*FK*3.2;
 MA5:=MA(CLOSE,5);
 MA10:=MA(CLOSE,10);
 MA20:=MA(CLOSE,20);
 MA30:=MA(CLOSE,30);
 DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));
 DEA:=(EMA(DIF,6));
 MACD:=5*(DIF-DEA);
 STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLORFF00FF,LINETHICK3;
 STICKLINE(MACD>=0 AND MACD< REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLORBLUE,LINETHICK3;
 STICKLINE(MACD<0 AND MACD>=REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLOR4ABEFF,LINETHICK3;
 STICKLINE(MACD<0 AND MACD< REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLORBLUE,LINETHICK3;
 STICKLINE(DK>0,RCC*KK,RCC*KK+DK,0,1),COLORRED;
 STICKLINE(DK<0,RCC*KK,RCC*KK+DK,0,1),COLORCYAN;
 {多头MACD}
 DIFF:=EMA(CLOSE,240)-EMA(CLOSE,240)*100;
 DEAA:=EMA(DIFF,18);
 多头MACD:=(-3*(DIFF-DEAA))*20,NODRAW;
 ZD:=HHV(多头MACD,0);
 ZX:=LLV(多头MACD,0);
 CZ:=(Q2-Q3)/6;
 FDM:=MAX(ABS(ZD),ABS(ZX))*1.5;
 RB:=(Q2+Q3)/2+2*(Q2-Q3)/3/FDM*多头MACD;
 STICKLINE(多头MACD>0,RB,(Q2+Q3)/2,2,1),LINETHICK1,COLOR0000FF;
 STICKLINE(多头MACD<0,RB,(Q2+Q3)/2,2,1),LINETHICK1,COLOR00FF00;
 {火焰山及底部信号}{WWW.88GS.COM}
 FAA:=WINNER(CLOSE+CLOSE*15/100)*100;
 FBB:=WINNER(CLOSE+CLOSE*0/100)*100;
 FCC:=FAA-FBB;
 FDD:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;
 FEE:=FCC<3 AND FDD<0.5 AND OPEN!=LOW;
 FA1:=DYNAINFO(6);
 FA2:=IF(LOW>FA1,0,IF(HIGH<FA1,1,(FA1-LOW+0.01)/(HIGH-LOW+0.01)));
 FA3:=VOL/WINNER(LOW);
 FA4:=REF(HHV(CLOSE,120),1);
 FA5:=REF(LLV(CLOSE,120),1);
 FA6:=100*(CLOSE-FA5)/(FA4-FA5);
 FA7:=FA2>0 OR FA2=1;
 FA8:=FA7 AND FA3/REF(FA3,3)>=3 AND FA6<80;
 FA9:=REF(FA8,1) OR REF(FA8,2) OR REF(FA8,3) OR REF(FA8,4);
 FA10:=FA8 AND FA9;
 FA11:=IF(FILTER(FA8,3),5,0);
 FA12:=IF(FILTER(FA10,3) OR FEE,10,0);
 EEEE:=(RCC-ZS)/5;
 FVAR1:=REF(LOW,1);
 FVAR2:=SMA(ABS(LOW-FVAR1),13,1)/SMA(MAX(LOW-FVAR1,0),13,1);
 FVAR3:=EMA(FVAR2,13);
 FVAR4:=LLV(LOW,34);
 FVAR51:=EMA(IF(LOW<=FVAR4,FVAR3,0),3);
 FVAR5:=IF(FVAR51>20,20,FVAR51);
 DRAWTEXT(FA11,(Q2+Q3)/2*1.02,'↑进'),COLOR00FFFF;
 DRAWTEXT(FA12,(Q2+Q3)/2*1.03,',↑加');(股票知识网zhishi.southmoney.com)
    股票知识网声明:资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。
商务进行时
股票知识学习
联盟广告

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