正点财经首页     加入收藏
指标首页 通达信指标 同花顺指标 大智慧指标 飞狐指标 指标教程 指标实战 指标百科 股市学院
指标源码搜索: 热词:买卖  黑马  K线  牛股  量能  波段  顶底  抄底  成本  逃顶  MACD  涨停  换手率
你的位置: > 正点财经 > 炒股指标公式 > 同花顺指标公式 > 正文

同花顺波MACD底背离买进指标公式

同花顺指标公式源码概况:
  • 指标类别: 同花顺指标公式
  • 授权方式: 免费版
  • 指标评级: ★★★★★
  • 指标分类: 趋势
  • 画线方法: 副图
  • 日期:2020-08-08 来源:互联网
同花顺指标公式源码介绍:

同花顺波MACD底背离买进指标公式:

MACD称为异同移动平均线,是从双指数移动平均线发展而来的,由快的指数移动平均线(EMA12)减去慢的指数移动平均线(EMA26)得到快线DIF,再用2×(快线DIF-DIF的9日加权移动均线DEA)得到MACD柱。MACD的意义和双移动平均线基本相同,即由快、慢均线的离散、聚合表征当前的多空状态和股价可能的发展变化趋势,但阅读起来更方便。MACD的变化代表着市场趋势的变化,不同K线级别的MACD代表当前级别周期中的买卖趋势。

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA);
MACD骑墙进:DIFF>=0 AND CROSS(DIFF,dea) AND V/MA(V,5)>1.5,colormagenta;
DRAWTEXT(MACD骑墙进,0.9,'MACD骑墙进'),colormagenta;
MACD骑墙出:DIFF<0 AND CROSS(dea,DIFF) AND V/MA(V,5)<1.5,colorcyan;
DRAWTEXT(MACD骑墙出,1,'MACD骑墙出'),colorcyan;
底背离进:REF(CLOSE,BARSLAST(REF(CROSS(DIFF,DEA),1) AND MACD<0)+1)>CLOSE AND DIFF>REF(DIFF,BARSLAST(REF(CROSS(DIFF,DEA),1) AND MACD<0)+1) AND CROSS (DIFF,DEA) AND MACD>0,colormagenta;
DRAWTEXT(底背离进,0.9,'底背离进'),colormagenta;
底背离出:REF(CLOSE,BARSLAST(REF(CROSS(DEA,DIFF),1) AND MACD>0)+1)>CLOSE AND DIFF>REF(DIFF,BARSLAST(REF(CROSS(DEA,DIFF),1) AND MACD>0)+1) AND CROSS (DEA,DIFF) AND MACD<0,colorcyan;
DRAWTEXT(底背离出,1,'底背离出'),colorcyan;
ma4:=MA(C,4);
mA5:=MA(C,5);
mA10:=MA(C,10);
mA20:=MA(C,20);
MA60:=MA(C,60);
mA62:=MA(C,62);
小金角进:=COUNT(REF(mA10<mA20,3),16)>=15 AND COUNT(mA5>mA10,3)>2 AND CROSS(mA10,mA20)AND mA20>REF(mA20,1);
DRAWTEXT(小金角进,0.5,'小金角进');
STICKLINE(小金角进,0,0.5,5,0);
小金角出:=COUNT(REF(mA10>mA20,3),16)<15 AND COUNT(mA5<mA10,3)<2 AND CROSS(mA20,mA10)AND mA20<REF(mA20,1);
DRAWTEXT(小金角出,0.8,'小金角出');
STICKLINE(小金角出,0,0.8,5,0);
大金角进:=CROSS(mA20,mA62)AND mA62>REF(mA62,1) AND COUNT(V>REF(V,1),3)>2;
DRAWTEXT(大金角进,0.5,'大金角进');
STICKLINE(大金角进,0,0.5,5,0);
大金角出:=CROSS(mA62,mA20)AND mA62<REF(mA62,1) AND COUNT(V>REF(V,1),3)<2;
DRAWTEXT(大金角出,0.8,'大金角出');
STICKLINE(大金角出,0,0.8,5,0);
小金边进:=REF(COUNT(CROSS(ma10,ma20),15)=1 AND C<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND ma10>C AND C>ma20 AND SLOPE(MA20,4)>0 AND SLOPE(MA10,3)>0,2)=1 AND ma4>REF(ma4,1) AND V>REF(V,1);
DRAWTEXT(小金边进,0.5,'小金边进');
STICKLINE(小金边进,0,0.5,5,0);
小金边出:=REF(COUNT(CROSS(ma20,ma10),15)=1 AND C>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND ma10<C AND C<ma20 AND SLOPE(MA20,4)<0 AND SLOPE(MA10,3)<0,2)=1 AND ma4<REF(ma4,1) AND V<REF(V,1);
DRAWTEXT(小金边出,0.8,'小金边出');
STICKLINE(小金边出,0,0.8,5,0);
大金边进:=COUNT(CROSS(mA20,mA62)AND mA62>REF(mA62,1) AND COUNT(V>REF(V,1),3)>2,30)>0 AND C<mA20 AND C>mA62 AND mA62>REF(mA62,1);
DRAWTEXT(大金边进,0.5,'大金边进');
STICKLINE(大金边进,0,0.5,5,0);
大金边出:=COUNT(CROSS(mA62,mA20)AND mA62<REF(mA62,1) AND COUNT(V<REF(V,1),3)<2,30)>0 AND C>mA20 AND C<mA62 AND mA62<REF(mA62,1);
DRAWTEXT(大金边出,0.8,'大金角出');
STICKLINE(大金边出,0,0.8,5,0);
半山水库进:=CROSS(ma20,ma60) AND ma60>REF(ma60,1);
DRAWTEXT(半山水库进,0.5,'半山水库进');
STICKLINE(半山水库进,0,0.5,5,0);
半山水库出:=CROSS(ma60,ma20) AND ma60<REF(ma60,1);
DRAWTEXT(半山水库出,0.8,'大金角出');
STICKLINE(半山水库出,0,0.8,5,0);
海豚张嘴进:=CROSS(mA20,mA62)AND mA20>REF(mA20,1)AND COUNT(mA4/mA20>1.05,10)>5 AND ABS(mA4/mA20-1)<0.02 AND V/MA(V,5)>1.5;
DRAWTEXT(海豚张嘴进,0.5,'海豚张嘴进');
STICKLINE(海豚张嘴进,0,0.5,5,0);
海豚张嘴出:=CROSS(mA62,mA20)AND mA20<REF(mA20,1)AND COUNT(mA4/mA20<1.05,10)>5 AND ABS(mA4/mA20-1)>0.02 AND V/MA(V,5)<1.5;
DRAWTEXT(海豚张嘴出,0.8,'海豚张嘴出');
STICKLINE(海豚张嘴出,0,0.8,5,0);
金足底进:=(MA4<MA20 AND MA4>=REF(MA4,1) AND C>MA4 AND MA10>REF(MA10,1) AND MA20>=REF(MA20,1) AND V>MA(V,5));
DRAWTEXT(金足底进,0.8,'金足底进');
STICKLINE(金足底进,0,0.8,5,0);

同花顺波MACD底背离买进指标公式实例图解:

同花顺波MACD底背离买进指标公式

同花顺波MACD底背离买进指标公式

 

  • 风云榜
  • 总点击榜
  • 最新指标
月点击榜指标公式
更多指标百科
关于我们 | 商务合作 | 联系投稿 | 联系删稿 | 合作伙伴 | 法律声明 | 网站地图