以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请老师帮我编写公式 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=85843) |
-- 作者:a6997568q -- 发布时间:2015/10/8 8:38:15 -- 请老师帮我编写公式 请老师帮我编写公式 30秒周期 3日线金叉100日线做多。止损跌破开多这个K线的最低点。止盈最高价回撤百分之30. 3日线死叉100日线做空。止损开突破空这个K线的最高点。止盈最低价回撤百分之30
|
-- 作者:jinzhe -- 发布时间:2015/10/8 9:22:34 -- ma3:=ma(c,3); if cross(ma3,ma100) then buy(holding=0,1,thisclose); if l<valuewhen(enterbars=0,l) and holding>0 and enterbars>0 then sell(1,0,market); if l<=hhv(h,enterbars+1)*0.7 then sell(1,0,market); if cross(ma100,ma3) then buyshort(holding=0,1,thisclose); |