编写条件:
编写方法:
网友求助:
飞狐显示缺口源码缺口点位数字显示错误哪位帮忙改下,谢谢!
STICKLINE(LOW>REF(HIGH,1),LOW,REF(HIGH,1),50,1001),Color408080;
STICKLINE(REF(LOW,1)>HIGH,REF(LOW,1),HIGH,50,1001),Color808040;
DRAWTEXT(LOW>REF(HIGH,1),REF(HIGH,1),NUMTOSTR(REF(HIGH,1),2)+'-'+NUMTOSTR(LOW,2)),Color408080;
DRAWTEXT(REF(LOW,1)>HIGH,REF(LOW,1),NUMTOSTR(REF(LOW,1),2)+'-'+NUMTOSTR(HIGH,2)),Color808040;
解答如下:
sk:=LOW>REF(HIGH,1); xk:=REF(LOW,1)>HIGH;
STICKLINE(sk,LOW,REF(HIGH,1),30,1),Color408080;
STICKLINE(xk,REF(LOW,1),HIGH,30,1),Color808040;
DRAWTEXT(sk,l,'-'),Color009fff,PXDN10,SHIFT6; DRAWNUMBER(sk,l,l,2),Color009fff,PXDN10; DRAWNUMBER(sk,l,ref(h,1),2),Color009fff,PXDN10,SHIFT7;
DRAWTEXT(xk,h,'-'),Coloraaaaaa,PXDN10,SHIFT6; DRAWNUMBER(xk,h,ref(l,1),2),Coloraaaaaa,PXDN10; DRAWNUMBER(xk,h,h,2),Coloraaaaaa,PXDN10,SHIFT7;
STICKLINE(sk,LOW,REF(HIGH,1),30,1),Color408080;
STICKLINE(xk,REF(LOW,1),HIGH,30,1),Color808040;
DRAWTEXT(sk,l,'-'),Color009fff,PXDN10,SHIFT6; DRAWNUMBER(sk,l,l,2),Color009fff,PXDN10; DRAWNUMBER(sk,l,ref(h,1),2),Color009fff,PXDN10,SHIFT7;
DRAWTEXT(xk,h,'-'),Coloraaaaaa,PXDN10,SHIFT6; DRAWNUMBER(xk,h,ref(l,1),2),Coloraaaaaa,PXDN10; DRAWNUMBER(xk,h,h,2),Coloraaaaaa,PXDN10,SHIFT7;