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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          65 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          149 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          99 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X