{安全买点信号}var2:=((((2*close)+high)+low) / 4);var4:=llv(low,5);var5:=hhv(high,4);c1:=ema((((var2-var4)/(var5-var4))*100),4);c2:=ema(((0.667*ref(c1,1))+(0.333*c1)),2);安全买点:cross(c1,c2) and ref(c1,1)<20;{买信号}var2:=((((2*close)+high)+low) / 4);var4:=llv(low,5);var5:=hhv(high,4);c1:=ema((((var2-var4)/(var5-var4))*100),4);c2:=ema(((0.667*ref(c1,1))+(0.333*c1)),2);买:cross(c1,c2) and c1<40; 20210311
主力:=ema((close-ma(close,7))/ma(close,7)*480,2),linethick2,colorred;散户:=ema((close-ma(close,11))/ma(close,11)*480,7),linethick2,colorwhite;cross(主力,散户) and 主力<-10 and dyna**(17)>0;公式已测试通过!希望能够帮助你...
var2:=trou**ars(3,15,1)<10;var3:=peakbars(3,15,1)<10;var4:=if(var2=1,50,0);var5:=if(var3=1,50,0);底部:=if(var4=50,10,0);买入:=if(底部=10 and ref(底部,1)=10 and ref(底部,2)=0,50,0);选股:买入=50;