How to save data Old OpenOrder or How to send data when the order has taken modified?

 

How to save data Old OpenOrder or How to send data when the order has taken modified?

this code i will try to see its modify order but it cannot use

 for(int i=0; i<total; i++)

     {

      if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))

        {

         if(i>=magicno)

           {



            // SLPJP =OrderStopLoss()+MarketInfo(OrderComment(),MODE_POINT);



            if(OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(), OrderTakeProfit(),OrderOpenTime(),clrAliceBlue))

              {



               Print( SLPJP ," with ",magicno);

              }

            else

              {

               //Print("ERROR SLPJP");

              }

            }

           }

         else

            Print("OrderSelect error of ",GetLastError());

        }
 
Koonskhwan W.:

How to save data Old OpenOrder or How to send data when the order has taken modified?

this code i will try to see its modify order but it cannot use

What information do you want to save?   how well do you want to save it?   Do you need it within the function or outside the function.

You can use Static string  variable = " ";

or set up a global variable to write to it.

I assume you know this.....this information is helpful...great.   Otherwise, I am unclear as to what you are asking for.   Please provide more details about what you are attempting to do and what specific help you need.

Chris