fxDreema

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

    Please help me with this EA that uses a 15 period EMA at the close of the candle as the only indicator in H2 Time

    Questions & Answers
    3
    22
    935
    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.
    • VHV-Profit-Masters
      VHV-Profit-Masters last edited by

      Hello friends, please if someone has the good will to help me with this small project to test my strategy, I will greatly appreciate it, the strategy I am testing is very simple, I only use an EMA at the close of 15 periods in H2 timing as indicator, with the AUXUSD asset, if the candle crosses and closes above the 15 EMA, the EA should place a buy, and if the candle crosses and closes below the 15 EMA, then he should place a sell order with BE of 600 pips and the trailing stop it should work according to the table of values ​​that I share in the image below this text...
      Try to make the condition blocks cover all the possibilities of false crossings of the candle with the MA, that's why the project has many conditions,
      Here I also share the thread of my project so that anyone who wants to help me can do so, thank you very much in advance for your kind contribution friends.

      My number 1 problem: I can't get the Trailing Stop to work the same as the table in the image below:
      28d10d76-0e70-4274-a99a-ae4e91364d46-image.png

      My problem number 2: is that I cannot make the EA place all the operations every time it crosses the EMA, there are many buy/sell operations that the EA does not place and I do not know how to make it operate on each candle that crosses and closes. According to the conditions placed in the EA, here I share an image where the problem is circled:
      6a574562-2d62-4817-9c65-04f529f5bd2e-image.png

      Proyect:
      https://fxdreema.com/shared/m7jbf562e

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

        I suggest you use ID 1, because ID o close is the currant bid price

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

        VHV-Profit-Masters 1 Reply Last reply Reply Quote 0
        • VHV-Profit-Masters
          VHV-Profit-Masters @jstap last edited by

          @jstap Friend, thank you for answering, I honestly don't understand you, sorry I use Google translator and sometimes I don't understand or understand the messages correctly, can you illustrate me with images please if it's not too much trouble, thank you...

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

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

            VHV-Profit-Masters 1 Reply Last reply Reply Quote 0
            • VHV-Profit-Masters
              VHV-Profit-Masters @jstap last edited by

              @jstap I made the changes in each configuration of the condition blocks and now it operates less than before, the same error continues

              f9b28104-d211-4da2-ac4e-c2e8cd841ad8-image.png

              1 Reply Last reply Reply Quote 0
              • VHV-Profit-Masters
                VHV-Profit-Masters last edited by

                image.png

                1 Reply Last reply Reply Quote 0
                • VHV-Profit-Masters
                  VHV-Profit-Masters last edited by

                  Alguien puede ayudar por favor?

                  A 1 Reply Last reply Reply Quote 0
                  • VHV-Profit-Masters
                    VHV-Profit-Masters last edited by

                    I have already tried several things and the EA still does not operate on all the candles that it should, in addition to the fact that the trailing stop does not meet the parameters I need, can someone please help me?

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

                      By setting to ID1 things will be 1 candle late, but this isn't always a bad thing. Get this working with one condition, then work out how to add the next, until it does all you need

                      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
                      • A
                        alok @VHV-Profit-Masters last edited by

                        @DragonZueloTrends said in Please help me with this EA that uses a 15 period EMA at the close of the candle as the only indicator in H2 Time:

                        Alguien puede ayudar por favor?

                        9a12a16b-1df4-4cd3-abde-5460c2e39b51-image.png

                        VHV-Profit-Masters A 2 Replies Last reply Reply Quote 0
                        • VHV-Profit-Masters
                          VHV-Profit-Masters @alok last edited by

                          @alok Should I only make this change in the crossing conditions?

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            alok @alok last edited by

                            @alok said in Please help me with this EA that uses a 15 period EMA at the close of the candle as the only indicator in H2 Time:

                            @DragonZueloTrends said in Please help me with this EA that uses a 15 period EMA at the close of the candle as the only indicator in H2 Time:

                            Alguien puede ayudar por favor?

                            9a12a16b-1df4-4cd3-abde-5460c2e39b51-image.png

                            ENUM_TIMEFRAMES TimeFrame = PERIOD_CURRENT

                            8168b43f-a98d-460d-b224-41c5efac5ba9-image.png
                            ae52dcab-8d8a-481b-988a-ac40347a872d-image.png

                            1 Reply Last reply Reply Quote 0
                            • A
                              alok @VHV-Profit-Masters last edited by

                              @DragonZueloTrends said in Please help me with this EA that uses a 15 period EMA at the close of the candle as the only indicator in H2 Time:

                              @alok Should I only make this change in the crossing conditions?

                              That's exactly it, under the conditions

                              VHV-Profit-Masters 1 Reply Last reply Reply Quote 0
                              • VHV-Profit-Masters
                                VHV-Profit-Masters last edited by

                                Ready, Make all the suggested changes, as shown in the image below... I proceed to test the results

                                image.png

                                A 1 Reply Last reply Reply Quote 0
                                • VHV-Profit-Masters
                                  VHV-Profit-Masters @alok last edited by

                                  @alok Now this error appears

                                  448ac82e-993b-4144-af4d-12ba772f5a1d-image.png

                                  A 1 Reply Last reply Reply Quote 0
                                  • VHV-Profit-Masters
                                    VHV-Profit-Masters last edited by

                                    I already discovered the error, I had to write the constant type like this: ENUM_TIMEFRAMES, I'm trying it now

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      alok @VHV-Profit-Masters last edited by

                                      @DragonZueloTrends you have to say 'PERIOD_CURRENT', you can't put PERIOD_CURRENT 'PERIODO' wrong

                                      A 1 Reply Last reply Reply Quote 0
                                      • A
                                        alok @alok last edited by

                                        @alok 8a764698-e917-4ab2-bf51-3822af327918-image.png

                                        remove the letter 'O'

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          alok @VHV-Profit-Masters last edited by

                                          @DragonZueloTrends said in Please help me with this EA that uses a 15 period EMA at the close of the candle as the only indicator in H2 Time:

                                          I already discovered the error, I had to write the constant type like this: ENUM_TIMEFRAMES, I'm trying it now

                                          the error is that you wrote 'PERIOD_CURRENT' wrong, you put 'PERIODO_CURRENT'

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            alok @VHV-Profit-Masters last edited by

                                            @DragonZueloTrends said in Please help me with this EA that uses a 15 period EMA at the close of the candle as the only indicator in H2 Time:

                                            Ready, Make all the suggested changes, as shown in the image below... I proceed to test the results

                                            image.png

                                            ![1c91a19e-aa87-457c-b3ae-e019e1f6ca41-image.png](/forum/assets/uploads/files/1713198517125-1c91a19e-
                                            aa87-457c-b3ae-e019e1f6ca41-image.png)
                                            It has to change here too

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

                                            Online Users

                                            M
                                            M
                                            R

                                            21
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors