{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.gszb.top}
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;
大智慧缺口分割主图指标公式
本文来自网络,不代表公式指标立场,转载请注明出处:https://www.gszb.top/46634.html