?
?來源: www.kzuj.com.cn
開倉之后的最高價沒必要用全局變量來標記啊。hhv(h,enterbars)就可以表示了啊。
if hhv(h,enterbars)-c>50*mindiff then sell(holding>0,holding,market);