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 bortz, 11-06-2023, 08:04 AM
      47 responses
      1,606 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      9 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      19 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      6 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      15 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X