dif:=ema(dclose,12)-ema(dclose,26);dea:=ema(dif,9);aaa:=(dif-dea)*2*60;起爆:=cross(aaa-ref(aaa,1),15);n:=20;m:=32;p1:=80;p2:=100;var1:=(c+h+o+l)/4;买入:=xma(var1,m)*(1-p2/1000);xg:起爆 and drawtext(cross(lo...
qw1:=(high+low+close*2)/4;qw3:=ema(qw1,10);qw4:=std(qw1,10);qw5:=(qw1-qw3)*100/qw4;qw6:=ema(qw5,5);涨:=ema(qw6,10)+100/2-5;跌:=ema(涨,4); xg:(cross(涨,跌) and 涨<-7) or (cross(涨,跌) and 涨<-60);
买线:=zig(3,10); 卖线:=ma(买线,3); bu:=cross(买线,卖线); sel:=cross(卖线,买线); bu or sel;{如此选的股是有买入、卖出二个信号的股全选出来了;如只要选买入的,就在最后一行删去 or sel就行了;如只要选卖出的,就在最后一行删去 bu or 就行了。注:这公式的源码指标使用了未来函数zig}