Rss & SiteMap

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

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

标题:求助

1楼
逢好运 发表于:2015/10/20 20:58:00
老师你好!我是新手,请帮助编写交易模型:做日内3分钟周期交易,14时57分全平仓,23时27分全平仓不隔夜,连续两根上涨k线收盘价时平空开多,连续两根下跌k线收盘介平多开空。谢谢!
2楼
jinzhe 发表于:2015/10/21 9:01:20
用的是北京时间时区还是金字塔时区?
3楼
逢好运 发表于:2015/10/21 21:25:39
北京时区与金字塔时区有什么区别我也不懂,总之大众用什么时区我就用什么时区,只要能自动化交易就可以了。
4楼
jinzhe 发表于:2015/10/22 8:50:25

做日内3分钟周期交易,14时57分全平仓,23时27分全平仓不隔夜,连续两根上涨k线收盘价时平空开多,连续两根下跌k线收盘介平多开空

 

if all(isup,2) then begin

   sellshort(1,0,thisclose);

   buy(holding=0,1,thisclose);

end

 

if all(isdown,2) then begin

    sell(1,0,thisclose);

    buyshort(holding=0,1,thisclose);

end

 

if time>032700 then time<=033000 then begin

     sell(1,0,thisclose);

     sellshort(1,0,thisclose);

end

 

if time>185700 and time<=closetime(0) then begin

    sell(1,0,thisclose);

    sellshort(1,0,thisclose);

end

5楼
逢好运 发表于:2015/10/29 23:33:58
老师,上面这个模型运行,发现有时连续开5手多仓,本想只开1手多仓,平仓后才能再开多仓,即永远最多只有1手持仓,这是什么原因?
6楼
jinzhe 发表于:2015/10/30 8:47:27
连开5手是信号闪烁了,使用走完k线下单模式
共6 条记录, 每页显示 10 条, 页签: [1]


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