how to close a open trade and wait for the opposite one.

 

hey every one

i want if conditions is true , open "just" one position(ex one buy) and when condition is good for sell open just one sell.

i would be really grateful if you could help me.

 
William: i want if conditions is true , open "just" one position
  1. Position count being zero is part of your "conditions."

  2. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help (2017)

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2018)

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
              No free help (2017)

 
William Roeder #:
  1. Position count being zero is part of your "conditions."

  2. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help (2017)

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2018)

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
              No free help (2017)

you really don't understand the problem?

the ea open buy trades in all candles , one by one after posititionst() return(buy)

im looking for codes that help me to open just 1 trade after  posititionst() return(buy).

then wait for  posititionst() return(sell) for open opposite trade.

 
William #: you really don't understand the problem?
  1. I really do understand.
  2. Your condition to open is when "posititionst() return(buy)" and your position count is zero.
 
William Roeder #:
  1. I really do understand.
  2. Your condition to open is when "posititionst() return(buy)" and your position count is zero.

you really want to kill or suffer me?

come on man give me the correct codes , i have no idea what to do with this Orders().

 
William #: come on man give me the correct codes 

You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help (2017)

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum (2018)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
          No free help (2017)

 
William Roeder #:

You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help (2017)

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum (2018)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
          No free help (2017)

after 3 hours,you give me a good answer

i do the same with others.