软件名称:[B]布林趋势指标(修正)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:14.0 KB
官方主页:Home Page
更新时间:2012-07-24 06:32:11
软件简介:
{布林趋势指标(修正)
原指标在看全球指数时,因无成交量产生严重偏移,在买入提示上缺少K线提示,本次修正后指标,增加K线买入形态提示以及趋势和工作线作为参考,指标类同于江恩赢家的极反通道相同同时也修正了ES系统大除权后的K线飘动对底部的误判.极反通道原图可在其论坛搜索比较。请大家将原指标删除。
M 20 1 100
N 55 1 100}
input:m(20),n(55);
DRAWGBKLAST(CLOSE>0,STRIP(RGB(0,0,225),RGB(0,0,0),0));
ah:=HHV(HIGH,M);
al:=LLV(LOW,M);
ac:=(HHV(CLOSE,M)+LLV(CLOSE,M))/2;
aa:=(ah+al+ac)/3;
s0:=2*aa-ah;
r0:=2*aa-al;
支撑线:MA(aa-(r0-s0),n),COLOR663333;
压力线:MA(aa+(r0-s0),n),COLORBLUE;
地线:MA(al-2*(ah-aa),n),LINETHICK2,COLOR73740F;
天线:MA(ah+2*(aa-al),n),LINETHICK2,COLOR24903f;
多空带:MA(ac,n),colorwhite,linethick1;
PARTLINE(多空带,多空带>ref(多空带,1),RGB(255,0,0),多空带<ref(多空带,1),RGB(0,255,0),1,RGB(0,0,255)),linethick2;
drawtext(h>压力线 and c<压力线,压力线,'★'),coloryellow;
drawtext(h>天线 and c<天线,h,'★'),color00ff00;
drawtext(l<支撑线 and c>支撑线,支撑线,'▲'),coloryellow;
drawtext(l<地线 and c>地线,l,'▲'),color00ff00;
止盈线:ma(c,7),LINETHICK2,COLORwhite;
PARTLINE(止盈线,止盈线>REF(止盈线,1),RGB(250,0,250),止盈线<=REF(止盈线,1),RGB(250,250,250)),LINETHICK2;
生命线:EMA(C,24),colorred,LINETHICK1;
var9Q:=c= hhv(c,4) and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3))or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);
红持:var9Q,colorred,LINETHICK0;
stickline(var9Q,c,(o+c)/2,7,0),color000055;
stickline(var9Q,c,(o+c)/2,6,0),color000066;
stickline(var9Q,c,(o+c)/2,5,0),color000077;
stickline(var9Q,c,(o+c)/2,4,0),color000099;
stickline(var9Q,c,(o+c)/2,3,0),color0000bb;
stickline(var9Q,c,(o+c)/2,2,0),color0000dd;
stickline(var9Q,c,(o+c)/2,1,0),color0000ff;
varaQ:=c=hhv(c,4) and ref(c,1)=llv(c,4);
粉变:varaQ,colorf00ff0,LINETHICK0;
stickline(varaQ,c,(o+c)/2,7,0),colorff11ff;
stickline(varaQ,c,(o+c)/2,6,0),colorff33ff;
stickline(varaQ,c,(o+c)/2,5,0),colorff55ff;
stickline(varaQ,c,(o+c)/2,4,0),colorff77ff;
stickline(varaQ,c,(o+c)/2,3,0),colorff99ff;
stickline(varaQ,c,(o+c)/2,2,0),colorffbbff;
stickline(varaQ,c,(o+c)/2,1,0),colorffddff;
varbQ:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3)) or ref(c,1)=llv(c,4) and c<ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1) or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2);
灰跌:varbQ,LINETHICK0;
stickline(varbQ,c,(o+c)/2,7,0),color333333;
stickline(varbQ,c,(o+c)/2,6,0),color555555;
stickline(varbQ,c,(o+c)/2,5,0),color777777;
stickline(varbQ,c,(o+c)/2,4,0),color999999;
stickline(varbQ,c,(o+c)/2,3,0),colorbbbbbb;
stickline(varbQ,c,(o+c)/2,2,0),colordddddd;
stickline(varbQ,c,(o+c)/2,1,0),colorffffff;
varcQ:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1);
绿买:varcQ,color00ff00,LINETHICK0;
stickline(varcQ,o,(o+c)/2,7,0),color003300;
stickline(varcQ,o,(o+c)/2,6,0),color005500;
stickline(varcQ,o,(o+c)/2,5,0),color007700;
stickline(varcQ,o,(o+c)/2,4,0),color009900;
stickline(varcQ,o,(o+c)/2,3,0),color00bb00;
stickline(varcQ,o,(o+c)/2,2,0),color00dd00;
stickline(varcQ,o,(o+c)/2,1,0),color00ff00;
vardQ:=ref(c,1)=hhv(c,4) and c<ref(c,2) or (ref(c,2)=hhv(c,4) and ref(c,1)>ref(c,3) or ref(c,3)=hhv(c,4) and ref(c,1)>ref(c,2)) and ref(c,2)>=ref(c,4) and c<ref(c,1);
蓝抛:vardQ,colorff9900,LINETHICK0;
stickline(vardQ,o,(o+c)/2,7,0),colorff1100;
stickline(vardQ,o,(o+c)/2,6,0),colorff3300;
stickline(vardQ,o,(o+c)/2,5,0),colorff5500;
stickline(vardQ,o,(o+c)/2,4,0),colorff7700;
stickline(vardQ,o,(o+c)/2,3,0),colorff9900;
stickline(vardQ,o,(o+c)/2,2,0),colorffbb00;
stickline(vardQ,o,(o+c)/2,1,0),colorffdd00;
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
明日阻力:=2*E-LOW;
明日支撑:=2*E-HIGH;
明日突破:=E+(HIGH-LOW);
明日反转:=E-(HIGH-LOW);
今日阻力:=REF(明日阻力 , 1);
今日支撑:=REF(明日支撑 , 1);
DRAWTEXTREL(10,320,'今日阻力=:'+NUMTOSTRN(今日阻力,2 )+''),Color00FFFF;
DRAWTEXTREL(10,380,'今日支撑=:'+NUMTOSTRN(今日支撑,2 )+''),Color00FF00;
DRAWTEXTREL(10,440,'明日突破=:'+NUMTOSTRN(明日突破,2 )),ColorFF00FF;
DRAWTEXTREL(10,500,'明日阻力=:'+NUMTOSTRN(明日阻力,2 )),ColorFFFF00;
DRAWTEXTREL(10,560,'明日支撑=:'+NUMTOSTRN(明日支撑,2 )),COLORRED;
DRAWTEXTREL(10,620,'明日反转=:'+NUMTOSTRN(明日反转,2 )),COLORGREEN;
{附加段}
DRAWTEXTABS(10,10,'所属板块:'+BKNAME),COLORYELLOW;
总股本:=FINANCE2(35)/10000;
流通盘:=FINANCE2(37)/10000;
市盈率:=DYNAINFO(39);
市净率:= DYNAINFO(58);
每股收益:=FINANCE2(3);
每股净资产:=FINANCE2(4);
净资产收益率:=FINANCE2(5);
量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),COLORRED,LINETHICK0;
DRAWTEXTABS(190,25,'市盈率:'+市盈率+' '),LINETHICK1,COLORF00FF0;
DRAWTEXTABS(270,25,'市净率:'+市净率+' '),LINETHICK1,COLORF00FF0;
DRAWTEXTABS(350,25,'每股净资产:'+每股净资产+' '),LINETHICK1,COLORF00FF0;
DRAWTEXTABS(450,25,'净资产收益率:'+净资产收益率+' '),LINETHICK1,COLORF00FF0;
DRAWTEXTABS(720,25,'每股收益:'+每股收益+'元 '),LINETHICK1,COLORF00FF0;
DRAWTEXTABS(110,25,'流通盘:'+流通盘+' '),LINETHICK1,COLORF00FF0;
DRAWTEXTABS(10,40,'今日量能饱和度:'+NUMTOSTRN(量能饱和度,0)+'%'),LINETHICK1,COLORRED;
DRAWTEXTABS(580,25,'业绩:'+NUMTOSTRN(FINANCE2(3),2)),LINETHICK1,COLORF00FF0;
DRAWTEXTABS(640,25,'公积金:'+NUMTOSTRN(FINANCE2(7),2)),LINETHICK1,COLORF00FF0;
DRAWTEXTABS(10,25,'总股本:'+总股本+' '),LINETHICK1,COLORF00FF0;
[url=http://www.70822.com/soft/sort013/sort03/down-50995.html]布林趋势指标(修正)[/url]