通达信选股编程求教! 选出如下条件: 1、收盘价位于5日线上; 2、OBV上涨; 3、MACD零轴上方金叉;
发布网友
发布时间:2022-04-25 15:52
我来回答
共2个回答
热心网友
时间:2023-10-14 20:27
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
QR:=DEA>0 AND DEA>0 AND CROSS(DEA,DEA);
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,30);
QR1:=OBV>REF(OBV,1) AND MAOBV>REF(MAOBV,1) AND OBV>MAOBV;
QR1 AND C>MA(CLOSE,5) AND QR;
热心网友
时间:2023-10-14 20:27
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
PDA:=DIF>=DEA AND DEA>=0;
VA:=IF(C>REF(C,1),VOL,-VOL);
OBV:=SUM(IF(C=REF(C,1),0,VA),0);
PDB:=OBV>REF(OBV,1);
PDC:=C>MA(C,5);
PDA AND PDB AND PDC;