N:=100;KK:=BAAST(CURRBARSCOUNT=N);GD:=CONST(IF(ISLASTBAR=1,HHV(H,KK),0));{}DD:=CONST(IF(ISLASTBAR=1,LLV(L,KK),0));{}KJ:=GD-DD;{高低点差值=分区高度}GD4:=IF(CURRBARSCOUNT<=N,GD,DRAWNULL);高区:=IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINETHICK2;低区:=IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LINETHICK2;平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00FFFF;低:=IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF00;高:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FFFF;:=IF(CURRBARSCOUNT<=N/2,DD+KJ*0.