设为首页收藏本站

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

如何查出这止赢代码偷价的地方??? [复制链接]

Rank: 1

精华
0
UID
167458
积分
24
帖子
16
主题
8
阅读权限
10
注册时间
2012-3-1
最后登录
2016-9-22
跳转到指定楼层
1#
发表于 2015-9-14 13:04:59 |只看该作者 |倒序浏览
If(MarketPosition==1&&BarsSinceEntry>0  ) // 有多仓的情况
    {
        If(HighestAfterEntry[1] >= EntryPrice * (1+Stop_win/100)) //Stop_win=6
            {
               If(Low <= HighestAfterEntry[1] *(1-LOSS1/100) )//LOSS1=2
                   {
                      MyExitPrice = HighestAfterEntry[1] *(1-LOSS1/100) ;
                                          If(Open < MyExitPrice)
                       MyExitPrice = Open;      //
                       Sell(0,MyExitPrice-MinPoint);
                                           bLongStoped1=True;
                                          myHighestAfterEntry=HighestAfterEntry[1];
                                           Commentary("多仓跟踪止盈");
                                          
                      }
               }
      }
//
Commentary("之=="+text(HighestAfterEntry[1] *(1-LOSS1/100)-MinPoint));

if(MarketPosition==-1&&BarsSinceEntry>0  ) // 有空仓的情况
    {
        If(LowestAfterEntry[1] <= EntryPrice * (1-Stop_win/100) ) //
             {
                If(High >= LowestAfterEntry[1]*(1+LOSS1/100) )//
                    {
                        MyExitPrice = LowestAfterEntry[1]*(1+LOSS1/100);
                                                If(Open > MyExitPrice)
                                                MyExitPrice = Open;      
                                                BuyToCover(0,MyExitPrice+MinPoint);
                                                bShortStoped1=True;
                                                myLowestAfterEntry=LowestAfterEntry[1];
                                                Commentary("空仓跟踪止盈");
                                                
                      }
               }
       }

Rank: 1

精华
0
UID
227797
积分
9
帖子
9
主题
0
阅读权限
10
注册时间
2016-2-2
最后登录
2016-8-12
2#
发表于 2016-2-2 17:13:52 |只看该作者
完全看不懂 表示精神上的支持!

使用道具 举报

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

bottom

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

GMT+8, 2024-5-10 11:32

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部