VAR1:=1; VAR2:=REF(CLOSE-OPEN,2); VAR3:=REF(CLOSE,1); VAR4:=REF(CLOSE,2); VAR5:=REF(CLOSE,3); VAR6:=REF(CLOSE,4); VAR7:=MAX(MAX(MAX(CLOSE,VAR3),VAR4),VAR5); VAR8:=MIN(MIN(MIN(CLOSE,VAR3),VAR4),VAR5); 紅色持股: STICKLINE(CLOSE=VAR7 AND (VAR3>=VAR4 OR VAR3>=VAR5) OR VAR3=VAR7 AND (VAR4=VAR8 OR VAR5=VAR8) AND CLOSE>=VAR4 OR VAR4=VAR7 AND VAR5=VAR8 AND CLOSE>=VAR3 OR VAR5=VAR7 AND CLOSE>=VAR3 AND CLOSE>=VAR4,VAR3,CLOSE,5,1),COLORRED; 品紅變盤: STICKLINE(CLOSE=VAR7 AND VAR3=VAR8,VAR4,CLOSE,5,1),COLORMAGENTA; 黃色下跌: STICKLINE(CLOSE=VAR8 AND (VAR3<VAR4 OR VAR3<VAR5) OR VAR3=VAR8 AND (VAR4=VAR7 OR VAR5=VAR7) AND CLOSE<VAR4 OR VAR4=VAR8 AND VAR5=VAR7 AND CLOSE<VAR3 OR VAR5=VAR8 AND CLOSE<VAR3 AND CLOSE<VAR4,VAR3,CLOSE,5,0),COLORYELLOW; 綠色買: STICKLINE(VAR3=VAR7 AND CLOSE=VAR8,VAR4,CLOSE,5,0),COLORGREEN; STICKLINE(VAR3=VAR8 AND CLOSE>=VAR4 OR (VAR4=VAR8 AND VAR3<=VAR5 OR VAR5=VAR8 AND VAR3<=VAR4) AND VAR4<VAR6 AND CLOSE>=VAR3,VAR3,VAR4,5,0),COLORGREEN; 蘭色拋售: STICKLINE(VAR3=VAR7 AND CLOSE<VAR4 OR (VAR4=VAR7 AND VAR3>VAR5 OR VAR5=VAR7 AND VAR3>VAR4) AND VAR4>=VAR6 AND CLOSE<VAR3,VAR3,VAR4,5,1),COLORBLUE; VAR9:=SAR(5,1,5); VARA:=EMA(CLOSE,30); VARB:=IF(CLOSE>450,8,IF(CLOSE>=20 AND CLOSE<150,0.2,IF(CLOSE<20 AND CLOSE>=10,0.07,IF(CLOSE<10,0.03,0.07)))); 變色龍: STICKLINE(CLOSE>VAR9,VARA,VARA+VARB,6,0),COLORMAGENTA; STICKLINE(CLOSE<VAR9,VARA,VARA-VARB,6,0),COLORF0F000; STICKLINE(CROSS(CLOSE,VAR9),VARA,VARA-VARB,6,0); STICKLINE(CROSS(VAR9,CLOSE),VARA,VARA+VARB,6,0),COLORRED; STICKLINE(RANGE(DAY,6,9) OR RANGE(DAY,27,30),VARA+0.01,VARA-0.01,6,0),COLORYELLOW; 生命線: FORCAST(CLOSE,30)*VAR1,COLOR0099FF;