{主图同显日周K线公式}
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA60:MA(C,60);
CCC1:="C#WEEK";
OOO1:="O#WEEK";
HHH1:="H#WEEK";
LLL1:="L#WEEK";
VVAR1:=IF(WEEKDAY=3,HHH1,CCC1);
VVAR2:=IF(WEEKDAY=3,LLL1,OOO1);
XXX1:STICKLINE(CCC1>=OOO1,OOO1*0.8,CCC1*0.8,11,0),COLORMAGENTA;
周K线阳:STICKLINE(CCC1>=OOO1,VVAR1*0.8,VVAR2*0.8,3,0),COLORMAGENTA;
XXX2:STICKLINE(OOO1>CCC1,CCC1*0.8,OOO1*0.8,11,0),COLORDD8833;
周K线阴:STICKLINE(OOO1>CCC1,VVAR1*0.8,VVAR2*0.8,3,0),COLORDD8833;
KLINE(O,H,L,C,0);