O1:=REF(O#WEEK,WEEKDAY);{上周开盘价}
C1:=REF(C#WEEK,WEEKDAY);{上周收盘价}
O2:=REF(O1,WEEKDAY);{上上周开盘价}
C2:=REF(C1,WEEKDAY);{上上周收盘价}
HH:=C1<O1 AND C2<O2;
AA:=REF(L,1)<REF(L,2) AND REF(L,2)<REF(L,3) AND REF(L,3)<REF(L,4);{双低3天}
BB:=REF(C,1)<REF(C,2) AND REF(C,2)<REF(C,3) AND REF(C,3)<REF(C,4);{连跌3天}
CC:=H>REF(H,1) AND C>REF(C,1);{2高}
DD:=(H-L)/REF(C,1)*100>=3;{振幅>=3%}
EE:=C/REF(C,1)<=1.03;{涨幅<=3%}
FF:=C>=5 AND C<=50;{5元和50元之间}
GG:=IF(INBLOCK('科创板'),0,1);{去科创板}
XG:AA AND BB AND CC AND DD AND EE AND FF AND GG AND HH;
九毛八公式解读
O1赋值:星期日前的开盘价[取周线数据] C1赋值:星期日前的收盘价[取周线数据] O2赋值:星期日前的O1 C2赋值:星期日前的C1 HH赋值:C11日前的最高价 AND 收盘价>1日前的收盘价 DD赋值:(最高价-最低价)/1日前的收盘价*100>=3 EE赋值:收盘价/1日前的收盘价<=1.03 FF赋值:收盘价>=5 AND 收盘价<=50 GG赋值:如果属于某板块,返回0,否则返回1 输出XG:AA AND BB AND CC AND DD AND EE AND FF AND GG AND HH