fxDreema

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

    Slower onTick() process time when on Backtest

    Questions & Answers
    3
    4
    1321
    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.
    • P
      ps21 last edited by

      Hi,

      I'm very new to Fxdreema. I put code to track process time by put GetTickCount(); function at beginning of onTick() and calculate difference at the end of onTick() function. I notice very slow process time on backtest around 2,500 ms but when testing in real situation in run fine at about 150 ms.

      Any idea why?

      Thanks a lot in advance

      1 Reply Last reply Reply Quote 0
      • R
        richard96816 last edited by

        Back-testing is fake. It's a simulation. It needs to be built every tick of the way.

        Using tick data instead of Open Prices Only is especially slow. Lots of data to move around, create and simulate. Back-testing simulation of time is very imperfect.

        Using Once Per Bar, if you're not already, can make a huge difference in the speed of testing.

        1 Reply Last reply Reply Quote 0
        • P
          ps21 last edited by

          I understand that there are overhead when run simulation but onTick() is the same function it should take same time to complete unless there are something cause it to cost more time when run in simulation if that the case any idea what causing it.

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

            2 seconds and a half for just 1 tick? Are you sure?

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

            Online Users

            O
            J
            B

            17
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors