设为首页收藏本站

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

求大神们指点迷津为何程序无法运行 [复制链接]

Rank: 1

精华
0
UID
222390
积分
18
帖子
11
主题
7
阅读权限
10
注册时间
2015-11-2
最后登录
2021-1-5
跳转到指定楼层
1#
发表于 2017-6-8 14:18:33 |显示全部楼层 |倒序浏览
已通过编译,就是无法运行

Params
    Numeric Price01(10000);    //初始价格01
    Numeric Price02(11000);    //初始价格02
               
Begin

If (BarStatus == 2 and CallAuctionFilter()) Return;//过滤集合竞价

If (GetGlobalVar(0) == InvalidNumeric)
   SetGlobalVar(0, A_BuyPosition());//初始交易系统持仓状态为全局变量0

If (A_BuyPosition() == GetGlobalVar(0)) Return;//如果运行阶段持仓没有变化,就退出运行

If (A_BuyPosition() <> GetGlobalVar(0))
   {
    A_DeleteOrder();
        A_SendOrder(Enum_buy, Enum_Entry, 1, Price01);
        A_SendOrder(Enum_Sell, Enum_Exit, 1, Price02);
   }
          
End
您需要登录后才可以回帖 登录 | 注册

bottom

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

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

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部