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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      61 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      39 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X