网缘博弈 (通达信、大智慧副图 源码 帖图)

[复制链接]
查看41 | 回复0 | 2022-7-11 12:53:05 | 显示全部楼层 |阅读模式
思路:各股软系统自带经典指标kdj\ macd ,在其使用说明里都是金叉买,死叉卖,背离之类的,经过多次比对这两个指标不全是同步的,如果单一使用一个错误的操作概率会加大,如果两个同时发生共振无论涨跌成功率会大大的提高,这样的话就要打开两个副图同时观察比对分析,为了便于分析判断自己试探性做了一个指标,从下图清晰的可以看出单一的一个金叉不会有太大的动作并且可以看出kdj的反应要比macd灵敏,当kdj回调时macd依然是红色柱,对于中长线来说这个回调算不了什么,可对短线的杀伤力很大。
图形说明:第一根红色柱是kdj金叉,第一根黄色柱是macd的第一根红柱也就是两线在0轴下的金叉,蓝色柱是kdj-j大于100了此时要注意回调的风险看周线图更佳,不过疯狂拉升也是这里,所以有时我们卖了就疯涨。如果在低位买在红柱黄柱同时出现时,成功率会提高些。
由于觉得还不够完善源码迟些再发,先看看图,希望大家有什么思路、建议、要求提出来以便修改,省去发出源码后改来改去的,此指标的名称还要大家一起想一个。

{网缘博弈-通达信副图}
DRAWBAND(120,RGB(100,80,80),0,RGB(0,100,50));{背景随意更换}
STICKLINE(C,50,50,1,1),COLORGRAY;
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
短线:=MA(C,3)>REF(MA(C,3),1) AND REF(MA(C,3),1)<REF(MA(C,3),2);
主流资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
生命线:=MA(FORCAST(MA(C,1)/MA(REF(C,18),18)*100,20),6);
真伪:=短线 AND 长期>=80 AND 长期>中长期 AND 长期>中期 AND 长期>短期 AND 生命线>REF(生命线,1);
短买:=REF("KDJ.J",1)<0 AND "KDJ.J">0 AND 主流资金>REF(主流资金,1) AND 长期>=60;
MACD:=(EMA(CLOSE,12)-EMA(CLOSE,26)-EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9))*2;
{MACD底背离-主图}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORMAGENTA;
极限底:20,COLORYELLOW;
极限顶:80,COLORGREEN;
KK:=SMA(RSV,2,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(KK>=K AND K>REF(K,1),KK,K,0.001,0),COLORRED;
STICKLINE(MACD>=0,D,K,0.001,0),COLORYELLOW;
STICKLINE(J>=100 AND C<H,KK,J,0.001,0),COLORBLUE;
STICKLINE(底背离 AND C>O,D,K,3,0),COLORRED;
STICKLINE(底背离 AND C>O,D,K,1,0),COLORYELLOW;
DRAWTEXT(底背离,K*0.8,'↖底背MACD'),COLORRED;
STICKLINE(短买,K-2,K-10,6,0),COLORBROWN;
DRAWICON(短买,K-6,1);
DRAWTEXT(短买,K-12,'↖短买'),COLORRED;
STICKLINE(真伪,K-2,K-10,6,0),COLORGRAY;
DRAWICON(真伪,K-6,1);
DRAWTEXT(真伪,K-12,'↖真伪'),COLORRED;
DRAWTEXT(ISLASTBAR,K,'↙K'),COLORGREEN;


{网缘博弈-大智慧副图}
{FILLRGN(0,50,50,RGB(120,80,120));
FILLRGN(50,100,100,RGB(133,110,155));}{大智慧背渐变景色}
{FILLRGN(100,120,120,RGB(100,50,100));}
DRAWGBK(C,STRIP(RGB(80,80,80),RGB(100,50,50),0));{大智慧背渐变景色}
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
短线:=MA(C,3)>REF(MA(C,3),1) AND REF(MA(C,3),1)<REF(MA(C,3),2);
主流资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
生命线:=MA(FORCAST(MA(C,1)/MA(REF(C,18),18)*100,20),6);
真伪:=短线 AND 长期>=80 AND 长期>中长期 AND 长期>中期 AND 长期>短期 AND 生命线>REF(生命线,1);
短买:=REF("KDJ.J",1)<0 AND "KDJ.J">0 AND 主流资金>REF(主流资金,1) AND 长期>=60;
MACD:=(EMA(CLOSE,12)-EMA(CLOSE,26)-EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9))*2;
{连国彬MACD底背离-主图}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
{{回廊聆韵抓板}—{必须安装大智慧扩展数据才能显示请搜索回廊聆韵老师的帖子}}
外盘:=EXTDATA(2);
内盘:=EXTDATA(1);
买单数:=ORDER(1);
卖单数:=ORDER(2);
总买均手:=外盘/买单数;
总卖均手:=内盘/卖单数;
主单买:=bigorder(1,2)*外盘;
主单卖:=bigorder(2,2)*内盘;
主占比:=(主单买-主单卖)/capital*100;
均手差:=(总买均手-总卖均手);
均线:=EMA(CLOSE,17);
增减:=(均线-REF(均线,1));
增减1:=(增减-REF(增减,1));
XG:=主占比>1 AND 均手差>5 AND 增减>0 AND 增减1>0;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORMAGENTA;
极限底:20,COLORYELLOW;
极限顶:80,COLORGREEN;
KK:=SMA(RSV,2,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(KK>=K AND K>REF(K,1),KK,K,2,0),COLORRED;
STICKLINE(MACD>=0,D,K,2,0),COLORYELLOW;
STICKLINE(J>=100 AND C<H,KK,J,2,0),COLORBLUE;
STICKLINE(底背离 AND C>O,D,K,6,0),COLORRED;
STICKLINE(底背离 AND C>O,D,K,2,0),COLORYELLOW;
DRAWTEXT(底背离,K*0.8,'↖底背MACD'),COLORRED;
DRAWTEXT(短买,K*0.99,'↖短买'),COLORRED;
DRAWICON(短买,REF( K*0.999,1),7);
DRAWTEXT(真伪,K*0.99,'↖真伪'),COLORRED;
DRAWICON(真伪,REF( K*0.999,1),7);
DRAWTEXT(XG>0.1,K*0.99,'↖抓板'),COLOR00ffff;

2010959243191978.jpg

2010959243191978.jpg

 

2010959244011635.rar

3.5 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

2010959244011635.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则