以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  开仓价回撤3%止损,怎么写  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=99844)

--  作者:omega555
--  发布时间:2016/6/30 10:38:23
--  开仓价回撤3%止损,怎么写
你好,开仓价回撤3%止损,怎么弄,多空要要止损,谢谢
--  作者:jinzhe
--  发布时间:2016/6/30 10:41:12
--  

if c<enterprice*0.97 and holding>0 then sell(1,0,market);

if c>enterprice*1.03 and holding<0 then sellshort(1,0,market);