编写要求:
公式为: {试验参数j1(-50,-50,120)} n:=9;m1:=3;m2:=3; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1); D:=SMA(K,M2,1); J:=3*K-2*D; k1:1/3*rsv+ref(k,1)/3*2; d1:1/3*k+ref(d,1)/3*2; Jj:3*K1-2*D1; j11:=j;j昨:=ref(jj,1);jx:=if(j1=-50,j11,if(j1=-49,j昨,j1)); xxx:((9/7*jx-2*ref(k1,1)+12/7*ref(d1,1))/100)*(HHV(HIGH,9)-LLV(LOW,9))+LLV(LOW,9),colorred; DRAWTEXT(CURRBARSCOUNT=58 AND j1=-50,k,'设J=-50,所演即时股价;'),colorc0c0c0; DRAWTEXT(CURRBARSCOUNT=58 AND j1=-49,k,'设J=-49,J线拐头股价;'),colorc0c0c0; DRAWTEXT(CURRBARSCOUNT=58 AND j1=jx,k,'设J=自定义,J线达标临界股价;'),colorc0c0c0;
解答:
?n:=9;m1:=3;m2:=3;
rsv:=(c-llv(l,n))/(hhv(h,n)-llv(l,n))*100;
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!