擒牛:=MEMA(EMA((((C-O)*2)+O),20),10) ;
捉妖:=MEMA(MEMA((((C-O)*2)+O),3),10);
DRAWBAND(擒牛 ,RGB(0,0,255),捉妖 ,RGB(255,100,228));
趋势多:CROSS(捉妖,擒牛) ,NODRAW,COLORRED;
趋势空:CROSS(擒牛,捉妖) ,NODRAW,COLORGREEN;
DRAWTEXT(趋势空,擒牛,'趋势空'),COLORGREEN;
DRAWTEXT(趋势多,擒牛,'趋势多'),COLORRED;
短线看红涨绿跌:EMA((MA(C,5)),3) ,LINETHICK3,COLORGREEN;
IF(短线看红涨绿跌 > REF(短线看红涨绿跌,3),短线看红涨绿跌,DRAWNULL),LINETHICK3,COLORRED;
IF(短线看红涨绿跌 < REF(短线看红涨绿跌,3),短线看红涨绿跌,DRAWNULL),LINETHICK3,COLORGREEN;
共振:=EMA(C,5) ;
金叉:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(共振,金叉) ;
SEL:=CROSS(金叉,共振) ;
DRAWTEXT(BU,LOW,'B'),COLORRED,LINETHICK4;
DRAWTEXT(SEL,H,'S'),COLORGREEN,LINETHICK4;
B信号:BU,NODRAW,COLORRED;S信号:SEL,NODRAW,COLORGREEN;
STICKLINE(共振>=金叉 AND O>0,C,OPEN,3,1),COLORRED;
STICKLINE(共振>=金叉 AND O>0,(IF(OPEN>C,C,OPEN)),LOW,0,0),COLORRED;
STICKLINE(共振>=金叉,(IF(OPEN<C,C,OPEN)),H,0,0),COLORRED;
STICKLINE(共振<金叉,C,OPEN,3,0),COLOR00FF00;
STICKLINE(共振<金叉,LOW,H,0,1),COLOR00FF00;
STICKLINE(CROSS(共振,金叉) AND O>0,OPEN,C,3,0),COLORRED;
STICKLINE(CROSS(金叉,共振) AND O>0,OPEN,C,3,0),COLORGREEN;
A77:=((C - (MA(C,13))) / (MA(C,13))) * -100;
A78:=((C - (LLV(LOW,13))) / ((HHV(H,13)) - (LLV(LOW,13)))) * 100 ;
A79:=SMA(A78,3,2);
A80:=SMA(A79 ,3,2);
A81:=SMA(A80 ,5,1);
抄底黑马:=(((REF(A77,1)) >= 16) AND (((REF(A77,1)) / A77) >= 1.23)) AND (CROSS(A80,A81));
DRAWTEXT(抄底黑马,LOW,'★抄底黑马'),COLORWHITE;
N1:=MA(C,41)+MA(C,41)*10/100;
N2:=MA(C,23)+MA(C,23)*5/100;
N3:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
N4:=C>REF(C,1)*1.05 ;
DRAWTEXT(CROSS(N3,N2) AND N4,LOW*0.98,'启动上涨'),LINETHICK2,COLORMAGENTA;
STICKLINE((CROSS(N3,N2) AND N4),OPEN,C,3,0),COLORMAGENTA;
DRAWTEXT(CROSS(N3,N1) AND N4,LOW,'涨成牛妖'),LINETHICK2,COLORRED;
STICKLINE((CROSS(N3,N1) AND N4),OPEN,C,3,0),COLORRED;
WR1:=100*(HHV(H,21)-C)/(HHV(H,21)-LLV(LOW,21));
WR2:=100*(HHV(H,42)-C)/(HHV(H,42)-LLV(LOW,42));
MACD:=((EMA(C,12)-EMA(C,26))-(EMA((EMA(C,12)-EMA(C,26)),9)))*2;
TYP:=(H+LOW+C)/3 ;
CC:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
NOSEL:=IF((CROSS(WR1,20) AND CROSS(WR2,20)),0,1);
CCI买点:=CROSS(CC,250) AND CCI>REF(CCI,1) AND MACD>0 AND NOSEL AND C>EMA(C,200);
突破线:=SMA(H,14,2)*1.08;
接力涨:FILTER((CCI买点 AND C>突破线) OR (REF(CCI买点,1) AND C>突破线),3),NODRAW,COLORYELLOW;
DRAWTEXT(接力涨,L*0.99,' 接力涨'),LINETHICK2,COLORYELLOW;
STICKLINE(接力涨,C,OPEN,3,0),COLORYELLOW,LINETHICK4;
A62:=((C - (LLV(LOW,36))) / ((HHV(H,36)) - (LLV(LOW,36)))) * 100 ;
A63:=SMA(A62 ,3,1);
A64:=SMA(A63 ,3,1);
A65:=SMA(A64 ,3,1);
A67:=CROSS(A65,A64) AND A64>80;
DRAWTEXT(((FILTER(A67,5)) = 1),H,'减仓或卖出'),LINETHICK2,COLORGREEN;
STICKLINE(((FILTER(A67,5)) = 1),OPEN,C,3,0),COLORGREEN;
获利盘:=WINNER(C)*100;
近邻筹码:=(WINNER(C*1.07)-WINNER(C*0.93))*85;
换手率:=V/CAPITAL*100;
锁仓:=获利盘>=85 AND 近邻筹码<30 AND 换手率<5 STICK;
DRAWTEXT(锁仓,(L*0.99),'锁'),COLORWHITE;
高度控盘1:=EMA(WINNER(C)*70,3);
高度控盘2:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,3);
高度控盘3:=高度控盘2/(高度控盘1+高度控盘2)*100;
高度控盘4:=高度控盘1/(高度控盘1+高度控盘2)*100;
高度控盘5:=MA(高度控盘1+高度控盘2,13);
高度控盘6:=BARSLAST(高度控盘3<90 AND REF(高度控盘3,1)>90);
高度控盘7:=EMA(高度控盘3,89);
高度控盘8:=EMA(高度控盘4,89);
高度控盘9:=INTPART(高度控盘4-高度控盘8);
主力控盘:=EMA(高度控盘3,8);
游资控盘:=IF(高度控盘4-REF(高度控盘4,1)>高度控盘3-REF(高度控盘3,1),1,0);
操盘线:MA(C,5),COLORWHITE,LINETHICK1 DOTLINE;
生命线:MA(C,10)LINETHICK1 ;
散户套牢系数:=INTPART(高度控盘3),COLORYELLOW;
主力控盘系数:=INTPART(高度控盘4),COLORCYAN;
资金流入强度:=高度控盘9,LINETHICK2,COLORRED;
市场筹码总量:=INTPART(高度控盘5),COLORWHITE,NODRAW;
轴:=50,COLORGREEN,DOTLINE,LINETHICK1;
DRAWICON(CROSS(主力控盘系数,轴),L,9);
STICKLINE(CROSS(主力控盘系数,轴),OPEN,C,1,0),COLORYELLOW;
DRAWTEXT(CROSS(主力控盘系数,轴),L,'↖高度控盘'),COLORMAGENTA;