fxDreema

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

    My EMA Duplicates when I backtest

    Questions & Answers
    3
    7
    790
    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
      freeflow last edited by

      Please assist;
      I ran a back test and found that there are duplicates of my moving average and I have no idea why that is.
      I pasted the result from my back-test below.
      Here's the link to the code >> https://fxdreema.com/shared/zlT9gAA7e
      If you can let me know why this happens, I would really appreciate it since of course this will skew my results.
      Thanks in advance

      0_1590819440143_f43d5489-534a-458f-b967-a0d07ca2a8de-image.png

      A roar 2 Replies Last reply Reply Quote 0
      • A
        ambrogio @freeflow last edited by

        @freeflow Please, check inside the condition blocks #1 and #2, you can see that you have 4 moving averages

        F 1 Reply Last reply Reply Quote 0
        • F
          freeflow @ambrogio last edited by

          Thanks for your reply @ambrogio. I have 2 in each because the condition is for one crossing the other. One condition for short, one for long.

          It worked fine when I did it the first time - but when I amended the project, thats when they started duplicating.

          I'm mot sure how to do one MA crossing the other without using 2 MA's in the same condition block ... or am I missing something?

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

            @freeflow Please, can you explain what you mean by "duplicating"?

            1 Reply Last reply Reply Quote 0
            • roar
              roar @freeflow last edited by

              @freeflow you forgot to change MA method to exponential in block #2
              0_1590854365309_ae81f31d-15d1-4a30-ad0b-1a30610f8e26-image.png

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              F 1 Reply Last reply Reply Quote 0
              • F
                freeflow @roar last edited by

                Thanks @roar!
                I can't believe I did that - duh. I must have been really tired 😄
                Makes total sense why my EA paths looked different on the chart.

                A 1 Reply Last reply Reply Quote 1
                • A
                  ambrogio @freeflow last edited by

                  @freeflow as i said, you have 4 moving averages

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

                  Online Users

                  R
                  S
                  M
                  R
                  E
                  M
                  P
                  C
                  J
                  V
                  G

                  45
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors