EA not shutting down after TP or TSL have been hit

 

Hi community, my EA, which is programmed in MQL4, is not shutting down after it hits TP or the trailing SL. It immediately opens and closes another order, and sometimes it opens an order and doesn't close it at all. Does anyone have a solution to this?

Thank you

 
  • Usually people who can't code don't receive free help on this forum.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
  • To learn MQL programming, you can research the many available Articles on the subject, or examples in the Codebase, as well as reference the online Documentation.
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free). However, recommendations or suggestions for Market products are not allowed on the forum, so you will have to do your own research.
  • Finally, you also have the option to hire a programmer in the Freelance section.
 
jaygre81: Does anyone have a solution to this?

Fix your broken code. We can't see it or your machine, or read your mind.