上海股票浅谈macd指标
上海股票浅谈cd指标
本文标题【上海股票浅谈cd指标】,是上海股票,由作者思东股票知识网整理编辑,主要讲哪位老师可以把箭头提示位置加到金叉,叉处,更一目了然!造福坛友!DIFF...
哪位老师可以把箭头提示位置加到金叉,叉处,更一目了然!造福坛友!
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)&**p;gt;C AND REF(DIFF,A1+1)&**p;lt;DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS(&**p;quot;KDJ.K&**p;quot;(9,3,3),&**p;quot;KDJ.D&**p;quot;(9,3,3)),1));
B2:=REF(C,A2+1)&**p;gt;C AND REF(&**p;quot;KDJ.K&**p;quot;(9,3,3),A2+1)&**p;lt;&**p;quot;KDJ.K&**p;quot;(9,3,3) AND CROSS(&**p;quot;KDJ.K&**p;quot;(9,3,3),&**p;quot;KDJ.D&**p;quot;(9,3,3));
A3:=BARSLAST(REF(CROSS(&**p;quot;RSI.RSI1&**p;quot;(6,12,24),&**p;quot;RSI.RSI2&**p;quot;(6,12,24)),1));
B3:=REF(C,A3+1)&**p;gt;C AND REF(&**p;quot;RSI.RSI1&**p;quot;(6,12,24),A3+1)&**p;lt;&**p;quot;RSI.RSI1&**p;quot;(6,12,24) AND CROSS(&**p;quot;RSI.RSI1&**p;quot;(6,12,24),&**p;quot;RSI.RSI2&**p;quot;(6,12,24));
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)&**p;lt;C AND REF(DIFF,C1+1)&**p;gt;DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS(&**p;quot;KDJ.D&**p;quot;(9,3,3),&**p;quot;KDJ.K&**p;quot;(9,3,3)),1));
D2:=REF(C,C2+1)&**p;lt;C AND REF(&**p;quot;KDJ.K&**p;quot;(9,3,3),C2+1)&**p;gt;&**p;quot;KDJ.K&**p;quot;(9,3,3) AND CROSS(&**p;quot;KDJ.D&**p;quot;(9,3,3),&**p;quot;KDJ.K&**p;quot;(9,3,3));
C3:=BARSLAST(REF(CROSS(&**p;quot;RSI.RSI2&**p;quot;(6,12,24),&**p;quot;RSI.RSI1&**p;quot;(6,12,24)),1));
D3:=REF(C,C3+1)&**p;lt;C AND REF(&**p;quot;RSI.RSI1&**p;quot;(6,12,24),C3+1)&**p;gt;&**p;quot;RSI.RSI1&**p;quot;(6,12,24) AND CROSS(&**p;quot;RSI.RSI2&**p;quot;(6,12,24),&**p;quot;RSI.RSI1&**p;quot;(6,12,24));
MACD底背:IF(B1&**p;gt;0,-0.1,0),COLORRED,POINTDOT;
KDJ底背:IF(B2&**p;gt;0,-0.1,0),COLORFF00FF,POINTDOT;
RSI底背:IF(B3&**p;gt;0,-0.1,0),COLORYELLOW,POINTDOT;
MACD顶背:IF(D1&**p;gt;0,0.1,0),COLOR00FF00,POINTDOT;
KDJ顶背:IF(D2&**p;gt;0,0.1,0),COLORFFCC66,POINTDOT;
RSI顶背:IF(D3&**p;gt;0,0.1,0),COLORWHITE,POINTDOT;
STICKLINE(B1&**p;gt;0,-0.1,0,2,0),COLORRED;
STICKLINE(B2&**p;gt;0,-0.1,0,2,0),COLORFF00FF;
STICKLINE(B3&**p;gt;0,-0.1,0,2,0),COLORYELLOW;
STICKLINE(D1&**p;gt;0,0.1,0,2,0),COLOR00FF00;
STICKLINE(D2&**p;gt;0,0.1,0,2,0),COLORFFCC66;
STICKLINE(D3&**p;gt;0,0.1,0,2,0),COLORWHITE;
平空开多:=CROSS(MACD,0);
平多开空:=CROSS(0,MACD);
DRAWICON(平空开多,LOW,1);
DRAWICON(平多开空,HIGH,2);
AUTOFILTER;
以上是“上海股票浅谈cd指标”的全部内容了,想了解更多相关上海股票资讯,敬请关注本栏目文章,以上内容不做任何依据,入市有,投资需谨慎!
标签: 上海股票
相关文章