• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 ericson, Today, 08:14 PM
      0 responses
      2 views
      0 likes
      Last Post ericson
      by ericson
       
      Started by user1986, Today, 07:28 PM
      1 response
      6 views
      0 likes
      Last Post user1986  
      Started by jertrade, Today, 06:57 PM
      0 responses
      5 views
      0 likes
      Last Post jertrade  
      Started by Emma1, Today, 02:42 PM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_DrewO  
      Started by fx.practic, Today, 03:10 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X