错误很多!其中:未知字符串 ”主动率 “ 没有设定主动率的函数定义,缺少设定,一定是漏掉了吧?以下部分内容能通过,ns:=vol/capital;ddd:=bigorder(1,2)-bigorder(2,2);dt:=ns*ddd*100;dd:=dt>=-0.05;ee:=ddy>=0;ff1:=close/ref(close,1)<=1.025;ff2:=ref(close,1)/ref(close,2)<=1.05;ff3:=count((close/ref(close,1)<=1.4),5)>=1;ff:=ff1 and ff2 and ff3;小单差:=(1-bigorder(1,1)-(1-bigorder(2,1)))*100;gg:=小单差<-1;{通吃率}买入:=bigorder(1,2)*amount;卖出:=bigorder(2,2)*amount;净额:=买入-卖出;通吃率:=净额/amount*100;hh:=通吃率>=1;买入单数:=order(1);卖出单数:=order(2);单数比:=卖出单数/买入单数;ii:=单数比>=1;停牌:dyna**(4)=0;jj:=not(停牌);{仙人指路}kk1:=indexc/ref(indexc,1)<-0.99;kk2:=h/o>=1.04;kk3:=h/c>=1.035;均线上升:=na(c,5)>ma(c,10) or ma(c,10)>ma(c,20);仙人指路:=kk1 and kk2 and kk3 and 均线上升;黑马扬蹄:={aa and bb and cc and dd and ee and} ff{and gg and hh and ii}and jj;选股:黑马扬蹄 and 仙人指路; 20210311
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:sma(rsv,3,1),colorwhite;d:sma(k,3,1),coloryellow;drawtext(ref(k,2)>80 and ref(k,1)>ref(k,2) and k>ref(k,1),k*1.02,'○'),colorred;...