以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请教保本止损 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=141049) |
-- 作者:jinzhe -- 发布时间:2016/10/17 10:43:25 -- 这个就是移动止损,或者是移动止盈,思路是一样的
if c>enterprice+mindiff and holding>0 and hhv(h,enterbars+1)>enterprice+50*mindiff then sell(1,0,market); |