l1:= ref(c,2)>ref(o,2) and ref(c,1)<ref(o,1) and c<o and (ref(o,1)-ref(c,1))/ref(o,1)>0.03 and ref(o,1)/ref(c,1)>o/c;l2:= ref(v,2)>ref(v,1) and ref(v,2)>v;l3:= ref(c,2)>ref...
n1:=5;n2:=9;nmtm:=c-ref(c,1);zlgj:=100*ema(ema(nmtm,n1),n1)/ema(ema(abs(nmtm),n1),n1);t1:=ref(zlgj,1)<=zlgj;xg:t1=1 and ref(t1,1)=0 and zlgj<0;信号较多,帮你优化了一下。
a1:=ma(c,5);a2:=ma(c,8);a3:=ma(c,13);a4:=ma(c,21);a5:=ma(c,60);a6:=c>a1 and c>a2 and c>a3 and c>a4 and c>a5;{今收盘在各均线之上}a7:=ref(l,2)>ref(h,3) and ref(l,1)>ref(h,3) and l>ref(h,3...
diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);sx:=barslast(cross(dea,diff))+1;jx:=barslast(cross(diff,dea))+1;t1:=if(jx=1 and diff>ref(diff,ref(jx,1)+1),1,0);t2:=if(jx=1 and...
{主图}t1:=ma(c,15);if(c>=t1 and t1>=ref(t1,1),t1,draw**),colorred;if(c<t1 or t1<ref(t1,1),t1,draw**),colorgreen;stickline(c>=t1 and t1>=ref(t1,1),c,h,0,0),colorred;stickline(c>=t1 a...