Rss & SiteMap

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

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

标题:双向交易

1楼
sdlgannY 发表于:2019/7/5 17:09:52
ma5:ma(c,5);
kccd:cross(ma5,c);
pccd:cross(c,ma5);

buyshort(holding=0 and kccd,1,market);
sellshort(holding<0 and pccd,holding,market);

buy(holding=0 and pccd,1,market);
sell(holding>0 and kccd,holding,market);

这样可以吗,开多平仓和开空平仓能否正常
2楼
banzhuan 发表于:2019/7/5 17:14:23
ma5:ma(c,5);
kccd:cross(ma5,c);
pccd:cross(c,ma5);

sellshort(holding<0 and pccd,holding,market);
buy(holding=0 and pccd,1,market);
sell(holding>0 and kccd,holding,market);
buyshort(holding=0 and kccd,1,market);

在图表交易中,建议使用 平空 〉 开多  平多 〉 开空的顺序
[此贴子已经被作者于2019/7/5 17:15:27编辑过]
共2 条记录, 每页显示 10 条, 页签: [1]


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