以下是我用飞狐公式写的,请大侠帮忙转换成MT的公式。
close1:=(h+l+o+3*c)/6;
MID := MA(CLOSE1,N);
UPPER:= MID + P*STD(CLOSE1,N);
LOWER:= MID - P*STD(CLOSE1,N);
bollkd:=5*(upper-lower);
MID1 := MA(bollkd,N);
UPPER1:= MID1 + P*STD(bollkd,N);
LOWER1:= MID1 - P*STD(bollkd,N);
kd:(bollkd-lower1)/(upper1-lower1);
xx:0;
zx:0.5,POINTDOT;
sx:1.0;