WC:C#WEEK,LINETHICK0;
WO1:=IF(WEEKDAY<REF(WEEKDAY,1),O,DRAWNULL); WO:HHV(WO1,WEEKDAY),LINETHICK0; WH:HHV(H,WEEKDAY),LINETHICK0; WL:LLV(L,WEEKDAY),LINETHICK0; MC:=C#MONTH,LINETHICK0; MO1:=IF(DAY<REF(DAY,1),O,DRAWNULL); MO:=HHV(MO1,DAY),LINETHICK0; A:=DAY<REF(DAY,1); B:=BARSLAST(A)+1; MH:=HHV(H,B),LINETHICK0; ML:=LLV(L,B),LINETHICK0; STICKLINE(MC>=MO,MO,MC,4,0),COLOR5CA8FD; STICKLINE(MC<MO,MO,MC,4,0),COLOR008B00; STICKLINE(WC>=WO,WO,WC,4,0),COLOR003399; STICKLINE(WC<WO,WO,WC,4,0),COLOR993300; JC:=(REF(C,3)+REF(C,5)+REF(C,7)+REF(C,8)+REF(C,13)+REF(C,21))/6; 參考價:SMA(JC,5,1),CIRCLEDOT,COLORGREEN; {價:} IF(C>=參考價,參考價,DRAWNULL),CIRCLEDOT,COLOR0000FF; GJ:=(C+H+L+O)/4; 明日阻力:=L+(GJ-L)+(C-L),LINETHICK0; 明日支撐:=L+(C-GJ),LINETHICK0; 今日阻力:IF(ISLASTBAR,REF(明日阻力,1),DRAWNULL),POINTDOT,LINETHICK4,COLORMAGENTA; 今日支撐:IF(ISLASTBAR,REF(明日支撐,1),DRAWNULL),POINTDOT,LINETHICK4,COLORMAGENTA; DRAWKLINE(H,O,L,C); |
|