open orders with 10pip gap - page 2

 
WHRoeder  please i uploaded the whole ea ,thanks for your wish to help
 
dan100: WHRoeder  please i uploaded the whole ea ,thanks for your wish to help
Where?
 
WHRoeder:
Where?


WHRoeder on your private massage box i
Send it through my mt5 with a name futureseer in to your mail box.thank
 
dan100: WHRoeder on your private massage box i
  1. What private message box? Personal Messages Will Be Disabled on January 15, 2015 - MQL4
  2. My ID on mql5 is not WHRoeder (That was created by some troll when I called him out.) Mine is whroeder1 but I never go there.
  3. I told you what you need to do, you haven't done it.
 
WHRoeder:
  1. What private message box? Personal Messages Will Be Disabled on January 15, 2015 - MQL4
  2. My ID on mql5 is not WHRoeder (That was created by some troll when I called him out.) Mine is whroeder1 but I never go there.
  3. I told you what you need to do, you haven't done it.


OK I am sorry I should have inform you before sending it..


 

But WHRoeder  i have done improvement on getting last open order according to the formular/steps you gave me...  here is the code! is it right.


now if i got the code right how can i then add 10 pip steps to the code since last order is gotten.


// Orders accounting 

{
     datetime lastTime  = 0;
    int      lastTicket = -1; // None open.
    for(int pos = OrdersTotal()-1; pos >= 0 ; pos--) if (
       OrderSelect(pos,SELECT_BY_POS, MODE_TRADES)                  // Only my orders w/
    &&  OrderMagicNumber()  == magic            // my magic number
    &&  OrderSymbol()       == Symbol()                 // and my pair.
    &&  OrderOpenTime()     >  lastTime
    &&  OrderTicket()       >   lastTicket
    ){
      lastTime   = OrderOpenTime();
      lastTicket = OrderTicket();
    }
 
please i need assistance on this code
 
dan100: please i need assistance on this code
I told you what you need to do, you haven't done it. Still.
 

WHRoeder this code is all in my calculation of order execution please i ask to help me to modify my errors and put me through. thank for your williness to help



// Orders accounting 

{
     datetime lastTime  = 0;
    int      lastTicket = -1; // None open.
    for(int pos = OrdersTotal()-1; pos >= 0 ; pos--) if (
        OrderSelect(0, SELECT_BY_POS,MODE_TRADES)                 // Only my orders w/
    &&  OrderMagicNumber()  == 0           // my magic number
    &&  OrderSymbol()       == Symbol()                 // and my pair.
    &&  OrderOpenTime()     >=  lastTime
    &&  OrderTicket()       >   lastTicket
    ){
      lastTime   = OrderOpenTime();
      lastTicket = OrderTicket();
    }
 
}

         Tip   =OrderType();                    // Type of selected order
         Price =OrderOpenPrice();               // Price of selected order
         SL    =OrderStopLoss();                // SL of selected order 
         TP    =OrderTakeProfit();               // TP of selected order
         Lot   =OrderLots();                     // Amount of lots
   
////////////////////////////////////////////////////////////////////////////////////////////////////////
//---------------------------------------- 5 ------------------------------------//
/*this is the poinnt where main formular or trading system EA-MA is based*/
//---------------------------------------------------------------------------
// Trading criteria
       
rsi1=iRSI(NULL,0,14,PRICE_CLOSE,1);
rsi2=iRSI(NULL,0,14,PRICE_CLOSE,0); 
     
 if(rsi2>70 && Ask > High[1] + (10*pips2dbl) )
  {
      Opn_S=true;
     } 
     else 
   if(rsi2>70 && Ask < High[1] + (10*pips2dbl)) 
      {
      Opn_S=false;
     }
 
please am still waiting for your assistance.WHRoeder   
Reason: