大智慧看盘
ma5:ma(c,5),precis2,colorffffff;
ma10:ma(c,10),precis2,coloryellow;
ma20:ma(c,20),precis2,colorff68ff;
ma30:ma(c,30),precis2,colorgreen;
ma60:ma(c,60),precis2;{
ma120:ma(c,120),linethick0,precis2;
ma250:ma(c,250),linethick0,precis2;}
均线:(ma(close,m) * 1),precis2,colorffffff,dashline;
乖离率:(close-均线)/均线*100,precis2,linethick0,color00ffff;
drawtext(dispstatus=2,均线,' '+numtostrn(m,0)+'日 乖离率: '+numtostrn(乖离率,2),5),align0,valign1,colorffffff;
{cci}
typ := (high + low + close)/3;
cci:(typ-ma(typ,ci))/(0.015*avedev(typ,ci)),precis0,colorffffff,linethick0;
drawgbk(cci>100),color00002f;
drawgbk(cci<-100),color002f00;
{撑压划线}
a1:=ref(h,n)=hhv(h,2*n+1);
b1:=filter(a1,n);
c1:=backset(b1,n+1);
d1:=filter(c1,n);{高点}
a2:=ref(l,n)=llv(l,2*n+1);
b2:=filter(a2,n);
c2:=backset(b2,n+1);
d2:=filter(c2,n);{低点}
e1:=(ref(llv(l,2*n),1)+ref(hhv(h,2*n),1))/2;
e2:=(h+l)/2;{高低点出现在同一k线上时可作取舍}
h1:=(d1 and not(d2 and e1>=e2)) or barstatus=2 or barscount(c)=1;
l1:=(d2 and not(d1 and e1<e2));
h2:=d1 and not(d2 and e1>=e2);
x1:=ref(barslast(h1),1)+1;
f1:=backset(h1 and count(l1,x1)>0,llvbars(if(l1,l,10000),x1));
g1:=f1>ref(f1,1);
i1:=backset(g1,2);
ld:=i1>ref(i1,1);{过滤后低点}
l2:=ld or barstatus=2 or barscount(c)=1;
x2:=ref(barslast(l2),1)+1;
f2:=backset(l2 and count(h2,x2)>0,hhvbars(if(h2,h,0),x2));
g2:=f2>ref(f2,1);
i2:=backset(g2,2);
hd:=i2>ref(i2,1);{过滤后高点}
r1:=backset(barstatus=2,barslast(hd)+1);
s1:=r1>ref(r1,1); {前一高}
t1:=backset(barstatus=2,barslast(ld)+1);
u1:=t1>ref(t1,1); {前一低}{
{涨跌幅时间窗口}
a:=barslast(dispstatus=1)+1;
hh:=hhv(high,a);
ll:=llv(low,a);
上涨:=barssince(backset(dispstatus=2,barslast(l=ll)+1));
上涨空间%:=(c/ref(l,上涨)-1)*100;
最高%:=(hhvall(hh)/ref(l,上涨)-1)*100;
下跌:=barssince(backset(dispstatus=2,barslast(h=hh)+1));
下跌空间%:=(c/ref(h,下跌)-1)*100;
最低%:=(llvall(ll)/ref(h,下跌)-1)*100;
最高价:ref(h,下跌),precis2,color0000ff,dotline;
最低价:ref(l,上涨),precis2,color00ff00,dotline;
幅度:最高价-最低价,precis2,colorffffff,linethick0;
半分位:=o+(c-o)/2;
昨半分位:ref(半分位,1),precis2,color00ffff,linethick0;
drawtext(barstatus=2,昨半分位,'---- 昨半分位:'+numtostrn(昨半分位,2)+'',-5),align0,color00ffff;
drawtext(barstatus=2,昨半分位,'-------',-5),align2,color00ffff;
drawtext(barstatus=2,最高价,' 最高价:'+numtostrn(最高价,2),2),align0,color0000ff;
drawtext(barstatus=2,最低价,' 最低价:'+numtostrn(最低价,2),-12),align0,color00ff00;
drawline(最高价,h,s1,h,1),color00bbff,dotline;
drawline(最低价,l,u1,l,1),colordfff08,dotline;
{布林带}
布林中轨:ma(close,bl),precis2,colorffffff,dashline;
布林上轨:布林中轨+ p*std(close,bl),precis2,color0000ff,dashline;
布林下轨:布林中轨- p*std(close,bl),precis2,color00ff00,dashline;
vertline(上涨=0,3),color0000ff;
vertline(下跌=0,3),color00ff00;
drawtext(上涨=0 and 最高%>10,ll*1.1,' 10%',-5),coloryellow;
drawtext(上涨=0 and 最高%>20,ll*1.2,' 20%',-5),color00ffff;
drawtext(上涨=0 and 最高%>30,ll*1.3,' 30%',-5),color00ffff;
drawtext(上涨=0 and 最高%>40,ll*1.4,' 40%',-5),color00ffff;
drawtext(上涨=0 and 最高%>50,ll*1.5,' 50%',-5),color00ffff;
drawtext(上涨=0 and 最高%>60,ll*1.6,' 60%',-5),color00ffff;
drawtext(上涨=0 and 最高%>70,ll*1.7,' 70%',-5),color00ffff;
drawtext(上涨=0 and 最高%>80,ll*1.8,' 80%',-5),color00ffff;
drawtext(上涨=0 and 最高%>90,ll*1.9,' 90%',-5),color00ffff;
drawtext(上涨=0 and 最高%>100,ll*2,' 100%',-5),color00ffff;
drawtext(上涨=0 and 最高%>125,ll*2.25,' 125%',-5),color00ffff;
drawtext(上涨=0 and 最高%>150,ll*2.5,' 150%',-5),color00ffff;
drawtext(上涨=0 and 最高%>200,ll*3,' 200%',-5),color00ffff;
drawtext(上涨=0 and 最高%>250,ll*3.5,' 250%',-5),color00ffff;
drawtext(下跌=0 and 最低%<-10,hh*0.9,' -10%'),colorffffff;
drawtext(下跌=0 and 最低%<-20,hh*0.8,' -20%'),colorffffff;
drawtext(下跌=0 and 最低%<-30,hh*0.7,' -30%'),colorffffff;
drawtext(下跌=0 and 最低%<-40,hh*0.6,' -40%'),colorffffff;
drawtext(下跌=0 and 最低%<-50,hh*0.5,' -50%'),colorffffff;
drawtext(下跌=0 and 最低%<-60,hh*0.4,' -60%'),colorffffff;
drawtext(下跌=0 and 最低%<-70,hh*0.3,' -70%'),colorffffff;
drawtext(下跌=0 and 最低%<-80,hh*0.2,' -80%'),colorffffff;
drawtext(下跌=0 and 最低%<-90,hh*0.1,' -90%'),colorffffff;
drawtext(上涨=5,h,'涨5',-20),color00ffff,align1;
drawtext(上涨=8,h,'涨8',-20),color00ffff,align1;
drawtext(上涨=13,h,'涨13',-20),color00ffff,align1;
drawtext(上涨=21,h,'涨21',-20),color00ffff,align1;
drawtext(上涨=34,h,'涨34',-20),color00ffff,align1;
drawtext(上涨=55,h,'涨55',-20),color00ffff,align1;
drawtext(上涨=89,h,'涨89',-20),color00ffff,align1;
drawtext(上涨=144,h,'涨144',-20),color00ffff,align1;
drawtext(上涨=180,h,'涨180',-20),color00ffff,align1;
drawtext(上涨=250,h,'涨250',-20),color00ffff,align1;
drawtext(下跌=5,l,'跌5',10),color00ff00,align1;
drawtext(下跌=8,l,'跌8',10),color00ff00,align1;
drawtext(下跌=13,l,'跌13',10),color00ff00,align1;
drawtext(下跌=21,l,'跌21',10),color00ff00,align1;
drawtext(下跌=34,l,'跌34',10),color00ff00,align1;
drawtext(下跌=55,l,'跌55',10),color00ff00,align1;
drawtext(下跌=89,l,'跌89',10),color00ff00,align1;
drawtext(下跌=144,l,'跌144',10),color00ff00,align1;
drawtext(下跌=180,l,'跌180',10),color00ff00,align1;
drawtext(下跌=250,l,'跌250',10),color00ff00,align1;
{百分指标}{
bb146:最低价+幅度*0.146,dotline;
bb236:最低价+幅度*0.236,dotline;
bb382:最低价+幅度*0.382,dotline;
bb50:最低价+幅度*0.5,dotline;
bb618:最低价+幅度*0.618,dotline;
bb854:最低价+幅度*0.854,dotline;
drawtext(barstatus=2,bb146,' 0.146%:'+numtostrn(bb146,2),-5),align0,color00ffff;
drawtext(barstatus=2,bb236,' 0.236%:'+numtostrn(bb236,2),-5),align0,color00ffff;
drawtext(barstatus=2,bb382,' 0.382%:'+numtostrn(bb382,2),-5),align0,color00ffff;
drawtext(barstatus=2,bb50,' 0.5%:'+numtostrn(bb50,2),-5),align0,colormagenta;
drawtext(barstatus=2,bb618,' 0.618%:'+numtostrn(bb618,2),-5),align0,color00ffff;
drawtext(barstatus=2,bb854,' 0.854%:'+numtostrn(bb854,2),-5),align0,color00ffff;
{k线}
stickline(close>=open and open<>0,high,low,1,0),color0022ff;
stickline(close>=open and open<>0,close,open,7.5,0),color000033;
stickline(close>=open and open<>0,close,open,6,0),color000066;
stickline(close>=open and open<>0,close,open,5,0),color000088;
stickline(close>=open and open<>0,close,open,4,0),color0000bb;
stickline(close>=open and open<>0,close,open,2.5,0),color0000ee;
stickline(close>=open and open<>0,close,open,1,0),color0022ff;
stickline(close<open and open<>0,high,low,1,0),color00ff00;
stickline(close<open and open<>0,close,open,7.5,0),color003300;
stickline(close<open and open<>0,close,open,6,0),color006600;
stickline(close<open and open<>0,close,open,5,0),color008800;
stickline(close<open and open<>0,close,open,4,0),color00bb00;
stickline(close<open and open<>0,close,open,2.5,0),color00ee00;
stickline(close<open and open<>0,close,open,1,0),color00ff00;
{向下跳空缺口}
i3:=0;
flag1:=0;
while i3<barslast(dispstatus=1)-barslast(dispstatus=2) do
if ref(h,i3)<ref(l,i3+1) and ref(l,i3+1)>hhv(h,i3+1) then begin
flag1:=1;
s3:=i3;
i3:=barslast(dispstatus=1); end else
i3:=i3+1;
stickline(flag1,ref(l,s3+1),hhv(h,s3+1),(s3+1)*20,0),colorc0c0c0,align0,layer7;
drawtext(flag1,ref(l,s3+1),' 向下跳空:'+numtostrn(ref(l,s3+1),2)+'-'+numtostrn(hhv(h,s3+1),2),-12),align0,color00ff00;
{向上跳空缺口}
i:=0;
flag:=0;
while i<barslast(dispstatus=1)-barslast(dispstatus=2) do
if ref(l,i)>ref(h,i+1) and ref(h,i+1)<llv(low,i+1) then begin
flag:=1;
s:=i;
i:=barslast(dispstatus=1); end else
i:=i+1;
stickline(flag,ref(h,s+1),llv(low,s+1),20*(s+1),500),colorc0c0c0,align1,layer7;
drawtext(flag,ref(h,s+1),' 向上跳空:'+numtostrn(ref(h,s+1),2)+'-'+numtostrn(llv(low,s+1),2),2),align0,color0000ff;
drawtextabs(0,0,'《夏卫东-自编》'),color0000ff;
上一指标公式:红买兰卖公式(源码 大智慧,附图)下载 大智慧红买兰卖
下一指标公式:强势组合多个好用指标的大智慧操盘公式下载 大智慧指标源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文大智慧看盘(主图指标)公式下载 大智慧看盘公式仅供学习研究。