OrderClose 4108 Error

 
Hi, I'm backtesting my basic codes and I actually don't have any problems while backtesting it on results but I get OrderClose 4108 Error on Journal tab. There is my codes, what do I wrong? I did some researches but couldn't find the answer to fix my codes. I would appreciate your helps.

int ticket = 0;

void OnTick()
  {
//---
     
     int kontrol=0;
     for(int i=1; i<4; i++)
      {
        if (Close[i]>Open[i])
         {
            kontrol++;
         }
      }
     if (kontrol==3)
      {
         if(MagicNumberEsitMi(88888))
            {
               Print("İşlem Açık");
            }
         else
            {
               if (Close[1] + 0.001 > Ask && Close[1] - 0.001 < Ask)
                  {
                     ticket = OrderSend(NULL,OP_BUY,0.01,Ask,10,Ask-0.002,Ask+0.001,NULL,88888,0);
                  }
            }
      
      }
      else if (OrderSelect(ticket,SELECT_BY_TICKET)==true && kontrol<3)
 
            {
               OrderClose(ticket,0.01,Ask,10);
            }
          
     
     
  }

 
 
else if (OrderSelect(ticket,SELECT_BY_TICKET)==true && OrderCloseTime()==0 && kontrol<3)
 
            {
               OrderClose(ticket,0.01,Ask,10);
            }


I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section.

In future please post in the correct section.

I will move your topic to the MQL4 and Metatrader 4 section.

 
Thank you so much @Keith Watford I'm a newbie in this forum. I'll obey the rules as soon as I get how to use. Sorry for my mistake. Thanks again!