Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
用type来判断
type(1)=2来判断前一次是否为多单,你的开多写法:
if type(1)=2 and h>exitprice+10 then buy(holding=0,1,market);
空单你照着我的写法和type的函数解释自行写一下
if type(1)=4 and l<exitprice-10 then buyshort(holding=0,1,market);