Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tick Backtest skips ticks

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Tick Backtest skips ticks

    Setup:
    - I am running the latest version of Ninja Trader 8.
    - I imported tick data which consists of ticks when a price moved X steps.
    Note: The tick data sometimes has no tick data on a certain day as price didn't move.
    - I can see all imported data and it seems to be correct in the Historical Data.

    Problems occur when:
    I do a backtest with a simple strategy with these settings:

    Price based on: Last
    Type: Tick
    Value: 1

    In the onBarUpdate of the strategy I print the Time[0]. However, it seems to skip certain ticks when the previous day didn't contain any ticks. It seems to then skips X amount of ticks until at some point it continues to call onBarUpdate again for future ticks.

    What could be going on ?

    Edit: I think I just found the issue. Setting Trading hours to 24/7 fixed the problem. Not totally sure why the default "Forex" setting for EURUSD had the above behavior?
    Last edited by connex; 07-05-2017, 03:06 AM.

    #2
    Hello connex,

    What day and what time exactly did this behavior occur and in what time zone are you located?

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cls71, Today, 04:45 AM
    0 responses
    1 view
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    213 views
    1 like
    Last Post PaulMohn  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    544 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    3 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    12 views
    0 likes
    Last Post XXtrader  
    Working...
    X