Jump to content

Help with my new ea order issue


bauerju

Recommended Posts

I just recently decided to try and learn MQL4 programming. I have no previous experience in any type of programming so this may be a simple fix.

 

I am looking for help from someone to explain to me why My first ea is not placing trades the way I would like it to.

 

The EA is supposed to be placing a Buystop and a sellstop trade. Only 1 trade each until one is closed out.

 

The EA is currently placing 2 buystop trades and not getting a chance to place a sellstop order. I think it wont place a sellstop because i have a 2 trade max rule. I dont want it placing 2 buystops but rather one buystop and one sellstop.

 

Below is the code.

any help is appreciated.

Thank you

 

Edit* nevermind i got it to work.

thanks

Edited by bauerju
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...