求通达信选股公式
这是你说的意思的指标公式
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF>REF(DIF,1) AND DIF>DEA AND DIF>0,DIF,DRAWNULL),COLORRED,LINETHICK2;
IF(DIF<REF(DIF,1) AND DIF>DEA AND DIF>0,DIF,DRAWNULL),COLORGREEN,LINETHICK2;
X1:=DIF>0 AND DIF>REF(DIF,1) AND DIF>DEA;
X2:=DIF<REF(DIF,1) AND DIF>0 AND MACD<REF(MACD,1) AND DIF>DEA;
DRAWTEXT((REF(BARSLAST(X1 AND REF(X1,1)=0)<BARSLAST(CROSS(V,MA(V,50))),1)=1 AND REF(V<MA(V,50),BARSLAST(X1 AND REF(X1,1)=0)) AND CROSS(V,MA(V,50))) OR (X1 AND REF(X1,1)=0 AND V>MA(V,50)),DIF*1.1,'买')COLORYELLOW;
DRAWTEXT(X2 AND REF(X2,1)=0,DIF*1.1,'卖')COLORWHITE;
下面是条件选公式
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
X1:=DIF>0 AND DIF>REF(DIF,1) AND DIF>DEA;
XG:(REF(BARSLAST(X1 AND REF(X1,1)=0)<BARSLAST(CROSS(V,MA(V,50))),1)=1 AND REF(V<MA(V,50),BARSLAST(X1 AND REF(X1,1)=0)) AND CROSS(V,MA(V,50))) OR (X1 AND REF(X1,1)=0 AND V>MA(V,50));
指标
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
IF(DIFREF(DIF,1);
X2:=DIFMA(V,50)),DIF*1.1,'买')COLORYELLOW;
DRAWTEXT(X2 AND REF(X2,1)=0,DIF*1.1,'卖')COLORWHITE;
选股
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
IF(DIFREF(DIF,1);
XG:(REF(BARSLAST(X1 AND REF(X1,1)=0)MA(V,50));