请教各位高手,在通达信软件中如何将以下两个条件合并成一个选股公式,谢谢!!!

2024-11-29 07:39:58
推荐回答(1个)
回答1:

30日内最低价的最低值:
T1:=LLV(REF(LOW,1),30)=LLV(REF(LOW,1),1) AND BARSCOUNT(CLOSE)>=30;
今天的收盘价在T1的+-10%
T2:=CLOSE<=T1*1.1 AND CLOSE>=T1*0.9;
MACD不创新低
T3:=MACD>REF(MACD,1);
综合条件选股
XG:T1 AND T2 AND T3;
公式如下:
T1:=LLV(REF(LOW,1),30)=LLV(REF(LOW,1),1) AND BARSCOUNT(CLOSE)>=30;
T2:=CLOSE<=T1*1.1 AND CLOSE>=T1*0.9;
T3:=MACD.macd>REF(MACD.macd,1);
XG:T1 AND T2 AND T3;