您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:五线布林主图 源码 简单用法

五线布林主图 源码 简单用法


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2012-04-30 08:42:00
公式简介:

五线布林使用规则:
根据中轨的方向区分为:布林向上,布林走平,布林向下.
布林中轨呈向上,向下,走平,交差运行,
最安全的操作:是只做布林向上的股,也就是趋势向上的股.
布林基本规则:
股价向上运行,遇每一轨线都有压力,冲破,向上一轨线价加速运行,否则回调到当前轨线!
股价向下运行,遇每一轨线都有支撑,跌破,向下一轨线价加速运行,否则受支撑向上运动到上面一条轨线位!
小结:轨线的常规使用是取舍,按股价运行方向,破则看到方向的另一轨线,否则股价回到当前轨线!
轨线与轨线间是真空区,股价受压力与支撑作用小,股价运行速度快!
如股价快速连破两条轨线,可区分超强势与超弱势!
超强势股破完上上轨后,同时,布林中轨向上,回落中轨,多数会有支撑反弹!
如中轨未反弹到下下轨会产生更强大反弹!

布林根据五条线的放大,收窄,走平,可区分为
布林打开,布林收窄,与布林走平.
股价向上同时向上打开布林的是强势股,应重点关注,
是追涨的首选!
布林向下时,股价连续3到5次上攻下轨,不成又向下
股价走平后,一旦上穿下轨,一轮新的上升浪开始!

{N(1,100,20),参数可根据实际情况自由调整,个人感觉设为25较好}

趋势: MA(CLOSE,N),COLOR0080FF;
上轨:趋势+STD(CLOSE,N),COLORFFFF00;
下轨:趋势-STD(CLOSE,N),COLORFFFF00;
上极:趋势+2*STD(CLOSE,N),COLORGREEN;
下极:趋势-2*STD(CLOSE,N),COLORGREEN;
{缺口+背离(主图)}
X1:=(CLOSE+LOW+HIGH)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
B:=EMA(CLOSE,5);
超级线:=B;
F:=CLOSE>OPEN OR (CLOSE=OPEN AND CLOSE>REF(CLOSE,1));
FL:=LOW>=B;
FH:=HIGH<=B;
FC:=CLOSE>=B AND OPEN<B;

FF:=HIGH>B AND MAX(CLOSE,OPEN)<=B;
FFF:=LOW<B AND MIN(CLOSE,OPEN)>=B;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));
GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34)
AND EMA(X1,13)>REF(EMA(X1,13),1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND HIGH=HHV(HIGH,GR1),GR1);
GR4:=HIGH=HHV(HIGH,GR1);
GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
GR8:=GR6 AND GR7;
LC := REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(CLOSE,8);
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
B1:=REF(CLOSE,A1+1)>CLOSE AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");
DRAWTEXT(FILTER(B1>0,5),LOW-0.28,'◆MACD底背'),COLORGREEN;
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
B2:=REF(CLOSE,A2+1)>CLOSE AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");
DRAWTEXT(FILTER(B2>0,5),LOW-0.39,'◆KDJ底背'),COLORYELLOW;
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
B3:=REF(CLOSE,A3+1)>CLOSE AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");
DRAWTEXT(FILTER(B3>0,5),OPEN-0.2,'◆RSI底背'),COLORCYAN;
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
D1:=REF(CLOSE,C1+1)<CLOSE AND REF("MACD.DIF",C1+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");
DRAWTEXT(FILTER(D1>0,5),OPEN+0.13,'◆MACD顶背'),COLORWHITE;
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(CLOSE,C2+1)<CLOSE AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");
DRAWTEXT(FILTER(D2>0,5),OPEN+0.12,'◆KDJ顶背'),COLORWHITE;
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(CLOSE,C3+1)<CLOSE AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
DRAWTEXT(FILTER(D3>0,5),HIGH+0.1,'◆RSI顶背'),COLORMAGENTA;

XS:=MA(LOW,5)*(1-5/100);
XS1:=MA(HIGH,5)*(1+5/100);
均线:=CLOSE;
买在下影:CLOSE/REF(CLOSE,3)<=0.85
AND CROSS(CLOSE,XS) AND CLOSE>REF(CLOSE,1),NODRAW;
DRAWTEXT(买在下影,CLOSE*1.15,'★买在下影'),COLORRED;
BB:=CROSS(XS1,CLOSE);
DRAWTEXT(CROSS(XS1,CLOSE),OPEN+0.55,'◆开盘逃'),COLORWHITE;
D:=CROSS(CLOSE,XS1);
E:=CLOSE/REF(CLOSE,2)<=0.9
AND CROSS(CLOSE,XS);
山还是山:=SMA(CLOSE,125,1);
BB1:=MA(CLOSE,1);
BB2:=SMA(SMA(SMA(BB1,2,1),2,1),2,1);
SMA2:=MA(BB2,2);
箱顶:=HHV(MA(BB2,2),58);
10:=EMA(CLOSE,10);
25:=EMA(CLOSE,25);
40:=EMA(CLOSE,40);
80:=EMA(CLOSE,80);
125:=SMA(CLOSE,125,1);
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
少爷分水岭:=SMA(MA(CLOSE,5),430,1);
DRAWTEXT(CROSS(VAR1,VAR3) AND BB2>SMA2,(LOW * 0.97),'←⊙买'),COLORRED;
DRAWTEXT(CROSS(CLOSE,10) AND VAR3>1 AND B2>SMA2,LOW*0.99,'←※买'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(CLOSE,25) AND VAR3>1 AND B2>SMA2,LOW*0.99,'←◇买'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(CLOSE,40) AND VAR3>1 AND B2>SMA2,LOW*0.99,'←□买'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(CLOSE,80) AND VAR3>1 AND B2>SMA2,LOW*0.99,'←○买'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(CLOSE,125) AND VAR1>1,LOW*0.99,'←△买'),COLORRED,LINETHICK2;

VAR6:="KDJ.J#WEEK"(9,3,3);
VAR8:="KDJ.J#MONTH"(9,3,3);
DEA7:="MACD.DEA#WEEK";
DIFF7:="MACD.DIF#WEEK";
D7:=DIFF7-DEA7;
DEA8:="MACD.DEA#MONTH";
DIFF8:="MACD.DIF#MONTH";
D8:=DIFF8-DEA8;
黑码抄底:CROSS(VAR6,0) AND D8>0 OR CROSS(VAR8,0) AND D7>0,NODRAW;
DRAWTEXT(CROSS(VAR6,0) AND D8>0 OR CROSS(VAR8,0) AND D7>0,C*1.15,'★黑码抄底'),COLORRED;
DRAWICON(CROSS(VAR6,0) AND D8>0 OR CROSS(VAR8,0) AND D7>0,L*0.998,1);

{五线布林使用规则:
根据中轨的方向区分为:布林向上,布林走平,布林向下.
布林中轨呈向上,向下,走平,交差运行,
最安全的操作:是只做布林向上的股,也就是趋势向上的股.
布林基本规则:
股价向上运行,遇每一轨线都有压力,冲破,向上一轨线价加速运行,否则回调到当前轨线!
股价向下运行,遇每一轨线都有支撑,跌破,向下一轨线价加速运行,否则受支撑向上运动到上面一条轨线位!
小结:轨线的常规使用是取舍,按股价运行方向,破则看到方向的另一轨线,否则股价回到当前轨线!
轨线与轨线间是真空区,股价受压力与支撑作用小,股价运行速度快!
如股价快速连破两条轨线,可区分超强势与超弱势!
超强势股破完上上轨后,同时,布林中轨向上,回落中轨,多数会有支撑反弹!
如中轨未反弹到下下轨会产生更强大反弹!

布林根据五条线的放大,收窄,走平,可区分为
布林打开,布林收窄,与布林走平.
股价向上同时向上打开布林的是强势股,应重点关注,
是追涨的首选!
布林向下时,股价连续3到5次上攻下轨,不成又向下
股价走平后,一旦上穿下轨,一轮新的上升浪开始!}


 


[url=http://www.goodgupiao.com/gupiaogongshi/19727.html][B]五线布林主图 源码 简单用法[/B][/url]