/吸拉派落/
MD :=EMA( C, 5 ) - EMA( C, 10 );
MM:=EMA( MD, 2 );
吸 :IF( MD >= MM AND MD < 0, MD, DRAWNULL ), colorlired, LINETHICK2;
拉 :IF( MD >= MM AND MD >= 0, MD, DRAWNULL ), colorred, LINETHICK2;
派 :IF( MD < MM AND MD >= 0, MD, DRAWNULL ), colorgreen, LINETHICK2;
落 :IF( MD < MM AND MD < 0, MD, DRAWNULL ), colorwhite, LINETHICK2;
买:TOSTRING(MD - MM,2),COLORSTICK,NODRAW;
/主动买卖量/
VAR手:=V/((H-L)*2-ABS(C-O));
主买:=IF(C>O,VAR手*(H-L),IF(C<O,VAR手*((H-O)+(C-L)),V/2)),colorred,POINTDOT,NODRAW;
主卖:=IF(C>O,0-VAR手*((H-C)+(O-L)),IF(C<O,0-VAR手*(H-L),0-V/2)),colorgreen,POINTDOT,NODRAW;
STICKLINE(C>REF(C,1),0,主买,8,1),colorred;
STICKLINE(C<=REF(C,1),0,主买,8,1),colorgreen;
净买:=主买+主卖,colorwhite,NODRAW;
STICKLINE(净买>0,0,净买,8,0),colorred;
STICKLINE(净买<0,0,净买,8,0),colorgreen;
STICKLINE(净买=0,0,净买,8,0),colormagenta;
STICKLINE(主卖<0,0,主卖,1,0),colorgreen;
净:TOSTRING((100*净买/V),0),COLORSTICK,NODRAW;
买比:=TOSTRING((100*主买/V),0),colorred,NODRAW;
卖:=TOSTRING((100*主卖/V),0),colorgreen,NODRAW;
DRAWICON(净>=50,0,1);
/资金拉升/
VAR拉:=EMA(C,2)-EMA(C,81);
VAR升:=EMA(VAR拉,9);
VAR拉升:=VAR拉-VAR升;
VAR20:=POW(VAR拉升,2);
长:TOSTRING(IF(VAR拉升>0.15,VAR20,DRAWNULL),2),colorred,NODRAW;
动:TOSTRING(EMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*4,4),2),COLORSTICK,NODRAW;
空:(MD<0)*MD,colorgreen,NODRAW;
DRAWTEXT(( 空=0 AND REF(空,1)< 0),V*0.25,"启"),coloryellow;
启动: =IF( 空 = 0 AND REF(空,1)< 0, 1 , DRAWNULL);
DRAWTEXT_FIX(ISLASTBAR AND 启动,0,0.1,0,'启'+启动),colorwhite;
///金短线追踪/
平3金:=EMA(EMA(EMA(C,3),3),3);
J金:=(平3金-REF(平3金,1))/REF(平3金,1)*100;
Q金:=MA(J金,3);
DRAWTEXT(CROSS(J金,Q金) AND CROSS(C,平3金),V,"金"),coloryellow;
主力进退/
r0:=((IF(ISNULL(ZDMR[-1]),0,ZDMR)+IF(ISNULL(BDMR[-1]),0,BDMR))-(IF(ISNULL(ZDMC[-1]),0,ZDMC)+IF(ISNULL(BDMC[-1]),0,BDMC)))/SHGZG*100;
最小值:=LLV(L,10);
最大值:=HHV(H,25);
波动线:=EMA((C-最小值)/(最大值-最小值)*4,4);
平均线:=EMA(波动线,3),NOTEXT;
主力攻击:=r0-(ABS(REF(r0,1))+ABS(REF(r0,2))+ABS(REF(r0,3))+ABS(REF(r0,4))+ABS(REF(r0,5))/2)>0 AND 平均线>=REF(平均线,1) AND REF(平均线,1)<REF(平均线,2);
主力撤退:=-((r0+(ABS(REF(r0,1))+ABS(REF(r0,2))+ABS(REF(r0,3))+ABS(REF(r0,4))+ABS(REF(r0,5))/2)<0) AND 平均线<=REF(平均线,1) AND REF(平均线,1)>REF(平均线,2));
DRAWTEXT(主力攻击>0,V*0.01,"进"),coloryellow;
DRAWTEXT(主力撤退<0,V*-0.07,"退"),colorgreen;
DRAWTEXT(CROSS(EMA(C,3),EMA(C,18)) AND C>O AND C>REF(C,1),0,'底'),colorwhite;
/明天就涨停/
W1:=BARSLAST(C=HHV(C,20));
W2:=IF(W1>0,REF(C,W1),REF(C,W1));
W3:=CROSS(C,REF(W2,1));
DRAWTEXT(W3 AND COUNT(W3,5)=1,V*0.75,'牛'),colorwhite;
/新BS操盘/
新BS:=AMOUNT/V/100;
行情线:=EMA(新BS,3);
VAR新:=EMA((((新BS-EMA(新BS,13))/EMA(新BS,13))*(0-100)),3);
操盘线:=EMA(((VAR新/10)+EMA(新BS,10)),3);
新:=CROSS(新BS,VAR新);
操:=CROSS(行情线,操盘线);
DRAWTEXT_FIX(ISLASTBAR AND 新,0.2,0,0,"新"+新),colorred;
DRAWTEXT_FIX(ISLASTBAR AND 操,0.2,0.1,0,"★B"+操),colorlired;
持股:=IF(C>BBI AND BBI>REF(BBI,1),1,DRAWNULL),colorred,CIRCLEDOT;
DRAWTEXT_FIX(ISLASTBAR AND 持股,0.1,0,0,"股"+持股),colorred;
/超级主图/
SMA10:=SMA(C,10,1);
角10:=ATAN((SMA10/REF(SMA10,1)-1)*100)*180/3.1416;
升:C>SMA10 AND 角10>0,colorred,NODRAW;
下跌:C<SMA10 AND 角10<0,colorgreen,NODRAW;
盘:升=0 AND 下跌=0,colorwhite,NODRAW;
升1: =IF( 升 AND (REF(升,1)= 下跌 OR REF(升,1)= 盘), 1 , DRAWNULL);
下跌1: =IF( 下跌 AND (REF(下跌,1)= 升 OR REF(下跌,1)= 盘), 1 , DRAWNULL);
盘1: =IF( 盘 AND (REF(盘,1)= 下跌 OR REF(盘,1)= 升), 1 , DRAWNULL);
DRAWTEXT_FIX(ISLASTBAR AND 升1,0,0,0,"升"+升1),colorred;
DRAWTEXT_FIX(ISLASTBAR AND 升,0,0,0,"升"),colorred;
DRAWTEXT_FIX(ISLASTBAR AND 下跌1,0,0,0,"跌"+下跌1),colorgreen;
DRAWTEXT_FIX(C>O,0.001,0.001,0,'代编QQ:511411198 ,公众号:A26206'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR AND 下跌,0,0,0,"跌"),colorgreen;
DRAWTEXT_FIX(ISLASTBAR AND 盘1,0,0,0,"盘"+盘1),colormagenta;
DRAWTEXT_FIX(ISLASTBAR AND 盘,0,0,0,"盘"),colormagenta;
DRAWTEXT(升1,V*0.5,"升"),colorcyan;
介必升/
JBS:=C/REF(C,1)>1.05 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
介必升:=FILTER(JBS,28)*100;
VAR1介:=IF((C/REF(C,1)>1.05 AND H/C<1.01 AND C>REF(C,1)),91,0);
VAR2介:=FILTER((VAR1介>90),45) AND FILTER((VAR1介>90),35) AND 介必升>0;
抄底:=VAR2介 AND COUNT(VAR2介,60)=1;
DRAWICON(抄底,V,13);
/AA人均持股/
股东总数:=GDZS,coloryellow;
上期股东总数:=REF(GDZS,16),colorwhite,NODRAW;
流通股本数:=SHGZG/10000,colorwhite;
人均持股数:=SHGZG/GDZS,colorwhite;
自由流通股本数:=ZYLTGB/10000,colorred;
人均持自由股数:=ZYLTGB/GDZS,colorred;
人均持股比:=10000*人均持股数/SHGZG,colorwhite,NODRAW;
人均持股占比户均:=人均持股数/GDZS,colorwhite,NODRAW;
自由股比:=10000*人均持自由股数/ZYLTGB,colorred,NODRAW;
上期人均持股数:=REF(人均持股数,16),colorwhite,NODRAW;//201809-202209
上期人均持股比:=10000*上期人均持股数/REF(SHGZG,16),colorwhite,NODRAW;
上期人均持股占比户均:=上期人均持股数/REF(GDZS,16),colorwhite,NODRAW;
机构持股数:=JGCGS,colorwhite,nodraw;
机构持股比:=机构持股数/SHGZG,colorwhite,nodraw;
利9:=JLR,colorwhite,NODRAW;
利21:=YEARREP(&JLR,1),colorwhite,NODRAW;
利比:利9/利21,colorwhite,NODRAW;
DRAWTEXT_FIX(ISLASTBAR AND 人均持股占比户均,0.3,0,0,'户'+TOSTRING(人均持股占比户均,2)+'/'+TOSTRING(人均持股比,2)),colorwhite;
DRAWTEXT_FIX(ISLASTBAR AND 上期人均持股占比户均,0.3,0.1,0,'上'+TOSTRING(上期人均持股占比户均,2)+'/'+TOSTRING(上期人均持股比,2)),colorwhite;
日期:REPDATE(&GDZS,1,0),colorwhite,nodraw;