编写要求:
解答:
?网友求助:
请将此听雪老师的二次金叉DZH版本,改为TDX的。谢谢各位。
源码如下:
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=sMA(RSV,3,1);
D:=sMA(K,3,1);
jx:=cross(k,d);
金叉点:JX,COLOR8866FF,LINETHICK0;
金叉次:=SUM(JX,0);
t1:=SUMBARS(jx,1);
t3:=SUMBARS(jx,3);
t2:=SUMBARS(jx,2);
t4:=SUMBARS(jx,4);
s1:=cross(BACKSET(BARSTATUS=2,t1),0.5);
s3:=cross(BACKSET(BARSTATUS=2,t3),0.5);
s2:=cross(BACKSET(BARSTATUS=2,t2),0.5);
s4:=cross(BACKSET(BARSTATUS=2,t4),0.5);
DRAWLINE(s3,l,s1,l,1);
DRAWLINE(s4,l,s2,l,1);
PARTLINE(L*0.98,jx ),CIRCLEDOT,LINETHICK7,COLOR00FFFF;
PARTLINE(L*0.98,jx ),CIRCLEDOT,LINETHICK5,COLORFF99FF;
PARTLINE(L*0.98,jx ),CIRCLEDOT,LINETHICK2,COLOR0033FF;
DRAWTEXT( s1,L*0.965 , 'A'),COLOR00FFFF,LINETHICK3,ALIGN1;
DRAWTEXT( s2,L*0.965 , 'B'),COLOR00FFFF,LINETHICK3,ALIGN1;
DRAWTEXT( s3,L*0.965 , 'C'),COLOR00FFFF,LINETHICK3,ALIGN1;
DRAWTEXT( s4,L*0.965 , 'D'),COLOR00FFFF,LINETHICK3,ALIGN1;
?
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!