Break within open position

 

Hello, I was thinking if there is a way to code something like :

1st position is open at 1.3000

2nd position must be open only when the price reach 1.3004

3rd position only at 1.3008

I was thinking to use: "case 1 at 1.3001 no order send with comparedoubles1"

                                "case 2 at 1.3002 no order send with comparedoubles2"

and so on until case 10 will be the last one ... but I hope there will be another way to simplify this, I tried to search on forum/web but did not find anything relevant.

Thank you in advance,

PS: I want to mention that I am newbie in mql4 coding.

 

darchii:

1st position is open at 1.3000., 2nd position must be open only when the price reach 1.3004

PS: I want to mention that I am newbie in mql4 coding.
  1. find the last open order with a order select loop

    none - wait for price to reach your first trigger (1.3000) and open

    else - wait for price to reach last open price + 4 pips and open another

    10 - limit reached

  2. Since there are no slaves here, you have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
 
All I needed was a start, or few steps because I will handle it over there. Thanks for your help, hope to handle it if not when I will write some line I will be back for more answers.