NO.1:源码如下;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
极品底:(CROSS(BIAS,乖离) AND 乖离<-9),COLORRED;
STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9,10,0,5,0),COLORRED;
底:IF((MA(C,5)-C)/C>0.03 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.03,23,0),LINETHICK2,COLORFF00FF;
DRAWICON(底=23,23,1),LINETHICK2,COLORFFFFFF;
RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,3,1);
趋势J1:=3*K-2*D;
趋势J2:=EMA(K,3);
WH:=DRAWLINE(D>=HHV(D,21),D,D<=LLV(D,21),D,1);
短底:(CROSS(趋势J1,WH) AND CROSS(趋势J2,WH))*20,COLORYELLOW;
逆市英雄:CROSS(MA(C,20),MA(C,5));
NO.2:源码如下;
{N:2 90 14;M:2 60 6}
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
PDI:= DMP*100/TR,COLORFFFFFF;
MDI:= DMM*100/TR,COLOR00FFFF;
ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;
ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;
{一,MDI必须在下方,PDI在下方无效,二、PDI趋势向上。三、必须在PDI及MDI中间金叉 }
DYNAINFO(9)>0 AND CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1)
AND BETWEEN(ADXR,MDI,PDI) AND ADX>REF(ADX,1) AND ADXR>REF(ADXR,1);
TR1:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD1 :=HIGH-REF(HIGH,1);
LD1 :=REF(LOW,1)-LOW;
DMP1:=EXPMEMA(IF(HD1>0&&HD>LD1,HD1,0),N);
DMM1:=EXPMEMA(IF(LD1>0&&LD>HD1,LD1,0),N);
PDI1:= DMP1*100/TR1,COLORFFFFFF;
MDI1:= DMM1*100/TR1,COLOR00FFFF;
ADX1:= EXPMEMA(ABS(MDI1-PDI1)/(MDI1+PDI1)*100,M),COLOR0000FF,LINETHICK2;
ADXR1:=EXPMEMA(ADX1,M),COLOR00FF00,LINETHICK2;
DYNAINFO(9)>0 AND CROSS(ADX1,MDI1) AND CROSS(ADXR1,MDI1) AND PDI1>MDI1;
NO.3:源码如下;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:FILTER((LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2))),5);
NO.4:源码如下;
MA60:=MA(C,60);
UU:=1,VOL=LLV(VOL,34) AND MA60>REF(MA60,1);{34日内最小的量};
TJ:1,REF(VOL,1)=LLV(VOL,34) AND MA60>REF(MA60,1),COLORRED,LINETHICK3;
NO.5:源码如下;
逆市英雄:CROSS(MA(C,20),MA(C,5));
NO.6:源码如下;
{RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
选股:(D>REF(D,1))AND (J>REF(J,1))AND CROSS(J ,20 )AND (C>MA(C,5));}
{第二个}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M,1);
D:=SMA(K,M1,1);
J:=3*K-2*D;
选股:(CROSS(J ,20 ));
NO.7:源码如下;
Q_1:=C-REF(C,1);
Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);
Q_3:=CROSS(EMA(C,19),EMA(C,7));
Q_4:=CROSS(EMA(C,7),EMA(C,19));
Z1:=L=LLV(L,BARSLAST(Q_3)+1);
Z2:=LLV(L,BARSLAST(Q_3)+1);
Z3:=H=HHV(H,BARSLAST(Q_4)+1);
Z4:=HHV(H,BARSLAST(Q_4)+1);
Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);
Y1:=H=HHV(H,BARSLAST(Q_4)+1);
Y2:=HHV(H,BARSLAST(Q_4)+1);
Y3:=L=LLV(L,BARSLAST(Q_3)+1);
Y4:=LLV(L,BARSLAST(Q_3)+1);
Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);
X1:=LLV(Q_2,2)=LLV(Q_2,7) ;
X2:=COUNT(Q_2<0,2);
X3:=CROSS(Q_2,MA(Q_2,2));
X4:=REF(Q_B,1)<REF(Q_B,2);
X5:=Q_A>REF(Q_B,1);
买进:=(X1 AND X2 AND X3) AND X4 AND X5;
TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);
XXG:REF(TJ,1)=0 AND TJ>=1;
XG:=Q_B<REF(Q_B,1) AND Q_B=Q_A;
NO.8:源码如下;
{N日内地量之后放量选黑马 N :1 999 55}
MA13:=MA(C,13);
UU:=1,VOL<=LLV(VOL,N) AND MA13>REF(MA13,1);
TJ:=1,REF(VOL,1)<=LLV(VOL,N) AND MA13>REF(MA13,1),COLORRED,LINETHICK3;
FILTER((TJ=1),5),COLORYELLOW;
|