以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 求助:怎么加入固定止赢止损语句 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=81831) |
-- 作者:子睿 -- 发布时间:2015/7/29 23:01:40 -- 求助:怎么加入固定止赢止损语句 DIFF :=EMA(CLOSE,S) - EMA(CLOSE,P); 手数:=ss; 想加入开仓盈利10点止盈,开仓亏损10点止损,不知怎么写这样的语句,麻烦高手帮写一下,谢谢 |
-- 作者:jinzhe -- 发布时间:2015/7/30 8:50:22 -- if enterprice-c>10*mindiff then sellshort(1,0,market); if c-enterprice>10*mindiff then sellshort(1,0,market); |