Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Will NinjaTrader accept 0 price?

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

    Will NinjaTrader accept 0 price?

    Hi all,

    I have historical data with missing bars. I would like to import the data in NinjaTrader and to develop and optimize a strategy.

    I would like to use historical data as it is, because it is the real situation with the market - there are gaps without trades.

    I think I could "simulate" missing bars with Open = High = Low = Close = Volume = 0, and I will check the price in the strategy.

    Will NinjaTrader accept 0 price?

    Is there a better way to simulate missing bars?

    Thanks,

    Valentin

    #2
    Actually I could import historical data without inserting missing bars. NinjaTrader would use the index to access data and I can check Time[...] for gaps. Am I correct?

    Comment


      #3
      Originally posted by Valyo View Post
      Actually I could import historical data without inserting missing bars. NinjaTrader would use the index to access data and I can check Time[...] for gaps. Am I correct?
      If I may interject an opinion?

      What you describe can only be a very illiquid market. Technical Analysis is notoriously inaccurate in illiquid markets. Why would you even try?

      Comment


        #4
        Yes, thank you.

        I suppose that it is hard to develop a cuccessful strategy for an illiquid market. I just need to backtest and optimize the strategy to prove it.

        I need to compare prices of different instruments, so it will be a multi-instrument strategy. All instruments have gaps.

        It seems I would really need to insert missing bars so that all series will be with the same bars. And then I will by/sell only when there is sufficient data to calculate indicators.

        Is there a better way to handle illiquid markets?

        Comment


          #5
          Hello Valetin,

          Thank you for your post.

          You can edit the historical data manually to add in these missing bars: http://www.ninjatrader.com/support/h...t7/editing.htm

          Otherwise, it would be quite complex to develop code that could detect and simulate historical data for all bar types.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          649 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          576 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X