{黃金分割} {N 1 999 80, M 1 15 3} MA5:=MA(C,5); MA13:=MA(C,13); 高:=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; 頂點(diǎn):高,LINETHICK0,PRECIS2; 低點(diǎn):低,LINETHICK0,PRECIS2; %19.8:H19,LINETHICK0,PRECIS2; %38.2:H38,LINETHICK0,PRECIS2; %50:H中,LINETHICK0,PRECIS2; %61.8:H61,LINETHICK0,PRECIS2; %80.9:H80,LINETHICK0,PRECIS2; {以下為比例可選} STICKLINE(ISLASTBAR,高,高,10000,0),COLORRED; STICKLINE(ISLASTBAR,H19,H19,10000,0),COLORYELLOW; STICKLINE(ISLASTBAR,H38,H38,10000,0),COLORMAGENTA; STICKLINE(ISLASTBAR,H中,H中,10000,0),COLORBLUE; STICKLINE(ISLASTBAR,H61,H61,10000,0),COLORMAGENTA; STICKLINE(ISLASTBAR,H80,H80,10000,0),COLORYELLOW; STICKLINE(ISLASTBAR,低,低,10000,0),COLORWHITE; {以下為數(shù)字可選} {DRAWTEXT(ISLASTBAR,高,'頂點(diǎn)'),COLORRED; DRAWTEXT(ISLASTBAR,H19,'%19.8'),COLORYELLOW; DRAWTEXT(ISLASTBAR,H38,'%38.2'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,H中,'%50'),COLORBLUE; DRAWTEXT(ISLASTBAR,H61,'%61.8'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,H80,'%80.9'),COLORYELLOW; DRAWTEXT(ISLASTBAR,低,'低點(diǎn)'),COLORWHITE;} |
|