以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请高手帮助  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=97042)

--  作者:wbq1718
--  发布时间:2016/5/4 16:25:35
--  请高手帮助
请高手帮助,我买入股票10000股,每股赚了1元止盈,每股亏损0.8元止损,如何编写?谢谢
--  作者:jinzhe
--  发布时间:2016/5/4 16:42:02
--  

if c>enterprice+1 then sell(1,ref(holding,todaybar),marketr);

if c<enterprice-0.8 then sell(1,ref(holding,todaybar),marketr);