DRAWTEXTABS(20,10,BKNAME),colorwhite,LINETHICK1;
总股本:=FINANCE2(35)/10000;
流通:CAPITAL/1000000,coloryellow,LINETHICK0;
流通率:流通/总股本,coloryellow,LINETHICK0;
市盈率:DYNAINFO(39),colorF0F000,LINETHICK0;
收益:FINANCE2(3),colorF0F000,LINETHICK0;
净资:FINANCE2(4),coloryellow,LINETHICK0;
日换:SUM(100*V/CAPITAL,1),color33FF00,LINETHICK0;
净资率:净资/c,color33FF00,LINETHICK0;
TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
量:=日换*10;
换手率:=VOL/CAPITAL*10;
STICKLINE(C<O,0,IF(换手率<1,量,0),8,0),COLORBLUE;
STICKLINE(C>=O,0,IF(换手率<1,量,0),8,1),colorred;
地量:STICKLINE(C<O AND 换手率<1,0,量,6,0 ),COLORBLUE;
巨量:STICKLINE(C<O AND 换手率>=15 and 换手率<25,0,量,6,0 ),colorred;
怪异:STICKLINE(C<O AND 换手率>=25,0,量,6,0),colorwhite;
STICKLINE(C>=O AND 换手率>=1 and 换手率<2,0,量,8,1 ),colorred;
STICKLINE(C>=O AND 换手率>=2 and 换手率<3,0,量,8,1 ),colorred;
STICKLINE(C>=O AND 换手率>=3 and 换手率<5,0,量,8,1 ),colorred;
STICKLINE(C>=O AND 换手率>=5 and 换手率<8,0,量,8,1 ),colorred;
STICKLINE(C>=O AND 换手率>=8 and 换手率<15,0,量,8,1 ),colorred;
STICKLINE(C>=O AND 换手率>=15 and 换手率<25,0,量,8,1 ),colorred;
STICKLINE(C>=O AND 换手率>=25,0,量,8,1);
仓:0;
VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));
VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));
VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));
VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);
VARD:=((SMA(VARC,3,1) * 1.5) - 100);
VARE:=SMA(VARD,3,1);
VARF:=((3 * VARD) - (2 * VARE));
VAR60:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR61:=VARF<REF(VAR60,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
大资金:=(VAR61 AND COUNT(VAR61,30)=1);
DRAWTEXT(大资金,18,'▲大资金');
获利比例:=(WINNER(C)*1000)/10;
平均成本:=(COST(50)*100)/100;
穿透力:=(winner(C)-winner(ref(C,1)))/v*capital;
DRAWTEXTABS(0,30,' 获利比例:'+STR(获利比例)),COLOR44bbff,LINETHICK3;
DRAWTEXTABS(160,30,' 平均成本:'+STR(平均成本)),colorwhite,LINETHICK5;
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)))/50;}
风向标:MA((((((IF(A5,100,0) + IF(A6,100,0)) + IF(A7,100,0)) + IF(A8,100,0)) + IF(A9,100,0)) + IF(A11,100,0))/6,3.5),colorwhite,LINETHICK1;
{VARR:=REF(CLOSE,1);
强弱方向:=SMA(MAX(CLOSE-VARR,0),5,1)/SMA(ABS(CLOSE-VARR),5,1)*100,COLORYELLOW;}
{DRAWTEXT(CROSS(买卖力道,80) AND 强弱方向>50,80,'买'),COLORYELLOW;};
突破:95,COLORGREEN;
Vm1:=REF(CLOSE,2);
Am2:= SMA(MAX(CLOSE-Vm1,0),7,1)/SMA(ABS(CLOSE-Vm1),7,1)*100;
牛吃饱要走: IF(Am2< REF(Am2,1) AND Am2>79,Am2,0),color33FF00,linethick2;
进猪圈:=cross(突破,风向标);
DRAWTEXT(进猪圈,100,'下跌');
多:=EMA(C*5,7) - EMA(C*5,13);
空:=EMA(多,2);
A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(A1,5);
黑马跟踪天数:BARSLAST(A1 < 黑马线),LINETHICK0;
HSL:= VOL / CAPITAL;
Al1:=(REF(CLOSE,2) * 0.865);
Al2:=(REF(CLOSE,13) * 0.772);
BOT:=MIN(Al1,Al2);
C1:=((CLOSE > (0.894 * REF(CLOSE,1))) AND (CLOSE < (0.901 * REF(CLOSE,1))));
C2:=(((CLOSE = OPEN) AND (OPEN = HIGH)) AND (HIGH = LOW));
C3:=(COUNT((CLOSE < (REF(CLOSE,1) * 0.894)),30) = 0);
DB60:=((((((((CLOSE - BOT) / CLOSE) < (11 / 100)) AND (HHV(HSL,5) < 3)) AND NOT(C1)) AND NOT(C2)) AND C3) * 60);
DB70:=((((((((CLOSE - BOT) / CLOSE) < (9.5 / 100)) AND (HHV(HSL,5) < 3)) AND NOT(C1)) AND NOT(C2)) AND C3) * 70);
DB79:=((((((((CLOSE - BOT) / CLOSE) < (7.8 / 100)) AND (HHV(HSL,5) < 3)) AND NOT(C1)) AND NOT(C2)) AND C3) * 79);
DB87:=((((((((CLOSE - BOT) / CLOSE) < (6 / 100)) AND (HHV(HSL,5) < 2.75)) AND NOT(C1)) AND NOT(C2)) AND C3) * 87);
DB92:=((((((((CLOSE - BOT) / CLOSE) < (4.2 / 100)) AND (HHV(HSL,5) < 2.75)) AND NOT(C1)) AND NOT(C2)) AND C3) * 92);
DB94:=((((((((CLOSE - BOT) / CLOSE) < (3.63 / 100)) AND (HHV(HSL,5) < 1.41)) AND NOT(C1)) AND NOT(C2)) AND C3) * 94);
DB95:=((((((((CLOSE - BOT) / CLOSE) < (3.38 / 100)) AND (HHV(HSL,5) < 1.25)) AND NOT(C1)) AND NOT(C2)) AND C3) * 95);
DB96:=((((((((CLOSE - BOT) / CLOSE) < (3.16 / 100)) AND (HHV(HSL,5) < 1.15)) AND NOT(C1)) AND NOT(C2)) AND C3) * 96);
DB97:=((((((((CLOSE - BOT) / CLOSE) < (2.97 / 100)) AND (HHV(HSL,4) < 1.12)) AND NOT(C1)) AND NOT(C2)) AND C3) * 97);
DB98:=((((((((CLOSE - BOT) / CLOSE) < (2.3 / 100)) AND (HHV(HSL,2) < 1.07)) AND NOT(C1)) AND NOT(C2)) AND C3) * 98);
DB100:=((((((((CLOSE - BOT) / CLOSE) < (2.19 / 100)) AND (HHV(HSL,2) < 0.71)) AND NOT(C1)) AND NOT(C2)) AND C3) * 100);
超跌:IF((DB100 = 100),100,IF((DB98 = 98),98,IF((DB97 = 97),97,IF((DB96 = 96),96,IF((DB95 = 95),95,IF((DB94 = 94),94,IF((DB92 = 92),92,IF((DB87 = 87),87,IF((DB79 = 79),79,IF((DB70 = 70),70,IF((DB60 = 60),60,0))))))))))),color33FF00;
STICKLINE((超跌>= 60),0,超跌,0.5,0),COLORMAGENTA;
STICKLINE((超跌 >= 80),20,70,8,0),COLORYELLOW;
STICKLINE((超跌 >= 80),20,70,4,0),COLORMAGENTA;
STICKLINE((超跌 >= 80),20,70,2,0),COLORGREEN;
STICKLINE((超跌 >= 80),20,70,0,0);
Vs1:=REF(CLOSE,2);
Vs2:=REF(CLOSE,1);
Vs3:=SMA(MAX(CLOSE-Vs2,0),7,1)/SMA(ABS(CLOSE-Vs2),7,1)*100;
DRAWTEXT(88>0 and ref(o,1)/ref(c,1)>1.04 and ref(l,1)<=688 and o>ref(c,1)and c<ref(o,1)and c/o>=1.01,风向标,'底初现'),COLORGREEN;
DRAWTEXT(c-o>=0 and o/l>1.05 and l<=llv(l,20),风向标,'★底'),COLORGREEN;
LC1:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100;
抓大牛:CROSS(RSI1,11);
DRAWTEXT(抓大牛,50,'抓大牛'),COLORRED;
bo1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
危短底:=bo1<-9 AND bo1> REF(bo1,1);
DRAWTEXT(危短底,25,'危短底'),COLOR44bbff;