设为首页收藏本站

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

求大神帮下 [复制链接]

Rank: 1

精华
0
UID
226664
积分
8
帖子
4
主题
2
阅读权限
10
注册时间
2016-1-12
最后登录
2021-1-12
跳转到指定楼层
1#
发表于 2017-2-26 15:34:44 |只看该作者 |倒序浏览
Params
        Numeric sp(1458);//收盘平仓
Vars       
        Numeric sj;               
        NumericSeries gao;//最高价       
        NumericSeries di;//最低价       
        Numeric tt;
Begin

If(!CallAuctionFilter()) Return;
sj=IntPart(Time*10000);

di = Min(di[1],Low);
tt = di[1] + 50;
        //开多
        If(MarketPosition == 0 and High >= tt)

        {
                Buy(0,tt);               
        }
        //收平
        If(MarketPosition == 1 And sj > sp)
        {
                Sell(0,Open);
        }       
End    这个错在哪里了,di没有数值
您需要登录后才可以回帖 登录 | 注册

bottom

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

GMT+8, 2024-4-20 19:49

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部