My EMA Duplicates when I backtest
-
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
-
@freeflow Please, check inside the condition blocks #1 and #2, you can see that you have 4 moving averages
-
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?
-
@freeflow Please, can you explain what you mean by "duplicating"?
-
@freeflow you forgot to change MA method to exponential in block #2

-
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. -
@freeflow as i said, you have 4 moving averages