What is wrong?

 

So I've tried to follow this video on youtube and I have copied the code perfectly but for some reason I am recieving an error.

I have absolutely no experience in this but would really like to learn and move past this hurdle.

Can anyone help me figure out what is wrong with the code and possibly explain what I have done wrong to me?

Thanks in advance


//+------------------------------------------------------------------+
//|                                               KamCatchesPips.mq4 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {

   if(Close[1] > iMA(Symbol (),0,200,1,0,PRICE_CLOSE,0) & Close[2]<iMA(Symbol (),0,200,1,0,PRICE_CLOSE,0))
   {
      OrderSelect(0,SELECT_BY_POS);
      OrderClose(OrderTicket(),.01,Bid,100,clrBlack);
      OrderSend(Symbol(),OP_BUY,.01,Ask,100,0,0,NULL,0,0,clrAliceBlue);
   
   }

   if(Close[1] < iMA(Symbol (),0,200,1,0,PRICE_CLOSE,0) & Close[2]>iMA(Symbol (),0,200,1,0,PRICE_CLOSE,0))
   {
      OrderSelect(0,SELECT_BY_POS)
      OrderClose(OrderTicket(),.01,Ask,100,clrBlack);
      OrderSend(Symbol(),OP_SELL,.01,Bid,100,0,0,NULL,0,0,clrAliceBlue);
   
   }
   
  }
//+------------------------------------------------------------------+
 
...LOSE,0) && Close[2]<...
 
Comments that do not relate to this topic, have been moved to "Off Topic Posts".