Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:新手才使用,帮忙编写下

1楼
jingzita1123 发表于:2015/10/14 16:02:15
帮忙编写个日内策略:以开盘价为基数,若价格在开盘价格基础上涨1% 就开仓做多,止损为开盘价-1.若在开盘价格向下跌1%做空,止损为开盘价+1.收盘前5分钟平仓.
2楼
jingzita1123 发表于:2015/10/14 16:03:04
新手,麻烦编写好,我直接复制过来放在电脑上,启动程序化就能用,谢谢.
3楼
jinzhe 发表于:2015/10/14 16:10:43

if h>=1.01*o then buy(holding=0,1,market);
if enterprice<o-1 and enterbars>0 then sell(1,0,market);

if l<=0.99*o then buyshort(holding,1,market);
if enterprice>o+1 and enterbars>0 then sellshort(1,0,market);

if time0>=timetot0(closetime(0))-5*60 then begin
 sell(1,0,market);
 sellshort(1,0,market);
end

共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03320 s, 3 queries.