9qihuo.com
我们只提供有用的干货

MACD金死叉连线 (文华财经)

投资者咨询:MACD金死叉连线 (文华财经)
来源:文华财经  日期:2020-9-12 17:44
 画线参考MACD红绿柱
当MACD为红柱时,判断为上涨,走势未完成标记为虚线
再次出现绿柱时,判断前上涨走势完成,标记上涨为实线红色
此时绿柱判断下跌。走势未完成标记为虚线
再次出现红柱时,判断前下跌走势完成,标记上涨为实线绿色

图片点击可在新窗口打开查看
图片点击可在新窗口打开查看 文件名:画线.jpg

 
技术人员回复
日期:2020-9-12 17:51
参考:
DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26);
DEA  : =EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
N1:=SUMBARS(CROSS(DIFF,DEA),1);
N2:=SUMBARS(CROSSDOWN(DIFF,DEA),1);
C1:=BACKSET(CROSSDOWN(DIFF,DEA),HHVBARS(H,N1)+1),NODRAW;
C2:=BACKSET(CROSS(DIFF,DEA),LLVBARS(L,N2)+1),NODRAW;
DRAWLINE1(CROSS(C2,0.5),L,CROSS(C1,0.5),H,0),COLORRED;
DRAWLINE1(CROSS(C1,0.5),H,CROSS(C2,0.5),L,0),COLORGREEN;

投资者咨询:MACD金死叉连线 (文华财经)
来源:文华财经  日期:2020-9-12 17:44
 想比较三条红色上涨的力度要怎么编写呀 麻烦了

图片点击可在新窗口打开查看
图片点击可在新窗口打开查看 文件名:66.jpg


图片点击可在新窗口打开查看
图片点击可在新窗口打开查看 文件名:77.jpg
技术人员回复
日期:2020-9-12 19:28
以上涨红线的端点价格差,定义上涨力度,参考:
DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26);
DEA  : =EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
N1:=SUMBARS(CROSS(DIFF,DEA),1);
N2:=SUMBARS(CROSSDOWN(DIFF,DEA),1);
C1:=BACKSET(CROSSDOWN(DIFF,DEA),HHVBARS(H,N1)+1),NODRAW;
C2:=BACKSET(CROSS(DIFF,DEA),LLVBARS(L,N2)+1),NODRAW;
DRAWLINE1(CROSS(C2,0.5),L,CROSS(C1,0.5),H,0),COLORRED;
DRAWLINE1(CROSS(C1,0.5),H,CROSS(C2,0.5),L,0),COLORGREEN;
RC1:VALUEWHEN(CROSS(C1,0.5),H-VALUEWHEN(CROSS(C2,0.5),L)),NODRAW;
RC2:REF(RC1,SUMBARS(CROSS(C2,0.5),1)),NODRAW;
RC3:REF(RC1,SUMBARS(CROSS(C2,0.5),2)),NODRAW;
投资者咨询:MACD金死叉连线 (文华财经)
来源:文华财经  日期:2020-9-12 17:44
 麻烦加个条件
当RC3<RC2<RC1并且MACD<0时上方提示向下箭头
技术人员回复
日期:2020-9-13 8:36
 参考:

DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26);
DEA  : =EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
N1:=SUMBARS(CROSS(DIFF,DEA),1);
N2:=SUMBARS(CROSSDOWN(DIFF,DEA),1);
C1:=BACKSET(CROSSDOWN(DIFF,DEA),HHVBARS(H,N1)+1),NODRAW;
C2:=BACKSET(CROSS(DIFF,DEA),LLVBARS(L,N2)+1),NODRAW;
DRAWLINE1(CROSS(C2,0.5),L,CROSS(C1,0.5),H,0),COLORRED;
DRAWLINE1(CROSS(C1,0.5),H,CROSS(C2,0.5),L,0),COLORGREEN;
RC1:VALUEWHEN(CROSS(C1,0.5),H-VALUEWHEN(CROSS(C2,0.5),L)),NODRAW;
RC2:REF(RC1,SUMBARS(CROSS(C2,0.5),1)),NODRAW;
RC3:REF(RC1,SUMBARS(CROSS(C2,0.5),2)),NODRAW;
DRAWICON(RC3<RC2&&RC2<RC1&&MACD<0,RC1,5);
投资者咨询:MACD金死叉连线 (文华财经)
来源:文华财经  日期:2020-9-12 17:44


图片点击可在新窗口打开查看
图片点击可在新窗口打开查看 文件名:share_exportpage0.png
 
投资者咨询:MACD金死叉连线 (文华财经)
来源:文华财经  日期:2020-9-12 17:44
你好 看下能实现吗
技术人员回复
日期:2020-9-13 10:30
 这里您说的力度,是指什么?是红色线的画线长度?
投资者咨询:MACD金死叉连线 (文华财经)
来源:文华财经  日期:2020-9-12 17:44
 可以这么理解