MACD指标DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:EMA(DIFF,M);MACD:2*(DIFF-DEA);Zero:0;KDJ指标RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;a=SMA(RSV,M1,1);b=SMA(a,M2,1);e=3*a-2*b;K:a;D:b;J:e;精准买卖V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;主力撤:IF(V4=0,V4,0),colorblue;主力进:IF(V4=0,V4,0),COLORFF00FF;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),colorred;大盘资金撤走:IF(VB=0,VB,0),colorgreen;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金:STICKLINE(趋势线=13,0,20,5,0),COLORCC9900;AA:=(趋势线=13)ANDFILTER((趋势线=13),15);DRAWTEXT(AA,30,'准备现金'),COLORCC9900;买入股票:STICKLINE(趋势线=13ANDV1213,0,50,5,0),COLOR0099FF;BB:=(趋势线=13ANDV1213)ANDFILTER((趋势线=13ANDV1213),10);DRAWTEXT(BB,60,'买入股票'),COLOR0099FF;卖临界:STICKLINE(趋势线90AND趋势线REF(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:FILTER(趋势线90AND趋势线REF(趋势线,1)AND主力进REF(主力进,1),8);DRAWTEXT(见顶清仓,90,'逃顶'),coloryellow;CC:=(趋势线=90ANDV12)ANDFILTER((趋势线=90ANDV12),10);STICKLINE(大盘资金进场AND趋势线13,0,30,10,0),colorred;STICKLINE(大盘资金撤走AND趋势线90,0,30,10,0),colorgreen;STICKLINE(主力进AND趋势线13,0,40,10,0),COLORFF00FF;STICKLINE(主力撤AND趋势线90,0,40,10,0),colorblue;短线窥测VAR1:=(CLOSE+HIGH+LOW)/3;VAR2:=EMA(VAR1,10);VAR3:=REF(VAR2,1);绿探底震仓:IF(VAR2,10,DRAWNULL),colorgreen,LINETHICK9;红买:IF(VAR2VAR3,10,DRAWNULL),colorred,LINETHICK9;蓝卖:IF(VAR2VAR3,10,DRAWNULL),COLORFFFF00,LINETHICK9;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;上穿买:SMA(RSV,3,1),colorred;下穿卖:SMA(上穿买,3,1),COLORFFFF00;缠背驰var1:=MA(C,p1)-MA(C,P2);IF((var1=0),var1,0),STICK,colorred;IF((var10),var1,0),STICK,colorgreen;正:=IF((var1=0),var1,0),colorred;负:=IF((var10),var1,0),colorgreen;zheng:=0;fu:=0;var2:=0;i:=0;IF(var10)THENBEGINvar2:=var1;WHILE(var20)DOBEGINzheng:=zheng+var2;i:=i+1;var2:=REF(var1,i);IF(iP3)THENBREAK;ENDENDELSEBEGINvar2:=var1;WHILE(var20)DOBEGINfu:=fu+var2;i:=i+1;var2:=REF(var1,i);IF(iP3)THENBREAK;ENDEND{涨势面积和:zheng;}涨势平均力度:zheng*p4/i,coloryellow;{跌势面积和:fu;}跌势平均力度:fu*p4/i,colorwhite;中轴:0;指点未来VAR1:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100);VAR2:=REVERSE(VAR1);VAR3:=SMA(VAR1,5,1);K:=SMA(VAR3,3,1);D:=SMA(K,3,1);85,STICK,Linethick7,ColorFF0000;DRAWTEXT(CROSS(K,D)AND(D18),15,'买'),Color00FF00;DRAWTEXT(CROSS(D,K)AND(D75),85,'卖'),ColorFFFFFF;STICKLINE((K=D),K,D,6,0),Color0000A8;STICKLINE((K=D),K,D,5,0),Color0000C0;STICKLINE((K=D),K,D,4,0),Color0000E0;STICKLINE((K=D),K,D,3,0),Color0000F0;STICKLINE((K=D),K,D,2,0),Color0000D0;STICKLINE((K=D),K,D,1,0),Color8080FF;STICKLINE((K=D),K,D,6,0),Color008800;STICKLINE((K=D),K,D,5,0),Color009900;STICKLINE((K=D),K,D,4,0),Color00AA00;STICKLINE((K=D),K,D,3,0),Color00BB00;STICKLINE((K=D),K,D,2,0),Color00CC00;STICKLINE((K=D),K,D,1,0),Color00DD00;见好就收波段操作input:N(1,110,15);生命线:98,linethick1,coloryellow;生命禁区:95,linethick1,colorred;股价泥潭:20,linethick1,colorblue;生死线:50,linethick2,colorwhite;C0:=(H+L+C)/3;a1:=HHV(C0,n);a2:=LLV(C0,n);a3:=a1-a2;a4:=EMA((C0-a2)/a3,2)*100;b1:=HHV(C0,4*n);b2:=LLV(C0,4*n);b3:=b1-b2;b4:=EMA((C0-b2)/b3,2)*100;C1:=HHV(C0,16*n);C2:=LLV(C0,16*n);C3:=C1-C2;C4:=EMA((C0-C2)/C3,2)*100;短期:a4,colorgreen,linethick1;中期:b4,coloryellow,linethick2;长期:C4,colorred,linethick3;DRAWICON(CROSS(生命禁区,短期)ANDREF(短期,1)短期,短期*1.1,11);DRAWTEXT(CROSS(生命禁区,短期)ANDREF(短期,1)短期,短期*1.1,'←卖'),colorcyan;DRAWICON(CROSS(生命线,短期)ANDREF(短期,1)短期,短期*1.2,12);DRAWTEXT(CROSS(生命线,短期)ANDREF(短期,1)短期,短期*1.2,'←卖'),colorcyan;DRAWTEXT(CROSS(短期,生命禁区),85,'警惕!!'),colorwhite;DRAWTEXT(CROSS(中期,生命禁区),95,'减磅'),ColorFF6800;DRAWTEXT(CROSS(长期,生命禁区),100,'出局'),colormagenta;DRAWICON(CROSS(短期,生命禁区),85,4);DRAWICON(CROSS(中期,生命禁区),95,8);DRAWICON(CROSS(长期,生命禁区),100,3);--------------------------------------------------------------------------吸筹快慢N:=9;M1:=3;M2:=3;P:=9;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1),colorred,LINETHICK2;D:=SMA(K,M2,1),COLOR00FF00;JJ:=P*(3*D-2*K),COLOR00FF00;J:=((3*K)-(2*D));MAIRU:=CROSS(K,D)ANDK20;MAICHU:=CROSS(D,K)ANDD80;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8100,100,VAR8);吸筹:STICKLINE(VAR9-120,0,VAR9,6,1),COLORF00FF0;快线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORFF937F;慢线:SMA(快线,M1,1),colorred,LINETHICK2;空:SMA(慢线,M2,1),COLOR00FF00;牛股:IF(BARSLAST(CROSS(慢线,空))PANDBARSLAST(CROSS(空,慢线))PANDCROSS(慢线,空)AND慢线20,90,0),STICK,COLORFF937F;STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F;BB:=IF(BARSLAST(CROSS(慢线,快线))=3ANDCROSS(快线,慢线)AND慢线30,20,0);买:STICKLINE(BB,0,20,7,1),coloryellow;AA:=IF(BARSLAST(CROSS(快线,慢线))=4ANDCROSS(慢线,快线)AND快线50,20,0);卖:STICKLINE(AA,80,100,7,1),COLOR00FF00;DRAWTEXT(