You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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
----------------------------------------------------------------------------