大智慧个性大盘副图显示源码
-
相关简介:DPC:=INDEXC; DPO:=INDEXO; DPH:=INDEXH; DPL:=INDEXL; {ma5:ma(dpc,5);ma13:ma(dpc,13);ma21:ma(dpc,21);} STICKLINE(DPCDPO,DPC,DPO,8,0),COLOR0000FF; STICKLINE(DPCDPO,DPH,DPL,0.5,0),COLOR0000FF; STICKLINE(DPCDPO,DPC,DPO,8,0),COLOR00FF00; STICKLINE(DPCDPO,D
-
文章来源:股海网作者:股海网发布时间:2016-09-16浏览次数:
DPC:=INDEXC;
DPO:=INDEXO;
DPH:=INDEXH;
DPL:=INDEXL;
{ma5:ma(dpc,5);ma13:ma(dpc,13);ma21:ma(dpc,21);}
STICKLINE(DPC>DPO,DPC,DPO,8,0),COLOR0000FF;
STICKLINE(DPC>DPO,DPH,DPL,0.5,0),COLOR0000FF;
STICKLINE(DPC<DPO,DPC,DPO,8,0),COLOR00FF00;
STICKLINE(DPC<DPO,DPH,DPL,0.5,0),COLOR00FF00;
SH:=STKINDI('1A0001','1A0001');
SZ:=STKINDI('399001','399001');
IF STRCMP(MARKETLABEL,'SH')=0 THEN BEGIN DRAWTEXTABS(200,0,'上证指数'),LINETHICK5,Color6666FF;END;
IF STRCMP(MARKETLABEL,'SZ')=0 THEN BEGIN DRAWTEXTABS(200,0,'深圳成份指数'),LINETHICK5,Color6666FF;END;
DRAWTEXTABS(5 ,30 ,'目前指数:'+INDEXC+' 点'),COLORFFFFFF;
DRAWTEXTABS(5 ,50 ,'昨日收盘:'+REF(INDEXC,1)+' 点'),COLORFFFFFF;
DRAWTEXTABS(5 ,70 ,'今日开盘:'+INDEXO+' 点'),COLORFFFFFF;
DRAWTEXTABS(5 ,90 ,'今日最高:'+INDEXH+' 点'),COLORFFFFFF;
DRAWTEXTABS(5 ,110 ,'今日最低:'+INDEXL+' 点'),COLORFFFFFF;
DRAWTEXTABS(5 ,130 ,'指数涨幅:'+((INDEXC-REF(INDEXC,1))/INDEXC)*100+' %'),COLORFFFFFF;