Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:止盈

1楼
tanyongde 发表于:2016/10/21 15:09:52
海龟交易模型怎样实现时间和盈利止盈?
  if enterbars>10 then bein
    sell( _debug ,0,limitr,myexitprice)ignorecheckprice;
    sellshort( _debug ,0,limitr,myexitprice)ignorecheckprice;
    end
 
if   现在资产>=开仓资产+5000  then bein
    sell( _debug ,0,limitr,myexitprice)ignorecheckprice;
    sellshort( _debug ,0,limitr,myexitprice)ignorecheckprice;
    end
 按上面编写好像不行,应该怎样写?
2楼
jinzhe 发表于:2016/10/21 15:13:47
看字面意思是对的,你上面哪一段不行?
3楼
tanyongde 发表于:2016/10/21 15:22:41
按上面条件改正过来好吗?
4楼
jinzhe 发表于:2016/10/21 15:28:30
 if enterbars>10 then bein
    sell( _debug ,0,limitr,myexitprice)ignorecheckprice;
    sellshort( _debug ,0,limitr,myexitprice)ignorecheckprice;
    end
 
if   openprofit>=5000  then bein
    sell( _debug ,0,limitr,myexitprice)ignorecheckprice;
    sellshort( _debug ,0,limitr,myexitprice)ignorecheckprice;
    end
共4 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01563 s, 3 queries.