P1:=5;
P2:=13;
P3:=34;
LTP:=FINANCE(7)/100;
HHSTS:=SUMBARS(vol,LTP);
FXJ:=GPONEDAT(1);
JYR:=BARSCOUNT(C)+1;
PC:=(O+C)/2;
V1:=SUM(VOL,P1);
V2:=SUM(VOL,P2);
V3:=SUM(VOL,P3);
V0:=SUM(VOL,0);
VHH:=SUM(VOL,HHSTS);
JDV0:=IF(V0
HSL:=VOL/JDV0;
HSL0:=VOL/V0;
JDZB1:=(P1-1)/P1;
JDZB2:=(P2-1)/P2;
JDZB3:=(P3-1)/P3;
JDV1:=(1-ZHSL)*REF(V1,1)*JDZB1+VOL;
JDV2:=(1-ZHSL)*REF(V2,1)*JDZB2+VOL;
JDV3:=(1-ZHSL)*REF(V3,1)*JDZB3+VOL;
JDV11:=IF(JYR=1,VOL,JDV1);
JDV21:=IF(JYR=1,VOL,JDV2);
JDV31:=IF(JYR=1,VOL,JDV3);
HS1:=VOL/JDV11;
HS2:=VOL/JDV21;
HS3:=VOL/JDV31;
JDHS1:=REF(HS1,1)*(1-HSL)*JDZB1+HSL;
JDHS2:=REF(HS2,1)*(1-HSL)*JDZB2+HSL;
JDHS3:=REF(HS3,1)*(1-HSL)*JDZB3+HSL;
ZJDHS1:=IF(VHH
CYZ2:DMA(PC,ZJDHS2);
CYZ3:DMA(PC,ZJDHS3);
cycOO:DMA(PC,HSL);
绝对成本:DMA(PC,VOL/V0),COLORBLUE,DOTLINE;