{周}HH:=AA.H1#WEEK,LINETHICK;LL:=AA.L1#WEEK,LINETHICK;CC:=AA.C1#WEEK,LINETHICK;OO:=AA.O1#WEEK,LINETHICK;ZQ:=CURRBARSCOUNT<90 P:=91;{设定从倒数第150根K线开始显示周MACD}Q: MACD显示周期数为40周}P1:=;{设定从倒数第135根K线开始显示月MACD}Q1: MACD显示周期数为20个月}P30:=157;Q30: ZK:=.BOLL#WEEK;ZD: BOLL.UB#WEEK;ZJ:=BOLL.LB#WEEK;YK: BOLL.BOLL#MONTH;YD:=BOLL.UB#MONTH;YJ: BOLL.LB#MONTH;ZQZ:=TOTALBARSCOUNT;ZQ1: BARSCOUNT(C);KX1:=ZQZ-ZQ1;{周K线显示开始位置按倒数K线数计算}N1: KX1;{周K线显示开始位置}K6:=AA.DT1#WEEK;{周K线周期}K7:>REF(K6,1);{周K线更后}K8:=SUM(K7,0);{当前周K线位置}K9:=CONS