主图
VAR1:=(3*C+H+L+O)/6; VAR2:=MA(VAR1,10); VAR3:=MA(VAR1,30); VAR4:=MA(VAR1,60); VAR5:=EMA(VAR1,12); VAR6:=EMA(VAR1,50);
多空线:(20*(3*C+H+L+O)/6+19*REF((3*C+H+L+O)/6,1)+18*REF((3*C+H+L+O)/6,2)+17*REF((3*C+H+L+O)/6,3)+16*REF((3*C+H+L+O)/6,4)+15*REF((3*C+H+L+O)/6,5)+14*REF((3*C+H+L+O)/6,6)+13*REF((3*C+H+L+O)/6,7)+12*REF((3*C+H+L+O)/6,8)+11*REF((3*C+H+L+O)/6,9)+10*REF((3*C+H+L+O)/6,10)+9*REF((3*C+H+L+O)/6,11)+8*REF((3*C+H+L+O)/6,12) +7*REF((3*C+H+L+O)/6,13)+6*REF((3*C+H+L+O)/6,14)+5*REF((3*C+H+L+O)/6,15)+4*REF((3*C+H+L+O)/6,16)+3*REF((3*C+H+L+O)/6,17)+2*REF((3*C+H+L+O)/6,18)+REF((3*C+H+L+O)/6,20))/210,COLORFF00FF; 周:MA(VAR1,5),COLORWHITE; 中期:MA(VAR1,55),COLORFFCCCC; 长期:(MA(VAR1,90)+MA(VAR1,120)+MA(VAR1,180)+MA(VAR1,250))/4,COLORBLUE; 中轨:MA(C,26),COLORFFCC66,CIRCLEDOT;
压力:中轨+2*STD(VAR1,26),COLOR00FF00,LINETHICK2; 支撑:中轨-2*STD(VAR1,26),COLORYELLOW,,LINETHICK2;
R1:=MA(CLOSE,26); 持仓线:=R1; R2:=R1-0.25;
空仓线:=R2; 操盘线:=EMA(CLOSE,3); DRAWICON(CROSS(操盘线,空仓线),操盘线*0.95,1);
VAR1A:=CROSS(MA(CLOSE,5),MA(CLOSE,30)); DRAWTEXT(VAR1A,LOW-LOW*0.01,'∮'),COLOR00FF00;
DRAWTEXT(VAR1A,LOW-LOW*0.03,'金融大师'),COLOR00FF00; 昨收盘:DYNAINFO(3),POINTDOT,COLORWHITE; 今价高低:DYNAINFO(5),POINTDOT,COLORYELLOW;DYNAINFO(6),POINTDOT,COLORYELLOW;
金融换手副图
换手:100*V/CAPITAL,NODRAW;
HS10:换手<10,COLORRED,NODRAW;
HS25:换手>10 AND 换手<25,COLORYELLOW,NODRAW;
HS40:换手>25 AND 换手<40,COLORGREEN,NODRAW;
HS60:换手>40 AND 换手<60,COLORCYAN,NODRAW;
HS100:换手>60 AND 换手<100,COLORMAGENTA,NODRAW;
STICKLINE(换手,0,换手,2.8,0),COLORFFFFFF;{收阳线}
STICKLINE(换手 AND C<REF(C,1),0,换手,2.8,0),COLORF0F000;{收阴线}
STICKLINE(HS10,0,换手*0.5,2.8,0),COLORRED;
STICKLINE(HS25,0,换手*0.6,2.8,0),COLORYELLOW;
STICKLINE(HS40,0,换手*0.7,2.8,0),COLORGREEN;
STICKLINE(HS60,0,换手*0.8,2.8,0),COLORCYAN;
STICKLINE(HS100,0,换手*1,2.8,0),COLORMAGENTA;
零线:0,COLORWHITE;
金融筹码
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//小股民筹码估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢筹码比率}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}
ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}
ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数}
ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}
ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}
SH8:=EMA(ZSHTL,8);
DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);
{小股民套牢筹码}
STICKLINE(C>0,ZSHTL,ZZLKP,1,0),COLORFFFFFF;
{小股民筹码警戒}
STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLOR00FF00;
{主力控盘筹码}
STICKLINE(C>0,ZZLKP,0,1,0),COLORA4A4A4;
{筑顶风险区}
STICKLINE(ZZLKP>75,ZZLKP,0,1,0),COLORFFFFFF;
{顶部:(ZZLKP>75),COLORFFFFFF;}
{主力筹码警戒}
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED;
{筑底散兵坑}
STICKLINE(ZSHTL>=90,ZZLKP,0,2,0),COLOR66FFCC;
{底部:(ZSHTL>=90),COLOR66FFCC;}
{筹码总量上升}
IF(ZCMZL,ZCMZL>REF(ZCMZL,1),DRAWNULL),COLOR0066FF,LINETHICK1;
{增量资金};
{//------【数值显示】}
小股民套牢系数:INTPART(ZSHTL),COLORCYAN,LINETHICK2;
主力控盘系数:INTPART(ZZLKP),COLORYELLOW,LINETHICK2;
资金流入强度:ZJLRQD,LINETHICK2,COLORRED;
资金流入强度2:IF(ZJLRQD<10,ZJLRQD,DRAWNULL),LINETHICK2,COLORWHITE;
市场筹码总量:INTPART(ZCMZL),COLORWHITE,NODRAW;
DRAWICON(CROSS(主力控盘系数,小股民套牢系数),小股民套牢系数-5,11);
DRAWICON(CROSS(资金流入强度,小股民套牢系数),小股民套牢系数-5,17);
金融抄底1
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);GSZX:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;
XG:CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1;
金融抄底2
X_1:=CROSS(KDJ.K#WEEK,KDJ.D#WEEK);
X_2:=KD.K#WEEK(9,3,3);
X_3:=KD.D#WEEK(9,3,3);
X_4:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)<30,13);
X_5:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)>30,13);
X_6:=X_4;
X_7:=MACD.DIF#WEEK(12,26,9);
X_8:=MACD.DEA#WEEK(12,26,9);
X_9:=10;
X_10:=5;
X_11:=FILTER(CROSS(X_7,X_8) AND REF(X_8,1)<0,13);
X_12:=X_11;
X_13:=(HHV(HIGH,X_9)-CLOSE)/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-125;
X_14:=SMA(X_13,X_10,1)+15;
X_15:=(CLOSE-LLV(LOW,X_9))/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-105;
X_16:=SMA(X_15,X_10,1)+15;
X_17:=CROSS(X_16,X_14);
选股:X_12 AND X_11 AND X_1;