• 欢迎访问第一股票指标公式网,汇集目前最全,最新的各种股票公式,股票指标公式,公式下载等股票软件指标公式源码

黄金分割大智慧L2左右都显示比例及数值

常见公式 第一股票指标公式网 4天前 2次浏览 0个评论 扫描二维码

股友提问要求:

171415.com解答:

 网友求助:

求助,改黄金分割大智慧L2左右都显示比例及数值

源码
x:=BARPOS-hhv(if(DISPSTATUS=1,BARPOS,0),0)+1;
hh:=hhv(h,x); ll:=llv(l,x); hl:=hh-ll;
a80:=.809*hl+ll;a61:=.618*hl+ll;a38:=.382*hl+ll;
a19:=.191*hl+ll; a5:=.5*hl+ll;
DRAWTEXTREL(0,0,’最高 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄’ ),coloraaaaaa;
DRAWTEXTREL(0,900+76,’最低…………………………………………………………………………………………………………………’),color00ff00;
DRAWTEXTREL(0,0.50*(900+76),’0.5………………………………………………………………………………………………………………….’), colorff937f;
DRAWTEXTREL(0,0.191*(900+76),’0.809………………………………………………………………………………………………………………..’), colorff937f;
DRAWTEXTREL(0,0.382*(900+76),’0.618………………………………………………………………………………………………………………..’), colorff937f;
DRAWTEXTREL(0,0.618*(900+76),’0.382………………………………………………………………………………………………………………..’), colorff937f;
DRAWTEXTREL(0,0.809*(900+76),’0.191………………………………………………………………………………………………………………..’), colorff937f;
DRAWTEXTREL(999,0.809*(900+76),’19.1%:’+NUMTOSTR(a19)),VALIGN2,ALIGN2, colorff937f;
DRAWTEXTREL(999,0.618*(900+76),’38.2%:’+NUMTOSTR(a38)),VALIGN2,ALIGN2, colorff937f;
DRAWTEXTREL(999,0.5*(900+76),’50%:’+NUMTOSTR(a5)),VALIGN2,ALIGN2, colorff937f;
DRAWTEXTREL(999,0.382*(900+76),’61.8%:’+NUMTOSTR(a61)),VALIGN2,ALIGN2, colorff937f;
DRAWTEXTREL(999,0.191*(900+76),’80.9%:’+NUMTOSTR(a80)),VALIGN2,ALIGN2, colorff937f;

 

解答如下:
x:=BARPOS-hhv(if(DISPSTATUS=1,BARPOS,0),0)+1;
hh:=hhv(h,x); ll:=llv(l,x); hl:=hh-ll;
a80:=.809*hl+ll;a61:=.618*hl+ll;a38:=.382*hl+ll;
a19:=.191*hl+ll; a5:=.5*hl+ll;
a0:=.001*hl+ll; a100:=1.00*hl+ll;
DRAWTEXTREL(920,0,’最高’ ),COLORRED;
DRAWTEXTREL(920,900+76,’最低’),color00ff00;
DRAWTEXTREL(920,0.50*(900+76),’0.5′),color0099ff;
DRAWTEXTREL(920,0.191*(900+76),’0.809′),COLORYELLOW;
DRAWTEXTREL(920,0.382*(900+76),’0.618′),COLORYELLOW;
DRAWTEXTREL(920,0.618*(900+76),’0.382′),COLORYELLOW;
DRAWTEXTREL(920,0.809*(900+76),’0.191′),COLORYELLOW;
DRAWTEXTREL(0,0,’最高———————————————————————————————————————————————————————————–‘ ),COLORRED;
DRAWTEXTREL(0,900+76,’最低——————————————————————————————————————————————————————————‘),color00ff00;
DRAWTEXTREL(0,0.50*(900+76),’0.5…………………………………………………………………………………………………………………………………………………….’),color0099ff;
DRAWTEXTREL(0,0.191*(900+76),’0.809………………………………………………………………………………………………………………………………………………….’),COLORYELLOW;
DRAWTEXTREL(0,0.382*(900+76),’0.618………………………………………………………………………………………………………………………………………………….’),COLORYELLOW;
DRAWTEXTREL(0,0.618*(900+76),’0.382…………………………………………………………………………………………………………………………………………………..’),COLORYELLOW;
DRAWTEXTREL(0,0.809*(900+76),’0.191……………………………………………………………………………………………………………………………………………………’),COLORYELLOW;
DRAWTEXTREL(999,0.809*(900+120),NUMTOSTR(a19)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(999,0.618*(900+140),NUMTOSTR(a38)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(999,0.5*(900+170),NUMTOSTR(a5)),VALIGN2,ALIGN2,color0099ff;
DRAWTEXTREL(999,0.382*(900+170),NUMTOSTR(a61)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(999,0.191*(900+280),NUMTOSTR(a80)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(999,900+110,NUMTOSTR(a0)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(999,0,NUMTOSTR(a100)),VALIGN0,ALIGN2,colorwhite;
DRAWTEXTREL(80,0.809*(900+120),NUMTOSTR(a19)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(80,0.618*(900+140),NUMTOSTR(a38)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(80,0.5*(900+170),NUMTOSTR(a5)),VALIGN2,ALIGN2,color0099ff;
DRAWTEXTREL(80,0.382*(900+170),NUMTOSTR(a61)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(80,0.191*(900+280),NUMTOSTR(a80)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(80,900+110,NUMTOSTR(a0)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(80,0,NUMTOSTR(a100)),VALIGN0,ALIGN2,colorwhite;
 

 


第一股票指标公式网所有股票公式及文章来源于网络仅供学习研究,请勿以此为依据进行股票交易。 版权投诉邮箱:313707241@qq.com 投放广告公式交流 QQ:313707241
喜欢 (0)
[]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址