Mql4 code for trade continuation

 

Hi all, 

I hired a developer to code an EA for me. He added trade continuation. However the EA does not have any trade continuation. I know a little bit of mql4 language but when I checked the source code, it does not make sense to me. below is the code for trade continuation.


if( Continuation )

{

   if(OrderSelect(LastSellTicket,SELECT_BY_TICKET,MODE_HISTORY))

      if(OrderCloseTime()!=0)

        {



         LastSellTicket=-1;

         if(StringFind(OrderComment(),"tp")!=-1)

           {

            if(!IsTradeForbiddenByNews())

              {

               //if (nSell==0 && cci3>100 && cci2<100 && cci1<100 && cci0<100)

               if(cci1>100 && cci0<100)

                  //if (senkoSpanA0 < senkoSpanB0 && close0 < senkoSpanA0)

                  if(close0<senkoSpanA0 && close0<senkoSpanB0)

                     if(iv2 == 1)

                       {

                        LastSellTicket=PlaceOneOrder(OP_SELL);

                        LastSell=iTime(Symbol(),Period(),0);

                       }

              }

           }

        }



   if(OrderSelect(LastBuyTicket,SELECT_BY_TICKET,MODE_HISTORY))

      if(OrderCloseTime()!=0)

        {



         LastBuyTicket=-1;

         if(StringFind(OrderComment(),"tp")!=-1)

           {

            if(!IsTradeForbiddenByNews())

              {

               //if (nBuy==0 && cci3<-100 && cci2>-100 && cci1>-100 && cci0>-100)

               if(cci1<-100 && cci0>-100)

                  //if (senkoSpanA0 > senkoSpanB0 && close0 > senkoSpanA0)

                  if(close0>senkoSpanA0 && close0>senkoSpanB0)

                     if(iv1 == 1)

                       {

                        LastBuyTicket=PlaceOneOrder(OP_BUY);

                        LastBuy=iTime(Symbol(),Period(),0);

                       }
 
In case of troubles with a freelance order you have to start an arbitration. Make sure all is well documented - we can't help you here.
Rules of Using the Freelance Service
Rules of Using the Freelance Service
  • www.mql5.com
Rules of Using the Freelance Service: general provisions, execution of orders, payments,
 
Carl Schreiber #:
In case of troubles with a freelance order you have to start an arbitration. Make sure all is well documented - we can't help you here.

I actually had this EA done a long time ago and came across it today. Just wanted to know if the code makes any sense in terms of opening trades under that code

[Deleted]  
Your topic has been moved to the section: MQL4 and MetaTrader 4 — Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893