{紫金神兽II}
{参数2个}
至少N次:=4;
至少Y次:=1;
A1:=MA(C,5);
A2:=MA(C,10); {可以自设均线,牛市21日线,熊市10日线}
A3:=(A1+A2)/2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
VAR27:=REF(CLOSE,1);
VAR28:=SMA(MAX(CLOSE-VAR27,0),5.5,1)/SMA(ABS(CLOSE-VAR27),6,1)*100;
XH:=CROSS(84,RSI) OR CROSS(RSI,11) OR IF(CROSS(76,VAR28),1,0);
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
MR:=(VARC=1);
MC:=(VARD=1);
VAR1:=ZIG(3,10)AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
VAR2:=ZIG(3,10)>REF(ZIG(3,10),1)
AND REF(ZIG(3,10),1)HS:=VAR1;
ZS:=VAR2;
A:=EMA(LOW,36);
B:=EMA(HIGH,30);
F:=85;
K:=95;
D:=(EMA(((CLOSE-A)/(B-A))*(4),4))*(25);
G:=D;
G1:=DI:=(((D-LLV(D,21))/(HHV(D,21)-LLV(D,21)))*(4))*(25);
M:=IF(CROSS(H,20) AND (G<40),70,0);
Z:=8;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8;
支撑:=L1+P1*0.5/8;
中线1:=(支撑+阻力)/2;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线1;
BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线1;
BB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
BB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
BB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
BB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
BB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
MD:=BB=1 AND C<中线1;{分析家公式网}
低吸买点:=IF((COUNT((G>REF(G,1)),1)=1) AND (REF(G,1)X_1:=1;
X_2:=LLV(LOW,10);
X_3:=HHV(HIGH,25);
引力线:=EMA((CLOSE-X_2)/(X_3-X_2)*4,4)*X_1;
MR AND ZS AND COUNT(低吸买点,100)>=至少N次 AND 趋势线<20 AND CROSS(引力线,0.5) AND COUNT(MD,20)>=至少Y次;
2、波浪自动画线
{波浪自动画线}
A1:=REF(HIGH,10)=HHV(HIGH,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
D1:=FILTER(C1,10);{高点}
A2:=REF(LOW,10)=LLV(LOW,2*10+1);
B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);
D2:=FILTER(C2,10);{低点}
E1:=(REF(LLV(LOW,2*10),1)+REF(HHV(HIGH,2*10),1))/2;
E2:=(HIGH+LOW)/2;
H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT((D1 AND E1
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);{过滤后低点}
L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);{过滤后高点}
浪折线上:DRAWLINE(LD,L,HD,H,0),COLOR00FFFF,LINETHICK1;
下:DRAWLINE(HD,H,LD,L,0),COLOR00FFFF,LINETHICK1;
J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);
J2:=J1>REF(J1,1);
新浪顶底线:DRAWLINE(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLOR00FF00;
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
浪底粗线:DRAWLINE(XX,L,VV,L,1),COLORFFFFFF,LINETHICK2,DOTLINE;
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
浪顶细线:DRAWLINE(XX2,H,VV2,H,1),COLORFFFF00,LINETHICK1,DOTLINE;
N:=WEEKDAY;
AA:=REF(H,N)=HHV(H,2*N+1);
AA1:=REF(L,N)=LLV(L,2*N+1);
QY:=BACKSET(AA,N+1);
QY1:=BACKSET(AA1,N+1);
CC:=FILTER(QY,N) AND H=HHV(H,N+1);
CC1:=FILTER(QY1,N) AND L=LLV(L,N+1);
DDD:=BARSLAST(CC);
DD1:=BARSLAST(CC1);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
GDCS1:=CONST(DINGBUTS);
DDCS1:=CONST(DDTS1);
GDCS13:=CONST(REF(HIGH,GDCS1-1));
DDCS13:=CONST(REF(L,DDCS1-1));
DINGBUTS1:=REF(DINGBUTS,DDD+1);
DDTS2:=REF(DDTS1,DD1+1);
GDCS2:=CONST(DINGBUTS1);
DDCS2:=CONST(DDTS2);
GDCS23:=CONST(REF(HIGH,DINGBUTS1-1));
DDCS23:=CONST(REF(L,DDTS2-1));
XG1:=BACKSET(ISLASTBAR,GDCS1);
XD1:=BACKSET(ISLASTBAR,DDCS1);
XG2:=BACKSET(ISLASTBAR,DINGBUTS1);
XD2:=BACKSET(ISLASTBAR,DDTS2);
EXP1:=EMA(CLOSE, 12), COLORYELLOW, LINETHICK1;
EXP2:=EMA(CLOSE, 47), COLORLIMAGENTA, LINETHICK1;
STICKLINE(C>EXP1 AND C>EXP2, H, L, 0, 0), COLORRED;{上下影线,可不画}
STICKLINE(C>EXP1 AND C>EXP2 AND C>=O, O, C, 2.3, 1), COLORRED;
STICKLINE(C>EXP1 AND C>EXP2 AND C
STICKLINE(C
STICKLINE(C
STICKLINE(C>EXP1 AND C
STICKLINE(C
STICKLINE(XG2,GDCS23,GDCS23,2,0),COLORFF8000;
STICKLINE(XG1,GDCS13,GDCS13,2,0),COLORYELLOW;
STICKLINE(XD2,DDCS23,DDCS23,2,0),COLORGRAY;
STICKLINE(XD1,DDCS13,DDCS13,2,0),COLORCYAN;
{股民学院 整理}
3、获利盘副图 筹码分布,筹码类公式
{获利盘副图 筹码分布}
当前获利:=WINNER(C)*100,COLORBROWN,STICK,NODRAW; {当前获利}
赚10%:WINNER(C/1.1)*100,LINETHICK0;
赚20%:WINNER(C/1.2)*100,NODRAW,COLORBROWN;
赚30%:WINNER(C/1.3)*100,NODRAW,COLORBROWN;
R10:= 当前获利- 赚10%;
STICKLINE(1,当前获利, 赚10%,-1,0)COLORBROWN,NODRAW;
STICKLINE(1,赚10%,赚20%,-0.5,1)COLORBROWN;
STICKLINE(1,赚20%,赚30%,-0.5,1),COLORLIGRAY;
STICKLINE(1,赚30%,0,-0.5,1),COLOR9900EE;
当前价获利盘%:当前获利,COLORBROWN,LINETHICK1,NODRAW;
当日获利套牢:当前获利-REF(当前获利,1),NODRAW;
{0,COLOR000000,NODRAW;}
近5日获利比例:LWINNER(5,C)*100,COLORBROWN,NODRAW;{洗盘结束5日获利盘为0};
区间集中度:(WINNER(C*(1+0.05))-WINNER(C*(1-0.05)))*100,NODRAW;
{12.5,COLORYELLOW,LINETHICK1,POINTDOT; }
LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),7.1,1)/SMA(ABS(CLOSE-LC),7.1,1)*100,COLORFF937F,COLORBROWN,DOTLINE,LINETHICK0;
黄买:FILTER((REF(CLOSE,2)
黄卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);
STICKLINE(黄卖,100,82,10,1),COLORYELLOW;
红买:FILTER(CROSS(RSI,11),7),COLORRED;
STICKLINE(红买,0,12,6,1),COLORRED;
红卖:=FILTER(CROSS(89,RSI),7);
STICKLINE(红卖,100,88,6,1),COLORRED;
绿买:FILTER(CROSS(RSI,20),7),COLOR00FF00;
STICKLINE(绿买,0,6,6,1),COLOR00FF00;
绿卖:=FILTER(CROSS(80,RSI),7);
STICKLINE(绿卖,100,94,6,1),COLOR00FF00;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORRED,LINETHICK1;
D:SMA(K,3,1),COLORWHITE,LINETHICK1;
IF(COUNT(K>80,3)=3,80,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK6;
IF(COUNT(K<20,3)=3,20,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK6;
WVR := SUM((IF(CLOSE>OPEN,VOL,0)+IF(CLOSE=OPEN,VOL/2,0)),26)/SUM((IF(CLOSE
WRSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
N:=6;
TYP:=AMOUNT/VOL/100;
V1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),14)/SUM(IF(TYPMFI:=100-(100/(1+V1));
V2:=EMA(V1,144);
V3:(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,COLORBROWN,LINETHICK0;
卖出:-1*IF((CROSS(98.5,V3) AND V1>V2) AND COUNT(V3>97,3)=2,10,0)+80,COLORWHITE,DOTLINE;
买入:IF(CROSS(V3,5) AND V1
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建仓区: IF((VARO7<10),80,100) ,COLORCYAN,LINETHICK1,DOTLINE;
0,LINETHICK2 ,COLORBROWN;
VAR22:=REF(LOW,1);
VAR23:=((SMA(ABS((LOW - VAR22)),3,1) / SMA(MAX((LOW - VAR22),0),3,1)) * 100);
VAR24:=EMA(IF((CLOSE * 1.2),(VAR23 * 10),(VAR23 / 10)),3);
VAR25:=LLV(LOW,38);
VAR26:=HHV(VAR24,38);
VAR27:=IF(LLV(LOW,90),1,0);
VAR28:=((EMA(IF((LOW <= VAR25),((VAR24 + (VAR26 * 2)) / 2),0),3) / 618) * VAR27);
动态底部:EMA(IF(L<= LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0),3)*5,STICK,COLORRED,LINETHICK3;