Back Testing Anomaly using an EMA crossover strategy

Forums ProRealTime English forum ProOrder support Back Testing Anomaly using an EMA crossover strategy

This topic contains 3 replies, has 3 voices, and was last updated by avatar Steveaw 4 months, 3 weeks ago.

Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 4 posts - 1 through 4 (of 4 total)
  • #116762

    Hi All

    I’ve been working on a code using an EMA crossover strategy on the 1 hour Wall St  Index to enter long.

    The code has produced good results on optimising, but then I noticed it didn’t enter where I would have expected on some trades on back tested results.

    I then did a comparison with a very simple crossover entry built from the wizard & stripped back my code to match it.  On back testing I found that the two codes had different results and different entry positions.

    I’ve loaded up the two test codes:c(my striped down original code). & SAW DOW 1Hr Long Test 02 (My comparison code built in the wizard).
    I’ve also loaded up the equity curve and market entry screens and the results for both codes.

    Can anybody explain this as if it is a backtesting anomaly I am wary of the results produced!

    Thanks in advance

    Steve

    PS Please note the codes below are the entry only section of the overall codes, but all the backtesting and results are from running these two same codes

    Attachments:
    #116777

    The second one uses a simple moving average (not exponential) for “indicator2”, while the first code uses EMA.

    #116789

    Topic moved to ProOrder forum which is for strategy topics. You posted in the ProBuilder forum which is for indicators. I think that is a better place for it as although your question is about an indicator it is about an indicator in a strategy!

    1 user thanked author for this post.
    #117177

    Hi Nicolas – thanks for that, I must have been going code blind!!!

    Steve

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login