以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 客服请进 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=75568) |
-- 作者:山不在高 -- 发布时间:2015/2/11 11:20:56 -- 客服请进 开仓后亏损10个点止损 开仓后盈利10个点后利润减少30%止盈 ------------------- 以上这两个要怎么写
|
-- 作者:jinzhe -- 发布时间:2015/2/11 11:25:17 -- 1 有多头持仓 : holding>0 and l<enterprice-10; 有空头持仓: holding<0 and h>enterprice+10;
2
有多头持仓:holding>0 and hhv(h,enterbars+1)>enterprice+10 and (hhv(openprofit,enterbars+1)-openprofit)/hhv(openprofit,enterbars+1)>=0.3; 有空头持仓:holding<0 and llv(l,enterbars+1)<enterbars-10 and (hhv(openprofit,enterbars+1)-openprofit)/hhv(openprofit,enterbars+1)>=0.3; |