当前位置:首页 > 同花顺公式 > 内容

同花顺不一样的MACD指标公式

作者:公式指标网   更新时间:2017-09-24   点击:

不一样的MACD指标公式
 网上找的,测试好不好用。

VAR1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
 VAR2:=( MA((CLOSE-VAR1)/VAR1,1));
买点1: IF(CROSS(VAR2,0) AND LOW/REF(HIGH,1)<1.012,20,0);
最佳点:IF(COUNT(VAR2>REF(VAR2,1),3)=3 AND
 COUNT(VAR2<0,10)=10 AND REF(VAR2,3)=LLV(VAR2,10),60,0);
买点2: IF(REF(VAR2,2)=LLV(VAR2,20) AND
 REF(VAR2,2)<0.071 AND REF(VAR2,2)<REF(VAR2,1) AND
 NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND
 CLOSE>REF(CLOSE,1),20,0);
 MMA:=EMA(VAR2,12)*0.7;
 MMB:=EMA(VAR2,3);
快到底:IF(LLV(MMB-MMA,12)>0,0,-30),LINETHICK2,colorgreen;
底初选股:IF( CROSS(0, LLV(MMB-MMA,12)),10,0),LINETHICK0;
 DIFF:( EMA(CLOSE,12) - EMA(CLOSE,26))*100,colorred;
 DEA: EMA(DIFF,9),COLORFFFFFF,LINETHICK1;
 MACD:= 2*(DIFF-DEA);
 {www.qill.cnPARTLINE(DIFF,DIFF>=REF(DIFF,1),RGB(255,0,0),
 DIFF<REF(DIFF,1),RGB(0,255,0)),LINETHICK1;}
抄底:IF(快到底<0 AND CROSS(MACD,0),30,0);
 DRAWICON( 抄底>0,35 ,1 );
 STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),colorgreen;
 STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLORFFCC33;
 STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,2,0),coloryellow;
 STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,3,0),colormagenta;
 LC:=REF(CLOSE,1);
 RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
 TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
 HD:=(HIGH - REF(HIGH,1));
 LD:=(REF(LOW,1) - LOW);
 DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
 DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
 PDI:=((DMP * 100) / TR1);
 MDI:=((DMM * 100) / TR1);
 ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
 AV:=(RSI5 + ADX);
 DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
 WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
 NEWVOL:=(RSI5 - WR10);
最佳买入:=(AV + NEWVOL);
最佳买入选股:=IF(CROSS(最佳买入,0),1,0),STICK,colorred;
 VAR1:=SMA(最佳买入选股,3,1);
 VAR2:=SMA(VAR1,3,1),COLOR0000FF;
 VAR3:=SMA(VAR2,3,1),COLOR00FFFF;
短线买点:IF(CROSS(VAR2,VAR3) AND (VAR2<40),0.3,0* 10000),COLORFF00FF,LINETHICK2;


同花顺不一样的MACD指标公式

资源下载

相关文章

热门推荐

移动端首页 | PC端

© by gszx.com.cn Mobile Web