黄金分割点的公式
通达信公式黄金分割点
MA1:MA(CLOSE,0)COLORYELLOW;
MA2:MA(CLOSE,00)COLORLIRED;
MA3:MA(CLOSE,00)COLORMAGENTA;
MA4:MA(CLOSE,0)COLORGREEN;
LINETHICK1;
高:=REF(HHV(H,N),M);
低:=REF(LLV(L,N),M);
H19:=高-(高-低)*0.191;
H38:=高-(高-低)*0.382;
H中:=高-(高-低)*0.5;
H61:=高-(高-低)*0.618;
H80:=高-(高-低)*0.809;
顶点:REFDATE(高,DATE),COLORWHITE;
19.8%:REFDATE(H19,DATE),COLORYELLOW;
38.2%:REFDATE(H38,DATE),COLORMAGENTA;
50%:REFDATE(H中,DATE),COLORWHITE;
61.8%:REFDATE(H61,DATE),COLORRED,LINETHICK2;
80.9%:REFDATE(H80,DATE),COLORYELLOW;
低点:REFDATE(低,DATE),COLORWHITE;
DRAWTEXT(ISLASTBAR,顶点, ‘顶点’),COLORWHITE;
DRAWTEXT(ISLASTBAR,19.8%, ‘19.8’),COLORYELLOW;
DRAWTEXT(ISLASTBAR,38.2%, ‘38.2’),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,50%, ‘50’),COLORRED;
DRAWTEXT(ISLASTBAR,61.8%, ‘61.8’),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,80.9%, ‘80.9’),COLORYELLOW;
DRAWTEXT(ISLASTBAR, 低点,‘低点’),COLORWHITE;
- 上一篇:没有啦
- 下一篇:波段买卖 2016/1/1