以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 回落平仓如何编写 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=139963) |
-- 作者:sjz123 -- 发布时间:2016/9/23 10:00:24 -- 回落平仓如何编写 持有多仓,当价格大于开仓价10个点之后,又回落5个点则平仓。 |
-- 作者:jinzhe -- 发布时间:2016/9/23 10:09:23 -- if holding>0 and hhv(h,enterbars+1)>enterprice+10 and c<hhv(h,enterbars+1)-5 then sell(1,0,marketr); |