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;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)