MACD上升下降背离加KDJ.RSI顶底背离

DIFF:EMA(CLOSE,10)-EMA(CLOSE,21);
 DEA:EMA(DIFF,8);
 MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED,LINETHICK1;
弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA,LINETHICK1;


 DD0:=C=HHV(C,180);
 EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
 CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
上升背离:(CC AND EE)*DEA,COLORLIBLUE;

FF:=C=LLV(C,180);
 GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
 LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
下降背离:(LL AND GG)*DEA,COLORFF937F;

RSV0:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 KK:=SMA(RSV0,3,1);
 DD:=SMA(KK,3,1);
 A22:=BARSLAST(REF(CROSS(KK,DD),1));
 B2:=REF(C,A22+1)>C AND REF(KK,A22+1)<KK AND CROSS(KK,DD);
 DRAWTEXT(IF(B2>0,1,0),0-0.01,'K底'),COLORYELLOW;
 C2:=BARSLAST(REF(CROSS(DD,KK),1));
 DD2:=REF(C,C2+1)<C AND REF(KK,C2+1)>KK AND CROSS(DD,KK);
 DRAWTEXT(IF(DD2>0,1,0),0+0.01,'K顶'),COLORYELLOW;

LC:=REF(CLOSE,1);
 RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
 RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
 A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
 B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
 DRAWTEXT(IF(B3>0,1,0),0-0.01,'R底'),COLORFF00FF;
 C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
 D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
 DRAWTEXT(IF(D3>0,1,0),0+0.01,'R顶'),COLORFF00FF;




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图