a1:=c>ref(c,4);a2:=c(c,4);t1:=a2 and ref(a1,1);t2:=a2 and ref(t1,1);t3:=a2 and ref(t2,1);t4:=a2 and ref(t3,1);t5:=a2 and ref(t4,1);xg:a2 and ref(t5,1); 20210311
{假设阴线幅度>7%,根据需要修改} dyx:=(c-o)/ref(c,1)*100;days:=barslast(dyx);mid:=(ref(c,days)+ref(o,days))/2;欲反包:days>1 and days< 5 and c >mid and count(c>mid,days)=1;
神仙大趋势h1:=ema(close,6),colorwhite; h2:=ema(神仙大趋势h1,18),colorgreen; h3:=ema(close,108),coloryellow;cross(神仙大趋势h1,max(h2,h3)) or (神仙大趋势h1>max(h2,h3) and ref(c,1)<ref(c,2) and c>ref(max(c,o),1));
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,9,1);d:=sma(k,9,1);j:=3*k-2*d;x2:=llv(j,2)=llv(j,8);红十字:cross(j,ref(j+0.01,1))and x2 and j;经典rl:=(close-llv(low,9))/(hhv(high,9)-llv(low...