DAYS1990:=DATETODAY(DATE); {从1990.12.19开始计算到当前的总天数}
Z:=((DAYS1990-REF(DAYS1990,1)) (WEEKDAY-REF(WEEKDAY,1))) OR BARSCOUNT(C)=1;{看两个相邻周期是否跨周}
T:=BARSLAST(Z);
C2:=REF(C,T+1);
O1:=IF(T,REF(O,T),O);
周涨%0:=(C-C2)/C2*100;
周最高%:=(HHV(H,T+1)-C2)/C2*100;
周最低%:=(LLV(L,T+1)-C2)/C2*100;
下压%:IF(周涨%0 =0,周最高%-周涨%0,周最高%-(O1-C2)/C2*100);
周涨%:(C-C2)/C2*100;
上功%:IF(周涨% =0,(O1-C2)/C2*100-周最低%,周涨%-周最低%);
T2:=IF(REF(Z,T+1)=1,T+2,IF(REF(Z,T+2)=1,T+3,IF(REF(Z,T+3)=1,T+4,
IF(REF(Z,T+4)=1,T+5,T+6))));
C20:=REF(C,T2);
二周涨%:(C-C20)/C20*100;
UploadPic/2010-12/201012920102012115.jpg
UploadPic/2010-12/201012920103947719.jpg
UploadPic/2010-12/20101292011111418.jpg
UploadPic/2010-12/201012920112052367.jpg