我可以使用这些(){}这么多吗?

 
//+------------------------------------------------------------------+
//|                                                        xxxxx.mq4 |
//|                                              Copyright 2012 xxxxx|  
//|                                                                  |
//+------------------------------------------------------------------+
extern string xxxxx
extern double xxxxx
extern double xxxxx
extern double xxxxx
extern double xxxxx
extern int    xxxxx
extern int    xxxxx
extern double xxxxx
extern double xxxxx
extern double xxxxx
extern int    xxxxx
extern bool   xxxxx

void deinit() 
{
   Comment("");
}
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int start()
{
   if(xxxxx)
   {
         Print("xxxxx");
         return(0);
   }
         if(xxxxx)
      {
            Print("xxxxx");
            return(0);
      }
         if(xxxxx)
      {
            Print("xxxxx");
            return(0);
      }

          datetime start = StrToTime("00:00");
          datetime end = StrToTime("23:59");
   
               if(TimeCurrent() >= StartTrade && TimeCurrent() < EndTrade)
               {
                  Print("TRADING");
               }
                  else
               {
                  Print("NOT TRADING");
                  return(0);
               }

   double xxxxx;
   double xxxxx;
   double xxxxx;
   double xxxxx;
   
      if((xxxxx))
   {
         Print("xxxxx);
      return(0);
   } 
      if(xxxxx)
   {
         Print("xxxxx);
      return(0);
   }
         if(xxxxx)
      {
            Print("xxxxx");
            return(0);
      }
         if(xxxxx)
      {
            Print("xxxxx");
            return(0);
      }      
           if (!xxxxx)
         {
              if ((xxxxx))
            {
                  OpenBuy();
                  return(0);
            }
                  if ((xxxxx))
               {
                     OpenSell();
                     return(0);
               }
         }
}
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
bool ExistPositions()
{
for (int i=100; i<xxxxx; i++) 
   {
   if (xxxxx(i, SELECT_BY_POS, MODE_TRADES)) 
      {
      if (xxxxx()==Symbol()) 
         {
         return(True);
         }
      } 
   } 
         return(false);
         }
            void OpenBuy() 
            { 
               double ldLot, ldStop, ldTake; 
               string lsComm; 
               ldLot = GetSizeLot(); 
               ldStop = GetStopLossBuy(); 
               ldTake = GetTakeProfitBuy(); 
               lsComm = GetCommentForOrder(); 
               OrderSend(Symbol(),OP_BUY,ldLot,Ask,Slippage,ldStop,ldTake,lsComm,0,0); 
            } 
            void OpenSell() 
            { 
               double ldLot, ldStop, ldTake; 
               string lsComm; 
               ldLot = GetSizeLot(); 
               ldStop = GetStopLossSell(); 
               ldTake = GetTakeProfitSell(); 
               lsComm = GetCommentForOrder(); 
               OrderSend(Symbol(),OP_SELL,ldLot,Bid,Slippage,ldStop,ldTake,lsComm,0,0); 
            } 
               string GetCommentForOrder() 
               { 
                  return(xxxxx); 
               } 


            double xxxxx() 
            {
               return(LotSize); 
            } 
            double Getxxxxx() 
            { 
               return(Ask+xxxxx*Point); 
            } 
            double Getxxxxx() 
            { 
               return(Bid-xxxxx*Point); 
            }
            double Getxxxxx() 
            { 
               return(Bid-xxxxx*Point); 
            }
            double Getxxxxx() 
            { 
               return(Ask+xxxxx*Point);
      return(0);
      }
 
我的恶梦特别版~~
 

我可以知道EA的脚本是什么吗?

mqt文件。

 

我可以在EA中加入支撑阻力线吗?

所以交易将只在支撑/阻力线上开仓,并在到达支撑/阻力线时退出?

 

如果我想在EA运行时在图表上画 一些线,该如何写代码?

趋势线,支撑阻力线等等。

 

我可以用这段代码来检测蜡烛的高低点吗?

if(High[1]<High[2] && Low[1]>Low[2]
 

那这个呢?

if(High[1]<High[2]
{       
int OrderSend (string symbol, int cmd, double volume, double price, int slippage, double stoploss,
double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
return(0)
 

我正在努力创建另一个强大的EA...^^

请帮助我。

有人在这里吗?

 
你为什么要就同样的基本代码创建一个新的主题? 你为什么需要两个主题?
 
是的,你

可以使用这些(){}这么多?

修改时出现错误信息。

我想知道EA的脚本是什么?

脚本的工作完成后就会停止

我可以在EA中加入支撑阻力线吗?

为什么不可以呢?

如果我想在EA运行时在图表上画一些线,该怎么写代码呢?

趋势线、支撑阻力线等等。

在同一图表上使用一个指标

在你的EA中画线

Print("high1 = ",High[1]); or Comment("high1 = ",High[1]);

===========================================

那这个呢?

if(High[1]<High[2]
{       
int OrderSend (string symbol, int cmd, double volume, double price, int slippage, double stoploss,
double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
return(0)

这不是你程序中的工作方式,请从创建简单的程序开始练习,并在模拟账户 上测试它。

你根本不知道自己在做什么,你怎么可能创造出另一个强大的EA......^^如果你不从基本的

 

好的。

我将再次学习它。

从头开始...