Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
//上一个B满足也就是昨天满足,昨天持仓大于前天持仓,这个建仓建议用户自己去考虑怎么定义。
if ref(B,1) and ref(holding,1)>ref(holding,2) then sell(1,holding,marketr);
//如果昨天的10天内都满足条件
if ref(all(B,10),1) then sell(1,holding,marketr);