fxDreema

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

    Need Help With Open Trade

    Questions & Answers
    2
    12
    783
    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.
    • slimmz
      slimmz last edited by

      Hello,
      So I manage to make my EA and it works as intended, but I don't seem to find any function to achieve this:

      Condition:

      1. The trade is open
      2. Check if the indicator has crossing
      3. Close trade and continue the algo

      which combination of blocks I could use to achieve this?

      Project: https://fxdreema.com/shared/CpXJ87DRb

      Thanks

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

        @slimmz What you have is what you need, x> is for when a ma crosses above another ma, X< for when it crosses below, you can put a close block before a buy/sell block to close sel/buy, this will happen on whatever candle ID you have chosen. You can also remake the tree starting with the condition block to just close.

        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
        • slimmz
          slimmz last edited by slimmz

          Yes, that helps me,

          now comes the other, how do I make sure that the trade is only executed if the indicator CROSSING each other? only when they CROSSING. Because on my current settings, while I backtested it, the trade was continuously executed even when the indicator wasn't crossing.

          Whilst I only need them to be executed while only the indicator crossing

          Like, if I start the EA, it will only scan for the indicator. And if they cross each other, the trade will be executed, if not, just keep scanning

          and also, when trades are open, also do scan for indicator crossing, if happen, close current trades and open the new one, if not, just keep scanning.

          How do i map this?

          Update: https://fxdreema.com/shared/eIsw63aKd

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

            @slimmz Put an if trade at the top, this will limit to only one trade.

            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
            • slimmz
              slimmz last edited by

              i mean, only do trade when the ma crossing, not by limiting the open trade

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

                @slimmz I use the no trade block and then a group 2 etc trade to enter more if needed, a once per bat block will limit to only 1 trade per candle..

                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
                • slimmz
                  slimmz last edited by

                  can you give me an example in shared project please?

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

                    https://fxdreema.com/shared/0HA8HwDwb

                    Im using this settings as i found in the tutorial page, but i still have issue with it

                    When there is an open trade, and then the MA crossing each other, the trade wont close, why?

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

                      @slimmz Try doing this, the logic here is if opposite trade close then open new. I have used this setup many times and does as expected, try this, you can also set up completely separate trees to close, if you still struggle post here.

                      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! 😊

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

                        @jstap Im still struggling with your instruction, no matter where i put the close trade block, it just won't do when the ma is crossing

                        can you please make it for me and share, so i can test yours and check does it error in my system or my logic

                        Im using 2 MAs, both smoothed with 4&26 period
                        if 4 crossing up the 26, close sell and buy
                        if 4 crossing down the 16, close buy and sell

                        please share how you make it here so i can test, cheers

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

                          Update:

                          I don't know what was wrong with my project, but then i copied the one from tutorial page and modify it on my project and now the EA running as intended

                          thanks for your support @jstap

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

                            @slimmz Your welcome

                            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

                            K
                            W
                            S
                            V

                            12
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors