Rss & SiteMap

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

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

标题:编写高低杠杆

1楼
寒茌 发表于:2014/5/28 10:11:46
请问怎么表达 如果满足condition1 开3手多头 满足condition2开1手多头
2楼
yukizzc 发表于:2014/5/28 10:14:19

buy(condition1 and holding=0,3,market);

buy(condition2 and holidng=0,1,market);   //平仓语句自己添加下

[此贴子已经被作者于2014/5/28 10:17:00编辑过]
3楼
寒茌 发表于:2014/5/28 10:38:37

如果我这样表达,金字塔会认为错误吗?



sell(condition3 and holding=0,3, market);

sell(condition4 and holding=0,1,market);


buy(condition1 and holding=0,3,market);

buy(condition2 and holidng=0,1,market); 



sellshort(condition5 and holding=0,3, market);

sellshort(condition6 and holding=0,1,market);


buyshort(condition7 and holding=0,3,market);

buyshort(condition8 and holidng=0,1,market); 


4楼
RogarZ 发表于:2014/5/28 10:56:40

不明白你的意思

 

PS:代码问题 请发至 公式模型问题提交区   谢谢配合

共4 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.02344 s, 2 queries.