hscqs 发表于 2016-12-22 14:05:47

酷酷酷酷酷酷酷酷酷酷酷酷酷酷

财源_N4ooo 发表于 2017-3-14 16:44:25


谢谢楼主分享

财源_N4ooo 发表于 2017-3-14 17:10:18

int start()
{
   移动止损(); ////////////// 这块能明白吧!
}
void move止损()
{
   double oop = OrderOpenPrice();
   double stp = OrderStopLoss();
   double tpt = OrderTakeProfit();

// Print(oop +“开单价”+ stp +“止损价”+ tpt +“订单盈利值”);

   for(int cnt = 0; cnt <OrdersTotal(); cnt ++)
   {
      if(OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES)== true)
      {
         if(OrderSymbol()== Symbol())
         {
            if OP_BUY || OrderType()== OP_BUYLIMIT)
            {
               if(OrderClosePrice()> = OrderOpenPrice()+移动止损启动点数* Point && OrderMagicNumber()== 16384)
               {
                  if(OrderClosePrice() - OrderStopLoss移动止损点数|| OrderStopLoss()== 0)
                  {
                     如果(OrderModify(OrderTicket(),OrderOpenPrice(),OrderClosePrice() -移动止损点数*点,OrderTakeProfit(),0,CLR_NONE))
                     {
                        //睡眠(100000)。
                        “移动止损多单成功”;
                     }

                  }
               } } } }
            }

            if(OrderType()== OP_SELL || OrderType()== OP_SELLLIMIT)
            {
               if(OrderClosePrice()<= OrderOpenPrice() - Point of OrderMagicNumber()== 16384)
               {
                  if (OrderStopLoss() - OrderClosePrice()> Point *移动止损点数|| OrderStopLoss()== 0)
                  {
                     if(OrderModify(OrderTicket(),OrderOpenPrice(),OrderClosePrice ),0,CLR_NONE))
                     {
                        Print(“移动止损空单成功”);
                     }
                  }
               }
            }
         }
      }
   }
}

ZISKE5168 发表于 2017-9-7 23:58:45

金币呢

xulucom 发表于 2019-6-10 10:44:03

听说好牛逼,我来看看

福禄 发表于 2020-6-5 22:47:11

LZ说的很不错

gggeeq 发表于 2020-6-5 23:46:14

看看牛逼的Each

serloo 发表于 2020-6-6 00:05:39

赚钱如此简单

owilq 发表于 2020-7-11 15:13:37

谢谢楼主分享

vip 发表于 2020-7-17 19:48:02

谢谢楼主分享
页: 1 2 3 [4] 5 6
查看完整版本: 从2014年1月到现在未爆仓的加仓EA(有源码)