[转载]选股公式
突破年线选股公式:
cross(c,ma(c,250));
股价放量突破五天线选股公式:
cross(c,ma(c,5)) and vol>2*ma(vol,5);
三天不补缺选股公式 :
REF(LOW,2)>REF(HIGH,3) AND L>REF(LOW,2);
阳包阴选股:
V/REF(V,1)>1.5 AND REF(C,1)O AND C>REF(O,1) AND O<=REF(C,1);
上影选股1
H/REF(C,1)>1.05 AND C/REF(C,1)<=1.03 AND C/REF(C,1)>=1.01;
上影选股2
XG: H>MAX(C,O) AND (H-MAX(C,O))/MAX(C,O)>0.04
AND H=HHV(H,20)
AND V/REF(V,1)>1.5;
高开放量假阴线选股:
一:OPEN>REF(CLOSE,1)*1.03 AND CLOSE>REF(CLOSE,1) AND OPEN>CLOSE;
假阴线选股:
C>REF(MAX(C,O),1) AND C
远征选股:
TR1:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),14,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),14,1);
PDI:=DMP*100/TR1;
PDI差:=PDI-REF(PDI,1);
MDI:=DMM*100/TR1 ;
ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,14,1);
RADX:=REF(ADX,1);
ADX差:=ADX-RADX;
DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1);
LC:= REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
PDI差>2 AND ADX差>0.8 AND DEA1>0 AND CROSS(DIF1,DEA1){ AND REF(RSI,1)<50}
AND RSI>50 AND DYNAINFO(58)>0;
一阳带两星:
XG:(REF(C,3)-REF(C,4))/REF(C,3)>0.05 AND COUNT((H-1)/1<0.05,2)=2;
三金叉:
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
AA:=CROSS(MA1,MA2);
AAA:=COUNT(AA,3)>=1;
T1:=MA(VOL,5);
T2:=MA(VOL,10);
BB:=CROSS(T1,T2);
BBB:=COUNT(BB,3)>=1;
DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
CC:=CROSS(DIF,DEA);
CCC:=COUNT(CC,3)>=1;
三金:=AAA AND BBB AND CCC;
三金叉:FILTER(三金,3),COLORFF00FF;
三天内三金叉A1:=CROSS(MA(VOL,5),MA(VOL,10));
A2:=CROSS(MA(CLOSE,5),MA(CLOSE,10));
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
A3:=CROSS(DIFF,DEA) AND DEA>0;
五天十天二十天三线粘合
M1:=MA(C,5);
M2:=MA(C,10);
M3:=MA(C,20);
上:=MAX(M1,MAX(M2,M3));
下:=MIN(M1,MIN(M2,M3));
三线粘合:LLV((上-下)/下*100<0.5,3) AND M1>REF(M1,1);
股价在三十天线上运行,五天十天线粘合
BARSLASTCOUNT(ABS((MA(CLOSE,5)-MA(CLOSE,10)))*1000/MA(CLOSE,5)<=5
)>5 AND CLOSE>MA(CLOSE,30);
双回拉(三买)
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=REF(DIFF,1);
MACD:=2*(DIFF-DEA);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:CROSS(DIFF,DEA) AND DEA>0 AND COUNT(JCCOUNT=3,21)=1;
MACD上零轴
DIF大于0:CROSS(MACD.DIF(12,26,9),0);
MACD上零轴2
DIF金叉DEA:CROSS(MACD.DIF(12,26,9),MACD.DEA(12,26,9));