fxDreema

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

    Once per bar MT5

    Questions & Answers
    2
    13
    401
    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.
    • F
      fifeivkbdedwcf last edited by fifeivkbdedwcf

      Hey guys, @fxDreema

      switched from Mt4 to Mt5.
      Before never had the issue that both buy and sell were opened even when there is once per bar block.

      Tried both with 1 block for once per bar and for each buy and sell row both doesnt seem to help.

      any ideas, tips?

      Thx

      https://fxdreema.com/shared/R3yv26bdd

      test in MT5.png

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

        Although indicator conditions are opposite, you are using opposite logic, so both are activated at the same time, also once per bar in this situation needs to go under your condition, so it checks you're condition, before it activates once per bar.
        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! 😊

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

          @jstap

          Hi, thank you. so i would make it Check for no position-> Condition-> Once per bar for both sides each, or can i use 1 block for once per bar below conditions for both?
          Is this problem only for ADX indicator?
          When using Heiken Ashi for instance it didnt appear as well for both at same time.
          Just asking.

          https://fxdreema.com/shared/oOQQUhu4

          Just checked with the new adjustments, but problem still remains sameupdated still remain.png

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

            Rather than adding other blocks, change what you have and see what happens.

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

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

              @jstap

              How do you mean? So as you have explained i added once per bar below the last condition block, right?
              The other condition is for ADX for Trend strengh additonally to ADX Di+ and Di-.
              Tested it with and without this condition, buy and sell are still opened like before.
              Testing different approaches currently for ADX.

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

                Yes but as I said your two logics in the condition block are interfering with each other

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

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

                  @jstap

                  Ok, but how can i prevent this?
                  I thought therefore there are a block for Buy and a block for Sell conditions, because the Crossover for DI+ to -DI is the opposite right?

                  For Buy Di+ should cross -DI from below
                  and for Sell -Di should cross +Di from below.
                  You know, cause ADX is non directional.

                  When testing conditions blocks for Heiken Ashi i havent had this before as well.

                  https://fxdreema.com/shared/KhDjgTe1e

                  Here's an example project in MT4.

                  As someone suggested MT4 isnt that different than MT5 in FX dreema.

                  1 Reply Last reply Reply Quote 0
                  • F
                    fifeivkbdedwcf last edited by fifeivkbdedwcf

                    @jstap

                    Did a quick test only with <> for ADX DI conditions now the EA places only 1 position per bar.
                    Did you mean that that <x , >x caused the missleading output?testing.png MT5 testing.png

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

                      Change the logic, so both blocks use the same, then use the opposite X> or X<.

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

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

                        @jstap

                        Ok, with logic you mean the input inself like Di mode +Di -Di?
                        Yes, but isnt it like that?
                        You know, cause it needs to be that +Di crosses for buy and -Di crosses for short.
                        As i got it this ADX is non directional therefore for both it should be Di > than other Di. Or X> if crosses then works.
                        Otherwise i'm not sure how you mean this.
                        Signals Approach MT5.pngSignal Fx dreema.png

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

                          All I can say is test with all options, see what happens, then report back 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! 😊

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

                            @jstap

                            Yes, like mentioned tested it today afternoon.

                            When switching the x> to just > in the Di conditions block it opens 1 trade like desired.

                            Was it this what you meant by change the logic?

                            As i was told, for ADX indicator it should be "crosses" for the +Di and -Di not only above but oddly then there is the double trade placed with x>.

                            This was the test when it opned only 1 position with the is > function.

                            https://fxdreema.com/forum/assets/uploads/files/1695909508743-mt5-testing.png

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

                              No mate, left operand +Di X> -Di in other condition block +Di X< -Di

                              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