编写要求:
公式在线网解答:
网友求助:
解答如下:
a1:=ref(CLOSE,2);b1:=a1*1.05;b2:=a1*1.05*1.05;
c1:=a1/1.05;c2:=a1/1.05/1.05;
PARTLINE(BARPOS=SYSPARAM(1)-1,b1),COLORWHITE;
PARTLINE(BARPOS=SYSPARAM(1),b1),COLORWHITE;
PARTLINE(BARPOS=SYSPARAM(1)-1,b2),COLOR00EEEE;
PARTLINE(BARPOS=SYSPARAM(1),b2),COLOR00EEEE;
PARTLINE(BARPOS=SYSPARAM(1)-1,c1),COLORFF00FF;
PARTLINE(BARPOS=SYSPARAM(1),c1),COLORFF00FF;
PARTLINE(BARPOS=SYSPARAM(1)-1,c2),COLOR00FF00;
PARTLINE(BARPOS=SYSPARAM(1),c2),COLOR00FF00;