预测线的神光生命线 (很好的指标)
-
相关简介:C/C++ Code 复制内容到剪贴板 Aaa0:=(C-LLV(L,3))/(HHV(H,3)-LLV(L,3)); Aaa1:=SMA(Aaa0,2,1); Aaa2:=SMa(Aaa1,2,1); Aaa3:=3*Aaa1-2*Aaa2; Aaa4:=2*Aaa3-0.5; Aaa5:=C*(1-(Aaa4-Aaa2)/15); 生命线:Aaa5,PRECISION2,COLORGREEN; fbars:=SYSPARAM(1)-1; tj:=barss
-
文章来源:择股网作者:股海网发布时间:2009-11-27浏览次数:
C/C++ Code复制内容到剪贴板
- Aaa0:=(C-LLV(L,3))/(HHV(H,3)-LLV(L,3));
- Aaa1:=SMA(Aaa0,2,1);
- Aaa2:=SMa(Aaa1,2,1);
- Aaa3:=3*Aaa1-2*Aaa2 ;
- Aaa4:=2*Aaa3-0.5;
- Aaa5:=C*(1-(Aaa4-Aaa2)/15);
- 生命线:Aaa5,PRECISION2,COLORGREEN;
- fbars:=SYSPARAM(1)-1;
- tj:=barssince(c)>fbars-50;
- fc:=生命线;
- fo:=生命线;
- fl:=llv(生命线,2);
- fh:=hhv(生命线,2);
- <%
- vbars=ffl.vardata("fbars")
- vc=ffl.vardata("fc")
- vo=ffl.vardata("fo")
- vh=ffl.vardata("fh")
- vl=ffl.vardata("fl")
- vend=ubound(vc)
- n=50
- if vbars<=vend and vbars>vend-vbars+n then
- redim temp(vend-vbars+n,3)
- for i=2*vbars-vend-n to vbars
- ii=i+vend-2*vbars+n
- temp(ii,0)=2*vc(vbars)-vo(i)
- temp(ii,1)=2*vc(vbars)-vh(i)
- temp(ii,2)=2*vc(vbars)-vl(i)
- temp(ii,3)=2*vc(vbars)-vc(i)
- next
- for i=vbars-n to vend
- ii=vend-i
- vo(i)=temp(ii,3)
- vh(i)=temp(ii,2)
- vl(i)=temp(ii,1)
- vc(i)=temp(ii,0)
- next
- ffl.vardata("fc")=vc
- ffl.vardata("fo")=vo
- ffl.vardata("fh")=vh
- ffl.vardata("fl")=vl
- end if
- %>
- PARTLINE(tj,fc),shift50;
- VERTLINE(ISLASTBAR),COLORYELLOW,POINTDOT;HH:=H; LL:=L; OO:=O; CC:=C;
- <%
- vh=ffl.vardata("hh")
- vl=ffl.vardata("ll")
- vo=ffl.vardata("oo")
- vc=ffl.vardata("cc")
- last=ubound(vh)
- if last<101 then
- b=last+1
- else
- b=0
- for i=last-101 to last-51
- vh(i)=vh(i+51)
- vl(i)=vl(i+51)
- vo(i)=vo(i+51)
- vc(i)=vc(i+51)
- next
- a=(vh(last-51)+vl(last-51))/2
- j=1
- for i=last-49 to last
- j=j+2
- vh(i)=2*a-vl(i-j)
- vl(i)=2*a-vh(i-j)
- vo(i)=2*a-vc(i-j)
- vc(i)=2*a-vo(i-j)
- next
- end if
- ffl.vardata("hh")=vh
- ffl.vardata("ll")=vl
- ffl.vardata("oo")=vo
- ffl.vardata("cc")=vc
- ffl.varstartindex("hh")=b
- ffl.varstartindex("ll")=b
- ffl.varstartindex("oo")=b
- ffl.varstartindex("cc")=b
- %>
- A:=BACKSET(ISLASTBAR,50);
- STICKLINE(A AND CC>=OO,OO,CC,6,1),COLORMAGENTA,SHIFT50;
- STICKLINE(A AND CC>=OO,LL,OO,0.1,1),COLORMAGENTA,SHIFT50;
- STICKLINE(A AND CC>=OO,CC,HH,0.1,1),COLORMAGENTA,SHIFT50;
- STICKLINE(A AND CC<OO,OO,CC,6,0),COLORGREEN,SHIFT50;
- STICKLINE(A AND CC<OO,LL,HH,0.1,0),COLORGREEN,SHIFT50;
- VERTLINE(ISLASTBAR),COLORYELLOW,POINTDOT;