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 sidlercom80, Today, 02:40 AM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by b16_aln, Today, 01:52 AM
          0 responses
          14 views
          0 likes
          Last Post b16_aln
          by b16_aln
           
          Started by junkone, Yesterday, 08:55 PM
          2 responses
          12 views
          0 likes
          Last Post junkone
          by junkone
           
          Started by adaeiqendqw, 01-16-2021, 02:56 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by [email protected], Yesterday, 06:10 PM
          5 responses
          17 views
          0 likes
          Last Post NinjaTrader_ChrisSch  
          Working...
          X