Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems when backtesting

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

    Problems when backtesting

    I ve inserted Print (ToTime(Time[0])); inside onBarUpdate(), and when I backtest the strategy, using output window, on a 1 minute bar data series, the time[0] is printed twice per bar like that:

    155500
    155500
    155600
    155600
    155700
    155700

    what is going on?

    #2
    Hello Dafonseca,

    Thank you for your post.

    Are you calling any additional data series from the script?

    Can you share a sample of your code?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Yes I am using two series, and that is what is causing the problem,,,
      I understood that when using more than one series, I must all ways pay attention to get the right serie for a specific condition,
      Thank you..

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      24 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      121 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      92 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      136 views
      0 likes
      Last Post cmoran13  
      Working...
      X