设为首页收藏本站

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

这个代码为什么 放到 [复制链接]

Rank: 3Rank: 3

精华
0
UID
212247
积分
128
帖子
83
主题
23
阅读权限
40
注册时间
2015-6-28
最后登录
2019-11-15
跳转到指定楼层
1#
发表于 2016-11-16 15:16:41 |只看该作者 |倒序浏览
Params

Vars
   NumericSeries MA15(0);

Begin
     if (barstatus==0) { SetGlobalVar(0,0);setglobalvar(1,0);}
   
    PlotNumeric("MA15",averageFC(close,15),0,-1,0);
    MA15=averageFC(close,15);
        If(  A_Totalposition==0 and GetGlobalVar(0)==0 and  close[1]<ma15 and close>=Ma15  and A_OpenOrderLot==0 and barstatus==2 )
        {
         A_SendOrder(enum_buy,enum_entry,1,Q_askprice+5*minmove*pricescale,0,0);
         SetGlobalVar(0,1);
        }
       
    If(A_TotalPosition >0 ) SetGlobalVar(0,0);
    If(a_totalposition>0  and Close<close[1] and GetGlobalVar(1)==0 )
        {
         A_SendOrder(enum_sell,enum_exit,1,Q_bidprice-5*minmove*pricescale,0,0);;
         SetGlobalVar(1,1);
        }
        If(A_TotalPosition==0) SetGlobalVar(1,0);

       
        End
               为什么这个程序  盘中模拟没有反应呢??  有什么地方没做对么

      
您需要登录后才可以回帖 登录 | 注册

bottom

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

GMT+8, 2024-4-27 18:24

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部