乐于分享
好东西不私藏

重磅分享:聚宝盆 2.0 EA源码,均线信号触发首单 + 网格马丁格尔加仓 + 分组动态止盈!

重磅分享:聚宝盆 2.0 EA源码,均线信号触发首单 + 网格马丁格尔加仓 + 分组动态止盈!
周六了!
开始分享EA源码了,
今天来一个重磅的玩意,不过这是10年前的玩意了,聚宝盆EA,当时很火,因为那个时候马丁的EA刚出来,别看它是马丁,但是如果你用好了,效果还是不错的,类似于金麒麟这样的马丁EA,重点还是控制,
我先说说优点和缺点:
  • 多空隔离,逻辑清晰多 / 空使用独立魔术号,持仓统计、加仓、平仓完全分开,不会出现订单混乱,复盘和风控一目了然。

  • 入场有趋势过滤,非纯盲网格依靠大周期均线(默认 700 周期 SMMA)判定趋势,只顺着趋势开单加仓,相比无序逆势网格,单边行情下存活率更高。

  • 双层止盈 + 主动减仓,利润保护完善既有整体统一止盈,又有按盈利比例分批平仓,行情小幅回撤时能提前兑现利润,降低浮亏压力。

  • 仓位、层数双重硬限制限制最大订单数、最大持仓手数,从代码层面杜绝无限加仓、仓位爆拉,基础风控有底线。

缺点是:
  • 均线参数极度极端(700 周期 MA)700 周期平滑均线反应极度滞后,只能捕捉超长期大趋势,短线震荡、波段行情完全失效;行情反转后,信号会严重滞后。

  • 顺势网格本质缺陷:单边深度回调必深套顺着趋势一路加仓,一旦出现趋势反转 + 深度回调,同方向层层持仓会形成大额浮亏,虽有平仓规则,但无法彻底规避被套。

  • 分批平仓规则存在逻辑漏洞平仓优先级:先平盈利单、再平亏损单,相当于 “砍盈利、留亏损”,长期运行会出现 “赚小钱、扛大亏” 的资金曲线特征。

  • 锁仓规避不彻底仅 “有持仓则不开反向单”,但原有持仓被套后,行情快速反转依旧无法对冲风险,没有止损机制。

  • 无硬性止损(重大短板)整段代码没有任何止损(SL)逻辑,所有订单均不带止损,遇到黑天鹅、跳空、极速反向行情,会直接产生巨额亏损。

界面截图我就不截图了,因为源码太多了,而且可能还有人不会编译,不会编译或者出现编译错误的朋友,来找我直接拿源码:
下面是完整的源码:
#property copyright "狼人EA"#property link      ""#include <stderror.mqh>#include <stdlib.mqh>//===================================================================================================================================================extern string EAName             = "聚宝盆2.0";//===================================================================================================================================================extern int 多单魔术号        = 123456789;   extern int 空单魔术号       = 987654321;   extern string s1                 = ">>>>>>>>>>>>>>>>>>>>>>>>>>>>";extern bool   显示图表信息       = false;   // 显示图表信息extern bool   显示图表时间          = false;  // 图表显示时间extern bool   平均价格线   = false;  // 画平均价格线extern bool   允许买卖          = false;  // 允许买卖extern bool   做多        = true;   // 允许购买extern bool   做空       = true;   // 允许销售 extern string s4                 = ">>>>>>>>>>>>>>>>>>>>>>>>>>>>";extern string s5                 = ">>> pip值设置"extern bool   CheckNewBar        = true;   // 在新的K线extern int    最大下数量          = 30;     // 最大下数量extern double 加仓间距            = 20;   // 加仓间距extern double 加仓间距指数    = 1.0;    // 加仓间距指数extern int    止盈点数   = 8;     // 止盈点数extern string s6                 = ">>> 平仓顺序设置";extern double 止盈百分比      = 100;     // 收市百分比(10…50)//收市百分比extern double 第二止盈百分比 = 60;    // 关闭上一个订单的百分比 extern string s8                 = ">>>>>>>>>>>>>>>>>>>>>>>>>>>>";extern string s9                 = ">>> 计算盈利进出场顺序";extern double 初始仓位           = 0.02;    // 初始批量extern double 加仓振幅       = 0.02;    // 增加批次  extern double 加仓后的最大仓位             = 0.5;     // Maximum lot size最大批量extern bool   使用自动仓位开仓         = false;  // 使用自动收取%存款extern double 自动初始仓位百分比          = 0.5;    // 百分比-从资产净值计算批次大小extern double 自动加仓振幅百分比   = 0.3;    // 要添加的百分比extern string s10                = ">>>>>>>>>>>>>>>>>>>>>>>>>>>>";extern string s11                = ">>> Enter opposite MA"extern int    iMA_Period         = 700;extern int    iMA_OpenDistance   = 60;//===================================================================================================================================================int i = 0;int TimePrev = 0;int vDigits;int OrderSended = 0;int TotalBuyOrders = 0, TotalSellOrders = 0;int Lpos, Lpos1, Cpos;double Spread;double mPipStep;double vPoint;double PriceTarget, AveragePrice, LastBuyPrice, LastSellPrice;double BuySummLot,SellSummLot,TotalProfitBuy,TotalProfitSell;double BLot, SLot;double Cprofit, Lprofit, Lprofit1, PrcCL;string LastOrderComment = "";string BComment, SComment;//===================================================================================================================================================//===================================================================================================================================================intinit(){  vPoint  = Point;  vDigits = Digits;  TimePrev = Time[0];  Spread = NormalizeDouble(MarketInfo(Symbol(), MODE_SPREAD),vDigits)*vPoint;  // 5 digit broker  int DcD = 1;  if((vDigits == 5)||(vDigits == 3)) DcD = 10;     加仓间距           *= DcD;  止盈点数  *= DcD;  iMA_OpenDistance  *= DcD;  if(显示图表信息) DrawInfo();  return(0);}//===================================================================================================================================================//===================================================================================================================================================intdeinit(){  ObjectDelete("CurrTime");  ObjectDelete("BuyZeroLevel");  ObjectDelete("BuyAveragePrice");  ObjectDelete("SellZeroLevel");  ObjectDelete("SellAveragePrice");  return(0);}//===================================================================================================================================================//===================================================================================================================================================intstart(){  // clock  if(显示图表时间) ShowCurrentTime();  // info  if(显示图表信息) DrawInfo();  // checking new bar  if(TimePrev == Time[0] && CheckNewBar == truereturn(0);     CheckOverlapping();    //-------------------------------------------------------------------------------------------------------------------------------------------------  // New buy orders  TotalBuyOrders = CountOfOrders(多单魔术号);  if(TotalBuyOrders > 0 && TotalBuyOrders < 最大下数量)  {    OrderSended = -1;    LastBuyPrice = FindLastOrderParameter(多单魔术号, "price");    if(LastBuyPrice - Ask >= GetPipstepForStep(TotalBuyOrders + 1) * vPoint)    {      BLot   = GetLotForStep(多单魔术号, TotalBuyOrders);      BComment = StringSubstr(LastOrderComment, 0, StringFind(LastOrderComment, "|"0)) + "|";      OrderSended = SendMarketOrder(OP_BUY, BLot, 00, 多单魔术号, BComment);    }  }  //-------------------------------------------------------------------------------------------------------------------------------------------------  // New sell orders  TotalSellOrders = CountOfOrders(空单魔术号);  if(TotalSellOrders > 0 && TotalSellOrders < 最大下数量)  {    OrderSended = -1;    LastSellPrice = FindLastOrderParameter(空单魔术号, "price");    if (Bid - LastSellPrice >= GetPipstepForStep(TotalSellOrders + 1) * vPoint)     {      SLot   = GetLotForStep(空单魔术号, TotalSellOrders);      SComment = StringSubstr(LastOrderComment, 0, StringFind(LastOrderComment, "|"0)) + "|";      OrderSended = SendMarketOrder(OP_SELL, SLot, 00, 空单魔术号, SComment);    }  }  //-------------------------------------------------------------------------------------------------------------------------------------------------  //Move Take Profit  CheckTakeProfit();  //-------------------------------------------------------------------------------------------------------------------------------------------------  //Check new bar...first orders of the series only according to new bars  if (TimePrev == Time[0]) return(0);     TimePrev = Time[0];  int TradeSignal = GetSignal();  // New buy series ...  if (TotalBuyOrders == 0 && 做多 && TradeSignal > 0 && (允许买卖 == true || TotalSellOrders == 0))    SendMarketOrder(OP_BUY, GetStartLot(), 止盈点数, 0, 多单魔术号, TimeCurrent() + "|");       // New sell series ...  if (TotalSellOrders == 0 && 做空 && TradeSignal < 0 && (允许买卖 == true || TotalBuyOrders == 0))    SendMarketOrder(OP_SELL, GetStartLot(), 止盈点数, 0, 空单魔术号, TimeCurrent() + "|");       return(0);}//===================================================================================================================================================//===================================================================================================================================================voidCheckTakeProfit(){  //BUY  TotalBuyOrders = CountOfOrders(多单魔术号);  PriceTarget = 0;  AveragePrice = 0;  if(TotalBuyOrders > 0  {    PriceTarget = FindFirstOrderParameter(多单魔术号, "price") + 止盈点数*vPoint;    AveragePrice = CalculateAveragePrice(多单魔术号);  }  for (i = 0; i < OrdersTotal(); i++)     if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))      if (OrderSymbol() == Symbol() && OrderMagicNumber() == 多单魔术号)        if (NormalizeDouble(OrderTakeProfit(),vDigits) != NormalizeDouble(PriceTarget,vDigits)) ModifyTakeProfit(PriceTarget);  if(平均价格线 == true)  {    if(AveragePrice == 0)    {      if(ObjectFind("BuyZeroLevel") != -1) ObjectDelete("BuyZeroLevel");      if(ObjectFind("BuyAveragePrice") != -1) ObjectDelete("BuyAveragePrice");    }    else    {      if(ObjectFind("BuyZeroLevel") == -1      {        ObjectCreate("BuyZeroLevel",OBJ_HLINE, 00, AveragePrice);        ObjectSet("BuyZeroLevel", OBJPROP_COLOR, Blue);        ObjectSet("BuyZeroLevel", OBJPROP_STYLE, DRAW_SECTION);      }      else ObjectSet("BuyZeroLevel", OBJPROP_PRICE1, AveragePrice);      if(ObjectFind("BuyAveragePrice") == -1      {        ObjectCreate("BuyAveragePrice",OBJ_HLINE, 00, AveragePrice + 止盈点数*vPoint);        ObjectSet("BuyAveragePrice", OBJPROP_COLOR, Blue);        ObjectSet("BuyAveragePrice", OBJPROP_STYLE, DRAW_LINE);      }      else ObjectSet("BuyAveragePrice", OBJPROP_PRICE1, AveragePrice + 止盈点数*vPoint);    }      }  //<_BUY  //SELL  PriceTarget = 0;  AveragePrice = 0;  TotalSellOrders = CountOfOrders(空单魔术号);  if(TotalSellOrders > 0  {    PriceTarget = FindFirstOrderParameter(空单魔术号, "price") - 止盈点数*vPoint;    AveragePrice = CalculateAveragePrice(空单魔术号);  }  for (i = 0; i < OrdersTotal(); i++)     if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))      if (OrderSymbol() == Symbol() && OrderMagicNumber() == 空单魔术号)        if (NormalizeDouble(OrderTakeProfit(),vDigits) != NormalizeDouble(PriceTarget,vDigits)) ModifyTakeProfit(PriceTarget);  if(平均价格线 == true)  {    if(AveragePrice == 0)    {      if(ObjectFind("SellZeroLevel") != -1) ObjectDelete("SellZeroLevel");      if(ObjectFind("SellAveragePrice") != -1) ObjectDelete("SellAveragePrice");    }    else    {      if(ObjectFind("SellZeroLevel") == -1      {        ObjectCreate("SellZeroLevel",OBJ_HLINE, 00, AveragePrice);        ObjectSet("SellZeroLevel", OBJPROP_COLOR, Red);        ObjectSet("SellZeroLevel", OBJPROP_STYLE, DRAW_SECTION);      }      else ObjectSet("SellZeroLevel", OBJPROP_PRICE1, AveragePrice);      if(ObjectFind("SellAveragePrice") == -1      {        ObjectCreate("SellAveragePrice",OBJ_HLINE, 00, AveragePrice - 止盈点数*vPoint);        ObjectSet("SellAveragePrice", OBJPROP_COLOR, Red);        ObjectSet("SellAveragePrice", OBJPROP_STYLE, DRAW_LINE);      }      else ObjectSet("SellAveragePrice", OBJPROP_PRICE1, AveragePrice - 止盈点数*vPoint);    }      }  //<_SELL}//===================================================================================================================================================//===================================================================================================================================================doubleCalculateAveragePrice(int mNumber){  double AveragePrice = 0;  double Count = 0;  for (int i = 0; i < OrdersTotal(); i++)    if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))      if (OrderSymbol() == Symbol() && OrderMagicNumber() == mNumber)        if (OrderType() == OP_BUY  || OrderType() == OP_SELL)         {           AveragePrice += OrderOpenPrice() * OrderLots();           Count += OrderLots();        }  if(AveragePrice > 0 && Count > 0)    return( NormalizeDouble(AveragePrice / Count, vDigits));  else    return(0);}//===================================================================================================================================================//===================================================================================================================================================intGetSignal(){  int Signal = 0;  double iMA_Signal = iMA(Symbol(), 0, iMA_Period, 0, MODE_SMMA, PRICE_CLOSE, 0);  int Ma_Bid_Diff = MathAbs(iMA_Signal - Bid)/vPoint;  if(Ma_Bid_Diff > iMA_OpenDistance && Bid > iMA_Signal) Signal = -1;  if(Ma_Bid_Diff > iMA_OpenDistance && Bid < iMA_Signal) Signal = 1;  return(Signal);}//===================================================================================================================================================//===================================================================================================================================================intCountOfOrders(int mNumber){  int count = 0;  for (int i = 0; i < OrdersTotal(); i++)     if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))      if ((OrderSymbol() == Symbol()) && (OrderMagicNumber() == mNumber))         if ((OrderType() == OP_SELL) || (OrderType() == OP_BUY))           count++;  return(count);}//===================================================================================================================================================//===================================================================================================================================================doubleGetLotForStep(int mNumber, int OrdCount){  double CurrLot = 0;  double LastOrderLot = FindLastOrderParameter(mNumber, "lot");  if(使用自动仓位开仓 == true)  {    if(LastOrderLot != 0) CurrLot = NormalizeDouble(LastOrderLot + NormalizeDouble(AccountEquity() * 加仓振幅/100002)*OrdCount, 2);  }  else  {    if(LastOrderLot != 0) CurrLot = NormalizeDouble(LastOrderLot + 加仓振幅*OrdCount, 2);  }  //   if(CurrLot > 加仓后的最大仓位) CurrLot = 加仓后的最大仓位;  if(CurrLot < 初始仓位) CurrLot = 初始仓位;  if(CurrLot == 0) CurrLot = 初始仓位;  return(CurrLot);}//===================================================================================================================================================//===================================================================================================================================================doubleGetStartLot(){  double FirstLot = 0;  if(使用自动仓位开仓 == true)  {    FirstLot = NormalizeDouble(AccountEquity() * 自动初始仓位百分比/100002);  }  else  {    FirstLot = 初始仓位;  }  if(FirstLot > 加仓后的最大仓位) FirstLot = 加仓后的最大仓位;  if(FirstLot < 初始仓位) FirstLot = 初始仓位;  return(FirstLot);}//===================================================================================================================================================//===================================================================================================================================================doubleGetPipstepForStep(int CurrStep){  double CurrPipstep = NormalizeDouble(加仓间距 * MathPow(加仓间距指数,CurrStep), 0);  return(CurrPipstep);}//===================================================================================================================================================//===================================================================================================================================================doubleFindFirstOrderParameter(int mNumber, string ParamName) {  int mOrderTicket = 0;  double mOrderPrice = 0;  double mOrderLot = 0;  double mOrderProfit = 0;  int PrevTicket = 0;  int CurrTicket = 0;  for (i = OrdersTotal() - 1; i >= 0; i--)     if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))       if (OrderSymbol() == Symbol() && OrderMagicNumber() == mNumber)      {        CurrTicket = OrderTicket();        if (CurrTicket < PrevTicket || PrevTicket == 0)        {           PrevTicket = CurrTicket;          mOrderPrice = OrderOpenPrice();          mOrderTicket = OrderTicket();          mOrderLot = OrderLots();          mOrderProfit = OrderProfit() + OrderSwap() + OrderCommission();        }      }  if(ParamName == "price"return(mOrderPrice);  else if(ParamName == "ticket"return(mOrderTicket);  else if(ParamName == "lot"return(mOrderLot);  else if(ParamName == "profit"return(mOrderProfit);}//===================================================================================================================================================//===================================================================================================================================================doubleFindLastOrderParameter(int mNumber, string ParamName) {  int mOrderTicket = 0;  double mOrderPrice = 0;  double mOrderLot = 0;  double mOrderProfit = 0;  int PrevTicket = 0;  int CurrTicket = 0;  for (i = OrdersTotal() - 1; i >= 0; i--)     if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))       if (OrderSymbol() == Symbol() && OrderMagicNumber() == mNumber)       {        CurrTicket = OrderTicket();        if (CurrTicket > PrevTicket)         {          PrevTicket = CurrTicket;          mOrderPrice = OrderOpenPrice();          mOrderTicket = OrderTicket();          mOrderLot = OrderLots();          mOrderProfit = OrderProfit() + OrderSwap() + OrderCommission();          LastOrderComment = OrderComment();        }      }  if(ParamName == "price"return(mOrderPrice);  else if(ParamName == "ticket"return(mOrderTicket);  else if(ParamName == "lot"return(mOrderLot);  else if(ParamName == "profit"return(mOrderProfit);}//===================================================================================================================================================//===================================================================================================================================================doubleGetClosedProfit(int mNumber){  double ClosedProfit = 0;  for (i = OrdersHistoryTotal(); i > 0; i--)     if(OrderSelect(i, SELECT_BY_POS, MODE_HISTORY))      if (OrderSymbol() == Symbol() && OrderMagicNumber() == mNumber)        if(StringSubstr(LastOrderComment, 0, StringFind(LastOrderComment, "|"0)) == StringSubstr(OrderComment(), 0, StringFind(OrderComment(), "|"0)))          ClosedProfit = ClosedProfit + OrderProfit();  return(ClosedProfit);}//===================================================================================================================================================//===================================================================================================================================================boolModifyTakeProfit(double takeprofit){  while(!IsStopped())  {    if(IsTradeContextBusy())    {      Sleep(3000);      continue;    }    if(!IsTradeAllowed())    {      return(False);    }    if(!OrderModify(OrderTicket(), OrderOpenPrice(), 0, NormalizeDouble(takeprofit,vDigits), 0, Yellow))    {      int Err = GetLastError();      Print("!!! Error(",Err,"): ",ErrorDescription(Err));      return(False);    }    else    {      break;    }  }  return(True);}//===================================================================================================================================================//===================================================================================================================================================intSendMarketOrder(int Type, double Lots, int TP, int SL, int Magic, string Cmnt, double OpenPrice = 0string mSymbol = ""){  double Price, Take, Stop;  int Ticket, Color, Err;   int ErrorCount = 0;  while(!IsStopped())  {    if(ErrorCount > 5return(0);    if(!IsConnected())    {      ErrorCount = ErrorCount + 1;      Print("No connection with server!");      Sleep(1000);    }    if(IsTradeContextBusy())    {      Sleep(3000);      continue;    }    switch(Type)    {      case OP_BUY:        if(mSymbol == "")          Price = NormalizeDouble(Ask, vDigits);        else          Price = NormalizeDouble(MarketInfo(mSymbol, MODE_ASK), vDigits);        Take = IIFd(TP == 00, NormalizeDouble( Price + TP * vPoint, vDigits));        Stop = IIFd(SL == 00, NormalizeDouble( Price - SL * vPoint, vDigits));        Color = Blue;        break;      case OP_SELL:        if(mSymbol == "")          Price = NormalizeDouble( Bid, vDigits);        else          Price = NormalizeDouble(MarketInfo(mSymbol, MODE_BID), vDigits);        Price = NormalizeDouble( Bid, Digits);        Take = IIFd(TP == 00, NormalizeDouble( Price - TP * vPoint, vDigits));        Stop = IIFd(SL == 00, NormalizeDouble( Price + SL * vPoint, vDigits));        Color = Red;        break;      default:        return(-1);    }    if(IsTradeAllowed())    {      if(mSymbol == "")        Ticket = OrderSend(Symbol(), Type, Lots, Price, 2*Spread, 00, Cmnt, Magic, 0, Color); // amended code   //        Ticket = OrderSend(Symbol(), Type, Lots, Price, 2*Spread, Stop, Take, Cmnt, Magic, 0, Color); // original code for this line      else        Ticket = OrderSend(mSymbol, Type, Lots, Price, 2*Spread, Stop, Take, Cmnt, Magic, 0, Color);      if(Ticket < 0)      {        Err = GetLastError();        if (Err == 4   || /* SERVER_BUSY */            Err == 129 || /* INVALID_PRICE */             Err == 135 || /* PRICE_CHANGED */             Err == 137 || /* BROKER_BUSY */             Err == 138 || /* REQUOTE */             Err == 146 || /* TRADE_CONTEXT_BUSY */            Err == 136 )  /* OFF_QUOTES */        {          Sleep(3000);          continue;        }        else        {          break;        }      }      break;    }    else    {      break;    }  }  return(Ticket);}//===================================================================================================================================================//===================================================================================================================================================doubleIIFd(bool condition, double ifTrue, double ifFalse) {  if (condition) return(ifTrue); else return(ifFalse);}//===================================================================================================================================================//===================================================================================================================================================voidDrawInfo(){  BuySummLot = 0; TotalProfitBuy = 0;  for(i=OrdersTotal();i>=0;i--)  {    if (OrderSelect(i,SELECT_BY_POS, MODE_TRADES) && OrderSymbol() == Symbol() && (OrderMagicNumber()==多单魔术号))     {      BuySummLot += OrderLots();       TotalProfitBuy += OrderProfit() + OrderCommission() + OrderSwap();    }  }  double ClosedBuyProfit = GetClosedProfit(多单魔术号);  SellSummLot = 0; TotalProfitSell = 0;  for(i=OrdersTotal();i>=0;i--)  {    if (OrderSelect(i,SELECT_BY_POS, MODE_TRADES) && OrderSymbol() == Symbol() && (OrderMagicNumber()==空单魔术号))     {      SellSummLot += OrderLots();       TotalProfitSell += OrderProfit() + OrderCommission() + OrderSwap();    }  }  double ClosedSellProfit = GetClosedProfit(空单魔术号);  Comment(  "\n",  ">>> BUY  Orders: ",TotalBuyOrders," lots: ",BuySummLot," Profit: ",TotalProfitBuy,  "\n",">>> Profit Taken:",ClosedBuyProfit,"\n",  "\n",  ">>> SELL Orders: ",TotalSellOrders," lots: ",SellSummLot," Profit: ",TotalProfitSell,  "\n",">>> Profit taken :", ClosedSellProfit  );}//===================================================================================================================================================//===================================================================================================================================================voidShowCurrentTime(){  int min,sec;  min = Time[0] + Period()*60 - CurTime();  sec = min%60;  min = (min - min%60)/60;  if(ObjectFind("CurrTime") != 0)    ObjectCreate("CurrTime", OBJ_TEXT, 0, Time[0], Close[0]);  else    ObjectMove("CurrTime"0, Time[0], Close[0]);  ObjectSetText("CurrTime""                <" + min + ":" + sec, 14"Verdana", Black);}//===================================================================================================================================================//===================================================================================================================================================voidCheckOverlapping(){  //BUY--->  TotalBuyOrders = CountOfOrders(多单魔术号);  if (TotalBuyOrders >= 2  {    Lpos = 0; Cpos = 0; Lprofit = 0; Cprofit = 0;    Lpos = LidingProfitOrder(多单魔术号);    Cpos = CloseProfitOrder(多单魔术号);    if(Lprofit > 0 && Lprofit1 <= 0)    {      if(Lprofit + Cprofit > 0 && (Lprofit + Cprofit)*100/Lprofit > 止盈百分比)       {        Lpos1 = 0;        CloseSelectOrder(多单魔术号);       }    }    else if(Lprofit > 0 && Lprofit1 > 0)    {      if(Lprofit + Lprofit1 + Cprofit > 0 && (Lprofit + Lprofit1 + Cprofit)*100/(Lprofit + Lprofit1) > 第二止盈百分比) CloseSelectOrder(多单魔术号);     }  }   //<---BUY  //SELL--->  TotalSellOrders = CountOfOrders(空单魔术号);  if (TotalSellOrders >= 2  {    Lpos = 0; Cpos = 0; Lprofit = 0; Cprofit = 0;    Lpos = LidingProfitOrder(空单魔术号);    Cpos = CloseProfitOrder(空单魔术号);    if(Lprofit > 0 && Lprofit1 <= 0)    {      if(Lprofit + Cprofit > 0 && (Lprofit + Cprofit)*100/Lprofit > 止盈百分比)       {        Lpos1 = 0;        CloseSelectOrder(空单魔术号);       }    }      if(Lprofit > 0 && Lprofit1 > 0)    {      if(Lprofit + Lprofit1 + Cprofit > 0 && (Lprofit + Lprofit1 + Cprofit)*100/(Lprofit + Lprofit1) > 第二止盈百分比) CloseSelectOrder(空单魔术号);     }  }   //<---SELL}//======================================== Most profitable order =======================================intLidingProfitOrder(int mNumber) {   Lprofit1 = 0;   Lpos1 = 0;   int TotalOrders = CountOfOrders(mNumber);   double profit  = 0;   int    Pos     = 0;   for (i = 0; i < OrdersTotal(); i++)    {       if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))         {          if ((OrderSymbol() == Symbol()) && (OrderMagicNumber() == mNumber))          {             if (OrderType() == OP_SELL || OrderType() == OP_BUY)              {                 profit = OrderProfit();                Pos    = OrderTicket();                if (profit > 0 && profit > Lprofit) {                   // Previous value                   Lprofit1 = Lprofit;                   Lpos1    = Lpos;                   // Maximum value                   Lprofit = profit;                   Lpos    = Pos;                }             }          }       }      }       return (Lpos);//========================================  Least Profitable Order =======================================intCloseProfitOrder(int mNumber) {   double profit  = 0;   int    Pos     = 0;   for (int trade = OrdersTotal() - 1; trade >= 0; trade--) {       if (OrderSelect(trade, SELECT_BY_POS, MODE_TRADES))  {          if ((OrderSymbol() == Symbol()) && (OrderMagicNumber() == mNumber)){             if (OrderType() == OP_SELL || OrderType() == OP_BUY) {                 profit = OrderProfit();                Pos    = OrderTicket();                if (profit < 0 && profit < Cprofit) {                   Cprofit = profit;                   Cpos    = Pos;                }             }          }       }      }       return (Cpos);}//==========================================  Closing Orders ===============================================intCloseSelectOrder(int mNumber){  int error =  0;  int error1 = 0;  int error2 = 0;  int Result = 0;//                       ----------------------  Last Order -----------------------                              while (error1 == 0  {          RefreshRates();            i = OrderSelect(Lpos, SELECT_BY_TICKET, MODE_TRADES);            if  (i != 1 ) {                Print ("Error! Not possible to select most profitable order . Operation cancelled.");                return (0);            }              if ((OrderSymbol() == Symbol()) && (OrderMagicNumber() == mNumber)) {               if (OrderType() == OP_BUY) {                  error1 =  (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Bid, Digits), Spread, Blue));                  if (error1 == 1) {                     Print ("Leading Order closed successfully");                      Sleep (500);                     } else {                     Print ("Error closing leading order, Repeat Operation. ");                                       }                     } //                        -----------------------------------------------------                              if (OrderType() == OP_SELL) {                  error1 = (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Ask, Digits), Spread, Red));                  if (error1 == 1) {                     Print ("Leading Order closed successfully");                      Sleep (500);                     } else {                     Print ("Error closing leading order, Repeat Operation. ");                                       }               }            }       }//                       ---------------------- Previous Last  -----------------------                            		      if(Lpos1 != 0)      {      while (error2 == 0) {            RefreshRates();            i = OrderSelect(Lpos1, SELECT_BY_TICKET, MODE_TRADES);            if  (i != 1 ) {                Print ("Error! Not possible to select previous most profitable order . Operation cancelled.");                return (0);            }              if ((OrderSymbol() == Symbol()) && (OrderMagicNumber() == mNumber)) {               if (OrderType() == OP_BUY) {                  error2 =  (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Bid, Digits), Spread, Blue));                  if (error2 == 1) {                     Print ("Previous leading order closed successfully");                     Sleep (500);                     } else {                     Print ("Error closing previous leading order, Repeat Operation. ");                                       }                     } //                        -----------------------------------------------------                              if (OrderType() == OP_SELL) {                  error2 = (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Ask, Digits), Spread, Red));                  if (error2 == 1) {                     Print ("Previous leading order closed successfully");                      Sleep (500);                     } else {                     Print ("Error closing previous leading order, Repeat Operation. ");                                       }               }            }       }      }//								----------- Selected (Least profitable order ) -----------      while (error == 0) {            RefreshRates();            int i = OrderSelect(Cpos, SELECT_BY_TICKET, MODE_TRADES);            if  (i != 1 ) {                Print ("Error! Not possible to select least profitable order. Operation cancelled");                return (0);            }                if ((OrderSymbol() == Symbol()) && (OrderMagicNumber() == mNumber)) {               if (OrderType() == OP_BUY) {                  error = (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Bid, Digits), Spread, Blue));                   if (error == 1 ) {                     Print ("Order closed successfully.");                      Sleep (500);                     } else {                     Print ("Error during Order Close. Repeat operation.  ");                                      }                }        //                             --------------------------------------------------                               if (OrderType() == OP_SELL) {                  error = (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Ask, Digits), Spread, Red));                  if (error == 1) {						Print ("Order closed successfully.");                      Sleep (500);                     } else {						  Print ("Error during Order Close. Repeat operation.  ");                                       }               }            }      }       Result = 1;  return (Result);    }   
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-06-14 14:27:21 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/747418.html
  2. 运行时间 : 0.115951s [ 吞吐率:8.62req/s ] 内存消耗:4,931.24kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=ec9d6eb6a7982b3af3aa74c824068044
  1. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_static.php ( 6.05 KB )
  7. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
  10. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  11. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  12. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  13. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  14. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  15. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  16. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  17. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  18. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  19. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions_include.php ( 0.16 KB )
  21. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions.php ( 5.54 KB )
  22. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  23. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  24. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  25. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/provider.php ( 0.19 KB )
  26. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  27. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  28. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  29. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/common.php ( 0.03 KB )
  30. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  32. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/alipay.php ( 3.59 KB )
  33. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  34. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/app.php ( 0.95 KB )
  35. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cache.php ( 0.78 KB )
  36. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/console.php ( 0.23 KB )
  37. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cookie.php ( 0.56 KB )
  38. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/database.php ( 2.48 KB )
  39. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/filesystem.php ( 0.61 KB )
  40. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/lang.php ( 0.91 KB )
  41. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/log.php ( 1.35 KB )
  42. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/middleware.php ( 0.19 KB )
  43. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/route.php ( 1.89 KB )
  44. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/session.php ( 0.57 KB )
  45. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/trace.php ( 0.34 KB )
  46. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/view.php ( 0.82 KB )
  47. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/event.php ( 0.25 KB )
  48. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  49. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/service.php ( 0.13 KB )
  50. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/AppService.php ( 0.26 KB )
  51. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  52. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  53. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  54. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  55. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  56. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/services.php ( 0.14 KB )
  57. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  58. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  59. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  60. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  61. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  62. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  63. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  64. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  65. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  66. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  67. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  68. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  69. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  70. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  71. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  72. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  73. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  74. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  75. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  76. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  77. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  78. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  79. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  80. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  81. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  82. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  83. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  84. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  85. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  86. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  87. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/Request.php ( 0.09 KB )
  88. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  89. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/middleware.php ( 0.25 KB )
  90. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  91. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  92. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  93. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  94. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  95. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  96. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  97. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  98. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  99. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  100. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  101. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  102. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  103. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/route/app.php ( 3.94 KB )
  104. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  105. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  106. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Index.php ( 9.87 KB )
  108. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/BaseController.php ( 2.05 KB )
  109. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  110. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  111. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  112. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  113. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  114. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  115. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  116. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  117. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  118. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  119. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  120. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  121. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  122. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  123. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  124. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  125. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  126. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  127. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  128. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  129. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  130. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  131. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  132. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  133. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  134. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  135. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Es.php ( 3.30 KB )
  136. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  137. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  138. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  139. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  140. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  141. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  142. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  143. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  144. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/runtime/temp/c935550e3e8a3a4c27dd94e439343fdf.php ( 31.50 KB )
  145. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000593s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000774s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.003158s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.002162s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000567s ]
  6. SELECT * FROM `set` [ RunTime:0.000648s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000672s ]
  8. SELECT * FROM `article` WHERE `id` = 747418 LIMIT 1 [ RunTime:0.003375s ]
  9. UPDATE `article` SET `lasttime` = 1781418442 WHERE `id` = 747418 [ RunTime:0.008904s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000251s ]
  11. SELECT * FROM `article` WHERE `id` < 747418 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000402s ]
  12. SELECT * FROM `article` WHERE `id` > 747418 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000894s ]
  13. SELECT * FROM `article` WHERE `id` < 747418 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.004474s ]
  14. SELECT * FROM `article` WHERE `id` < 747418 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.002090s ]
  15. SELECT * FROM `article` WHERE `id` < 747418 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.005529s ]
0.117681s