大智慧缺口分割主图指标公式

[复制链接]
查看156 | 回复0 | 2021-8-21 13:58:46 | 显示全部楼层 |阅读模式

{MA均线}
ema13:ema(c,13),colorwhite;
ema21:ema(c,21),coloryellow;
ema34:ema(c,34),colorff00ff;
ema120:ema(c,120),colorffcccc;
ema250:ema(c,250),colorffcc66;
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;
{缺口看盘}
stickline(L>REF(H,1),L,REF(H,1),50,1001),color0000FF;
stickline(REF(L,1)>H,ref(L,1),H,50,1001),color00FF00;
{黄金分割线}
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.50,coloraaaaaa;
a61:al+ahl*0.618,color00aaaa;
a80:al+ahl*0.809,coloraaaaaa;
{标注数字}y:=999;
DRAWTEXTREL(0,0,'100% '+ah),coloraaaaaa;
DRAWTEXTREL(0,y*0.236,'0.809 '+a80),coloraaaaaa;
DRAWTEXTREL(0,y*0.382,'0.618 '+a61),color00aaaa;
DRAWTEXTREL(0,y*0.50,'0.50 '+a50),COLORMAGENTA;
DRAWTEXTREL(0,y*0.618,'0.382 '+a38),color00aaaa;
DRAWTEXTREL(0,y*0.764,'0.191 '+a19),coloraaaaaa;
DRAWTEXTREL(0,y-30,'最低 '+ah),coloraaaaaa;
{股旁网-股票公式网站 www.gupang.com}
DRAWTEXTREL(999,0.809*(900+76),'19.1%:'+NUMTOSTR(a19)),VALIGN2,ALIGN2,COLOR00CCCC;
DRAWTEXTREL(999,0.618*(900+76),'38.2%:'+NUMTOSTR(a38)),VALIGN2,ALIGN2,COLOR00CCCC;
DRAWTEXTREL(999,0.5*(900+76),'50%:'+NUMTOSTR(a50)),VALIGN2,ALIGN2,color0099ff;
DRAWTEXTREL(999,0.382*(900+76),'61.8%:'+NUMTOSTR(a61)),VALIGN2,ALIGN2,COLOR00CCCC;
DRAWTEXTREL(999,0.191*(900+76),'80.9%:'+NUMTOSTR(a80)),VALIGN2,ALIGN2,COLOR00CCCC;

202108211306.jpg

202108211306.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则