在线检测未来函数

通达信黄金分割线画线主图指标公式

来源:Internet,编辑:股旁网,2016-10-18

N:=80;
M:=3;
高:=7.41;
低:=4.30;
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20),LINETHICK1;
MA60:MA(CLOSE,60),LINETHICK1;
{高:=REF(HHV(H,N),M);
低:=REF(LLV(L,N),M);}{自动定位法}
H38:=高-(高-低)*0.382;
H中:=高-(高-低)*0.5;
H61:=高-(高-低)*0.618;
顶点:REFDATE(高,DATE),DOTLINE,COLORWHITE;
H61.8%:REFDATE(H38,DATE),DOTLINE,COLORMAGENTA;
H50%:REFDATE(H中,DATE),DOTLINE,COLORRED;
H38.2%:REFDATE(H61,DATE),DOTLINE,COLORMAGENTA;
低点:REFDATE(低,DATE),DOTLINE,COLORWHITE;
DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;
DRAWTEXT(ISLASTBAR,H38.2%,'H38.2%'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,H50%,'H50%'),COLORRED;
DRAWTEXT(ISLASTBAR,H61.8%,'H61.8%'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;

通达信黄金分割线画线主图指标公式

相关文章