N1:=20;
N2:=40;
N3:=80;
N4:=120;
OLAL:(HHV(H,N1)-LLV(L,N1))/(HHV("000001$HIGH",N1)-LLV("000001$LOW",N1))*
("000001$CLOSE"-LLV("000001$LOW",N1))+LLV(L,N1), COLORFF8080,LINETHICK2;
OLAL1:(HHV(H,N2)-LLV(L,N2))/(HHV("000001$HIGH",N2)-LLV("000001$LOW",N1))*
("000001$CLOSE"-LLV("000001$LOW",N2))+LLV(L,N2), COLORYELLOW;
OLAL2:(HHV(H,N3)-LLV(L,N3))/(HHV("000001$HIGH",N3)-LLV("000001$LOW",N1))*
("000001$CLOSE"-LLV("000001$LOW",N3))+LLV(L,N3), COLORFF00FF;
OLAL3:=(LLV(H,N4)-HHV(L,N4))/(LLV("000001$HIGH",N4)-HHV("000001$LOW",N1))*
("000001$CLOSE"-LLV("000001$LOW",N4))+LLV(L,N4), COLOR00FF00, LINETHICK2;
{不知是我改的不对还是公式本身就这样,你自己看一下跟原图是否一样,复制即可}