h3:=hhv(h,3);l3:=llv(l,3);ma5:=ma(c,5);ma10:=ma(c,10);zf10:=abs(c-ma10)/ma10*100<3;zf5:=abs(c-ma5)/ma5*100<3;no:=c<ma5 or c<ma10;x1:if(no and (zf5 or zf10),1,0);xh3:if(no and abs(c-h3)/h3*100<3,1,0);xl3:if(no and abs(c-l3)/l3*100<3,1,0); 已在通达信软件中通过测试,希望能够帮助您。顺祝马年投资顺利! 20210311
大阴线的定义是低于开盘价多少?定义为n,自行修改参数。多长时间修复?定义为m,自行修改参数。t1:=o/ref(close,1)>=1.06;t2:=close/o<=1-n/100;t3:=barslast(t1 and t2);t4:=close>ref(o,t3);xg:t3<=m and t4;