设为首页收藏本站

 找回密码
 注册
查看: 1284|回复: 0
打印 上一主题 下一主题

请教管理员 [复制链接]

Rank: 1

精华
0
UID
180855
积分
26
帖子
16
主题
6
阅读权限
10
注册时间
2014-2-20
最后登录
2022-4-20
跳转到指定楼层
1#
发表于 2015-7-27 09:51:43 |只看该作者 |倒序浏览
我的思路是每天临近收盘收场,之前的交易也没有出现问题,一些新的模型(只改了参数没有改其他代码)是周六晚上加载的,为什么周一早上开盘20秒左右就进行交易了呢,请管理员帮忙看看,谢谢!代码如下:
If(BarStatus==2)   
                {
                if (MarketPosition==0 and sellshortcon and time<=0.16 And time>=0.14 And CurrentTime>=0.145950)
                {
                        SellShort(0,close);
                }
                if (MarketPosition==-1 and  buytocovercon and time<=0.16 And time>=0.14 And CurrentTime>=0.145950)
                {
                        BuyToCover(0,Close);
                }
                               
       }Else
           {
                     if (MarketPosition==0 and sellshortcon and time<=0.16 And time>=0.14)
                {
                        SellShort(0,close);
                }
                if (MarketPosition==-1 and  buytocovercon and time<=0.16 And time>=0.14)
                {
                        buytocover(0,Close);
                }
                               
           }
          
您需要登录后才可以回帖 登录 | 注册

bottom

静态版|手机版|联系我们|交易开拓者 ( 粤ICP备07044698   

GMT+8, 2024-5-23 06:23

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部