HELP WHO CAN !!! - page 9

 
AND THIS EA IS JUST A QUESTION OF HOW TO BYPASS THE SELECT ERROR (THE LAST VARIABLE LEFT WHEN IT FAILS DUE TO MISSING ORDERS)
 
Techno:
There is nothing complicated. there are 4 arrays, each refers to one order of the same type, you know the names, each array has 4 numbers, the first is a ticket, the second an opening price, the third a take and the fourth a moose. got it?

BUT THERE ARE NO TARGETS OR MOOSE... THEY ONLY APPEAR WHEN MODIFYING TRIGGERED ONES.
 
sllawa3:
AND THIS EA IS JUST A QUESTION OF HOW TO BYPASS THE SELECT ERROR (THE LAST VARIABLE LEFT WHEN IT FAILS DUE TO MISSING ORDERS)
there will be no errors in this EA because it is correctly designed. If you understand, write the condition for closing the second order if the first one opened (by code) Takes will appear in due time, it is too early now, we should do everything point by point
 
SO I HAVE NO IDEA WHAT NUMBERS TO PUT IN THE PRESENCE OF ONE OR THE OTHER
 

that's how you spell it

if(DB[0]>1||DS[0]>1&&ZB[0]>1||ZS[0]>1)
      {
      if(DB[0]>1&&ZS[0]>1){OrderDelete(ZS[0],CLR_NONE);return;}
      if(DS[0]>1&&ZB[0]>1){OrderDelete(ZB[0],CLR_NONE);return;}
      }
 
E.G. DB[0]==1 OR DB[0]>1 OR DB[0]>0..... ETC.
 
The only thing left to do is to put a modification to set the stops. I won't do trailing, you can do it yourself
 
SO IT TURNS OUT THAT IF ALL THE WARRANTS ARE IN PLACE ?
if(DB[0]>1||DS[0]>1&&ZB[0]>1||ZS[0]>1)
 
THAT'S NEVER GOING TO HAPPEN EITHER... BUT IT DID..." OR "IT'S WORTH IT...
 

DB[2] ==0 || DB[3] ==0 ? FOR MODIFICATION ?

if(DB[0]>1&&DB[2]==0||DB[3]==0)