首页 > 问答热点>正文

同花顺金叉黑马指标公式(同花顺kdj指标最佳参数设置?)

中亿财经网 gengxing 2023-08-14 19:19:05

1. 同花顺kdj指标最佳参数设置?

一般选用(9.3.3),以KDJ(9.3.3)的参数的KDJ值较为敏感,做短线较佳.选KDJ(36.3.3)的好处能够过滤掉杂波,能够看得更清,做长线为好。而且一旦KDJ从低位50 以下金叉上来,一时半时,不会改变,某天该股票KDJ死叉就是卖给出时机。2Ai中亿财经网财经门户

如何用KDJ判断洗盘特征,当KDJ在50以上运行时,当J值上升过快,拐头向下与K,D值死叉后快速金叉,则速买入,或当J值下探K,D值不交叉反转向上,则表示洗盘结束,即将快速拉升,最好是均线呈现多头攻击排列的状态。2Ai中亿财经网财经门户

当月KDJ在高位时死叉,则是长期卖出时候,大跌还在后面,要果断卖出,不后悔。2Ai中亿财经网财经门户

2. 同花顺kdj指标最佳参数设置?

一般选用(9.3.3),以KDJ(9.3.3)的参数的KDJ值较为敏感,做短线较佳.选KDJ(36.3.3)的好处能够过滤掉杂波,能够看得更清,做长线为好。而且一旦KDJ从低位50 以下金叉上来,一时半时,不会改变,某天该股票KDJ死叉就是卖给出时机。2Ai中亿财经网财经门户

如何用KDJ判断洗盘特征,当KDJ在50以上运行时,当J值上升过快,拐头向下与K,D值死叉后快速金叉,则速买入,或当J值下探K,D值不交叉反转向上,则表示洗盘结束,即将快速拉升,最好是均线呈现多头攻击排列的状态。2Ai中亿财经网财经门户

当月KDJ在高位时死叉,则是长期卖出时候,大跌还在后面,要果断卖出,不后悔。2Ai中亿财经网财经门户

3. 同花顺kdj指标最佳参数设置?

一般选用(9.3.3),以KDJ(9.3.3)的参数的KDJ值较为敏感,做短线较佳.选KDJ(36.3.3)的好处能够过滤掉杂波,能够看得更清,做长线为好。而且一旦KDJ从低位50 以下金叉上来,一时半时,不会改变,某天该股票KDJ死叉就是卖给出时机。2Ai中亿财经网财经门户

如何用KDJ判断洗盘特征,当KDJ在50以上运行时,当J值上升过快,拐头向下与K,D值死叉后快速金叉,则速买入,或当J值下探K,D值不交叉反转向上,则表示洗盘结束,即将快速拉升,最好是均线呈现多头攻击排列的状态。2Ai中亿财经网财经门户

当月KDJ在高位时死叉,则是长期卖出时候,大跌还在后面,要果断卖出,不后悔。2Ai中亿财经网财经门户

4. 同花顺kdj指标最佳参数设置?

一般选用(9.3.3),以KDJ(9.3.3)的参数的KDJ值较为敏感,做短线较佳.选KDJ(36.3.3)的好处能够过滤掉杂波,能够看得更清,做长线为好。而且一旦KDJ从低位50 以下金叉上来,一时半时,不会改变,某天该股票KDJ死叉就是卖给出时机。2Ai中亿财经网财经门户

如何用KDJ判断洗盘特征,当KDJ在50以上运行时,当J值上升过快,拐头向下与K,D值死叉后快速金叉,则速买入,或当J值下探K,D值不交叉反转向上,则表示洗盘结束,即将快速拉升,最好是均线呈现多头攻击排列的状态。2Ai中亿财经网财经门户

当月KDJ在高位时死叉,则是长期卖出时候,大跌还在后面,要果断卖出,不后悔。2Ai中亿财经网财经门户

5. 求同花顺选股公式,股价刚好在20日均线之上,而且当日涨幅不超过3/100,20日均线搞好金叉60日均线?

  N:=1.02;  MA1:=MA(C,20);  MA2:=MA(C,60);  XG:C/REF(C,1)=MA1 AND C2Ai中亿财经网财经门户

6. 求同花顺选股公式,股价刚好在20日均线之上,而且当日涨幅不超过3/100,20日均线搞好金叉60日均线?

  N:=1.02;  MA1:=MA(C,20);  MA2:=MA(C,60);  XG:C/REF(C,1)=MA1 AND C2Ai中亿财经网财经门户

7. 求老师给写一个,同花顺5、10日均量线金叉,5、10日均价线金叉,macd金叉时标注红色箭头的公式?

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);2Ai中亿财经网财经门户

DEA:=EMA(DIF,9);2Ai中亿财经网财经门户

V1:=MA(V,5);2Ai中亿财经网财经门户

V2:=MA(V,10);2Ai中亿财经网财经门户

MA1:=MA(C,5);2Ai中亿财经网财经门户

MA2:=MA(C,10);2Ai中亿财经网财经门户

三线金叉:IF(CROSS(DIF,DEA) AND CROSS(MA1,MA2) AND CROSS(V1,V2),20,0),LINESTICK,COLORRED;2Ai中亿财经网财经门户

(已测试通过,不过同时金叉股不好找啊)2Ai中亿财经网财经门户

8. 求同花顺选股公式,股价刚好在20日均线之上,而且当日涨幅不超过3/100,20日均线搞好金叉60日均线?

  N:=1.02;  MA1:=MA(C,20);  MA2:=MA(C,60);  XG:C/REF(C,1)=MA1 AND C2Ai中亿财经网财经门户

9. macd变色指标公式?

MACD变色公式2Ai中亿财经网财经门户

源码2Ai中亿财经网财经门户

//MACD变色V4 +金叉买入指标公式2Ai中亿财经网财经门户

//20150328 DIFF上穿0轴后在0轴上第一次死叉后又金叉2Ai中亿财经网财经门户

//20150329 MACD多头二次翻红2Ai中亿财经网财经门户

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite,LINETHICK1;2Ai中亿财经网财经门户

DEA: EMA(DIFF,9),coloryellow,LINETHICK1;2Ai中亿财经网财经门户

MACD: 2*(DIFF-DEA),colorred,NODRAW;2Ai中亿财经网财经门户

Zero: 0,colorff7f00,LINETHICK1;2Ai中亿财经网财经门户

N:=IF(BARSCOUNT(C)<=5,MA(C,2),MA(C,5));2Ai中亿财经网财经门户

角度:((ATAN((N - REF(N,1))) * 3.1416) * 10),NODRAW,colorcyan;2Ai中亿财经网财经门户

//角度:((ATAN((MA(C,5) - REF(MA(C,5) ,1))) * 3.1416) * 10),NODRAW;2Ai中亿财经网财经门户

流通股:SHGZG/10000/10000,NODRAW,colorff7f00;2Ai中亿财经网财经门户

资本公积:GJJ/ZGB,NODRAW;2Ai中亿财经网财经门户

//CCI抄底2Ai中亿财经网财经门户

N:=14;2Ai中亿财经网财经门户

TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;2Ai中亿财经网财经门户

CCI: (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),colorffff00,NODRAW;2Ai中亿财经网财经门户

//红色2Ai中亿财经网财经门户

STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),color0000ff;2Ai中亿财经网财经门户

//墨绿2Ai中亿财经网财经门户

STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorffff00;2Ai中亿财经网财经门户

//洋红2Ai中亿财经网财经门户

STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorff00ff;2Ai中亿财经网财经门户

//绿色2Ai中亿财经网财经门户

STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),color00ff00;2Ai中亿财经网财经门户

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.2;2Ai中亿财经网财经门户

贴近零轴金叉:=CROSS(DIFF,DEA) AND MACD>0 AND BETWEEN(DIFF,-0.03,0.03);2Ai中亿财经网财经门户

//VERLINE(水上低位金叉,1),colorwhite;2Ai中亿财经网财经门户

//DRAWTEXT(低位金叉,DIFF*1.1,'低位'),color00aaff;2Ai中亿财经网财经门户

AA:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));2Ai中亿财经网财经门户

一次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=1,21)=1;2Ai中亿财经网财经门户

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1;2Ai中亿财经网财经门户

三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=3,21)=1;2Ai中亿财经网财经门户

四次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=4,21)=1;2Ai中亿财经网财经门户

五次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=5,21)=1;2Ai中亿财经网财经门户

//VERLINE(二次金叉,1),colorwhite;2Ai中亿财经网财经门户

DRAWTEXT(一次金叉,DIFF*1.1,'①'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(一次金叉 AND 低位金叉,DIFF*1.1,'①低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(二次金叉,DIFF*1.1,'②'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(二次金叉 AND 低位金叉,DIFF*1.1,'②低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(三次金叉,DIFF*1.1,'③'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(三次金叉 AND 低位金叉,DIFF*1.1,'③低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(四次金叉,DIFF*1.1,'④'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(四次金叉 AND 低位金叉,DIFF*1.1,'④低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(五次金叉,DIFF*1.1,'⑤'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(五次金叉 AND 低位金叉,DIFF*1.1,'⑤低位'),color00aaff;2Ai中亿财经网财经门户

//DIFF上穿0轴后在0轴上第一次死叉后又金叉 www.gszb.com2Ai中亿财经网财经门户

AA:= CROSS(DIFF,DEA) AND DEA>0 ;2Ai中亿财经网财经门户

BB:=BARSLAST(CROSS(DEA,DIFF)) AND DEA>0;2Ai中亿财经网财经门户

CC:=REF(BARSLAST(CROSS(DIFF,0))<20,BARSLAST(CROSS(DEA,DIFF))+1);2Ai中亿财经网财经门户

MACD死叉后金叉:= AA AND BB AND CC;2Ai中亿财经网财经门户

DRAWTEXT(MACD死叉后金叉,DIFF*1.1+0.1,'①'),colorred;2Ai中亿财经网财经门户

//MACD多头二次翻红2Ai中亿财经网财经门户

FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);2Ai中亿财经网财经门户

FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;2Ai中亿财经网财经门户

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;2Ai中亿财经网财经门户

FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);2Ai中亿财经网财经门户

FH5:=FH1 AND FH2 AND FH3 AND FH4;2Ai中亿财经网财经门户

FH6:=FH1 AND FH2 AND FH3 AND FH4 AND ABS((DIFF-DEA)/C)<0.018;2Ai中亿财经网财经门户

FH7:=FH1 AND FH2 AND FH3 AND FH4 AND MACD<0.10;2Ai中亿财经网财经门户

MACD多头二次翻红:=FH5 OR FH6 OR FH7;2Ai中亿财经网财经门户

DRAWTEXT(MACD多头二次翻红 AND REF(CCI,1)<50,DIFF*1.1+0.05,'②'),colorred;2Ai中亿财经网财经门户

//这个"二次翻红"指标除了满足原有的四个条件外,即:2Ai中亿财经网财经门户

//一是MACD在零轴以上并且第二次收红柱;2Ai中亿财经网财经门户

//二是MACD红柱大于等于零轴并且红柱缩短小于0.10以下;(实战0.111也行)2Ai中亿财经网财经门户

//三是DIFF与DEA两线的粘合度小于0.018;2Ai中亿财经网财经门户

//四是红柱连续缩短三天以上。2Ai中亿财经网财经门户

//还基本满足了所描述的四个条件(即:2Ai中亿财经网财经门户

//1、30日移动平均线由下跌变为走平或翘头向上,5日、10、30日移动平均线刚刚形成多头排列;2Ai中亿财经网财经门户

//2、日K线刚刚上穿30日移动平均线或在30日移动平均线上方运行;2Ai中亿财经网财经门户

//3、DIF在零轴下方与MACD金叉后可靠意义将会更大,在第一次翻红后,红柱开始缩短,越短越好,最好不要超过0轴的第一横线;2Ai中亿财经网财经门户

//4、成交量由萎缩逐渐放大,特别是在二次翻红后,若能得到成交量的配合,该股后市向上冲击的力量会更大。)2Ai中亿财经网财经门户

//该指标没有设计成交量这个条件。只要符合所涉及到的条件,就能在"二次翻红"起涨点选出股票。2Ai中亿财经网财经门户

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));2Ai中亿财经网财经门户

底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);2Ai中亿财经网财经门户

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));2Ai中亿财经网财经门户

顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);2Ai中亿财经网财经门户

DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;2Ai中亿财经网财经门户

DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;2Ai中亿财经网财经门户

DRAWTEXT(底背离,REF(DEA,A1)*1.28,'+底背离'),COLORFF00FF;2Ai中亿财经网财经门户

DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

DRAWTEXT(顶背离,REF(DEA,A2)*1.18,'-顶背离'),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

//5日均线上穿24日均线2Ai中亿财经网财经门户

MA5:=MA(C,5);2Ai中亿财经网财经门户

MA24:=MA(C,24);2Ai中亿财经网财经门户

LL:=IF(MACD<=0,MACD,-MACD);2Ai中亿财经网财经门户

A1:=CROSS(MA5,MA24) OR (MA5>MA24 AND REF(MA5,1)<REF(MA24,1));2Ai中亿财经网财经门户

A2:=MA(V,10)<V;2Ai中亿财经网财经门户

A3:=IF(MACD<0,MACD>=REF(MACD,1),MACD<2Ai中亿财经网财经门户

2Ai中亿财经网财经门户

3);2Ai中亿财经网财经门户

//五日内最大涨幅小于8%2Ai中亿财经网财经门户

A4:=C>=O AND 角度<8 AND COUNT(C/O>1.08,5)<1;2Ai中亿财经网财经门户

//日线买点:= MA5>MA24 AND REF(MA5,1)<REF(MA24,1) AND CCI<100;2Ai中亿财经网财经门户

日线买点:= A1 AND A2 AND A3 AND A4;2Ai中亿财经网财经门户

DRAWICON(日线买点,LL,"BUY");2Ai中亿财经网财经门户

10. macd变色指标公式?

MACD变色公式2Ai中亿财经网财经门户

源码2Ai中亿财经网财经门户

//MACD变色V4 +金叉买入指标公式2Ai中亿财经网财经门户

//20150328 DIFF上穿0轴后在0轴上第一次死叉后又金叉2Ai中亿财经网财经门户

//20150329 MACD多头二次翻红2Ai中亿财经网财经门户

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite,LINETHICK1;2Ai中亿财经网财经门户

DEA: EMA(DIFF,9),coloryellow,LINETHICK1;2Ai中亿财经网财经门户

MACD: 2*(DIFF-DEA),colorred,NODRAW;2Ai中亿财经网财经门户

Zero: 0,colorff7f00,LINETHICK1;2Ai中亿财经网财经门户

N:=IF(BARSCOUNT(C)<=5,MA(C,2),MA(C,5));2Ai中亿财经网财经门户

角度:((ATAN((N - REF(N,1))) * 3.1416) * 10),NODRAW,colorcyan;2Ai中亿财经网财经门户

//角度:((ATAN((MA(C,5) - REF(MA(C,5) ,1))) * 3.1416) * 10),NODRAW;2Ai中亿财经网财经门户

流通股:SHGZG/10000/10000,NODRAW,colorff7f00;2Ai中亿财经网财经门户

资本公积:GJJ/ZGB,NODRAW;2Ai中亿财经网财经门户

//CCI抄底2Ai中亿财经网财经门户

N:=14;2Ai中亿财经网财经门户

TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;2Ai中亿财经网财经门户

CCI: (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),colorffff00,NODRAW;2Ai中亿财经网财经门户

//红色2Ai中亿财经网财经门户

STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),color0000ff;2Ai中亿财经网财经门户

//墨绿2Ai中亿财经网财经门户

STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorffff00;2Ai中亿财经网财经门户

//洋红2Ai中亿财经网财经门户

STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorff00ff;2Ai中亿财经网财经门户

//绿色2Ai中亿财经网财经门户

STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),color00ff00;2Ai中亿财经网财经门户

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.2;2Ai中亿财经网财经门户

贴近零轴金叉:=CROSS(DIFF,DEA) AND MACD>0 AND BETWEEN(DIFF,-0.03,0.03);2Ai中亿财经网财经门户

//VERLINE(水上低位金叉,1),colorwhite;2Ai中亿财经网财经门户

//DRAWTEXT(低位金叉,DIFF*1.1,'低位'),color00aaff;2Ai中亿财经网财经门户

AA:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));2Ai中亿财经网财经门户

一次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=1,21)=1;2Ai中亿财经网财经门户

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1;2Ai中亿财经网财经门户

三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=3,21)=1;2Ai中亿财经网财经门户

四次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=4,21)=1;2Ai中亿财经网财经门户

五次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=5,21)=1;2Ai中亿财经网财经门户

//VERLINE(二次金叉,1),colorwhite;2Ai中亿财经网财经门户

DRAWTEXT(一次金叉,DIFF*1.1,'①'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(一次金叉 AND 低位金叉,DIFF*1.1,'①低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(二次金叉,DIFF*1.1,'②'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(二次金叉 AND 低位金叉,DIFF*1.1,'②低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(三次金叉,DIFF*1.1,'③'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(三次金叉 AND 低位金叉,DIFF*1.1,'③低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(四次金叉,DIFF*1.1,'④'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(四次金叉 AND 低位金叉,DIFF*1.1,'④低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(五次金叉,DIFF*1.1,'⑤'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(五次金叉 AND 低位金叉,DIFF*1.1,'⑤低位'),color00aaff;2Ai中亿财经网财经门户

//DIFF上穿0轴后在0轴上第一次死叉后又金叉 www.gszb.com2Ai中亿财经网财经门户

AA:= CROSS(DIFF,DEA) AND DEA>0 ;2Ai中亿财经网财经门户

BB:=BARSLAST(CROSS(DEA,DIFF)) AND DEA>0;2Ai中亿财经网财经门户

CC:=REF(BARSLAST(CROSS(DIFF,0))<20,BARSLAST(CROSS(DEA,DIFF))+1);2Ai中亿财经网财经门户

MACD死叉后金叉:= AA AND BB AND CC;2Ai中亿财经网财经门户

DRAWTEXT(MACD死叉后金叉,DIFF*1.1+0.1,'①'),colorred;2Ai中亿财经网财经门户

//MACD多头二次翻红2Ai中亿财经网财经门户

FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);2Ai中亿财经网财经门户

FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;2Ai中亿财经网财经门户

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;2Ai中亿财经网财经门户

FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);2Ai中亿财经网财经门户

FH5:=FH1 AND FH2 AND FH3 AND FH4;2Ai中亿财经网财经门户

FH6:=FH1 AND FH2 AND FH3 AND FH4 AND ABS((DIFF-DEA)/C)<0.018;2Ai中亿财经网财经门户

FH7:=FH1 AND FH2 AND FH3 AND FH4 AND MACD<0.10;2Ai中亿财经网财经门户

MACD多头二次翻红:=FH5 OR FH6 OR FH7;2Ai中亿财经网财经门户

DRAWTEXT(MACD多头二次翻红 AND REF(CCI,1)<50,DIFF*1.1+0.05,'②'),colorred;2Ai中亿财经网财经门户

//这个"二次翻红"指标除了满足原有的四个条件外,即:2Ai中亿财经网财经门户

//一是MACD在零轴以上并且第二次收红柱;2Ai中亿财经网财经门户

//二是MACD红柱大于等于零轴并且红柱缩短小于0.10以下;(实战0.111也行)2Ai中亿财经网财经门户

//三是DIFF与DEA两线的粘合度小于0.018;2Ai中亿财经网财经门户

//四是红柱连续缩短三天以上。2Ai中亿财经网财经门户

//还基本满足了所描述的四个条件(即:2Ai中亿财经网财经门户

//1、30日移动平均线由下跌变为走平或翘头向上,5日、10、30日移动平均线刚刚形成多头排列;2Ai中亿财经网财经门户

//2、日K线刚刚上穿30日移动平均线或在30日移动平均线上方运行;2Ai中亿财经网财经门户

//3、DIF在零轴下方与MACD金叉后可靠意义将会更大,在第一次翻红后,红柱开始缩短,越短越好,最好不要超过0轴的第一横线;2Ai中亿财经网财经门户

//4、成交量由萎缩逐渐放大,特别是在二次翻红后,若能得到成交量的配合,该股后市向上冲击的力量会更大。)2Ai中亿财经网财经门户

//该指标没有设计成交量这个条件。只要符合所涉及到的条件,就能在"二次翻红"起涨点选出股票。2Ai中亿财经网财经门户

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));2Ai中亿财经网财经门户

底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);2Ai中亿财经网财经门户

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));2Ai中亿财经网财经门户

顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);2Ai中亿财经网财经门户

DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;2Ai中亿财经网财经门户

DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;2Ai中亿财经网财经门户

DRAWTEXT(底背离,REF(DEA,A1)*1.28,'+底背离'),COLORFF00FF;2Ai中亿财经网财经门户

DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

DRAWTEXT(顶背离,REF(DEA,A2)*1.18,'-顶背离'),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

//5日均线上穿24日均线2Ai中亿财经网财经门户

MA5:=MA(C,5);2Ai中亿财经网财经门户

MA24:=MA(C,24);2Ai中亿财经网财经门户

LL:=IF(MACD<=0,MACD,-MACD);2Ai中亿财经网财经门户

A1:=CROSS(MA5,MA24) OR (MA5>MA24 AND REF(MA5,1)<REF(MA24,1));2Ai中亿财经网财经门户

A2:=MA(V,10)<V;2Ai中亿财经网财经门户

A3:=IF(MACD<0,MACD>=REF(MACD,1),MACD<2Ai中亿财经网财经门户

2Ai中亿财经网财经门户

3);2Ai中亿财经网财经门户

//五日内最大涨幅小于8%2Ai中亿财经网财经门户

A4:=C>=O AND 角度<8 AND COUNT(C/O>1.08,5)<1;2Ai中亿财经网财经门户

//日线买点:= MA5>MA24 AND REF(MA5,1)<REF(MA24,1) AND CCI<100;2Ai中亿财经网财经门户

日线买点:= A1 AND A2 AND A3 AND A4;2Ai中亿财经网财经门户

DRAWICON(日线买点,LL,"BUY");2Ai中亿财经网财经门户

11. 求老师给写一个,同花顺5、10日均量线金叉,5、10日均价线金叉,macd金叉时标注红色箭头的公式?

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);2Ai中亿财经网财经门户

DEA:=EMA(DIF,9);2Ai中亿财经网财经门户

V1:=MA(V,5);2Ai中亿财经网财经门户

V2:=MA(V,10);2Ai中亿财经网财经门户

MA1:=MA(C,5);2Ai中亿财经网财经门户

MA2:=MA(C,10);2Ai中亿财经网财经门户

三线金叉:IF(CROSS(DIF,DEA) AND CROSS(MA1,MA2) AND CROSS(V1,V2),20,0),LINESTICK,COLORRED;2Ai中亿财经网财经门户

(已测试通过,不过同时金叉股不好找啊)2Ai中亿财经网财经门户

12. 求同花顺选股公式,股价刚好在20日均线之上,而且当日涨幅不超过3/100,20日均线搞好金叉60日均线?

  N:=1.02;  MA1:=MA(C,20);  MA2:=MA(C,60);  XG:C/REF(C,1)=MA1 AND C2Ai中亿财经网财经门户

13. 求老师给写一个,同花顺5、10日均量线金叉,5、10日均价线金叉,macd金叉时标注红色箭头的公式?

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);2Ai中亿财经网财经门户

DEA:=EMA(DIF,9);2Ai中亿财经网财经门户

V1:=MA(V,5);2Ai中亿财经网财经门户

V2:=MA(V,10);2Ai中亿财经网财经门户

MA1:=MA(C,5);2Ai中亿财经网财经门户

MA2:=MA(C,10);2Ai中亿财经网财经门户

三线金叉:IF(CROSS(DIF,DEA) AND CROSS(MA1,MA2) AND CROSS(V1,V2),20,0),LINESTICK,COLORRED;2Ai中亿财经网财经门户

(已测试通过,不过同时金叉股不好找啊)2Ai中亿财经网财经门户

14. 求老师给写一个,同花顺5、10日均量线金叉,5、10日均价线金叉,macd金叉时标注红色箭头的公式?

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);2Ai中亿财经网财经门户

DEA:=EMA(DIF,9);2Ai中亿财经网财经门户

V1:=MA(V,5);2Ai中亿财经网财经门户

V2:=MA(V,10);2Ai中亿财经网财经门户

MA1:=MA(C,5);2Ai中亿财经网财经门户

MA2:=MA(C,10);2Ai中亿财经网财经门户

三线金叉:IF(CROSS(DIF,DEA) AND CROSS(MA1,MA2) AND CROSS(V1,V2),20,0),LINESTICK,COLORRED;2Ai中亿财经网财经门户

(已测试通过,不过同时金叉股不好找啊)2Ai中亿财经网财经门户

15. macd变色指标公式?

MACD变色公式2Ai中亿财经网财经门户

源码2Ai中亿财经网财经门户

//MACD变色V4 +金叉买入指标公式2Ai中亿财经网财经门户

//20150328 DIFF上穿0轴后在0轴上第一次死叉后又金叉2Ai中亿财经网财经门户

//20150329 MACD多头二次翻红2Ai中亿财经网财经门户

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite,LINETHICK1;2Ai中亿财经网财经门户

DEA: EMA(DIFF,9),coloryellow,LINETHICK1;2Ai中亿财经网财经门户

MACD: 2*(DIFF-DEA),colorred,NODRAW;2Ai中亿财经网财经门户

Zero: 0,colorff7f00,LINETHICK1;2Ai中亿财经网财经门户

N:=IF(BARSCOUNT(C)<=5,MA(C,2),MA(C,5));2Ai中亿财经网财经门户

角度:((ATAN((N - REF(N,1))) * 3.1416) * 10),NODRAW,colorcyan;2Ai中亿财经网财经门户

//角度:((ATAN((MA(C,5) - REF(MA(C,5) ,1))) * 3.1416) * 10),NODRAW;2Ai中亿财经网财经门户

流通股:SHGZG/10000/10000,NODRAW,colorff7f00;2Ai中亿财经网财经门户

资本公积:GJJ/ZGB,NODRAW;2Ai中亿财经网财经门户

//CCI抄底2Ai中亿财经网财经门户

N:=14;2Ai中亿财经网财经门户

TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;2Ai中亿财经网财经门户

CCI: (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),colorffff00,NODRAW;2Ai中亿财经网财经门户

//红色2Ai中亿财经网财经门户

STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),color0000ff;2Ai中亿财经网财经门户

//墨绿2Ai中亿财经网财经门户

STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorffff00;2Ai中亿财经网财经门户

//洋红2Ai中亿财经网财经门户

STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorff00ff;2Ai中亿财经网财经门户

//绿色2Ai中亿财经网财经门户

STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),color00ff00;2Ai中亿财经网财经门户

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.2;2Ai中亿财经网财经门户

贴近零轴金叉:=CROSS(DIFF,DEA) AND MACD>0 AND BETWEEN(DIFF,-0.03,0.03);2Ai中亿财经网财经门户

//VERLINE(水上低位金叉,1),colorwhite;2Ai中亿财经网财经门户

//DRAWTEXT(低位金叉,DIFF*1.1,'低位'),color00aaff;2Ai中亿财经网财经门户

AA:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));2Ai中亿财经网财经门户

一次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=1,21)=1;2Ai中亿财经网财经门户

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1;2Ai中亿财经网财经门户

三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=3,21)=1;2Ai中亿财经网财经门户

四次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=4,21)=1;2Ai中亿财经网财经门户

五次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=5,21)=1;2Ai中亿财经网财经门户

//VERLINE(二次金叉,1),colorwhite;2Ai中亿财经网财经门户

DRAWTEXT(一次金叉,DIFF*1.1,'①'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(一次金叉 AND 低位金叉,DIFF*1.1,'①低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(二次金叉,DIFF*1.1,'②'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(二次金叉 AND 低位金叉,DIFF*1.1,'②低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(三次金叉,DIFF*1.1,'③'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(三次金叉 AND 低位金叉,DIFF*1.1,'③低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(四次金叉,DIFF*1.1,'④'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(四次金叉 AND 低位金叉,DIFF*1.1,'④低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(五次金叉,DIFF*1.1,'⑤'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(五次金叉 AND 低位金叉,DIFF*1.1,'⑤低位'),color00aaff;2Ai中亿财经网财经门户

//DIFF上穿0轴后在0轴上第一次死叉后又金叉 www.gszb.com2Ai中亿财经网财经门户

AA:= CROSS(DIFF,DEA) AND DEA>0 ;2Ai中亿财经网财经门户

BB:=BARSLAST(CROSS(DEA,DIFF)) AND DEA>0;2Ai中亿财经网财经门户

CC:=REF(BARSLAST(CROSS(DIFF,0))<20,BARSLAST(CROSS(DEA,DIFF))+1);2Ai中亿财经网财经门户

MACD死叉后金叉:= AA AND BB AND CC;2Ai中亿财经网财经门户

DRAWTEXT(MACD死叉后金叉,DIFF*1.1+0.1,'①'),colorred;2Ai中亿财经网财经门户

//MACD多头二次翻红2Ai中亿财经网财经门户

FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);2Ai中亿财经网财经门户

FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;2Ai中亿财经网财经门户

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;2Ai中亿财经网财经门户

FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);2Ai中亿财经网财经门户

FH5:=FH1 AND FH2 AND FH3 AND FH4;2Ai中亿财经网财经门户

FH6:=FH1 AND FH2 AND FH3 AND FH4 AND ABS((DIFF-DEA)/C)<0.018;2Ai中亿财经网财经门户

FH7:=FH1 AND FH2 AND FH3 AND FH4 AND MACD<0.10;2Ai中亿财经网财经门户

MACD多头二次翻红:=FH5 OR FH6 OR FH7;2Ai中亿财经网财经门户

DRAWTEXT(MACD多头二次翻红 AND REF(CCI,1)<50,DIFF*1.1+0.05,'②'),colorred;2Ai中亿财经网财经门户

//这个"二次翻红"指标除了满足原有的四个条件外,即:2Ai中亿财经网财经门户

//一是MACD在零轴以上并且第二次收红柱;2Ai中亿财经网财经门户

//二是MACD红柱大于等于零轴并且红柱缩短小于0.10以下;(实战0.111也行)2Ai中亿财经网财经门户

//三是DIFF与DEA两线的粘合度小于0.018;2Ai中亿财经网财经门户

//四是红柱连续缩短三天以上。2Ai中亿财经网财经门户

//还基本满足了所描述的四个条件(即:2Ai中亿财经网财经门户

//1、30日移动平均线由下跌变为走平或翘头向上,5日、10、30日移动平均线刚刚形成多头排列;2Ai中亿财经网财经门户

//2、日K线刚刚上穿30日移动平均线或在30日移动平均线上方运行;2Ai中亿财经网财经门户

//3、DIF在零轴下方与MACD金叉后可靠意义将会更大,在第一次翻红后,红柱开始缩短,越短越好,最好不要超过0轴的第一横线;2Ai中亿财经网财经门户

//4、成交量由萎缩逐渐放大,特别是在二次翻红后,若能得到成交量的配合,该股后市向上冲击的力量会更大。)2Ai中亿财经网财经门户

//该指标没有设计成交量这个条件。只要符合所涉及到的条件,就能在"二次翻红"起涨点选出股票。2Ai中亿财经网财经门户

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));2Ai中亿财经网财经门户

底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);2Ai中亿财经网财经门户

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));2Ai中亿财经网财经门户

顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);2Ai中亿财经网财经门户

DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;2Ai中亿财经网财经门户

DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;2Ai中亿财经网财经门户

DRAWTEXT(底背离,REF(DEA,A1)*1.28,'+底背离'),COLORFF00FF;2Ai中亿财经网财经门户

DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

DRAWTEXT(顶背离,REF(DEA,A2)*1.18,'-顶背离'),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

//5日均线上穿24日均线2Ai中亿财经网财经门户

MA5:=MA(C,5);2Ai中亿财经网财经门户

MA24:=MA(C,24);2Ai中亿财经网财经门户

LL:=IF(MACD<=0,MACD,-MACD);2Ai中亿财经网财经门户

A1:=CROSS(MA5,MA24) OR (MA5>MA24 AND REF(MA5,1)<REF(MA24,1));2Ai中亿财经网财经门户

A2:=MA(V,10)<V;2Ai中亿财经网财经门户

A3:=IF(MACD<0,MACD>=REF(MACD,1),MACD<2Ai中亿财经网财经门户

2Ai中亿财经网财经门户

3);2Ai中亿财经网财经门户

//五日内最大涨幅小于8%2Ai中亿财经网财经门户

A4:=C>=O AND 角度<8 AND COUNT(C/O>1.08,5)<1;2Ai中亿财经网财经门户

//日线买点:= MA5>MA24 AND REF(MA5,1)<REF(MA24,1) AND CCI<100;2Ai中亿财经网财经门户

日线买点:= A1 AND A2 AND A3 AND A4;2Ai中亿财经网财经门户

DRAWICON(日线买点,LL,"BUY");2Ai中亿财经网财经门户

16. macd变色指标公式?

MACD变色公式2Ai中亿财经网财经门户

源码2Ai中亿财经网财经门户

//MACD变色V4 +金叉买入指标公式2Ai中亿财经网财经门户

//20150328 DIFF上穿0轴后在0轴上第一次死叉后又金叉2Ai中亿财经网财经门户

//20150329 MACD多头二次翻红2Ai中亿财经网财经门户

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite,LINETHICK1;2Ai中亿财经网财经门户

DEA: EMA(DIFF,9),coloryellow,LINETHICK1;2Ai中亿财经网财经门户

MACD: 2*(DIFF-DEA),colorred,NODRAW;2Ai中亿财经网财经门户

Zero: 0,colorff7f00,LINETHICK1;2Ai中亿财经网财经门户

N:=IF(BARSCOUNT(C)<=5,MA(C,2),MA(C,5));2Ai中亿财经网财经门户

角度:((ATAN((N - REF(N,1))) * 3.1416) * 10),NODRAW,colorcyan;2Ai中亿财经网财经门户

//角度:((ATAN((MA(C,5) - REF(MA(C,5) ,1))) * 3.1416) * 10),NODRAW;2Ai中亿财经网财经门户

流通股:SHGZG/10000/10000,NODRAW,colorff7f00;2Ai中亿财经网财经门户

资本公积:GJJ/ZGB,NODRAW;2Ai中亿财经网财经门户

//CCI抄底2Ai中亿财经网财经门户

N:=14;2Ai中亿财经网财经门户

TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;2Ai中亿财经网财经门户

CCI: (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),colorffff00,NODRAW;2Ai中亿财经网财经门户

//红色2Ai中亿财经网财经门户

STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),color0000ff;2Ai中亿财经网财经门户

//墨绿2Ai中亿财经网财经门户

STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorffff00;2Ai中亿财经网财经门户

//洋红2Ai中亿财经网财经门户

STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorff00ff;2Ai中亿财经网财经门户

//绿色2Ai中亿财经网财经门户

STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),color00ff00;2Ai中亿财经网财经门户

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.2;2Ai中亿财经网财经门户

贴近零轴金叉:=CROSS(DIFF,DEA) AND MACD>0 AND BETWEEN(DIFF,-0.03,0.03);2Ai中亿财经网财经门户

//VERLINE(水上低位金叉,1),colorwhite;2Ai中亿财经网财经门户

//DRAWTEXT(低位金叉,DIFF*1.1,'低位'),color00aaff;2Ai中亿财经网财经门户

AA:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));2Ai中亿财经网财经门户

一次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=1,21)=1;2Ai中亿财经网财经门户

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1;2Ai中亿财经网财经门户

三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=3,21)=1;2Ai中亿财经网财经门户

四次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=4,21)=1;2Ai中亿财经网财经门户

五次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=5,21)=1;2Ai中亿财经网财经门户

//VERLINE(二次金叉,1),colorwhite;2Ai中亿财经网财经门户

DRAWTEXT(一次金叉,DIFF*1.1,'①'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(一次金叉 AND 低位金叉,DIFF*1.1,'①低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(二次金叉,DIFF*1.1,'②'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(二次金叉 AND 低位金叉,DIFF*1.1,'②低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(三次金叉,DIFF*1.1,'③'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(三次金叉 AND 低位金叉,DIFF*1.1,'③低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(四次金叉,DIFF*1.1,'④'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(四次金叉 AND 低位金叉,DIFF*1.1,'④低位'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(五次金叉,DIFF*1.1,'⑤'),color00aaff;2Ai中亿财经网财经门户

DRAWTEXT(五次金叉 AND 低位金叉,DIFF*1.1,'⑤低位'),color00aaff;2Ai中亿财经网财经门户

//DIFF上穿0轴后在0轴上第一次死叉后又金叉 www.gszb.com2Ai中亿财经网财经门户

AA:= CROSS(DIFF,DEA) AND DEA>0 ;2Ai中亿财经网财经门户

BB:=BARSLAST(CROSS(DEA,DIFF)) AND DEA>0;2Ai中亿财经网财经门户

CC:=REF(BARSLAST(CROSS(DIFF,0))<20,BARSLAST(CROSS(DEA,DIFF))+1);2Ai中亿财经网财经门户

MACD死叉后金叉:= AA AND BB AND CC;2Ai中亿财经网财经门户

DRAWTEXT(MACD死叉后金叉,DIFF*1.1+0.1,'①'),colorred;2Ai中亿财经网财经门户

//MACD多头二次翻红2Ai中亿财经网财经门户

FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);2Ai中亿财经网财经门户

FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;2Ai中亿财经网财经门户

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;2Ai中亿财经网财经门户

FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);2Ai中亿财经网财经门户

FH5:=FH1 AND FH2 AND FH3 AND FH4;2Ai中亿财经网财经门户

FH6:=FH1 AND FH2 AND FH3 AND FH4 AND ABS((DIFF-DEA)/C)<0.018;2Ai中亿财经网财经门户

FH7:=FH1 AND FH2 AND FH3 AND FH4 AND MACD<0.10;2Ai中亿财经网财经门户

MACD多头二次翻红:=FH5 OR FH6 OR FH7;2Ai中亿财经网财经门户

DRAWTEXT(MACD多头二次翻红 AND REF(CCI,1)<50,DIFF*1.1+0.05,'②'),colorred;2Ai中亿财经网财经门户

//这个"二次翻红"指标除了满足原有的四个条件外,即:2Ai中亿财经网财经门户

//一是MACD在零轴以上并且第二次收红柱;2Ai中亿财经网财经门户

//二是MACD红柱大于等于零轴并且红柱缩短小于0.10以下;(实战0.111也行)2Ai中亿财经网财经门户

//三是DIFF与DEA两线的粘合度小于0.018;2Ai中亿财经网财经门户

//四是红柱连续缩短三天以上。2Ai中亿财经网财经门户

//还基本满足了所描述的四个条件(即:2Ai中亿财经网财经门户

//1、30日移动平均线由下跌变为走平或翘头向上,5日、10、30日移动平均线刚刚形成多头排列;2Ai中亿财经网财经门户

//2、日K线刚刚上穿30日移动平均线或在30日移动平均线上方运行;2Ai中亿财经网财经门户

//3、DIF在零轴下方与MACD金叉后可靠意义将会更大,在第一次翻红后,红柱开始缩短,越短越好,最好不要超过0轴的第一横线;2Ai中亿财经网财经门户

//4、成交量由萎缩逐渐放大,特别是在二次翻红后,若能得到成交量的配合,该股后市向上冲击的力量会更大。)2Ai中亿财经网财经门户

//该指标没有设计成交量这个条件。只要符合所涉及到的条件,就能在"二次翻红"起涨点选出股票。2Ai中亿财经网财经门户

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));2Ai中亿财经网财经门户

底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);2Ai中亿财经网财经门户

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));2Ai中亿财经网财经门户

顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);2Ai中亿财经网财经门户

DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;2Ai中亿财经网财经门户

DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;2Ai中亿财经网财经门户

DRAWTEXT(底背离,REF(DEA,A1)*1.28,'+底背离'),COLORFF00FF;2Ai中亿财经网财经门户

DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

DRAWTEXT(顶背离,REF(DEA,A2)*1.18,'-顶背离'),colorgreen,LINETHICK2;2Ai中亿财经网财经门户

//5日均线上穿24日均线2Ai中亿财经网财经门户

MA5:=MA(C,5);2Ai中亿财经网财经门户

MA24:=MA(C,24);2Ai中亿财经网财经门户

LL:=IF(MACD<=0,MACD,-MACD);2Ai中亿财经网财经门户

A1:=CROSS(MA5,MA24) OR (MA5>MA24 AND REF(MA5,1)<REF(MA24,1));2Ai中亿财经网财经门户

A2:=MA(V,10)<V;2Ai中亿财经网财经门户

A3:=IF(MACD<0,MACD>=REF(MACD,1),MACD<2Ai中亿财经网财经门户

2Ai中亿财经网财经门户

3);2Ai中亿财经网财经门户

//五日内最大涨幅小于8%2Ai中亿财经网财经门户

A4:=C>=O AND 角度<8 AND COUNT(C/O>1.08,5)<1;2Ai中亿财经网财经门户

//日线买点:= MA5>MA24 AND REF(MA5,1)<REF(MA24,1) AND CCI<100;2Ai中亿财经网财经门户

日线买点:= A1 AND A2 AND A3 AND A4;2Ai中亿财经网财经门户

DRAWICON(日线买点,LL,"BUY");2Ai中亿财经网财经门户

感觉不错,赞哦! (0)
下次努力,加油! (0)