1的公式是:count(close>ref(close,1),10)>7;2的公式是:high>max(o,c)*1.03 and low<min(open,close)*1.02 and close/ref(close,1)>1.06;hhv(high,3)=hhv(high,120);意思是3日内(只要在最近3天内的都可以)的最高价是120日的最高价;三天内=三天之中的任一天 20210311
x1:=finance(7)<=300000000 and dyna**(7)>5;x2:=macd.macd>ref(macd.macd,1) and macd.dif<macd.dea ;x1 and count(x2,3)=3 and macd.dif>=0;快要金叉是个模糊的概念,公式无法准确表达出来,所以只能用白线连续3天向上来表达。
你好,帮你编写了,希望能帮到你。rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;typ:=(high+low+close)/3;cci1:=(typ-ma(typ,14))/(0.015***edev(typ,14));条件选股:cross(k,d) and ...
根据题意,选股公式如下:dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;xg1:macd>0 and ref(macd,1)<0 and ref(macd,2)<0 and ref(macd,3)<0 and ref(macd,4)>0;