买:=cross(macd.dif,macd.dea);ts0:=barslast(买);qj0:=if(买,ref(c,ref(ts0,1)),c);qdea:=if(买,ref(macd.dea,ref(ts0,1)),macd.dea);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;macd背离:买 and c<qj0 and macd.dea>qdea and j>d; 20210311
degree:=atan((ma(c,8)/ref(ma(c,8),1)-1)*100)*57.3;s:=45<=degree and c>ma(c,8);stickline(s and c>0,c,h,0.01,0),colorred;stickline(s and c>0,l,o,0.01,0),colorred;stickline(s and c>0,c,o,2...
副图:ma5:=ma(c,5);ma10:=ma(c,10);aa:=c>ma5 and c>ma10;bb:=ma10>ma5;cc:=ma5>ref(ma5,1);dd:=ref(every(ma10<=ref(ma10,1),3),1) and ma10>ref(ma10,1);ee:aa and bb and cc and dd;可以做为选股公式直接选出...
a:=every(ma(c,20)>ref(ma(c,20),1),13);b:=every(ma(c,30)>ref(ma(c,30),1),13);aa:=between(c,ma(c,5),ma(c,10));zf:=(h-l)/ref(c,1)*100<2;st:=(max(c,o)-min(c,o))/min(c,o)*100<1;xg:a and b and a...