SM:=BETWEEN(PERIOD,5,6);
SW:=BETWEEN(PERIOD,3,5);
SD:=PERIOD< 5;
MH:=H#MONTH;
MO:=O#MONTH;
MC:=C#MONTH;
ML:=L#MONTH;
STICKLINE(MO>MC && SM,ML,MH,4,0),COLOR2F2F0F;
STICKLINE(MO< MC && SM,ML,MH,4,0),COLOR2F0F2F;
STICKLINE(MO=MC && SM,ML,MH,4,0),COLOR2F2F2F;
STICKLINE(MO>MC && SM,MO,MC,4,0),COLOR3F3F18;
STICKLINE(MO< MC && SM,MO,MC,4,0),COLOR3F183F;
STICKLINE(MO=MC && SM,MO,MC,4,0),COLOR3F3F3F;
WH:=H#WEEK;
WO:=O#WEEK;
WC:=C#WEEK;
WL:=L#WEEK;
STICKLINE(WO>WC && SW,WL,WH,4,0),COLOR0A260A;
STICKLINE(WO< WC && SW,WL,WH,4,0),COLOR0A0A26;
STICKLINE(WO=WC && SW,WL,WH,4,0),COLOR262626;
STICKLINE(WO>WC && SW,WO,WC,4,0),COLOR083608;
STICKLINE(WO< WC && SW,WO,WC,4,0),COLOR080836;
STICKLINE(WO=WC && SW,WO,WC,4,0),COLOR363636;
DH:=H#DAY;
DO:=O#DAY;
DC:=C#DAY;
DL:=L#DAY;
STICKLINE(DO>DC && SD,DL,DH,4,0),COLOR2F2F0F;
STICKLINE(DO< DC && SD,DL,DH,4,0),COLOR2F0F2F;
STICKLINE(DO=DC && SD,DL,DH,4,0),COLOR2F2F2F;
STICKLINE(DO>DC && SD,DO,DC,4,0),COLOR3F3F18;
STICKLINE(DO< DC && SD,DO,DC,4,0),COLOR3F183F;
STICKLINE(DO=DC && SD,DO,DC,4,0),COLOR3F3F3F;
DRAWKLINE(H,O,L,C);