黄金分割提示
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2010-12-24 10:26:00
公式简介:
50.0%的黄金分割点信号没有输出,需要的删除下面50%部分的大括号即可显示了,代码如下:
{黄金分割}
高:=REF(HHV(H,60),3);
低:=REF(LLV(L,60),3);
H19:=高-(高-低)*0.191;
H38:=高-(高-低)*0.382;
H50:=高-(高-低)*0.500;
H61:=高-(高-低)*0.618;
H80:=高-(高-低)*0.809;
TOP:REFDATE(高,DATE),POINTDOT,COLORWHITE,NODRAW;
%80.9:REFDATE(H19,DATE),POINTDOT,COLORYELLOW,NODRAW;
%61.8:REFDATE(H38,DATE),POINTDOT,COLORMAGENTA,NODRAW;
{%50.0:REFDATE(H50,DATE),POINTDOT,COLORGREEN,NODRAW;}
%38.2:REFDATE(H61,DATE),POINTDOT,COLORMAGENTA,NODRAW;
%19.8:REFDATE(H80,DATE),POINTDOT,COLORYELLOW,NODRAW;
BOTTOM:REFDATE(低,DATE),POINTDOT,COLORWHITE,NODRAW;
DRAWTEXT(ISLASTBAR,TOP,' ←%顶点'),COLORWHITE;
DRAWTEXT(ISLASTBAR,%80.9,' ←%80.9'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,%61.8,' ←%61.8'),COLORMAGENTA;
{DRAWTEXT(ISLASTBAR,%50.0,' ←%50.0'),COLORGREEN;}
DRAWTEXT(ISLASTBAR,%38.2,' ←%38.2'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%19.8,' ←%19.1'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,BOTTOM,' ←%低点'),COLORWHITE;
[url=http://www.goodgupiao.com/gupiaogongshi/11398.html][B]黄金分割提示[/B][/url]