Multiple Open Positions Issue
-
Hello everyone,
I would appreciate your assistance with an issue I am experiencing.
Strategy:
- When a candle closes above the 12 EMA, a buy position is opened.
- If, while that buy position is still open, a new candle closes below the 12 EMA, a sell position is opened.
Problem:
After the sell position is opened, every new candle that crosses back above the 12 EMA, then below the 12 EMA and closes, creates additional sell positions. This results in multiple sell trades being opened instead of just one.Question:
How can I prevent this from happening? I only want one active position per direction until either the stop loss or take profit is reached. I have already tried using the "Once Per Bar" block, but it has not resolved the issue.Any advice would be greatly appreciated. Thank you!
-
Here is the link to the project https://fxdreema.com/shared/1moIlMrV