大智慧抓大牛选股公式源码 、
1,分时雄起!分时走势上部专用! (,)ma5:ma(c,5);ma10:ma(c,10);ma20:ma(c,20);ma30:ma(c,30);ma60:ma(c,60);ma120:ma(c,120);fa:=barslast(cross(ma10,ma5)) and cross(ma5,ma10);fb:=fa and ma5>ma30 and ma10>ma30 and ma10>ref(ma10,1);STICKLINE(fb,l,l-0.09,4,0),COLORYELLOW;DRAWTEXT(fb,l-0.13,'雄起'),COLORYELLOW;fa2:=barslast(cross(ma60,ma20)) and cross(ma20,ma60);fb2:=fa2 and ma20>ma120 and ma60>ma120 and ma20>ref(ma20,1);STICKLINE(fb2,l,l-0.09,4,0),COLORYELLOW;DRAWTEXT(fb2,l-0.13,'雄起'),COLORYELLOW;2,实战分时!下部专用!可做进一步简化处理! (,)input:LONG(26,1,100),SHORT(12,1,100),M(9,1,100),p1(19,1,100),p2(120,1,250);DIF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA:=EMA(DIF,M);:=2*(DIF-DEA);MACD2:2*(DEA-DIF),COLORFF89B2,DOTLINE; (通达新要删去前面二,COLORFF89B2,DOTLINE)MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);突破线:=MIN(MA60*1.1,MA250*1.3);差幅:=C/MIN(MA60*1.1,MA250*1.3)-1;均线流:=(MA5>MA65 AND MA10>MA65 AND MA30>MA65 AND MA5= 1.1 AND C/REF(C,1) >= 1.01;SZSJ:=BARSLAST(放量上涨 = 1);MACD雄起:=CROSS(DIF,DEA);JCSJ:=BARSLAST(MACD雄起 = 1);关注:(MACD雄起 AND REF(MACD1,1) 0.15);DRAWICON((((((CROSS(MA(CLOSE,P1),MA(CLOSE,P2)) > 0) AND (((N15HIGH - N1LOW) / N1LOW) = MA(CLOSE,P1))) AND (CLOSE >= MA(CLOSE,P1))) AND (LOW 0) AND (((N15HIGH - N1LOW) / N1LOW) = MA(CLOSE,P1))) AND (CLOSE >= MA(CLOSE,P1))) AND (LOW =0));雄起:CROSS(DIF,DEA) AND DEAdea,dea,dea),COLORFF9933{colorff00ff},linethick2;操盘:STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,4,1),COLORRED{COLOR6058FF};减仓:STICKLINE(MACD>=0 AND MACD=REF(MACD,1),0,MACD,4,1),COLORYELLOW{COLORFFFF00};寻底:STICKLINE(MACD=0,V4,0),COLORFF00FF,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大筹金进场: IF(VB>=0,VB,0),COLORYELLOW,LINETHICK2;大筹金撤走: IF(VBLOW;a1:=DYNAINFO(6);a2:=IF(LOW>a1,0,IF(HIGH0 or a2=1;a8:=a7 and a3/REF(a3,3)>=3 and a6REF(Var5,1),0,Var5,7,0 ),COLORRED;洗盘:IF(VAR5REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(Var8 AND COUNT(Var8,30)=1,40,'注意有筹码进场迹象');4,分时作为!(专门监视庄家行动变化)同时也可用于买入信号观注点! (,)Var1:=EMA(EMA(CLOSE,13),13);作为:=(Var1-REF(Var1,1))/REF(Var1,1)*1000;无庄作为:STICKLINE(作为REF(作为,1) AND 作为>0,作为,0,4,1),colorred;Var2:=100*WINNER(CLOSE*0.95);出货作为:STICKLINE(作为0,作为,0,4,0),color00ff00;高度作为:STICKLINE(Var2>50 AND COST(85)0,作为,0,4,0),colorff00ff;a10:=CROSS(作为,0);开始作为:if(a10,6,0),coloryellow;5,MACD底背离 (通达信,大智慧)DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);低位金叉:=CROSS(DIFF,DEA) AND DIFF=0));二次金叉:=CROSS(DIFF,DEA) AND DEACLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);6,MACD背离A1:=BARSLAST(REF(CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9)),1));B1:=REF(C,A1+1)>C AND REF("MACD.DIF"(12,26,9),A1+1)0,5);STICKLINE(MACD底背离,0,0.75,3,0),COLORGREEN;DRAWTEXT(MACD底背离,0.57,'MACD底背离'),COLORGREEN;A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),".D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)0,5);STICKLINE(KDJ底背离,0,1,3,0),COLORYELLOW;DRAWTEXT(KDJ底背离,0.80,'KDJ底背离'),COLORYELLOW;A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)0,5);STICKLINE(RSI底背离,0,0.5,3,0),COLORFFCC66;DRAWTEXT(RSI底背离,0.25,'RSI底背离'),COLORFFCC66;2,COLORRED;C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9)),1));D1:=REF(C,C1+1)"MACD.DIF"(12,26,9) AND CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9));MACD顶背离:=FILTER(D1>0,5);STICKLINE(MACD顶背离,2,1.25,3,0),COLOR0066FF;DRAWTEXT(MACD顶背离,1.47,'MACD顶背离'),COLOR0066FF;C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));KDJ顶背离:=FILTER(D2>0,5);STICKLINE(KDJ顶背离,2,1,3,0),COLORRED;DRAWTEXT(KDJ顶背离,1.2,'KDJ顶背离'),COLORRED;C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));RSI顶背离:=FILTER(D3>0,5);STICKLINE(RSI顶背离,2,1.5,3,0),COLORFF00FF;DRAWTEXT(RSI顶背离,1.75,'RSI顶背离'),COLORFF00FF;底背离:MACD底背离 OR KDJ底背离 OR RSI底背离;=============7,T+0MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30180000 and (CXH=1 OR CXH=6)); DRAWTEXTREL(10 ,10 ,'');