Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
要分为多和空
多:
if holding>0 and c<hhv(h,enterbars+1)-20 and enterbars>0 then sell(1,0,market);
空:
if holding<0 and c>llv(l,enterbars+1)+20 and enterbars>0 then sellshort(1,0,market);
要注意这两句一定要写在开仓语句后面,不然enterbars会判断出错