EA continue to open trades - page 2

 
Pr0Tr4d3r:

Hello, i'm trying to build an EA.
When I run it works as coded, the problem verify once the condition for Long or Short position are met.
Let me explain deeper, when the price met all the conditions to open a Long/Short position the EA open the position, when the price hit the StopLoss or TakeProfit the position is closed correctly, is here that the problem occurs,
on the next Tick, the EA open a new position on the same direction even if the conditions to go Long/Short aren't met.


THIS IS PART OF THE CODE

---------------------------------------------------------------------------- 


Please post your mql4 related question in the MQL4 SECTION!!!
Reason: