n:=5;n1:=8;n2:=13;n3:=21;lc :=ref(close,1);rsi1:=sma(max(close-lc,0),n1,1)/sma(abs(close-lc),n1,1)*100;{未来函数,慎用}ty:=rsi1;{通用曲线值的引入}aa2:=ref(ty,n)=llv(ty,2*n+1);bb2:=backset(aa2,n+1);cc2:=filter(bb2,n) and ty=llv(ty,n+1);aa:=ref(ty,n)=hhv(ty,2*n+1);bb:=backset(aa,n+1);cc:=filter(bb,n) and ty=hhv(ty,n+1);gg:=**lastbar and ref(cc,barslast(cc));hh:=backset(gg,barslast(cc)+1);ii:=hh>ref(hh,1);jj:=ref(barslast(cc),1);kk:=backset(ii,jj+2);ll:=kk>ref(kk,1);cs:=(ref(ty,barslast(ii))-ref(ty,barslast(ll)))/(barslast(ll)-barslast(ii));阻力线:=ref(ty,barslast(ii))+barslast(ii)*cs;xg:cc2 or cross(ty,阻力线); 20210311
var1:=close>ref(close,1) and close>ref(close,2);var2:=ref(var1,1) and close<=ref(close,1) and close>=ref(close,2);var3:=ref(var2,1) and close>=ref(close,1) and close<=ref(close,2);va...
var17:=zig(3,72)>ref(zig(3,72),1) and ref(zig(3,72),1)<=ref(zig(3,72),2) and ref(zig(3,72),2)<=ref(zig(3,72),3);var18:=zig(3,72)<ref(zig(3,72),1) and ref(zig(3,72),1)>=ref(zig(3,72),2) ...
{红箭头选股}n1:=7;lc:=ref(close,1);x:=sma(max(close-lc,0),n1,1)/sma(abs(close-lc),n1,1)*100;魔鬼:=drawline(x>=hhv(x,n1),x,x<=llv(x,n1),x,1);tj1:=x=魔鬼;tj2:=x<ref(x,1);jrs1:=tj1 and tj2;filter(jrs1>...
ma5:=ma(close,5);ma15:=ma(close,15);ma30:=ma(close,30);离散量30:=100*(ma5-(ma15+ma30)/2)/ma30;var4:=if(离散量30<-5 and ref(离散量30,2)>ref(离散量30,1) and 离散量30>ref(离散量30,1),1,0);反弹:if(var4,1,0);祝:马年投资顺利...