RSVLY:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
KLY:=SMA(RSVLY,3,1),COLORWHITE;
DLY:=SMA(KLY,3,1),COLORYELLOW;
JLY:=3*KLY-2*DLY,COLORFF00FF;
JL1Y:=50;
RSVMLY:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
KALY:=SMA(RSVMLY,3,1);
DALY:=SMA(KLY,3,1);
JALY:=3*KLY-2*DLY;
KL1Y:=1/3*RSVMLY+REF(KLY,1)/3*2,COLORYELLOW;
DL1Y:=1/3*KLY+REF(DLY,1)/3*2,COLORWHITE;
JJJLY:=3*KL1Y-2*DL1Y,COLORFF00FF;
JL11Y:=JLY;JL昨Y:=REF(JLY,1);JLXY:=IF(JL1Y=-50,JL11Y,IF(JL1Y=-49,JL昨Y,JL1Y));
XAY:=((9/7*-15-2*REF(KLY,1)+12/7*REF(DLY,1))/100)*(HHV(HIGH,9)-LLV(LOW,9))+LLV(LOW,9),COLORRED,NODRAW;
XBY:=((9/7*JLXY-2*REF(KLY,1)+12/7*REF(DLY,1))/100)*(HHV(HIGH,9)-LLV(LOW,9))+LLV(LOW,9),COLORRED,NODRAW;
XCY:=((9/7*105-2*REF(KLY,1)+12/7*REF(DLY,1))/100)*(HHV(HIGH,9)-LLV(LOW,9))+LLV(LOW,9),COLORRED,NODRAW;
XDY:=((9/7*90-2*REF(KLY,1)+12/7*REF(DLY,1))/100)*(HHV(HIGH,9)-LLV(LOW,9))+LLV(LOW,9),COLORRED,NODRAW;
脚Y:=REFDATE(XAY,DATE),POINTDOT,COLORRED,LINETHICK4;
腰Y:=REFDATE(XBY,DATE),POINTDOT,COLORMAGENTA,LINETHICK4;
头Y:=REFDATE(XCY,DATE),POINTDOT,COLORGREEN,LINETHICK4;
颈Y:=REFDATE(XDY,DATE),POINTDOT;
每股收益:FINANCE(33),COLORYELLOW,NODRAW;
净资产:=FINANCE(34),NODRAW;{元>=5}
公积金:=FINANCE(18),NODRAW;{元>=1}
未分配利润:FINANCE(32),NODRAW;{元>=0.5}
市赢率:=DYNAINFO(39),NODRAW;
涨家数:=INDEXADV,NODRAW,COLORRED;
跌家数:=INDEXDEC,NODRAW,COLORGREEN;
现金流:=FINANCE(26)/FINANCE(1),NODRAW;{元>=0.5}
总股本:=FINANCE(1)/100000000,NODRAW;{亿<10}
流通盘:=FINANCE(7)/100000000,NODRAW;{亿<3}
净资产优:= (净资产>= 5*0.75);
公积金优:= (公积金>= 1*0.75);
未分配利润优:= (未分配利润>=0.5*0.75);
现金流优:= (现金流>=0.5*0.75);
是小盘股的优:= (总股本<12.5 AND 流通盘<3.75);
其中一项优:=(净资产优 OR 公积金优 OR 未分配利润优 OR 现金流优) AND 是小盘股的优;
最优的选择:=(净资产优 AND 公积金优 AND 未分配利润优 AND 现金流优 AND 是小盘股的优);
DRAWTEXT(其中一项优 AND CURRBARSCOUNT=100 AND 最优的选择!=1,颈Y,'该股成长较好,QQ: 1322099877'),COLORYELLOW;
DRAWTEXT(最优的选择 AND CURRBARSCOUNT=100,颈Y,'该股的成长相当不错'),COLORRED;
外内差:=BUYVOL-SELLVOL,COLORYELLOW,NODRAW;
GJZC:=IF(C=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(V+0.01)/100);
明日阻力:=L+(GJZC-L)+(C-L);
明日支撑:=L+(C-GJZC);
今日阻力:=REF(明日阻力 , 1)*1.01,COLORGREEN,NODRAW;
今日支撑:=REF(明日支撑 , 1)*1.01,COLORRED,NODRAW;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
红轨道:=MA(MA(CLOSE,2),1),LINETHICK1,COLORYELLOW;
绿轨道:=MA(MA(CLOSE,3),3);
上升:IF(红轨道>=绿轨道,红轨道,DRAWNULL),COLORLIMAGENTA,LINETHICK2;
AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);
加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);
波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) -
(2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(X,13);
卖:=IF(HHV(DX,2)=HHV(DX,7) AND DX>50 AND CROSS(MA(DX,2),DX),1,0);
DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;
买:=IF(LLV(DX,2)=LLV(DX,7) AND DX<0 AND CROSS(DX,MA(DX,2)),1,0);
{DRAWTEXT(FILTER(买=1,5),LOW-0.03,'买'),COLORRED;}
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);
DRAWTEXT(注意 AND 卖!=1,HIGH*1.02,'减'),COLORFFFF50,NODRAW;
加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
{DRAWTEXT((CROSS(加仓A,0) OR CROSS(CLOSE,CB)) AND 买!=1,LOW-0.03,'加'),COLOR0080FF;}
MA18:=MA(C,18);
跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);
买价:=((C-REF(MA5,1))/5+MA5)*1.004;
买条件:=CROSS(C,买价) AND 买价>REF(买价,1);
白K买进:=IF(买条件,L,H),COLORWHITE,POINTDOT;
STICKLINE(买条件,O,C,3,1),COLORWHITE,LINETHICK2;
GJD:((H+L+2*C)/4),COLORGREEN;
趋势Q:=XMA(GJD,24),LINETHICK1,COLORYELLOW;
下支撑1D:(趋势Q*0.918),LINETHICK2,COLORMAGENTA;
强支撑2D:(趋势Q*0.86),LINETHICK2,COLORRED;
XGD:=L<下支撑1D;
GJH:=(H+L+C)/3;
趋势H:=XMA(GJH,24),LINETHICK1;
上阻力1H:(趋势H*1.108),LINETHICK2,COLORGREEN;
强阻力2H:(趋势H*1.16),LINETHICK2,COLORBLUE;
XGH:=H>上阻力1H;
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AAD:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QYD:=BACKSET(AAD,HIGHN+1);
CCD:=FILTER(QYD,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CCD,H*1.02,2);
AA1D:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1D:=BACKSET(AA1D,LOWN+1);
CC1D:=FILTER(QY1D,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1D,L*0.98,1);
JJ:=(CLOSE+HIGH+LOW)/3;
AK:=EMA(JJ,10);
BK:=REF(AK,1);
STICKLINE(AK>BK,AK,BK,1,0),COLORYELLOW;
STICKLINE(AK<BK,AK,BK,1,0),COLORBLUE;
VAR1X:=XMA(XMA(XMA(EMA(CLOSE,1),2),2),2);
网语:=XMA((VAR1X-REF(VAR1X,1))/REF(VAR1X,1),7)*1000,COLOR0000FF,NODRAW;
语:=EMA(网语,27);
网之语:=EMA(网语-语,1),NODRAW;
VAR2X:=XMA(XMA(XMA(EMA(WINNER(C)*100,1),2),2),2),NODRAW;
DRAWTEXT(CROSS( 网之语,0),REF(CLOSE,1)-1.2,'转强'),COLORMAGENTA;
DRAWTEXT(CROSS(0, 网之语),REF(CLOSE,1)+1.1,'转弱'),COLORGREEN;
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
TT1:=REF(EMA(TT2,3),1);
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
短卖:=STICKLINE(CROSS(RSI1,80),60,95,2,0),COLORFF9900,LINETHICK1;
压力:= HHV(MA(RSI1,3),13),COLORGREEN;
支撑:=LLV(MA(RSI1,3),13),COLORYELLOW;
AADX:=REF(RSI1,3)=HHV(RSI1,2*3+1);
BBDX:=BACKSET(AADX,3+1);
CCDX:=FILTER(BBDX,3) AND RSI1=HHV(RSI1,3+1);
K1DX:=BARSLAST(REF(CCDX,1));
顶背离:=REF(CLOSE,K1DX+1)<CLOSE AND REF(RSI1,K1DX+1)>RSI1 AND CCDX;
DRAWTEXT(顶背离,REF(CLOSE,1)+1.4,'顶'),COLORYELLOW;
TD:=(CLOSE*2+LOW+HIGH)/4;
SLD:=(TD/REF(TD,1)-1)*1000;
快趋势D:=XMA(XMA(XMA(SLD,3),3),3);
慢趋势D:=XMA(XMA(XMA(SLD,5),5),5);
趋势D:=XMA(XMA(XMA(SLD,34),34),34),COLORLIBLUE,LINETHICK1;
QW2D:=趋势D>5;
DRAWTEXT(QW2D,REF(CLOSE,1)*1.1,'☆'),COLORRED;
XGDZ:=CROSS(快趋势D,慢趋势D) AND 慢趋势D>REF(慢趋势D,1);
DRAWTEXT(XGDZ,REF(CLOSE,1)-2.8,'小龙'),COLORYELLOW;
XGTD:=CROSS(慢趋势D,快趋势D) AND 慢趋势D<REF(慢趋势D,1);
DRAWTEXT(XGTD,REF(CLOSE,1)+1.8,'调'),COLORYELLOW;
A1:=C-REF(C,1);
A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);
RMAD:=EMA(CLOSE,7);
NMAD:=EMA(CLOSE,9);
涨势线:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMAD,RMAD))+1),LLV(L,BARSLAST(CROSS(NMAD,RMAD))+1),
H=HHV(H,BARSLAST(CROSS(RMAD,NMAD))+1),HHV(H,BARSLAST(CROSS(RMAD,NMAD))+1),0),LINETHICK1,COLORFF00FF;
跌势线:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMAD,NMAD))+1),HHV(H,BARSLAST(CROSS(RMAD,NMAD))+1),
L=LLV(L,BARSLAST(CROSS(NMAD,RMAD))+1),LLV(L,BARSLAST(CROSS(NMAD,RMAD))+1),0),LINETHICK1,COLORBLUE;
趋势区:=IF((EVERY(跌势线>=REF(跌势线,1),1)),4,2)COLOR0000FF,LINETHICK3;
低买:=(CROSS(趋势区,2.1));
DRAWTEXT(低买,REF(CLOSE,1)-3.8,'底部') |