fxDreema

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

    Closing trade when one of my confirmation indicators gives opposite entry signal

    Questions & Answers
    fxdreema close trades close
    2
    5
    1080
    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.
    • kriespy
      kriespy last edited by

      Hi, I've been trying to figure out how to close a trade when one of my confirmation indicators is giving me an opposite entry signal. I tried it with "Close trades" function but it immediately closes all trade. I can't put it after my "Buy" function because it requires more confirmations.

      Example: 0_1634430106226_d78ddbbc-2e61-4ff9-8a88-b598c1ad2fbc-image.png
      This is closing instantly.

      Without the "Close trade" function:
      0_1634430357116_05030007-54a5-441a-bbff-b39351a9d58d-image.png
      It should close on the candle that is pointed by the arrow.

      Project: https://fxdreema.com/shared/2EsCzU6P (It's a mess)

      Thanks

      kriespy 1 Reply Last reply Reply Quote 0
      • kriespy
        kriespy last edited by

        This shared project is without the "Close trades" function, I just have no idea where to put the function.

        Buy trades should close if block 395 or block 611 is true for the buys.

        Sell trades should close if block 339 or block 302 is true for the sells.

        1 Reply Last reply Reply Quote 0
        • kriespy
          kriespy last edited by

          This is what I have now, but it doesn't meet my satisfaction.
          https://fxdreema.com/shared/QQ7bEuzue

          1 Reply Last reply Reply Quote 0
          • kriespy
            kriespy @kriespy last edited by kriespy

            Also in the second screenshot you see that there was a trade opened an closed right after. The second trade closed on break-even but should close on the pointed arrow candle.
            I've no idea why the first trade closed right after and why the second trade didn't close on the pointed candle.

            jstap 1 Reply Last reply Reply Quote 0
            • jstap
              jstap @kriespy last edited by

              @kriespy The reason trades close instantly is because your condition has left operand == right operand, but there is no difference.

              0_1634549567190_648af819-cac3-4764-ae10-6ff546f542d2-image.png

              Learn fxDreema Without the Wait!

              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

              Don’t miss out

              Click here➡️ https://mybook.to/fxDreema to get your copy today!

              Enjoy! 😊

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

              Online Users

              A
              A
              E
              B
              M
              J

              16
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors