通达信金叉顶背加仓、减仓、顶背

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),COLORWHITE;
D:=SMA(K,3,1),COLORYELLOW;
J:3*K-2*D,COLORYELLOW;
金叉:IF(SUM(CROSS(K,D)AND D<23,15)>=2 AND CROSS(K,D)AND C>O,10,0),COLORFFFF00;
加仓:IF(J>D,J,DRAWNULL),COLORRED,LINETHICK1;
减仓:IF(J<D,J,DRAWNULL),COLORGREEN,LINETHICK1;
STICKLINE((J>100 AND K>=60),100,J,1,1),COLORYELLOW;
STICKLINE(K>92,100,K,1,1),COLORGREEN;
STICKLINE((J<=0 AND K<=30),0,J,1,1),COLORYELLOW;
STICKLINE(K<=9,0,K,1,1),COLORRED;
A1:=BARSLAST(REF(CROSS(J,K),1));
A2:=BARSLAST(REF(CROSS(K,J),1));
顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(J,A2+1)>J AND CROSS(K,J);
顶:DRAWLINE(A2=0,D,顶背,D,0),COLORBLUE,POINTDOT;
DRAWTEXT(顶背,D,'顶B'),COLORBLUE;{}
DRAWTEXT(CURRBARSCOUNT=60,60,''),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=55,45,''),COLORRED;
DRAWTEXT(CURRBARSCOUNT=50,30,''),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=45,15,''),COLORBLUE;


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

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

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

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