均线多头:=ma(c,10)>ma(c,20) and ma(c,20)>ma(c,30) and ma(c,30)>ma(c,40);换手较高:=sum(vol/capital*100,20)*3>sum(vol/capital*100,40);振幅较小:=(hhv(h,20)-llv(l,20))/llv(l,20)<0.2;**集中:=winner(c)*100<10;选:均线多头 and 换手较高 and 振幅较小 and **集中;以上为代码你的要求没有确切的规定,第一行只是写了几条均线的多头排列第二行是这个月的换手大于最近两个月的1/3第三行是一个月内振幅小于20%最后一行为**集中度小于10% 可以自行修改代码,其他问题加qq:121909844 20210311
a1:ma(c,5);a2:ma(c,10);a3:ma(c,20); a4:ma(c,30);drawtext(a1>a2 and a2>a3 and cross(a3,a4),a4,'多头排列'),coloryellow; a1:ma(c,5);a2:ma(c,10);a3:ma(c,20);a4:ma(c,30);a5:ma(c,60);dra...
c5:=cross(c,ma(c,5));c10:=cross(c,ma(c,10));c30:=cross(c,ma(c,30));c60:=cross(c,ma(c,60));c120:=cross(c,ma(c,120));c250:=cross(c,ma(c,250));a:=c5+c10+c30+c60+c120+c250>=5;x:a and count(a,n)>=2;n...