求高手编一个通达信KDJ背离选股公式(有效再加400分!)
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
AB:=REF(DEA,20);
BB:=REF(CLOSE,30);
低值:=LLV(DEA,25);
XG:CROSS("KDJ.J","KDJ.D") AND "KDJ.D"AB AND DEA>低值 AND C<BB AND 低值<-0.2;
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
A1:=BARSLAST(REF(CROSS(K,D),1));
底背离:REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
1.低位金叉
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
CROSS(DIFF,DEA) AND DIFF<-0.1;
2.二次金叉
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
3.底背离
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
4.顶背离
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
第二个公式编写出来的选股公式如下:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS(D,K),1));
D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
IF(B1>0,1,0) OR IF(B2>0,1,0) OR IF(B3>0,1,0) OR IF(D1>0,1,0) OR IF(D2>0,1,0) OR IF(D3>0,1,0);
你试一下吧。
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;
DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);
强调技术指标的重要性,多是从技术分析这一理论的整体角度而言。实际操作中,投资者应该注意多种技术分析的运用和实践。由于技术分析理论随着时间的推移,林林总总、纷繁复杂。每一个技术分析都有不同的角度和侧重点,掌握起来确实有较大困难~!
第一个选股器要分成很多个小的选股器才能写出来,选股的时候看你需要用哪个条件了,公式如下:
1.低位金叉
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
CROSS(DIFF,DEA)ANDDIFF<-0.1;
2.二次金叉
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CROSS(DIFF,DEA)ANDDEA<0ANDCOUNT(JCCOUNT=2,21)=1;
3.底背离
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);
4.顶背离
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
REF(CLOSE,A2+1)<CLOSEANDREF(DIFF,A2+1)>DIFFANDCROSS(DEA,DIFF);
第二个公式编写出来的选股公式如下:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>CANDREF(DIFF,A1+1)<DIFFANDCROSS(DIFF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>CANDREF(K,A2+1)<KANDCROSS(K,D);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>CANDREF(RSI1,A3+1)<RSI1ANDCROSS(RSI1,RSI2);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<CANDREF(DIFF,C1+1)>DIFFANDCROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS(D,K),1));
D2:=REF(C,C2+1)<CANDREF(K,C2+1)>KANDCROSS(D,K);
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)<CANDREF(RSI1,C3+1)>RSI1ANDCROSS(RSI2,RSI1);
IF(B1>0,1,0)ORIF(B2>0,1,0)ORIF(B3>0,1,0)ORIF(D1>0,1,0)ORIF(D2>0,1,0)ORIF(D3>0,1,0);
你试一下吧。
第一个选股器要分成很多个小的选股器才能写出来,选股的时候看你需要用哪个条件了,公式如下:
1.低位金叉
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
CROSS(DIFF,DEA)
AND
DIFF<-0.1;
2.二次金叉
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CROSS(DIFF,DEA)
AND
DEA<0
AND
COUNT(JCCOUNT=2,21)=1;
3.底背离
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
REF(CLOSE,A1+1)>CLOSE
AND
DIFF>REF(DIFF,A1+1)
AND
CROSS(DIFF,DEA);
4.顶背离
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
REF(CLOSE,A2+1)<CLOSE
AND
REF(DIFF,A2+1)>DIFF
AND
CROSS(DEA,DIFF);
第二个公式编写出来的选股公式如下:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
DIFF:=EMA(CLOSE,12)
-
EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C
AND
REF(DIFF,A1+1)<DIFF
AND
CROSS(DIFF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>C
AND
REF(K,A2+1)<K
AND
CROSS(K,D);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C
AND
REF(RSI1,A3+1)<RSI1
AND
CROSS(RSI1,RSI2);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C
AND
REF(DIFF,C1+1)>DIFF
AND
CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS(D,K),1));
D2:=REF(C,C2+1)<C
AND
REF(K,C2+1)>K
AND
CROSS(D,K);
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)<C
AND
REF(RSI1,C3+1)>RSI1
AND
CROSS(RSI2,RSI1);
IF(B1>0,1,0)
OR
IF(B2>0,1,0)
OR
IF(B3>0,1,0)
OR
IF(D1>0,1,0)
OR
IF(D2>0,1,0)
OR
IF(D3>0,1,0);
你试一下吧。
谢谢
请高手帮忙修改一下通达信公式,把此公式做成选股公式,只要周金叉和月金...
D:=SMA(K,3,1);MK日金叉:=CROSS(DIFA,DEA) AND CROSS(K,D);MK日金叉共振:=IF(MK日金叉,5,0),LINETHICK2,COLORYELLOW;{COLOR0066FF;};{抄底黄金坑附图} RR8:=MA(CLOSE,27);RR9:=(CLOSE-RR8)\/RR8*100;RRA:=MA(RR9,2);RRB:=BARSLAST(CROSS(-10,RRA)=1);RRD:=RRA<-10 AND...
请高手帮写一个通达信的选股公式,如果再写出顶背离的公式再追加奖励100...
VALUE_A1:=LOW<=LLV(LOW,5);VALUE_A2:=REF(LOW,BARSLAST(VALUE_A1));VALUE_A3:=REF(LOW,BARSLAST(REF(VALUE_A1,1)));VALUE_B1:=KD.K<=LLV(KD.K,5);VALUE_B2:=REF(KD.K,BARSLAST(VALUE_B1));VALUE_B3:=REF(KD.K,BARSLAST(REF(VALUE_B1,1)));VALUE_C1:=VALUE_A2<VALUE_A3;V...
求高手帮忙编写一个通达信的选股公式,建仓选股!
VAR2:=1\/WINNER(CLOSE);VAR3:=100-ABS((CLOSE-MA(CLOSE,13))\/MA(CLOSE,13)*100);VAR4:=(CLOSE-LLV(LOW,27))\/(HHV(HIGH,27)-LLV(LOW,27))*100;VAR5:=SMA(VAR4,5,1);VAR6:=SMA(VAR5,9,1);兰柱:VAR2>5 AND VAR3<100 AND VOL AND VAR6<18;=== VAR2:=1\/WINNER(C)...
请高手按条件编通达信选股公式
D:=SMA(K,3,1);RSVR:=((R1-R2)\/(R3-R2))*100;KR:=SMA(RSVR,3,1),COLORRED;DR:=SMA(KR,3,1),COLORYELLOW;RSVY:=((Y1-Y2)\/(Y3-Y2))*100;KY:=SMA(RSVY,3,1),COLORCCEE33;DY:=SMA(KY,3,1),COLORYELLOW;X1:=M8;X2:=M13;X3:=M21;XX:=C>X2 AND C>X2 ,;LC ...
请高手编写一个通达信选股程序?
F:IF(LLV(MACD.DIF,N)>=0,1,0);在这里,E的值基本用不到,因为F值大于0,就表明曾经上穿过,而且现在大于0,E的赋值还可以写成:E:COUNT(CROSS(DIF,0),N);到时再在选股器里边选 二、到选股器里,综合选股,找你所给的K线图来看,我在计算参数设置了40个交易日来选,指定日期设在3月20...
取5分钟k线 和取30分钟k线 编成公式 怎么编? 通达信 谢谢!
通达信六十分钟k线由下降转为上升的选股公式,谢谢。 百度股票指标辅导团成立了,有关股票期货的指标问题可以向他们求助, 愿意帮助股民的这方面的高手,可以申请加入该团队 ---长阳真人 通达信怎么检视几年前120分钟K线 无法检视,看了也没有太大意义。请高手帮我编个通达信软体30分钟K线上MACD的DIF...
请高手帮忙编写通达信指标公式: 要求每日涨幅和跌幅在4%以上的K线自动...
Z:=BARSLAST(C\/REF(C,1)>=1.04);DRAWLINE(C\/REF(C,1)>=1.04,H,Z,REF(H,Z),0),COLORRED,CIRCLEDOT;D:=BARSLAST(C\/REF(C,1)<=0.96);DRAWLINE(C\/REF(C,1)<=0.96,L,D,REF(L,D),0),COLORGREEN,CIRCLEDOT;STICKLINE(C\/REF(C,1)>=1.04,H,H,10,0),COLOR00FFFF;STICKLI...
请帮忙编写一个通达信选股公式:今天的收盘价大于N日内最高收盘价_百...
N:=10;XG:CROSS(C,REF(HHV(H,N),1));这是个向上突破公式,其中N可以调整,现设置为10日前高价。1、 放量 a、今日比昨日的成交量放大了1倍: VOL\/REF(VOL, 1)>2; b、今日的五日均量比五天前的五日均量放大了3倍: AA:=MA(VOL, 5); BB:=REF(AA, 5); AA\/BB>4; c、...
请高手帮忙编一个通达信60分钟MACD金叉的自动选股公式!
公式解密,去除时间限制。鼠标点击下方 我 的 名 字 上,进入 可 订 制 公式。3.通达信没有分钟预警,但条件选股的话是可以的,你先下载5分钟数据,下载后就可以用条件选股了,条件是xg:cross(k,d); 也就是k上穿d 即可,选股周期选择60分钟,就能选出来了拓展资料:通大信软件是一个多功能的...
求高手编一个通达信的散户线指标公式。十分感谢!!!
吸筹:IF(VAR8>100,100,VAR8)*VAR1,COLORRED;庄家吸筹:STICKLINE(吸筹>-150,0,吸筹,8,0),COLORRED;散户线: 100*(HHV(HIGH,M)-CLOSE)\/(HHV(HIGH,M)-LLV(LOW,M)),COLORFFFF00,LINETHICK2;RSV:=(CLOSE-LLV(LOW,N))\/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,3,1);D:=SMA(K...
邴佩注射: 第一个选股器要分成很多个小的选股器才能写出来,选股的时候看你需要用哪个条件了,公式如下: 1.低位金叉 DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); CROSS(DIFF,DEA) AND DIFF<-0.1; 2....
巴州区15919671631: 求通达信选股公式 ,月线KDJ底背离 - ?
邴佩注射: A1:=BARSLAST(REF(CROSS(KDJ.K#MONTH,KDJ.D#MONTH),1)); 月底背离:REF(CLOSE,A1+1)>C AND KDJ.K#MONTH>REF(KDJ.K#MONTH,A1+1) AND CROSS(KDJ.K#MONTH,KDJ.D#MONTH);
巴州区15919671631: 老师,请编写一个用于通达信的KDJ J值抬头和股价下跌背离的选股公式. - ?
邴佩注射: J交叉:=CROSS(KDJ.J,KDJ.K) AND CROSS(KDJ.K,KDJ.D); {底背红买} K值:="KDJ.K"; DD:=C=LLV(C,60); DDSJ:=BARSLAST(REF(DD,1));{上一低点时间} DDGJ:=REF(CLOSE,DDSJ+1)>CLOSE; KDZB:=REF(K值,DDSJ+1)<K值; K底背离:=DDGJ AND KDZB; XG:J交叉 OR K底背离;如果要二个条件同时成立,则用: XG:J交叉 AND K底背离;经测试,信号很小.
巴州区15919671631: 求KDJ顶背离选股公式 - ?
邴佩注射: {参数默认值: n=9; M1=3; M2=3} RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1); D:=SMA(K,M2,1); J:=3*K-2*D; MA(HIGH,3)>REF(HHV(HIGH,N),N) AND J
巴州区15919671631: 有谁能给我编写个cci、macd、kdj三个指标共同底背离,通达信能用的选股公式,谢谢 - ?
邴佩注射: bias : 乖离率,简称y值,是移动平均原理派生的一项技术指标,其功能主要是通过测算股价在波动过程中与移动平均线出现偏离的程度,从而得出股价在剧烈波动时因偏离移动平均趋势而造成可能的回档或反弹,以及股价在正常波动范围内移...
巴州区15919671631: MACD.RSI.KDJ底底背离;通达信选股公式 - ?
邴佩注射: 没有那么多的时间去写了,我只说一下原理,rsi和kdj只用一个就行了,因为都是随机指标,编写原理一样,除了周期重叠之外,其余的多余运算时没有必要的,macd可以先设参数m1,m2,m3,底背离可以写成m2>m1,m3>m2,表示绿柱缩短,同理在价格p上,可直接调用函数,原理类似于macd,两个语句写成后,与语句求交集,随机指标的 随机指标原理类似,不过我倒觉得 你如果在macd背离的情况下再并上dif和dea位于0线以下,如果小周期是金叉相信准确度会更高的,写完后建议到钱龙里面测试准确度,通达信的测试结果有限!就说这些吧!
巴州区15919671631: 你好兄弟,帮忙帮我编写一个KDJ指标选股公式,条件是在下跌过程中J值小于K值15以上选股公式,通达信软件 - ?
邴佩注射: XG:KDJ.K>KDJ.J AND (KDJ.K-KDJ.J)>15;(已测试)
巴州区15919671631: 请老师写一个底背离选股公式,K线价格创出新低,KDJ的J值和价格背离,如图. - ?
邴佩注射: J:="KDJ.J"; LLJ:=LLV(J,10)=J; T:=BARSLAST(LLJ); LL:=LLV(L,10); T>5 AND LL=L;-------------------------- 注:没有说"K线价格创出多少天的新低,10和5是瞎猜的
巴州区15919671631: KDJ金叉底背离选股公式(请高手写一个通达信公式) - ?
邴佩注射: C/HHV(H,50)
巴州区15919671631: 帮我编写一个KDJ的选股公式 - ?
邴佩注射: 在原有的KSJ公式最后加上 选股:ABS(J-REF(J,1))