以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://weistock.com/bbs/list.asp?boardid=2)
----  设置止损  (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=171374)

--  作者:mountainview
--  发布时间:2019/7/31 14:01:52
--  设置止损
在单笔交易中,持仓亏损0.7% 则触发止损平仓 如何编写呢?
--  作者:gxx978
--  发布时间:2019/7/31 14:18:54
--  

以持有多仓为例:

if holding>0 and (enterprice-c)/enterprice>0.007 then
   sell(1,holding,market);

[此贴子已经被作者于2019/7/31 14:22:56编辑过]