以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  关于加仓的代码问题  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=78684)

--  作者:PierreHuang
--  发布时间:2015/5/18 7:18:44
--  关于加仓的代码问题
金子塔中的加仓函数是哪个?
例如:当满足条件A时,开1手多单,满足条件B时,加1手多单。
非常感谢。

--  作者:pyd
--  发布时间:2015/5/18 8:56:10
--  

if a then buy(holding=0,1,market);
if b then buy(holding=1,1,market);

[此贴子已经被作者于2015/5/18 8:56:23编辑过]