上面有人帮忙了,还以为你会去找,我也好偷个懒。
既然不能偷懒,那么就用stkindi进行跨品种引用
公式1
cond1:l<ref(llv(l,20),1);
c1:c;
公式2
cond:=stkindi('000300','公式1.cond1',0,datatype);
cc:=stkindi('000300','公式1.c1',0,datatype);
if cond_a then buy(holding=0,1,market);
if holding>0 and cond and enterbars>0 then sell(holding>0,0,limitr,cc);