首页 > 编程语言 >龙哥量化:通达信量化MACD趋势指标公式源码

龙哥量化:通达信量化MACD趋势指标公式源码

时间:2024-06-13 11:33:46浏览次数:24  
标签:SHORT EMA DEA 龙哥 CLOSE LONG 源码 量化 DIFF

如果您需要代写公式, 请联系我。

龙哥QQ:591438821

龙哥微信:Long622889

DIFF:=( EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA),STICK;
STICKLINE(DIFF< 0,0,DIFF,2,0),COLORGREEN;
STICKLINE(DIFF>=0,0,DIFF,2,0),COLORRED;
STICKLINE(DEA>=0,0,DEA,2,-1),COLOR0000CC;
STICKLINE(DEA< 0,0,DEA,2,-1),COLORGREEN;
柱1:=IF(DIFF>DEA,DIFF,0),COLORRED;
柱2:=IF(DEA< DIFF,DEA,0),COLORMAGENTA;
DRAWICON(crOSS(DIFF,DEA),柱2,1);
DRAWICON(CROSS(DEA,DIFF),DEA*1.1,2);
总涨跌比:DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,COLORCYAN,NODRAW;
净资产:=FINANCE(34);
年ROE:FINANCE(33)/FINANCE(34)COLORCYAN,NODRAW;
PE:=DYNAINFO(39),COLORRED,NODRAW;
PB:CONST(DYNAINFO(7) / FINANCE(34))COLOREE3AB2,NODRAW;
回报率:年ROE/PB*100,COLOR0099FF,NODRAW;
M:=9;
SHORT:=12;
LONG:=26;
JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));
DD:=(MacD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));
DIF拐头价:=(DIFF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)))COLORCYAN,LINETHICK3;
柱变向价:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORGREEN;
DRAWTEXT_FIX(1,0.9,0.94,0,STRCAT('拐点价格: ',CON2STR(DIF拐头价,2))),COLORYELLOW;
DRAWNUMBER(DIFF>DEA,3,BArslAST(CROSS(DIFF,DEA))+1),COLORRED,NODRAW;
DRAWNUMBER(DIFF< DEA,-1,BARSLAST(CROSS(DEA,DIFF))+1),COLORGREEN,NODRAW;
DRAWTEXT_FIX(1,0.0,0.95,0,STRCAT('停止操作: ',CON2STR(CLOSE< MA(CLOSE,60),2))),COLORCYAN;
VA:=IF(CLOSE>REF(CLOSE,1),vol,-VOL);
obv1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2>0,OBV2,0),3);
MAC3:=MA(C,3);
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,DEA/4,2,0),COLORYELLOW;

标签:SHORT,EMA,DEA,龙哥,CLOSE,LONG,源码,量化,DIFF
From: https://www.cnblogs.com/long136/p/18245567

相关文章

  • 龙哥量化:通达信高位线主图指标公式源码
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889M1:=5;M2:=13;M3:=24;M4:=60;M5:=120;M6:=250;MA5:MA(CLOSE,M1);MA13:MA(CLOSE,M2);MA24:MA(CLOSE,M3);MA60:MA(CLOSE,M4);MA125:MA(CLOSE,M5);MA250:MA(CLOSE,M6);LT:=LLVBARS(L,60);LT1:=LLVBARS(L,60);LTT:=......
  • 龙哥量化:通达信资金进出强度副图指标公式源码
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散户筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率}ZZLKP:=ZLCM/(ZLCM+SHCM)*1......
  • 龙哥量化:通达信压力区间买卖点,买卖提示突破为主升浪
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889STICKLINE(C>=O,H,L,0,0),colorred;STICKLINE(C>=O,C,O,10,10),colorred;STICKLINE(C=OANDC<REF(C,1),H,L,0,0),colorcyan;STICKLINE(C=OANDC<REF(C,1),C,O,10,0),colorcyan;STICKLINE(C<O,H,L,0,0......
  • 龙哥量化:通达信新超买超卖指标公式源码
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889新超买超卖指标公式使用说明:1.适用于超跌反弹行情。2.个股大幅下跌后,连续出现黄区块表明进入超卖严重,一段时间内出现的次数越多连续时间越长,后面的行情越有期待。3.当出现买入信号,可以试探性的入场,同时设定......
  • 龙哥量化:通达信宝塔红升波段主图 指标公式源码
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889VAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);VAR4:=......
  • 龙哥量化:通达信一定涨副图指标公式抄底类指标公式源码
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889VARR1:=EMA(HHV(HIGH,500),21);VARR2:=EMA(HHV(HIGH,250),21);VARR3:=EMA(HHV(HIGH,90),21);VARR4:=EMA(LLV(LOW,500),21);VARR5:=EMA(LLV(LOW,250),21);VARR6:=EMA(LLV(LOW,90),21);VARR7:=EMA((VARR4*0......
  • 龙哥量化:通达信波段潜伏金叉副图指标公式源码
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889T:80,POINTDOT,COLORBLUE,LINETHICK3;OO:20,POINTDOT,COLORMAGENTA,LINETHICK3;ZKK:kd.K#WEEK(9,3,3),COLORRED;ZKD:KD.D#WEEK(9,3,3),COLORYELLOW;VAR1:=FILTER(crOSS(ZKK,ZKD)ANDREF(ZKD,1)<30,13);VA......
  • 龙哥量化:通达信神密底指标,抄底类源码副图
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889DRAWGBK(CLOSE>0,RGB(0,10,10),RGB(88,0,0),0,2,0);VAR1:=MA(CLOSE,55);VAR2:=expma(CLOSE,6);VAR3:=MA(CLOSE,5);VAR4:=MA(CLOSE,5)-MA(CLOSE,13)+MA(CLOSE,8);VAR5:=MA(VAR4,2);VAR6:=VAR4*1.045;VAR7......
  • 龙哥量化:筹码穿透通达信副图,研究透这筹码指标,你就会对股票的趋势一目了然
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889筹码穿透研究透了这个筹码指标,你就会对股票的趋势一目了然,心有成竹。黄线穿透蓝绿浮筹,股票将会进入一个上涨的趋势。源码{筹码穿透}AF:=(COST(99)-COST(1));K1:STICKLINE(COST(99)-COST(95)<AF,COST(99......
  • 龙哥量化:通达信OBV成交量指标公式源码
    如果您需要代写公式,请联系我。龙哥QQ:591438821龙哥微信:Long622889流通盘:=CAPITAL;DBHS:IF(CAPITAL<2000000,V/CAPITAL*100,V/流通盘*100);标准量:IF(COUNT(V>流通盘/1000,0)>0,流通盘/1000,0),COLORMAGENTA;STICKLINE(C<REF(C,1),0,vol,0.1,0),COLORGREEN;STICKLINE(C>REF(C,......