N:=BARSLAST(DATE<>REF(DATE,1))+1;
HH1:=REF(HHV(H,N),N);//昨天全天的最高价
LL1:=REF(LLV(L,N),N);//昨天全天的最低价
CC:=REF(C,N);//昨天的收盘价
PIVOT:= (HH1+LL1+CC)/3;
R1:= 2*PIVOT - LL1;
S1:= 2*PIVOT - HH1;
R2:= PIVOT + (R1-S1);
S2:= PIVOT - (R1-S1);
R3:= HH1 - (2 * (LL1 - PIVOT));
S3:= LL1 - (2 * (HH1 - PIVOT));
SM1:(PIVOT+S1)/2,COLORGREEN;
SM2:(S1+S2)/2,COLORGREEN;
RM1:(PIVOT+R1)/2,COLORRED;
RM2:(R1+R2)/2,COLORRED;
ZXD:(HH1+LL1+CC)/3,COLORYELLOW,LINETHICK1;
|