n 2 90 14mm 2 60 6mtr:=expmema(max(max(high-low,abs(high-ref(close,1))),abs(ref(close,1)-low)),n);hd :=high-ref(high,1);ld :=ref(low,1)-low;dmp:=expmema(if(hd>0&&hd>ld,hd,0),n);dmm:=expmema(if(ld>0&&ld>hd,ld,0),n);pdi:= dmp*100/mtr;mdi:= dmm*100/mtr;adx:= expmema(abs(mdi-pdi)/(mdi+pdi)*100,mm);adxr:=expmema(adx,mm);xg:pdi>mdi and pdi>adx and pdi>adxr;输出条件是:pdi>mdi and pdi>adx and pdi>adxr即pdi上穿三线。看复不复和你的要求? 20210311
当然可以ma5:=ma(c,5);ma10:=ma(c,10);a1:=cross(ma5,ma10);a2:=last(c>ma(c,60),5,0);{近期定义为五日}a3:=ma(c,60)>ref(ma(c,60),1);a4:=100*ma(vol,5)/capital<5;{五天内成交量温和}a1 and a2 and a3 and a4;建议你可以百度 搜索 明阳程...
按你条件设定编写如下:e6:expma(c,6);e36:expma(c,36);涨幅:(c-ref(c,1))/ref(c,1)*100,nodraw;上影线:if(c>o,(h-c)/(h-l)*100,(h-o)/(h-l)*100),nodraw;{表示上影线占整根k线的比例}候选:e6<e36 and e6>ref(e6,1) and 涨幅>3 and o<...