{老鸭回头1- 优选 选股 - 优选 已包含 买 在内}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA120:=SMA(C,120,1);
ZH520:=ABS(MA5-MA20)/MA20*100
ZH530:=ABS(MA5-MA30)/MA30*100
QSXS1:=MA5 REF(MA5,1);
QSXS2:=MA20 REF(MA20,1);
QSXS3:=MA30 REF(MA30,1);
DTPL:=MA20 MA30 AND MA30 MA120;
LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)
GJHS:=C MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C REF(C,3));
LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT;
买:=LYKK AND NOT(REF(LYKK,1));
优选:买 AND COUNT((MA10 MA20),5)=5;
==============================================
{跟庄建仓-选股}
VAR3:=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(VAR3,3)-10;
VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;
买入:FILTER((趋势 =13 AND VAR4 13),10);
=============================================
{黑马出现-选股}
VAR5:=EMA(SMA((CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100,8,1),3);
选股:CROSS(VAR5,15) OR CROSS(VAR5,20) OR CROSS(VAR5,25);
==========================================
{短线强弱}{N:(1,10,3)}
UP:=SMA(IF(CLOSE REF(CLOSE,1), CLOSE-REF(CLOSE,1),0),N,1);
DN:=SMA(IF (CLOSE =REF(CLOSE,1),ABS(CLOSE-REF(CLOSE,1)),0),N,1);
指标:=100*UP/(UP+DN);
强弱:=EMA(指标,3),COLORRED;
平均:=EMA(强弱,3),COLORGREEN;
买进:CROSS(强弱,平均);
==========================================
{均线量线}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
MACD1:=CROSS(DIFF,DEA) AND COUNT(MACD 0,1)=1;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:=3*K-2*D;
KDJ1:=CROSS(K,D) AND CROSS(J,D);
均线:=CROSS(MA(C,5),MA(C,10));
量线:=CROSS(MA(V,5),MA(V,10));
SCC:=MACD1 AND KDJ1 AND 均线 AND 量线;
SC1:=MACD1 AND KDJ1;
SC2:=均线 AND 量线;
SC3:=均线 AND MACD1;
SC4:=量线 AND KDJ1;
SC5:=均线 AND KDJ1;
SC6:=MACD1 AND 量线;
SCC OR SC1 OR SC2 OR SC3 OR SC4 OR SC5 OR SC6;
=======================================
{两阳夹一阴}
Y1:=C
Y2:=C
两阳夹一阴:REF(Y1,2) AND REF(Y2,1) AND Y1;
======================================
{45度选股}
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
选股:FILTER(BB13 1 AND EMA(X1,13) REF(EMA(X1,8),1),10);
========================================
{周线MACD}
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,27);
MACD := 2*(DIFF-DEA);
DIFF 0 AND DEA 0 AND CROSS(DIFF,DEA) AND VOL MA(VOL,5) AND MA(VOL,5) MA(VOL,34) AND MA(C,30) =REF(MA(C,30),1);
==========================================
{与庄争锋1 P(1,10,5)}
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*125;
VAR3:=MA(CLOSE,15);
VAR2 78 AND SUM(VOL/CAPITAL,15)*125 =8 AND CLOSE/LLV(CLOSE,120) =1.2 AND (CLOSE-LLV(CLOSE,15))/LLV(CLOSE,15) =0.12 AND CLOSE/OPEN 1.02 AND CLOSE VAR3;
=============================================
{与庄争锋3}
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*125;
VAR3:=SMA(MAX(CLOSE-VAR1,0),10,1)/SMA(ABS(CLOSE-VAR1),10,1)*125;
VAR4:=MA(CLOSE,10);
VAR5:=MA(CLOSE,20);
VAR2 80 AND VAR3 78 AND SUM(VOL/CAPITAL,10)*125 =10 AND CLOSE/LLV(CLOSE,120) =1.2 AND (CLOSE-LLV(CLOSE,15))/LLV(CLOSE,15) =0.12 AND CLOSE/OPEN 1.02 AND VAR4 VAR5;
=============================================
{与庄争锋4 }
VAR1:=MA((LLV(LOW,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*100,5);
VAR2:=CROSS(-6,VAR1);
COUNT(VAR2,10) 0 AND MA(VOL,5)/MA(VOL,30) =2 AND CROSS(MA(CLOSE,10),MA(CLOSE,20));
================================================
{四方力道}
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
HY1:=REF(EMA(V1,3),1);
杀:CROSS(CLOSE,HY1);
================================================
{关注买 N=30,M=60}
散户线:= 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
关注买:FILTER(J REF(J,1)AND 走势 =REF(走势,1)AND 走势 25 ,5);
============================================
{散户看盘}
{M: 3,100,60}
{N: 3,100,30}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
XG:FILTER(J REF(J,1)AND 走势 =REF(走势,1)AND 走势 25 ,5);
============================================
{股经叠彩线}
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
HJX3:=(3*A+2*REF(A,1)+REF(A,2))/6;
DC1:=EMA(HJX3,4);
DC2:=EMA(DC1,3);
选股: CROSS(DC1,DC2);
========================================
{低位金叉}
SHORT:=12;
LONG:=26;
M:=9;
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
低位金叉选股:CROSS(DIFF,DEA) AND DIFF -0.1;
======================================
{散户主力}
VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));
VAR28:=SMA(VAR26,3,1);
散户:=SMA(VAR28,3,1);
主力:=SMA(散户,3,1);
CROSS(散户,主力);
======================================
{黑马选股}
SMA(CLOSE,2,1)-SMA(HIGH,21,2)*1.05
========================================
{均线粘合 N:3,1,10定义N在1~10内,默认为3}
{5、10、20、30天均线粘合}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
T1:=MAX(MA5,MA10);
T2:=MAX(MA20,MA30);
T3:=MIN(MA5,MA10);
T4:=MIN(MA20,MA30);
T5:=MAX(T1,T2);
T6:=MIN(T3,T4);
F1:=T5/T6 1.05;
{30天均线微向上翘,暂定角度小于30}
{设N天内30日线向上,N暂定=3}
T7:=(MA30-REF(MA30,N))/N;
F2:=T7 0 AND T7 1.732;
{MACD在0轴附近金叉或即将金叉}
T8:=ABS( MACD.MACD (12,26,9)) 0.08;
T9:=CROSS( MACD.DIF (12,26,9), MACD.DEA (12,26,9)) OR (( MACD.DEA (12,26,9)- MACD.DIF (12,26,9)) 0 AND ( MACD.DEA (12,26,9)- MACD.DIF (12,26,9)) 0.05);
F1 AND F2 AND T8 AND T9;
==================================================
{CCI普选 M(2,100,14)}
M30:=MA(C,30);
TYP:= (HIGH + LOW + CLOSE)/3;
CCI:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
选股:(CROSS(CCI,-200) OR CROSS(CCI,-150) OR CROSS(CCI,-100) OR CROSS(CCI,0))
AND M30 REF(M30,1);
==================================================
{粘合出击----创幻论坛一品茶缘编写,副图指标}
{N1:1,100,5;N2:1,100,10;N3:1,100,20;}
MA1:=MA(C,N1);
MA2:=MA(C,N2);
MA3:=MA(C,N3);
MA30:=MA(C,30);
GX:=MAX(MA1,MAX(MA2,MA3));
DX:=MIN(MA1,MIN(MA2,MA3));
QSXS:=DX MA30 AND MA30 REF(MA30,1);
均线粘合:=IF(ABS(GX/DX-1)*100 =3,1,0);
FL:=V REF(V,1) OR V MA(V,5);
SZ:=(CROSS(C,MA(C,3)) OR CROSS(C,MA(C,5))) AND C
放量上涨:=IF(FL AND SZ,1,0);
果断出击:FILTER(COUNT(均线粘合,2) AND COUNT(放量上涨,2) AND C O AND QSXS,2)*100;
九毛八公式指标,一个优质的公式指标平台!
九毛八公式指标 »
通达信条件选股公式十
加入收藏