大智慧缺口百分比主图指标公式,大智慧缺口分割主图指标公式
admin888
|大智慧缺口百分比主图指标公式,大智慧缺口分割主图指标公式
大智慧缺口百分比主图指标公式
INPUT:N(15,5,30);
{高低标注}ddd:=zig(4,n );
DRAWTEXT(h=ddd ,h*1.02 ,'高='+ddd),ColorD3A9FF;
DRAWTEXT(l=ddd ,l ,'低='+ddd);
{缺口}ickline(L>REF(H,1),L,REF(H,1),50,1001),color0000FF;
stickline(REF(L,1)>H,ref(L,1),H,50,1001),color00FF00;
{百分指标}a1:=hhvall(h);
a2:=llvall(l);
x50:=(a1+a2)/2;
x191:=a2+(a1-a2)*0.191;
x382:=a2+(a1-a2)*0.382;
x618:=a2+(a1-a2)*0.618;
x809:=a2+(a1-a2)*0.809;
x125:=a2+(a1-a2)*0.125;
x25:=a2+(a1-a2)*0.25;
x333:=a2+(a1-a2)*0.333;
X50:=a2+(a1-a2)*0.50;
x375:=a2+(a1-a2)*0.375;
x625:=a2+(a1-a2)*0.625;
x667:a2+(a1-a2)*0.667;
x75:=a2+(a1-a2)*0.75;
x875:=a2+(a1-a2)*0.875;
bb125:x125,LINETHICK1;
bb25:x25,LINETHICK1;
BB333:X333,LINETHICK1;
BB375:X375,LINETHICK1;
BB50:X50,LINETHICK1;
BB625:X625,LINETHICK1;
BB667:X667,LINETHICK1;
BB75:X75,LINETHICK1;
BB875:X875,LINETHICK1;
DRAWTEXT(BARSTATUS=2,bb125,'1/8:'+NUMTOSTRN(bb125,2)+''),ALIGN2,color00FFff,LINETHICK1;
DRAWTEXT(BARSTATUS=2,bb25,'1/4:'+NUMTOSTRN(bb25,2)+''),ALIGN2,color00FFff,LINETHICK1;
DRAWTEXT(BARSTATUS=2,bb333,'1/3:'+NUMTOSTRN(bb333,2)+''),ALIGN2,color00FFff,LINETHICK1;
DRAWTEXT(BARSTATUS=2,bb375,'3/8:'+NUMTOSTRN(bb375,2)+''),ALIGN2,color00FFff,LINETHICK1;
DRAWTEXT(BARSTATUS=2,bb50,'1/2:'+NUMTOSTRN(bb50,2)+''),ALIGN2,COLORmaGENTA,LINETHICK1;
DRAWTEXT(BARSTATUS=2,bb625,'5/8:'+NUMTOSTRN(bb625,2)+''),ALIGN2,color00FFff,LINETHICK1;
DRAWTEXT(BARSTATUS=2,bb667,'2/3:'+NUMTOSTRN(bb667,2)+''),ALIGN2,color00FFff,LINETHICK1;
DRAWTEXT(BARSTATUS=2,bb75,'3/4:'+NUMTOSTRN(bb75,2)+''),ALIGN2,color00FFff,LINETHICK1;
DRAWTEXT(BARSTATUS=2,bb875,'7/8:'+NUMTOSTRN(bb875,2)+''),ALIGN2,color00FFff,LINETHICK1;
大智慧缺口分割主图指标公式
{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;
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;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。