网友求助:

X:=1.004285;
压力位1:REF(C,1)*POW(X,3),COLORYELLOW,NODRAW;
支撑位1:(REF(C,1)/POW(X,3)),COLORWHITE,NODRAW;
压力位2:REF(C,1)*POW(X,6),COLORYELLOW,NODRAW;
支撑位2:(REF(C,1)/POW(X,6)),COLORWHITE,NODRAW;
压力位3:REF(C,1)*POW(X,9),COLORYELLOW,NODRAW;
支撑位3:(REF(C,1)/POW(X,9)),COLORWHITE,NODRAW;
DRAWNUMBER(ISLASTBAR,H+0.1,CONST(压力位1)),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,L-0.1,CONST(支撑位1)),COLORWHITE;
DRAWNUMBER(ISLASTBAR,H+0.4,CONST(压力位2)),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,L-0.4,CONST(支撑位2)),COLORWHITE;
DRAWNUMBER(ISLASTBAR,H+0.7,CONST(压力位3)),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,L-0.7,CONST(支撑位3)),COLORWHITE;

 

解答如下:

X:=1.004285;
压力位1:REF(C,1)*POW(X,3),COLORYELLOW,LINETHICK0;
支撑位1:(REF(C,1)/POW(X,3)),COLORWHITE,LINETHICK0;
压力位2:REF(C,1)*POW(X,6),COLORYELLOW,LINETHICK0;
支撑位2:(REF(C,1)/POW(X,6)),COLORWHITE,LINETHICK0;
压力位3:REF(C,1)*POW(X,9),COLORYELLOW,LINETHICK0;
支撑位3:(REF(C,1)/POW(X,9)),COLORWHITE,LINETHICK0;
DRAWTEXT(BARSTATUS=2 AND 压力位1,h*1.02,NUMTOSTRN(压力位1,2)),COLOR00FFFF,LINETHICK1;
DRAWTEXT(BARSTATUS=2 AND 支撑位1,L*1.02,NUMTOSTRN(支撑位1,2)),COLORFFFFFF,LINETHICK1;
DRAWTEXT(BARSTATUS=2 AND 压力位2,h*1.01,NUMTOSTRN(压力位2,2)),COLOR00FFFF,LINETHICK1;
DRAWTEXT(BARSTATUS=2 AND 支撑位2,L*1.01,NUMTOSTRN(支撑位2,2)),COLORFFFFFF,LINETHICK1;
DRAWTEXT(BARSTATUS=2 AND 压力位3,h,NUMTOSTRN(压力位3,2)),COLOR00FFFF,LINETHICK1;
DRAWTEXT(BARSTATUS=2 AND 支撑位3,L,NUMTOSTRN(支撑位3,2)),COLORFFFFFF,LINETHICK1;