{突破前期大阴线实顶}大阴线:=(o-c)/o*100>7;{当天收盘价相对当天开盘价下跌7%以上,自己可以将7改为自己想的数字}t:=barslast(大阴线);阴线实顶:=ref(o,t);x1:=ref(hhv(h,t),1);x2:=x1<阴线实顶;x3:=c>阴线实顶;x:x2*x3 and t>1; 20210311
ma10:=ma(close,10);ma20:=ma(close,20);t1:=cross(close,ma20);t2:=low/ma10>=0.98 or low/ma10<=1.02;t3:=barslast(t1)<=5;xg:t2 and t3;注:突破20日均线的时间设为前5天内有突破信号。
n:=7;n1:=2;n2:=8;下轨:=(n-llvbars(h,n))/n*100;lc:=ref(close,1);rsi1:=sma(max(close-lc,0),n1,1)/sma(abs(close-lc),n1,1)*100;rsi2:=sma(max(close-lc,0),n2,1)/sma(abs(close-lc),n2,1)*100;l<下轨 and c>下轨...