一、炒股一招鮮系列之 ——“一三買入法”
選股源碼:
{炒股一招鮮系列之 ——“一三買入法”。
公式分析:三根陰線量遞減,然后出線了一根陽線}
三連陰AST(C<O,3,0);
三縮量AST(VOL<REF(VOL,1),3,0);
選股:REF(三連陰,1)>0 AND REF(三縮量,1)>0 AND O<C;
二 . DMI系列
1、炒股一招鮮系列之二——DMI捕捉爆漲股
選股源碼:
{1.炒股一招鮮系列之二——DMI捕捉爆漲股
公式分析:PDI上穿三線,并且漲幅大于5%,并且成交量大于昨日}
TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),7,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),7,1);
+DI:=DMP*100/TR;
-DI:=DMM*100/TR;
ADX:=SMA(ABS(-DI-+DI)/(-DI++DI)*100,7,1);
ADXR:=(ADX+REF(ADX,6))/2;
CROSS(+DI,-DI) AND CROSS(+DI,ADX) AND
CROSS(+DI,ADXR) AND C>REF(C,1)*1.05 AND VOL>REF(VOL,1);
2、炒股一招鮮系列之二——DMI穿一陽三線選股
選股源碼:
{2.炒股一招鮮系列之二——DMI穿一陽三線選股}
TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),7,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),7,1);
+DI:=DMP*100/TR;
-DI:=DMM*100/TR;
ADX:=SMA(ABS(-DI-+DI)/(-DI++DI)*100,7,1);
ADXR:=(ADX+REF(ADX,6))/2;
選股CROSS(+DI,-DI)AND CROSS(+DI,ADX)AND CROSS(+DI,ADXR))AND CLOSE>OPEN
AND C/REF(C,1)>0.5 AND VOL>MA(VOL,5)*1.5;
{錢龍DMI+穿一陽三線副圖---龍帝國}
TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),7,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),7,1);
+DIMP*100/TR;
-DIMM*100/TR;
ADX:SMA(ABS(-DI-+DI)/(-DI++DI)*100,7,1);
ADXRADX+REF(ADX,6))/2;
條件:=(CROSS(+DI,-DI)AND CROSS(+DI,ADX)AND CROSS(+DI,ADXR))AND CLOSE>OPEN
AND C/REF(C,1)>0.5 AND VOL>MA(VOL,5)*1.5;
買入:IF(條件,10,0),COLORRED,LINETHICK3;
{2.1炒股一招鮮系列之二——DMI捕捉爆漲股
公式分析:PDI上穿三線,并且漲幅大于5%,并且成交量大于昨日}
{CROSS("DMI.PDI","DMI.MDI") AND CROSS("DMI.PDI","DMI.ADX") AND
CROSS("DMI.PDI","DMI.ADXR") AND C>REF(C,1)*1.05 AND VOL>REF(VOL,1);}
2.2
{2.2 DMI+穿一陽三線選股}
N:=14;
M:=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;
MDI:=DMM*100/TR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=EXPMEMA(ADX,M);
買點CROSS(PDI, MDI)AND CROSS(PDI, ADX)AND CROSS(PDI, ADXR))AND CLOSE>OPEN
AND C/REF(C,1)>0.5 AND VOL>MA(VOL,5)*1.5,COLORRED,LINETHICK3;