MACD金叉红箭头副图指标(macd金叉图标)
内容导航:
Q1:帮我编一个金叉死叉,带箭头提示的macd副图,要大智慧的
INPUT:SHORT(12,5,40),LONG(26,20,100),M(9,2,60);
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA), COLORSTICK;
DRAWICON(CROSS(DIFF,DEA),DEA,7),ALIGN1;
DRAWICON(CROSS(DEA,DIFF),DEA,8),ALIGN1;
_______________________________________________________________
说明:
第一行是参数定义;
中间三行是MACD指标;
最后两行是画金叉死叉;(如已有MACD指标,只要复制这两行就可以)
Q2:有老师能写个MACD金叉死叉在等于或者大于百分之三的涨跌幅才用红色和绿色小箭头表示的副图公式 吗,谢...
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD2:(DIFF-DEA)*2,COLORSTICK;
DU0:=CROSS(DIFF,0);
UD0:=CROSS(0,DIFF);
TDU0:=BARSLAST(DU0);
TUD0:=BARSLAST(UD0);
DU3:=REF(DU0,1);
UD3:=REF(UD0,1);
TDU3:=BARSLAST(DU3);
TUD3:=BARSLAST(UD3);
UDGLINE:=IF((TDU3 < TUD3),REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3));
JDU0:=(((REF(CLOSE,1) <= REF(UDGLINE,1)) AND (CLOSE > UDGLINE)) AND (TDU0 < TUD0));
JUD0:=(((REF(CLOSE,1) >= REF(UDGLINE,1)) AND (CLOSE < UDGLINE)) AND (TUD0 < TDU0));
¥100. ¥100.
Q3:请老师给我编个公式:5日、10日均价线金叉 5日、10日均量线金叉 macd金叉时标注红色箭头的公式...
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
V1:=MA(V,5);
V2:=MA(V,10);
MA1:=MA(C,5);
MA2:=MA(C,10);
三线金叉:IF(CROSS(DIF,DEA) AND CROSS(MA1,MA2) AND CROSS(V1,V2),20,0),LINESTICK,COLORRED;
(已测试通过,不过同时金叉股不好找啊.。一个人问的?)
Q4:求通达信macd指标中包含:顶底背离、金叉死叉、macd上升红色下降绿色带箭头,谢谢!
{通达信MACD顶底背离指标---供参考!}
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
STICKLINE(MACD>REF(MACD,1),0,MACD,1,0),COLOR0000FF;
STICKLINE(MACD<REF(MACD,1),0,MACD,1,0),COLOR00FF00;
DRAWICON(REF(MACD,2)>REF(MACD,1) AND MACD>REF(MACD,1),MACD-0.2,1);
DRAWICON(REF(MACD,2)<REF(MACD,1) AND MACD<REF(MACD,1),MACD+0.2,2);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;
DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,5) ;
DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;
死叉:=CROSS(DEA,DIFF);
DRAWICON(死叉,DIFF+0.2,6) ;
金叉:=CROSS(DIFF,DEA);
DRAWICON(金叉,DEA-0.2,17) ;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1) AND CROSS(DEA,DIFF);
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.25,'进场'),COLOR0000FF,LINETHICK2;
Q5:请老师编写一个KDJ与MACD2天内都出现金叉时在主图上做标志谢谢
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:MA(K,3,1);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,M);
F1:=CROSS(K,D);
F2:=CROSS(DIFF,DEA);
COUNT(F1,2)=1 AND COUNT(F1,2)=1;
祝你开开心心,事事如意! (*^__^*)
不明白的再问哟,请及时采纳,多谢!
Q6:如何看macd金叉
MACD是趋势指标,金叉有滞后性,意义不大.柱的变化是MACD指标的一种用法,可以参考下:当MACD值为负,柱由大变小,而股价开始转升,说明趋势发生转变,其后的金叉是对趋势的确认.日线MACD柱的变化频繁,并不适合趋势的研判.
MACD最好做为辅助指标使用,帮助判别趋势的强弱和背离转折.
Q7:MACD为什么金叉不显示红色箭头
系统就有此指标,输入:MACD,选择:MACD策略,看看是否符合你的要求。如果不适合你,再帮你编写。
本文由锦鲤发布,不代表本站立场,转载联系作者并注明出处:/showinfo-2-152484-0.html