fxDreema

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

    EA places some trades when Candle closes MA and new candle opens above or below EA. However not all the time?

    Questions & Answers
    2
    8
    689
    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.
    • B
      Boseiai last edited by

      Hello everyone, I hope all of you are having a wonderful day.

      I seem to have a problem, where I've set my EA to sometimes correctly open a trade once the candle crosses and closes over the MA. And the next candles open must also be above the MA. (This would be a buy deal but for sell deals, opposite conditions need to apply)

      However I want my EA to do this EVERY time it does this (I will add another custom indicator later to filter trades)

      0_1647267159968_Screenshot 2022-03-14 140838.png

      As you can see the trade that occurs previously crosses downwards and the opening price is below the MA therefore opening a sell deal. However (where the red arrow is pointing) no buy trade is occurring here? The candle clearly crosses over the MA, and the open price is above the MA, however there is no buy deal.

      I kindly ask for some insight and help as to why this may be the case?

      0_1647267360989_Screenshot 2022-03-14 141538.png
      https://fxdreema.com/shared/Db47TXKWd

      This is the current outlook of my EA and I have shared a link just in case I am doing something wrong here.

      Thank you very much in advance

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

        @boseiai I am unsure but I am supprised you get any trade, to me a cross happens on either the high or low, many people do use close though, I do not see how a candle can cross above or below, and at the same time opens above or below.

        0_1647278662703_fcd0f593-8a58-4dbc-8f86-0c9f796cb68f-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
        • jstap
          jstap last edited by

          @boseiai I am unsure but I am supprised you get any trade, to me a cross happens on either the high or low, many people do use close though, I do not see how a candle can cross above or below, and at the same time open above or below.

          0_1647278662703_fcd0f593-8a58-4dbc-8f86-0c9f796cb68f-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! 😊

          B 2 Replies Last reply Reply Quote 0
          • B
            Boseiai @jstap last edited by

            @jstap

            So if we take the buys for example. My logic was as follows;

            That when the candle crosses above the MA line and closes above it. The first condition has been fulfilled
            Next condition, if the opening price of the next candle starts above the MA line. The second condition has been fulfilled

            Therefore it will open a buy deal at the opening price of the new candle once the previous candle has crossed and closed above the EA line.

            And from the screenshot provided, it worked with one of the trades, but should of worked later on too

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

              @jstap

              And when the first condition is not a "Crosses above" action (for a buy deal) but instead set to "Is Above" It starts to open multiple deals for some reason.

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

                @boseiai Your logic is correct but only if it's comparing candle ID1 to ID2.

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

                B 1 Reply Last reply Reply Quote 0
                • B
                  Boseiai last edited by

                  @jstap said in EA places some trades when Candle closes MA and new candle opens above or below EA. However not all the time?:

                  @boseiai Your logic is correct but only if it's comparing candle ID1 to ID2.

                  Aha! I think I may have fixed it, I changed the second conditions Candle to ID 0 and it may have worked now as intended

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

                    @jstap

                    0_1647280506692_Screenshot 2022-03-14 175437.png

                    Reference image, just did a quick back-test, it seems to open on all crossovers correctly and it exits the trade if it goes the opposite way

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

                    Online Users

                    E
                    L
                    E
                    S
                    H

                    14
                    Online

                    147.0k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors