[OMG] My EA opens too many orders :)

 

Hello all :)

Sorry for my bad english, I'm a little French !

I have an EA that was coded by a programmer for me, it is perfect but there have a little problem.

It's a hedging EA, it opens ASK and BUY at the same time every X pips, and sometimes, when it comes back to the same place, it opens the same orders...

Can someone tell me what to change so as not to open the same orders each time ?

Picture of the orders problem.

What code i've got to add on my EA to check if an order is already in place at the same place?

Thank you in advance for your help.
Files:
1.jpg  43 kb
 
Sorry ! My EA run on MT4.
 
cachoupi: when it comes back to the same place, it opens the same orders...

Can someone tell me what to change so as not to open the same orders each time ?

  1. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.
         How To Ask Questions The Smart Way. (2004)
              Be precise and informative about your problem

    Always post all relevant code (using Code button) or attach the source file.

  2. Doubles are rarely equal. Understand the links in:
              The == operand. - MQL4 programming forum #2 (2013)

Reason: