以下是通达信条件预警(附源码解释 说明 源码)
H1:=DYNAINFO(7)>5 AND DYNAINFO(7)<20;{股价取5至20元}
H2:= CAPITAL/1000000<3; {流通盘3亿}
BBI1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI1+3*STD(BBI1,10);
DWN:=BBI1-3*STD(BBI1,10);
H3:=(UPR-DWN)<BBI1/10 AND UPR>REF(UPR,1) ;{股价在开口喇叭}
A:=MA(CLOSE,60);
B:=MA(CLOSE,120);
C1:=CLOSE>A AND CLOSE>B;{股价取2+3区间}
D:="OBV.OBV";
D1:=D>REF(HHV(D,30),1);{股价OBV创新高,说明资金青睐}
E1:="MACD.DIF";
E2:="MACD.DEA";
F:=E1>0 AND E1>E2 AND E1>REF(E1,1);{股价MACD零上说明环境安全}
预警:C1 AND D1 AND F AND H1 AND H2 AND H3;