Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to load historical data in strategy?

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

    #31
    Hello toughgetsgoing,

    That I know of, there are no sources of unlimited free tick or minute data from the market.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #32
      Hi Chelsea,

      I am able to backtest my strategy properly now. I have some technical question.

      On start of every new day, I do an asynchronous bars request for past 100 days (daily data). By the time I receive the data, all the intraday updates (OnBarUpdate) are already processed.

      Is it possible to request the data synchronously instead? (without using C# constructs like WaitHandles). On start of every new day: I would like to request past 100 days daily data, process the data and then start processing OnBarUpdate updates.

      Comment


        #33
        Hello toughgetsgoing,

        I am not aware of any safe ways to perform this sequentially.

        I think a thread sleep would be necessary but this not supported by (and is always advised against by) NinjaTrader Support to do.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #34
          Thanks Chelsea. I am using Thread.Sleep function as of now and the functionality in backtest is working as i expect. I don't expect this to cause any issue in live trading as this will be called only once at the start of the strategy.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          93 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          138 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          123 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          73 views
          0 likes
          Last Post PaulMohn  
          Working...
          X