Issues with Horizontal Line acting like SL and TP

 

Hi everyone, 

I'm working in an EA where the SL and TP are a horizontal line, when the price is < the horizontal line price the order closes depending on if it is TP or SL. The problem is when the EA goes to open another position places the lines in diferents prices that were not indicated. (In a madness way)

 
J Hernandez: I'm working in an EA

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).
     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: