来源: WWW.CXH99.COM
开仓之后的最高价没必要用全局变量来标记啊。hhv(h,enterbars)就可以表示了啊。
if hhv(h,enterbars)-c>50*mindiff then sell(holding>0,holding,market);