,这个组合是自己弄的,大家看下好不好用给点建议,小弟刚来第1次发帖,这里好多东西学,请多多关照。
VA1:=TROUGHBARS(2,15,1);
VR1:=PEAKBARS(1,15,1);
VA2:=IF(VA1=0,1,0);
VR2:=IF(VR1=0,1,0);
AA:DRAWLINE(BARSLAST(VA1),L,VA2,L,1);
BB:DRAWLINE(BARSLAST(VR1),H,VR2,H,1);
{www.88gs.com}
ah:hhvall(h);
al:llvall(l);
ahl:=ah-al;
a19:al+ahl*0.191,coloraaaaaa;
a38:al+ahl*0.382,color00aaaa;
a50:al+ahl*0.500,LINETHICK1,POINTDOT,COLORGREEN;
a61:al+ahl*0.618,color00aaaa;
a80:al+ahl*0.809,coloraaaaaa;
{标注数字}y:=999;
DRAWTEXTREL(900,0,'100% '+ah),coloraaaaaa;
DRAWTEXTREL(900,y*0.191,'0.809% '+a80),coloraaaaaa;
DRAWTEXTREL(900,y*0.382,'0.618% '+a61),color00aaaa;
DRAWTEXTREL(900,y*0.500,'0.50% '+a50),color00aaaa;
DRAWTEXTREL(900,y*0.618,'0.382% '+a38),color00aaaa;
DRAWTEXTREL(900,y*0.809,'0.191% '+a19),coloraaaaaa;
DRAWTEXTREL(900,y-30,'最高 '+ah),coloraaaaaa;
{竖线}
W:=BARSLAST(DISPSTATUS=1);
P:=BACKSET(DISPSTATUS=2,W/2+1);
VERTLINE(CROSS(P,0.5),4),COLOR889999;
DRAWTEXTREL(500,0,'最高' ),COLORRED;
DRAWTEXTREL(500,900+76,'最低'),color00ff00;
DRAWTEXTREL(500,0.50*(900+76),'0.5'),color0099ff;
DRAWTEXTREL(500,0.191*(900+76),'0.809'),COLORYELLOW;
DRAWTEXTREL(500,0.382*(900+76),'0.618'),COLORYELLOW;
DRAWTEXTREL(500,0.618*(900+76),'0.382'),COLORYELLOW;
DRAWTEXTREL(500,0.809*(900+76),'0.191'),COLORYELLOW;
DRAWTEXTREL(1,10,'所属板块:'+BKNAME),COLORGREEN;
DRAWTEXTREL(1,60,'上市日期:'+FINANCE2(2)),COLORRED;
DRAWTEXTREL(1,110,'流通盘 :'+CAPITAL/100+'万股'),COLORYELLOW;
DRAWTEXTREL(1,160,'流通市值:'+DYNAINFO(57)/100000000+'亿'),COLORYELLOW;
DRAWTEXTREL(1,210,'每股收益:'+FINANCE2(3)),COLORYELLOW;
DRAWTEXTREL(1,260,'每股净资:'+FINANCE2(4)),COLORYELLOW;
DRAWTEXTREL(1,310,'市盈率:'+DYNAINFO(39)),COLORRED;
DRAWTEXTREL(1,360,'主营同比:'+FINANCE2(11)),COLORYELLOW;
DRAWTEXTREL(1,410,'每股经营现金:'+FINANCE2(6)),COLORYELLOW;