Does the back-tester only calculate from whole numbers?

Forums ProRealTime English forum ProBuilder support Does the back-tester only calculate from whole numbers?

Viewing 6 posts - 1 through 6 (of 6 total)
  • #113489

    Hi All,

    I am getting some what I would call anomalies within the backtesting strategy creator, and I was wondering if anyone could help?

    The strategy I’m looking at is just a simple crossover system using a custom indicator that I have made.  So if X > Y then long, Y > X then short.  Always in.

    However, when I run the backtest, very occasionally, the indicator crosses it’s MA (very slightly) and the on the next bar crosses immediately back – but the back-tester does not register this as a cross?

     

    So my question is:  Does the backtesting program work to a certain number of decimal places to the right or just whole numbers?  For example; the indicator is calculating to 5 decimal places, but the crosses only seem to register within the program when the cross magnitude is greater than 1.

     

    Can anyone please help clear this up for me?

     

    Many Thanks as always.

     

    Ross

    #113672

    Anyone?

    #113678

    This simple indicator will test whether tiny value crosses are recognised:

    …..and they are as flag returns a value of 1. But when I code something similar as a dummy strategy at ten decimal places the cross is not recognised and flag = 0. Below ten decimal places flag = 1 and the cross is recognised.

     

    #113679

    It depends on what you used as a term to identify a CROSSOVER, if you write:

    is because you want CLOSE to cross over. If HIGH does, but CLOSE doesn’t, then it’s not a crossover (the reverse for LOW), which, instead, would be true if you had written:

    As for decimals, I never happened to check that, but I think it uses ALL decimal places you see on your chart.

    #113680

    As for decimals, I never happened to check that, but I think it uses ALL decimal places you see on your chart.

    I assumed the same until I ran the test in my post just before yours. It seems that the ProOrder engine does not recognise the same cross overs that the ProBuilder engine does.

     

    #113682

    Data showed on the chart seems to consider only 5 decimals.

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

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