四指标金叉指标公式(kdj两次金叉选股公式。KDJ第一个金叉出现在MACD在0轴以下,KDJ第二个金叉出现在MACD在0轴以上?)
1. kdj两次金叉选股公式。KDJ第一个金叉出现在MACD在0轴以下,KDJ第二个金叉出现在MACD在0轴以上?
A:=COUNT(CROSS(MACD.DIF,MACD.DEA),BARSLAST(MACD.DEA>=0));二次金叉:=CROSS(MACD.DIF,MACD.DEA) AND MACD.DEA<0 AND COUNT(AA=2,30)=1;XG:CROSS(KDJ.J,KDJ.K) AND 二次金叉; KDJ指标又叫随机指标,是一种相当新颖、实用的技术分析指标,它起先用于期货市场的分析,后被广泛用于股市的中短期趋势分析,是期货和股票市场上最常用的技术分析工具。 随机指标KDJ一般是用于股票分析的统计体系,根据统计学原理,通过一个特定的周期(常为9日、9周等)内出现过的最高价、最低价及最后一个计算周期的收盘价及这三者之间的比例关系,来计算最后一个计算周期的未成熟随机值RSV,然后根据平滑移动平均线的方法来计算K值、D值与J值,并绘成曲线图来研判股票走势。
2. 恳请老师把同花顺:3日均线上穿5日均线金叉买入指标,改成同花顺:2日均线上穿4日均线金叉买入指标?
3日均线上穿5日均线金叉买入指标 XG:CROSS(MA(C,3),MA(C,5)); 2日均线上穿4日均线金叉买入指标 XG:CROSS(MA(C,2),MA(C,4));
3. 请问金叉和死叉是什么意思?
金叉主要指股票行情指标的短期线向上穿越长期线的交叉,称之为金叉。 死叉是行情指标的短期线向下穿越长期线的交叉,称之为死叉。 金叉为买进信号,死叉为卖出信号,同时要结合这均线系统的组合时间周期来判断是短线买卖还是中线波段买卖,特别需要注意的是均线交叉之后的2根均线的方向,如果不是一致朝上或者朝下的,那就是普通的均线交叉,而不是“金叉”或“死叉”了。KDJ全名为随机指标(Stochastics),由George Lane所创,其综合动量观念,强弱指标及移动平均线的优点,早年应用在期货投资方面,功能颇为显著,目前为股市中最常用的技术分析指标之一。
死叉又称死亡交叉,是指下降中的短期移动平均线由上而下穿过下降的长期移动平均线,表示股价将继续下落,行情看跌。在技术分析的各种方法中,均线金叉或死叉是判断市场走势强弱的重要参考指标之一。
4. kdj带红绿箭头指标公式?
通达信KDJ红绿箭头指标公式
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORWHITE,LINETHICK1;
D:SMA(K,3,1),COLORYELLOW,LINETHICK1;
J:3*K-2*D,COLORMAGENTA,LINETHICK1;
金叉:IF(CROSS(J,K),K,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK2;
死叉:IF(CROSS(K,J),K,DRAWNULL),CIRCLEDOT,COLORFFFF00,LINETHICK2;
LL:=REF(CLOSE,1);
MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100;
出:IF(CROSS(80,MM),80,100),COLORLIGRAY,LINETHICK1;
VAR17:=CROSS(82,SMA(MAX(C-(REF(C,1)),0),6,1)/SMA(ABS(C-(REF(C,1))),6,1)*100);
顶部:IF(VAR17,90,100)*1,COLORGRAY;
N:=45;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;
VAR2:=28,COLORGREEN,LINETHICK0;
上升在即:IF(CROSS(VAR1,VAR2),60,0);
IF(J>100,J,DRAWNULL),COLORCYAN,LINETHICK2;
IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;
IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK1;
5. 求助老师做一个ZJL指标里超级资金金叉于散户资金的选股公式?
jgV:=(BIGORDER(1,3)-BIGORDER(2,3))*vol/CAPITAL;
dhV:=(BIGORDER(1,2)-BIGORDER(2,2)-BIGORDER(1,3)+BIGORDER(2,3))*vol/CAPITAL;
zhV:=(BIGORDER(1,1)-BIGORDER(2,1)-BIGORDER(1,2)+BIGORDER(2,2))*vol/CAPITAL;
shV:=(BIGORDER(2,1)-BIGORDER(1,1))*vol/CAPITAL;
A1:=MIN((COUNT(ORDER(2),0)),60);
超级资金:=EMA(jgV,A1)*A1;
散户资金:=EMA(shV,A1)*A1;
cross(超级资金,散户资金);
6. macd变色指标公式?
MACD变色公式
源码
//MACD变色V4 +金叉买入指标公式
//20150328 DIFF上穿0轴后在0轴上第一次死叉后又金叉
//20150329 MACD多头二次翻红
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite,LINETHICK1;
DEA: EMA(DIFF,9),coloryellow,LINETHICK1;
MACD: 2*(DIFF-DEA),colorred,NODRAW;
Zero: 0,colorff7f00,LINETHICK1;
N:=IF(BARSCOUNT(C)<=5,MA(C,2),MA(C,5));
角度:((ATAN((N - REF(N,1))) * 3.1416) * 10),NODRAW,colorcyan;
//角度:((ATAN((MA(C,5) - REF(MA(C,5) ,1))) * 3.1416) * 10),NODRAW;
流通股:SHGZG/10000/10000,NODRAW,colorff7f00;
资本公积:GJJ/ZGB,NODRAW;
//CCI抄底
N:=14;
TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
CCI: (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),colorffff00,NODRAW;
//红色
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),color0000ff;
//墨绿
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorffff00;
//洋红
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorff00ff;
//绿色
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),color00ff00;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.2;
贴近零轴金叉:=CROSS(DIFF,DEA) AND MACD>0 AND BETWEEN(DIFF,-0.03,0.03);
//VERLINE(水上低位金叉,1),colorwhite;
//DRAWTEXT(低位金叉,DIFF*1.1,'低位'),color00aaff;
AA:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
一次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=1,21)=1;
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1;
三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=3,21)=1;
四次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=4,21)=1;
五次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=5,21)=1;
//VERLINE(二次金叉,1),colorwhite;
DRAWTEXT(一次金叉,DIFF*1.1,'①'),color00aaff;
DRAWTEXT(一次金叉 AND 低位金叉,DIFF*1.1,'①低位'),color00aaff;
DRAWTEXT(二次金叉,DIFF*1.1,'②'),color00aaff;
DRAWTEXT(二次金叉 AND 低位金叉,DIFF*1.1,'②低位'),color00aaff;
DRAWTEXT(三次金叉,DIFF*1.1,'③'),color00aaff;
DRAWTEXT(三次金叉 AND 低位金叉,DIFF*1.1,'③低位'),color00aaff;
DRAWTEXT(四次金叉,DIFF*1.1,'④'),color00aaff;
DRAWTEXT(四次金叉 AND 低位金叉,DIFF*1.1,'④低位'),color00aaff;
DRAWTEXT(五次金叉,DIFF*1.1,'⑤'),color00aaff;
DRAWTEXT(五次金叉 AND 低位金叉,DIFF*1.1,'⑤低位'),color00aaff;
//DIFF上穿0轴后在0轴上第一次死叉后又金叉 www.gszb.com
AA:= CROSS(DIFF,DEA) AND DEA>0 ;
BB:=BARSLAST(CROSS(DEA,DIFF)) AND DEA>0;
CC:=REF(BARSLAST(CROSS(DIFF,0))<20,BARSLAST(CROSS(DEA,DIFF))+1);
MACD死叉后金叉:= AA AND BB AND CC;
DRAWTEXT(MACD死叉后金叉,DIFF*1.1+0.1,'①'),colorred;
//MACD多头二次翻红
FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;
FH3:=EMA(C,30)>=REF(EMA(C,30),1) AND COUNT(EMA(C,5)>EMA(C,10) AND EMA(C,10)>EMA(C,30),1)=1;
FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);
FH5:=FH1 AND FH2 AND FH3 AND FH4;
FH6:=FH1 AND FH2 AND FH3 AND FH4 AND ABS((DIFF-DEA)/C)<0.018;
FH7:=FH1 AND FH2 AND FH3 AND FH4 AND MACD<0.10;
MACD多头二次翻红:=FH5 OR FH6 OR FH7;
DRAWTEXT(MACD多头二次翻红 AND REF(CCI,1)<50,DIFF*1.1+0.05,'②'),colorred;
//这个"二次翻红"指标除了满足原有的四个条件外,即:
//一是MACD在零轴以上并且第二次收红柱;
//二是MACD红柱大于等于零轴并且红柱缩短小于0.10以下;(实战0.111也行)
//三是DIFF与DEA两线的粘合度小于0.018;
//四是红柱连续缩短三天以上。
//还基本满足了所描述的四个条件(即:
//1、30日移动平均线由下跌变为走平或翘头向上,5日、10、30日移动平均线刚刚形成多头排列;
//2、日K线刚刚上穿30日移动平均线或在30日移动平均线上方运行;
//3、DIF在零轴下方与MACD金叉后可靠意义将会更大,在第一次翻红后,红柱开始缩短,越短越好,最好不要超过0轴的第一横线;
//4、成交量由萎缩逐渐放大,特别是在二次翻红后,若能得到成交量的配合,该股后市向上冲击的力量会更大。)
//该指标没有设计成交量这个条件。只要符合所涉及到的条件,就能在"二次翻红"起涨点选出股票。
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;
DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;
DRAWTEXT(底背离,REF(DEA,A1)*1.28,'+底背离'),COLORFF00FF;
DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;
DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;
DRAWTEXT(顶背离,REF(DEA,A2)*1.18,'-顶背离'),colorgreen,LINETHICK2;
//5日均线上穿24日均线
MA5:=MA(C,5);
MA24:=MA(C,24);
LL:=IF(MACD<=0,MACD,-MACD);
A1:=CROSS(MA5,MA24) OR (MA5>MA24 AND REF(MA5,1)<REF(MA24,1));
A2:=MA(V,10)<V;
A3:=IF(MACD<0,MACD>=REF(MACD,1),MACD<
3);
//五日内最大涨幅小于8%
A4:=C>=O AND 角度<8 AND COUNT(C/O>1.08,5)<1;
//日线买点:= MA5>MA24 AND REF(MA5,1)<REF(MA24,1) AND CCI<100;
日线买点:= A1 AND A2 AND A3 AND A4;
DRAWICON(日线买点,LL,"BUY");
7. kdj金叉公式怎么写?
1、KDJ金叉的选股公式 N1:=13;N2:=34;N3:=89;RSV1:=(C-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*100;
RSV2:=(C-LLV(L,N2))/(HHV(H,N2)-LLV(L,N2))*100;
RSV3:=(C-LLV(L,N3))/(HHV(H,N3)-LLV(L,N3))*100;RSVH:=MAX(MAX(RSV1,RSV2),RSV3);
K:=EMA(EMA(EMA(RSVH,3),3),3);D:=EMA(EMA(EMA(K,3),3),3);CROSS(K,D)。
2、KDJ金叉选股
RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;K:=SMA(RSV,N2,1);
D:=SMA(K,N3,1);J:=3*K-2*D;CROSS(J,0);KDJ买入条件选股,N1 9 N2 3 N3 3,参数可以自定。
3、KDJ金叉选股公式
MA5:=EMA(C,5);
MA10:=EMA(C,10);
MV5:=EMA(V,5);
MV10:=EMA(V,10);
K:="KDJ.K"(9,3,3);
D:="KDJ.D"(9,3,3);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);
MACD1:=DIF>REF(DIF,1) AND DEA>=REF(DEA,1) AND DIF>DEA;
V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF(C,1) AND C/O>1.01;
VV1:=MV5>REF(MV5,1) AND MV10>=REF(MV10,1) AND V>REF(V,1)*1.2 ;
KD1:=K>REF(K,1) AND D>=REF(D,1);
VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 ANDCOUNT(CROSS(MV5,MV10),4)>=1 AND COUNT(CROSS(DIF,DEA),4)>=1;
XG2:IF(V1 AND VV1 AND KD1 AND MACD1 AND VA,1,0)。
8. 求通达信公式,MACD金叉,5日10日均量线金叉5日10日均价线金叉的公式?
{通达信公式 MACD金叉} DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); CROSS(DIF,DEA); { 5日10日均量线金叉} CROSS(MA(V,5),MA(V,10));{ 5日10日均价线金叉} CROSS(MA(C,5),MA(C,10));
9. macd四线交叉一起代表什么?
macd四线交叉一起代表金叉或死叉。
金叉也就是股票行情指标的短期线向上穿越长期线的交叉,就叫做交叉,也常叫做黄金交叉。一谈到“黄金”二字,就能够明白,这是一个亮眼的信号,所以是买入信号,很好记。
反而行情指标的短期线向下穿越长期线的交叉是死叉的概念,但是“死叉”听起来不吉利,所以说它都只是一个卖出信号。