EA及其工作原理
    
                  {
                    if (OrderSelect(ticket, SELECT_BY_TICKET, MODE_TRADES))
                        Print("BUY order opened : ", OrderOpenPrice());
                  } else
                    Print("Error opening BUY order : ", GetLastError());
                return (0);
              }
            return (0);
          }
//---- 订单修改,实现动态止盈止损跟踪
        for (cnt = 0; cnt < total; cnt++)
          {
            OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
            if (OrderType() <= OP_SELL && OrderSymbol() == Symbol())
              {
                if (OrderType() == OP_SELL) // long position is opened
                  {
// check for trailing stop
                    if (TrailingStop > 0)
                      {
                        if (Bid - OrderOpenPrice() > Point * TrailingStop)
                          {
                            if (OrderStopLoss() < Bid - Point * TrailingStop)
                              {
                                OrderModify(OrderTicket(), OrderOpenPrice(),
 
网站导航 | 公司简介 | 法律声明 | 诚聘英才 | 征稿启事 | 联系我们 | 广告服务 | 用户反馈
欢迎访问证券之星!请点此与我们联系 版权所有:Copyright © 1996-