大智慧J合力二九主图公式

大智慧J合力二九公式

这个主图是我拼装的.既有拿来也有新创.总之是个大杂烩.就因为是杂烩.才涵括我们炒股的需求.纯属自用.既然大家看好就发给大家.
公式内有五项内容:
【1】漂亮的K线.满足你视觉的需要.清楚的看清涨跌.
【2】二九宽带就是用18天的高低做成的通道.类似于BOLL又不同于BOLL.他的上下线不会同时放大或缩小.【二九宽带有专题讨论】
【3】止盈止损线.可以及时的提醒你买卖.以设定天数内最高收盘价的百分之九十五为止损线.设定天数可调.按K线的波动改变来调整参数【GK】.
【4】用五个KDJ不同九的倍数.形成的合力找股价的顶低.并且标示在图上.清清楚楚的显示买卖点.【另有副图】
【5】用虚线标示出压力支撑线.而且自动完成.你只要调好参数【N】就可以划出一定范围.【远近期】的压力支撑线.明明白白的告诉你阻力位.和支撑位.使得你心中有数.这条线能不能突破当然很重要.所以炒股不能不看这两条线.
整个图都是用九的倍数遍制.我才叫它【J合力二九】能不能挣钱就看你怎么利用这个图形买卖了.本公式用于大智慧.发给你源码就把权力也交给你.你可根据你自己的需要改革它.如果你想改又有困难.需要帮忙.就请告诉一声.这里高人很多.会帮你实现你的愿望的.我们每天就在变化中求生存.不是吗

{J合力二九}
INPUT:N(5,0,20),GK(5,0,20);
DRAWGBKlast(c>0,strip(RGB(40,0,40),RGB(0,0,100),0));
{1.K线JCJ}
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),OPEN,CLOSE,8,0),colorred;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),OPEN,CLOSE,8,0),colorcyan;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000088;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;
LC:=REF(C,1);
RSI:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;
金:=EMA(EMA(EMA(RSI,3),6),9);
DRAWTEXT(CROSS(ref(金,1),金) ,high*1.06,'RSI'),COLOR00ffFF,ALIGN1,LINETHICK3;
DRAWTEXT(CROSS(ref(金,1),金) ,high*1.04,'↓'),COLOR00ffFF,ALIGN1,LINETHICK3;
{2.二九宽带}
上18H:WMA(SMA(hhv(HIGH,18),9/2,1),3),COLOR00FF00;
下18L:WMA(SMA(llv(LOW,18),9/2,1),3),COLOR009900;
通道:(上18H+下18L)/2,COLOR0598FF,DOTLINE;
FILLRGN(上18H,通道,上18H>通道,RGB(0,0,255)),LAYER7;
FILLRGN(下18L,通道,下18L<通道,RGB(50,50,50)),LAYER7;
中18C:WMA(SMA(C,18,1),3),COLORFF9900;
{MA9}
MA9:WMA(C,9),COLOR00FF00,DOTLINE;
PARTLINE(MA9 ,(MA9>REF(MA9,1)),rgb(255,55,0) ),linethick2,LAYER0;
{3止盈止损}
STICKLINE(BARSTATUS=2,HHV(C,GK),HHV(C,GK),218,1),COLOR00ffff,LINETHICK2;
STICKLINE(BARSTATUS=2,HHV(C,GK)*0.95,HHV(C,GK)*0.95,218,1),COLORRED,LINETHICK2;
DRAWTEXT(barstatus=2 ,HHV(C,GK),'【C'+GK+'='+NUMTOSTRN(HHV(C,GK),2)+'】'),ALIGN1,Color00FFFF,linethick2,LAYER0;
DRAWTEXT(barstatus=2 ,HHV(C,GK)*0.95,'【C'+GK+'-5%='+NUMTOSTRN(HHV(C,GK)*0.95,2)+'】'),ALIGN1,Color0077FF,linethick2,LAYER0;
{4.J合力}
J9:EMA("KDJ.J"(9,3,3),5) ,COLOR0000FF,LINETHICK0;
J18:EMA("KDJ.J"(18,3,3),5) ,COLOR00FFFF,DOTLINE,LINETHICK0;
J27:EMA("KDJ.J"(27,3,3),5) ,COLOR00FF00,DOTLINE,LINETHICK0;
J36:EMA("KDJ.J"(36,3,3),5) ,COLOR0077FF,DOTLINE,LINETHICK0;
J45:EMA("KDJ.J"(45,3,3),5) ,COLORFF9900,LINETHICK0;
J54:EMA("KDJ.J"(54,3,3),5) ,COLORFF9900,LINETHICK0;
J合力:(3*J9+2*J18+J27+J36+J45+J54)/9,COLOR00FFCC,LINETHICK0;
合力顶:=J合力>85 ;
合力低:=J合力<15;
DRAWTEXT(CROSS(0,合力顶) ,H*1.04,'【顶】'),ALIGN1,COLOR00FFFF,LINETHICK3,LAYER3;
DRAWTEXT(CROSS(0,合力低) ,L*0.97,'【低】'),ALIGN1,COLOR0077FF,LINETHICK3,LAYER0;
{低部}
DIBU:= "KDJ.K"(9,3,3)<15 AND "KDJ.D"(9,3,3)<15 AND "KDJ.K"(18,3,3)<15 AND "KDJ.D"(18,3,3)<15
AND "KDJ.K"(27,3,3)<20 AND "KDJ.D"(27,3,3)<20 AND "KDJ.D"(36,3,3)<20 AND "KDJ.D"(54,3,3)<20;
DRAWTEXT(CROSS(0,DIBU) ,L*0.95,'【买】'),ALIGN1,COLOR00ffff,LINETHICK2,LAYER3;

{5.压力支撑}
AG1:=ref(h,N)=hhv(h,2*N+1);
BB1:=filter(AG1,N);
CB1:=backset(BB1,N+1);
DB1:=filter(CB1,n);{高点}
AG2:=ref(l,N)=llv(l,2*N+1);
BB2:=filter(AG2,N);
CB2:=backset(BB2,N+1);
DB2:=filter(CB2,N);{低点}
E1:=(ref(llv(l,2*N),1)+ref(hhv(h,2*N),1))/2; E2:=(h+l)/2;{高低点出现在同一K线上时可作取舍}
H1:=(DB1 AND not(DB2 AND E1>=E2)) OR barstatus=2 OR barscount(c)=1;
L1:=(DB2 AND not(DB1 AND E1<E2)); H2:=DB1 AND not(DB2 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); {前一低}
R2:=backset(S1,ref(barslast(HD),1)+2);
S2:=R2>ref(R2,1); {前二高}
T2:=backset(U1,ref(barslast(LD),1)+2);
U2:=T2>ref(T2,1); {前二低}
短期压力:drawline(S2,h,S1,h,1),Color0000ff,DOTLINE;
短期支撑:drawline(U2,l,U1,l,1),Colorgreen,DOTLINE;

 

这是二九宽带发公式时的说明。供你参考利用好它:

【用股价的H和L做类似于BOLL的通道效果好于BOLL信不信由你】
为什么说好于BOLL呢.先说源码:-----------
MID : MA(CLOSE,N);
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID - P*STD(CLOSE,N);
它是以收盘价为基础编制的他的上下轨完全脱离不了收盘价.股价出轨也离不开收盘价.显然他不能及时显示股势的强弱.
现在我们的源码是:----------
上18H:WMA(SMA(hhv(HIGH,18),5,1),5),COLOR00FF00;
下18L:WMA(SMA(llv(LOW,18),5,1),5),COLORFF9900;
通道:(上18H+下18L)/2,COLOR0598FF,DOTLINE;
这几句和收盘价无关而且是区别开.上轨是高价H的18天走向.下轨是低价L的18天走向.根本不是BOLL的加减.【P*STD(CLOSE,N)】不会因同一个参数而同时放大.收缩.我们的上下轨各走各的路.这才能和实际股价走势强弱接近.
【1】当股价不断拉高时上轨及时的反应出来K线一旦脱离上轨在上轨之外是强势.只要重新返回上轨,立即卖出准有一跌.同样道理K线在下轨之下是弱势只有回归下轨既可买入一定有一波上涨行情.
【2】股价滞留在通道的上半部是强势.下半部是弱势.一清二楚.这时你就按MA9确定买卖
【3】图的下边是:--------黄柱是RSI.金黄是MACD.绿柱是KDJ.用它们辅佐通道显示的不足之处.尽量达到“天衣无缝”
【4】图上标注的J和数据是KDJ的J的转向点告知你J的高度和转向的位置.各种顶底背离也标注在图上提供买卖的参考.
【5】我们把这个创造叫【二九宽带】的意思就是公式是以九的基础编制的.宽带和通道的概念不同.宽带上下是两个不关联的参数形成的.通道则是一个参数正负之分.它们的功能不同.显示的结果自然也有本质的差别.
【6】进入下轨即可参考买入如以下选股公式:

---------------五天百分之三成功率是75%.------------------
【下18L:=WMA(SMA(llv(LOW,18),5,1),5); XG多:CROSS(C,下18L) AND CROSS("KDJ.K","KDJ.D") AND MA(C,5)>REF(MA(C,5),1);】




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图