fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Multiple Open Positions Issue

    Questions & Answers
    1
    2
    2
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Peter911 last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • P
        Peter911 last edited by

        Here is the link to the project https://fxdreema.com/shared/1moIlMrV

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        T
        S
        C

        15
        Online

        147.1k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors