A01:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),linethick0,PRECIS0;
A03:=vol/capital*100;
A04:=AMOUNT/(capital*100);
DRAWTEXTABS(5,20,BKNAME );
DRAWTEXTABS(5,40,'流通盘:'+CAPITAL/1000000+'亿股,利润增长:'+FINANCE2(10)+'%。每股收益:'+FINANCE2(3)+'元。'),PRECIS1;
DRAWTEXTABS(5,60,'市盈率:'+FLOOR(DYNAINFO(39))+'%。公积金:'+FINANCE2(7)+'%' ),PRECIS0;
DRAWTEXTABS(5,80,'庄量:'+FLOOR(A01)+'%,换手:'+FLOOR(A03)+'%。' ),PRECIS0,coloryellow;
A06:((C/ref(c,1))-1)*100,linethick0,PRECIS1;
A08:=EMA(C,45);
A09:=last(C>A08);
B01:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
B02:=MA(CLOSE,27);
B03:=EMA(C,2);
B04:=EMA(SLOPE(C,21)*20+C,42);
BU:=cross(B03,B04);
SEL:=cross(B04,B03);
stickline(B03>=B04 and C>=A08,low,high,0.1,1),colorred;
stickline(B03>=B04 and C>=A08,close,open,9,0),colorred;
stickline(C<A08,close,open,9,0),colorgreen;
stickline(C<A08,low,high,0.1,1),color00ff00;
B05:=B01/B02;
B06:=last(C>B02);
B07:=LLV(L,90);
B08:(C/B07-1)*100,linethick0,PRECIS1;
C01:(C/ref(HHV(H,5),1)-1)*100,linethick0,PRECIS1;
C02:(C/ref(HHV(H,10),1)-1)*100,linethick0,PRECIS1;
C03:(C/REF(H,20)-1)*100,linethick0,PRECIS1;
C04:(C/REF(H,30)-1)*100,linethick0,PRECIS1;
C05:(C/REF(H,100)-1)*100,linethick0,PRECIS1;
B09:AMOUNT/100000000,PRECIS1,linethick0;
C08:last(C<A08),colorgreen,linethick0,PRECIS0;
C09:last(B03>=B04 and C>A08),colorred,linethick0,PRECIS0;
{可调节KDJ:压力支撑线参数 n=1 100 9,m1=1 100 3,m2=1 100 3}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
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;
{压力位}
C10:IF(CROSS(j24,j),H,REF(H,BARSLAST(CROSS(j24,j)))),PRECIS2,coloryellow,LINETHICK2,pointdot;
{支撑位}
C11:IF(CROSS(j,j24),L,REF(L,BARSLAST(CROSS(j,j24)))),PRECIS2,COLOR77AAFF,LINETHICK2,pointdot;
DRAWTEXTABS(750,280,'压力位:'+C10+'元, 支撑位:'+C11+'元'),PRECIS0,coloryellow;
A4:=MA(CLOSE,20);
A5:=(CLOSE > MA(CLOSE,5));
A6:=(MA(CLOSE,5) > MA(CLOSE,10));
A7:=(CLOSE > MA(CLOSE,10));
A8:=(MA(CLOSE,5) > MA(CLOSE,20));
A9:=(CLOSE > MA(CLOSE,20));
A10:=REF(A4,1);
A11:=(A4 > A10);
AVX:=(((((IF(A5,10,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
V1:=MA(VOL,5);
V2:=MA(VOL,10);
阻力位:=IF((CLOSE > 200),(CLOSE * 1.01),(CLOSE * 1.07));
阻力位1:=IF((CLOSE < 10),(CLOSE * 1.05),阻力位);
止损位:=IF((CLOSE > 200),(CLOSE * 0.99),(CLOSE * 0.93));
止损位1:=IF((CLOSE < 10),(CLOSE * 0.95),止损位);
TJTS1:=BARSTATUS=2 and c<20;
TJTS2:=BARSTATUS=2 and c>20;
k2:=hhv(L,barslast(DISPSTATUS=1)+1);
DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'庄量理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。'),ALIGN2,colorDC143C,linethick3;
DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'走势虽趋强,但庄量还显不足,可以考虑短线进场,仓位在1/2左右。'),ALIGN2,colorDC143C,linethick3;
DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)) ,k2*0.99,'庄量价配合良好,但没有明显走强,可以考虑短线进场,仓位1/3左右。'),ALIGN2,colorDC143C,linethick3;
DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'形态尚可,但庄量能不足,未完全走强,可以考虑短线参与,仓位1/3左右。'),ALIGN2,color0000FF,linethick3;
DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'形态变坏,但走势尚可,重仓者减持大半,清仓者可以观望。'),ALIGN2,color00FF00,linethick3;
DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。'),ALIGN2,colorGREEN,linethick3;
DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'放量下跌,走势明显偏弱,离场观望。'),ALIGN2,colorGREEN,linethick3;
DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'缩量下跌,走势偏弱,离场观望。'),ALIGN2,colorGREEN,linethick3;
DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'形态良好,庄量能充足,强势明显,可以继续持有。'),ALIGN2,color00FFFF,linethick3;
DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'上行趋势不变,强势依然,但庄量开始转弱,注意风险。'),ALIGN2,color00FFFF,linethick3;
DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'仍然具备上涨潜力,但庄量偏弱,可考虑减仓。'),ALIGN2,color00FFFF,linethick3;
DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'走势趋弱,庄量不足,减持大部分筹码。'),ALIGN2,color00FFFF,linethick3;
DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'形态不佳,注意庄量变化,不适合参与。'),ALIGN2,colorgreen,linethick3;
DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'趋势不明,庄量偏弱,不适合参与。 '),ALIGN2,colorgreen,linethick3;
DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'有走强迹象,但庄量不足,趋势不明,不适合操作。'),ALIGN2,colorgreen,linethick3;
DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'走势太弱,没有参与价值。'),ALIGN2,colorgreen,linethick3;
DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 >= V2)) ,k2*0.99,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右,'),ALIGN2,color0000FF,linethick3;
DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 >= V2)) ,k2*0.97,' 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。'),ALIGN2,color0000FF,linethick3;
DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 < V2)) ,k2*0.99,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌,'),ALIGN2,color0000FF,linethick3;
DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 < V2)) ,k2*0.97,' 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。'),ALIGN2,color0000FF,linethick3;
DRAWTEXT(TJTS2 and (CROSS(1,AVX) AND (V1 >= V2)) ,k2*0.99,'形态走坏,重仓者可以减去大部分仓位。'),ALIGN2,color00FF00,linethick3;
DRAWTEXT(TJTS2 and (CROSS(1,AVX) AND (V1 < V2)) ,k2*0.99,'大盘缩量调整,注意风险,短线清仓观望。'),ALIGN2,color00FF00,linethick3;
DRAWTEXT(TJTS2 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) ,k2*0.99,'走势良好,庄量理想,可以继续持有强势股。'),ALIGN2,color00FFFF,linethick3;
DRAWTEXT(TJTS2 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) ,k2*0.99,'形态良好,但庄量不足,随时准备减仓。'),ALIGN2,color00FFFF,linethick3;
DRAWTEXT(TJTS2 and (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) ,k2*0.99,'趋势不明,注意庄量变化,不适宜进场。'),ALIGN2,colorgreen,linethick3;
DRAWTEXT(C09=1 and A06<=5 ,C*1.02,'1'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=2,C*1.02,'2'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=3,C*1.02,'3'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=4,C*1.02,'4'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=5,C*1.02,'5'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=6,C*1.02,'6'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=7,C*1.02,'7'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=8,C*1.02,'8'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=9,C*1.02,'9'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=10,C*1.02,'10'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=11,C*1.02,'11'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=12,C*1.01,'12'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=13,C*1.01,'13'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=14,C*1.01,'14'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=15,C*1.01,'15'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=16,C*1.01,'16'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=17,C*1.01,'17'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=18,C*1.01,'18'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=19,C*1.01,'19'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=20,C*1.01,'20'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=21,C*1.02,'21'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=22,C*1.01,'22'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=23,C*1.01,'23'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=24,C*1.01,'24'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=25,C*1.01,'25'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=26,C*1.01,'26'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=27,C*1.01,'27'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=28,C*1.01,'28'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=29,C*1.01,'29'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=30,C*1.01,'30'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=31,C*1.02,'31'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=32,C*1.01,'32'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=33,C*1.01,'33'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=34,C*1.01,'34'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=35,C*1.01,'35'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=36,C*1.01,'36'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=37,C*1.01,'37'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=38,C*1.01,'38'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=39,C*1.01,'39'),COLORYELLOW,linethick1,ALIGN1;
DRAWTEXT(C09=40,C*1.01,'40'),COLORYELLOW,linethick1,ALIGN1;
stickline(A01>90,open,close,6,0),COLORYELLOW;