当前位置:牛股网 > 牛股宝 >

将此听雪教师的二次金叉DZH版本,改成TDX的

  • 牛股宝
  • 2020-09-10 13:56
  • 牛股网

撰写标准:

撰写方式 :网民寻求帮助:

请将此听雪教师的二次金叉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;

解释以下:

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(ISLASTBAR,T1),0.5);

S3:=CROSS(BACKSET(ISLASTBAR,T3),0.5);

S2:=CROSS(BACKSET(ISLASTBAR,T2),0.5);

S4:=CROSS(BACKSET(ISLASTBAR,T4),0.5);

DRAWLINE(S3,L,S1,L,1);

DRAWLINE(S4,L,S2,L,1);

IF(JX,L*0.98,DRAWNULL)CIRCLEDOT,LINETHICK7,COLOR00FFFF;

IF(JX,L*0.98,DRAWNULL)CIRCLEDOT,LINETHICK5,COLORFF99FF;

IF(JX,L*0.98,DRAWNULL)CIRCLEDOT,LINETHICK2,COLOR0033FF;

DRAWTEXT( S1,L*0.965 , 'A'),COLOR00FFFF,LINETHICK3;

DRAWTEXT( S2,L*0.965 , 'B'),COLOR00FFFF,LINETHICK3;

DRAWTEXT( S3,L*0.965 , 'C'),COLOR00FFFF,LINETHICK3;

DRAWTEXT( S4,L*0.965 , 'D'),COLOR00FFFF,LINETHICK3;

  • 关注微信

相关文章

微信公众号