以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 新手才使用,帮忙编写下 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=86182) |
-- 作者:jingzita1123 -- 发布时间:2015/10/14 16:02:15 -- 新手才使用,帮忙编写下 帮忙编写个日内策略:以开盘价为基数,若价格在开盘价格基础上涨1% 就开仓做多,止损为开盘价-1.若在开盘价格向下跌1%做空,止损为开盘价+1.收盘前5分钟平仓. |
-- 作者:jingzita1123 -- 发布时间:2015/10/14 16:03:04 -- 新手,麻烦编写好,我直接复制过来放在电脑上,启动程序化就能用,谢谢. |
-- 作者:jinzhe -- 发布时间:2015/10/14 16:10:43 -- if h>=1.01*o then buy(holding=0,1,market); if l<=0.99*o then buyshort(holding,1,market); if time0>=timetot0(closetime(0))-5*60 then begin |