MQL 5 Closing position right after executed it

 

My MQL5 is closing my position right after having the position open, my code was working perfect and from now where it started to happened.


I have even create a new file completely from the zego to execute only one Buy position and the problem persists.


OBS: i ahve check and my stop loss and take profit they are set correctly, it even show in the graph for one second.


Could anyone help me with an insight, please?

 
  1. So something changed. You don't state it. How should we know. Did you subscribe to a signal?
  2. You create a new file, but don't show it. We can't see your broken code.
  3. You say it is "set correctly." We can't confirm that.
  4. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
         How To Ask Questions The Smart Way. (2004)
              Be precise and informative about your problem

    We can't see your broken code.

    Fix your broken code.

    With the information you've provided — we can only guess. And you haven't provided any useful information for that.

Reason: