在條件選股里面新建一個公式,代碼如下:
variable:n=0;
if 條件滿足 then n:=n+1;
nn:=barslast(n=0);
nn<55 and n=4;
然后用 工具 條件選股 選擇出滿足要求的合約