Rss & SiteMap

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

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

标题:再次请管理员帮忙

1楼
wyhyty 发表于:2021/3/30 9:21:59


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

我用上面的语句,在K线图上可以出现买卖信号,但是用下面的就没有信号了。请问如何才能卖开和平空?

buyshort(1 and holding=0,1,market);
sellshort(1 and holding>0,holding,market);

2楼
FireScript 发表于:2021/3/30 9:27:50
 sellshort(1 and holding<0,holding,market);

空仓仓位时候 holding是负数。
3楼
wyhyty 发表于:2021/3/30 9:29:18
好的,我试试。感谢。
4楼
wyhyty 发表于:2021/3/30 9:30:47
还真是这样的。万分感谢!!
共4 条记录, 每页显示 10 条, 页签: [1]


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