帮你改了下,改的不好不要介意,你的这个公式引了成交量参数,所以会造成混乱.流通:finance(7)/100000000,nodraw;ts:=barscount(close);j0:=(high+low)/2;qj:=ema(j0,3);se:=sum(qj,3);sz:=sum(qj,22);长资金:if(capital<1,200*ema(sz,55),50*ma(sz,3))/1150,color0000ff;长趋势:if(capital<1,ema(长资金,360),ema(长资金,21)),color00cc00;资金:if(capital<1,1000,100)*sma(se,3,1)/300,colorffffff;趋势:sma(资金,3,1),color00ffff;短选股:filter(cross(资金,趋势),5) and "macd.dea"<0,nodraw;长选股:短选股 and 长资金>长趋势,nodraw;bb:=filter(cross(趋势,资金),5) and "kdj.d">60;drawicon(短选股,ref(趋势,1),4);drawicon(bb,ref(资金,1),8);drawicon(短选股 and 长资金>长趋势,ref(趋势,1),7);drawicon(bb and 长资金<长趋势,ref(趋势,1),8);drawicon(cross(长资金,长趋势),长趋势-1,1);drawicon(cross(长趋势,长资金) and 长资金>0,长资金*1.18,2); 20210311