k1:=if(close>=ref(close,1),high-open+close-low+close-ref(close,1),high-open+close-low);k2:=if(close<=ref(close,1),open-low+high-close+ref(close,1)-close,open-low+high-close);dt:=vol*k1/(k1+k2);kt:=vol-dt;买量:=sum(dt,1);卖量:=sum(kt,1);能量:=ma(买量-卖量,5);ma5:=ma(ma(买量-卖量,5),5);ma10:=ma(ma(买量-卖量,5),10);ma20:=ma(ma(买量-卖量,5),20);a1:=barslast(ref(cross(ma5,ma10),1));底背离:=ref(close,a1+1)>close and ma5>ref(ma5,a1+1) and cross(ma5,ma10);xg:底背离; 20210311
你要的选来股公式代码如下源 n:=9;m1:=3;m2:=3;var1:=(high+low+close)/3;var2:=(var1-ma(var1,14))/(0.015***edev(var1,14));var3:=if(trou**ars(3,16,1)=0 and high>low+0.04,80,0);var4:=if(zig(3,22)>ref(zig(3,22),1)a...
修改好的立桩量:=vol=hhv(vol,40) and vol>1.9*ref(vol,1);立桩量三日突破:=if(barslast(立桩量)=1 and close>ref(high,1),1,if(barslast(立桩量)=2 and close>ref(high,2),1,if(barslast(立桩量)=3 and close>ref(high,3),1,0)...