if openprofit>10000 and holding>0 then sell(1,0,limitr,enterprice);
if openprofit>10000 and holding<0 then sellshort(1,0,limitr,enterprice);
if hhv(openprofit,enterbars+1)>10000 and holding>0 and c<enterprice then sell(1,0,market);
if hhv(openprofit,enterbars+1)>10000 and holding<0 and c>enterprice then sellshort(1,0,market);
走完k线模式下的方法
如果是固定轮询模式则要改为l<enterprice 和 h>enterprice
说明你把我的这段代码嵌套进了一个if判断内
把这段话单独拿出来,不要放在if判断之内