大智慧赢富数据MACD选股公式公式EMA3:=eMA(CLOSE,3);EMA8:=eMA(CLOSE,8);EMA33:=eMA(CLOSE,33);MA55:=MA(CLOSE,55);DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);qj:=BARSLAST(CROSS(DEA,DIFF));xu:IF(COUNT(qj,10)=10,CROSS(DIFF,DEA)ANDDIFF0,0);把macd死叉后超过十天金叉的选出来boll选股公式MIZ:=MA(CLOSE,45),Color0080FF,LINEDOT;UPZ:=MIZ+2*STD(CLOSE,45),Color0080FF;LOZ:=MIZ-2*STD(CLOSE,45),,Color0080FF;STICKLINE((UPZLOZ),UPZ,LOZ,1,0),Color38564A;MI5:=MA(CLOSE,26),Color0080FF,LINEDOT;UP5:=MI5+2*STD(CLOSE,26),Color0080FF;LO5:=MI5-2*STD(CLOSE,26),,Color0080FF;STICKLINE((UP5LO5),UP5,LO5,1,0),Color191855;BBI:=MA(CLOSE,9),COLORGRAY;UPR:BBI+2*STD(CLOSE,9),Color30B937,LINETHICK2;DWN:BBI-2*STD(CLOSE,9),Color30B937,LINETHICK2;FILLRGN(UPRDWN,UPR,DWN),Color002F00,LINETHICK2;工作:=EMA(CLOSE,17),COLORMAGENTA,LINETHICK2;MI2:MA(CLOSE,26),Color0050FF,LINEDOT,LINETHICK1;UP2:MI2+2*STD(CLOSE,26),Color0060FF;LO2:MI2-2*STD(CLOSE,26),,Color0060FF;MI4:MA(CLOSE,45),COLORYELLOW,LINEDOT;UP4:MI4+2*STD(CLOSE,45),COLORYELLOW;LO4:MI4-2*STD(CLOSE,45),COLORYELLOW;MI9:MA(CLOSE,99),COLORBLUE,LINEDOT;UP9:MI9+2.1*STD(CLOSE,99),COLORBLUE;LO9:=MI9-2.1*STD(CLOSE,99),COLORBLUE;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=3*K24-2*D24;支撑价:LLV(LOW,34),COLORWHITE,LINETHICK1;MA18:=eMA(C,17),PRECISION2,COLOREEEEEE,LINEDOT;tj:=closeopenorclose=openandcloseref(close,1);stickline(tjandCMA18,high,low,0.1,0),colorred;stickline(tjandCMA18,close,open,7,0),colorred;stickline(not(tj)andCMA18,high,low,0.1,0),COLOREC7B00;stickline(not(tj)andCMA18,close,open,7,0),COLOREC7B00;stickline(tjandCMA18,high,low,0.1,0),colorred;stickline(tjandCMA18,close,open,7,1),colorred;stickline(not(tj)andCMA18,high,low,0.1,0),COLOREC7B00;stickline(not(tj)andCMA18,close,open,7,1),COLOREC7B00;EMA(C,14),COLORWHITE,LINETHICK1;v2:=ma(HIGH,3)*1.04;v3:=ma(LOW,3)*0.96;u:fft(v2,30),ColorA800A8;d:fft(v3,30),ColorA800A8;MACD零上金叉的的选股公式DEA:EMA(DIF,MID);MACD:(DIF-DEA)*2,COLORSTICK;零上金叉:IF(CROSS(DIF,DEA)ANDDIF=0,1,0),COLORFF00FF;零下金叉:IF(CROSS(DIF,DEA)ANDDIF=0,-1,0),COLORFFAA00;SHORT12.00LONG26.00MID9.00DDx连续5天翻红的指标今日DDX:=(bigorder(1)-bigorder(2))*vol*100/capital;昨日DDX:=sum(今日DDX,2)-今日DDX;前日DDX:=sum(今日DDX,3)-sum(今日DDX,2);四日前:=sum(今日DDX,4)-sum(今日DDX,3);五日前:=sum(今日DDX,5)-sum(今日DDX,4);if今日DDX0and昨日DDX0and前日DDX0and四日前0and五日前0then连续五日:1;else连续五日:0;MACD及选股公式原码条件选股公式:H101(双佛手向上)缺省周期:日线DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,27);MACD:=2*(DIFF-DEA);CLOSEOPENANDMA(CLOSE,5)MA(CLOSE,10)andMA(CLOSE,10)MA(CLOSE,30)andDIFFDEAANDMACDREF(MACD,1)andDIFF0ANDDEA0andMA(VOL,5)MA(VOL,34)andMA(CLOSE,30)=REF(MA(CLOSE,30),1根据《南征北战之二》中的双佛手向上思路编写,指标用法:1.DIFF线回调DEA线附近时不死叉,又调头向上。2.30日均线走平或向上,同时5日线和10日线在30日线上方金叉,且当日收阳线。3.5日均量线回调到34日均量线附近时不死叉,又调头向上。以上三个条件要同时成立时将有一波上升浪,应果断买入。将MACD指标的m参数调为2条件选股公式:H102(漫步青云)缺省周期:日线DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,27);dje:=DIFF=0andDEA=0andCROSS(DIFF,DEA);a5:=MA(CLOSE,5)MA(CLOSE,10);v5:=VOLMA(VOL,5)andMA(VOL,5)MA(VOL,10);djeanda5ANDV5ANDMA(CLOSE,30)=REF(MA(CLOSE,30),1)将macd指标的参数调为12,26,27主要用法:当30日均线走平或上扬,5日均量大于10日均量,当日成交量大于5日均量,5日均线金叉或已金叉10日均线,macd指标中diff线在0轴上死叉dea线,DIFF线下穿0轴后,又再次上穿并在0轴或0轴上金叉dea线,应果断介入。但若此时K线离30日,30周,30小时均线较远,不能介入。条件选股公式:H103(空中缆绳)缺省周期:日线DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,27);MACD:=2*(DIFF-DEA);b:=MIN(DIFF,DEA)/MAX(diff,dea)0.95;MA(CLOSE,30)REF(MA(CLOSE,30),1)anddiff0anddea0ANDMACDREF(MACD,1)andb将分析家的MACD指标的参数调为sh:12;long:26;M:27用法:30日均线上扬或走平,主力开始洗盘。这时macd指标中的DIFF线随股价的回调而与DEA线在0轴上粘合数值几乎相等,只要5日均线在30日均线上方金叉或已金叉10日均线,macd指标红柱加长,DIFF线脱离DEA线上扬,就是买点。例:000055,2000年2月14日,diff金叉dea,3月13日,主力进入洗盘;2000年3月20日至3月21日,diff与dea完全粘合成一条直线且数值相等,3月23日,为买点条件选股公式:H104(响彻云霄)缺省周期:日线TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),6,1);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;DMP:=SMA(IF(HD0ANDHDLD,HD,0),6,1);DMM:=SMA(IF(LD0ANDLDHD,LD,0),6,1);PDI:=DMP*100/TR;MDI:=DMM*100/TR;ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,6,1);ADXR:=(ADX+REF(ADX,7))/2;AJC:=CROSS(pdi,mdi)andpdi=20;AD:=ADXRADXorADXRA5:=MA(CLOSE,5)MA(CLOSE,10)andMA(CLOSE,5)MA(CLOSE,30);A30:=MA(CLOSE,30)=REF(MA(CLOSE,30),1);CLOSEOPENandAJCANDADXR=30ANDADandA5ANDA30andVOLMA(VOL,5)要用分析家中的dmi-ql的这个指标并将参数改为6日,7天.主要用法:当日收阳线,当PDI,MDI线在20左右金叉,而ADXR在30以上,ADX线在ADXR线以上或以下,30日均线走平或上扬,5日均线金叉或已金叉或即将金叉10日均线,当日成交量大于5日均量,为买点。例:000616,2000年1月7日,为买点.000553,99年12月24日,为买点.600632,2000年1月4日,为买点.条件选股公式:H105(过滤线选黑马)缺省周期:日线TR:=EMA(EMA(EMA(CLOSE,23),23),23);TRIX:=(TR-REF(TR,1))/REF(TR,1)*100;TRMA:=MA(TRIX,8);lh:=COUNT(MIN(TRIX,TRMA)/MAX(TRIX,TRMA)=0.95,2);lhandtrixtrmaandma(c,5)ma(c,10)andvma(v,5)将分析家中的TRIX指标的参数调为N:23,M:8用法:当TRIX线与TRMA线粘合后,再向上发散时,5日均线金叉(或已金叉)10日均线,当天成交量大于5日均量,为买入点.例:600163,99年7月26日粘合;8月3日,TRIX上穿.99年12月30日也是.000935,2000年1月18日粘合,2月15日上穿.按南征北战之二过滤线选黑马思路编写.条件选股公式:H107(黑马通道C)缺省周期:日线TYP:=(HIGH+LOW+CLOSE)/3;cc:=(TYP-MA(TYP,89))/(0.015*AVEDEV(TYP,89));jc:=LONGCROSS(cc,100,60);COANDjcandma(c,5)ma(c,30)andma(c,10)ma(c,30)andma(c,5)ma(