通达信双线合壁副图公式

N:=5;M:=11;

MID:=MA(C,N);

VART1:=POW((C-MID),2);

VART2:=MA(VART1,N);

VART3:=SQRT(VART2);

UPPER:=MID+2*VART3;

LOWER:=MID-2*VART3;

WIDTH:(UPPER-LOWER)/MID;

MA6:MA(WIDTH,M);