紫金神兽II 通达信副图/选股指标 源码 贴图 有未来函数
紫金神兽II 通达信副图/选股指标 源码 贴图 有未来函数
有未来函数,不喜绕道。
{紫金神兽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),1)) AND (REF(ZIG(3,5),1)>=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)<REF(ZIG(3,10),1)
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)<REF(ZIG(3,10),2);
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:=D<REF(D,5);
I:=(((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);{WWW.GPXIAZAI.COM}
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)<REF(REF(G,1),1)) AND(G<Z) AND (趋势线<8),1,0);
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次;