Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Load historical data via code

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

    Load historical data via code

    Hello,

    1. Is NT8 support to load historical data via code ? If so whats the relevant methods or functions?

    2. is there any samples?

    Sincerely,Kobi

    #2
    Hello levikNT,

    Yes, this can be done with a BarsRequest. Below is a link to the help guide on BarsRequest which includes an example.
    http://ninjatrader.com/support/helpG...arsrequest.htm

    Also, below is a link to a working sample.
    http://ninjatrader.com/support/forum...802#post455802

    Just as a tip, the NinjaTrader 8 section of the forums can be found below.
    http://ninjatrader.com/support/forum...splay.php?f=59
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Sure would be nice to have a BarsRequest for Bid/Ask data, especially when Tick Replay and AddDataSeries is over-kill.

      Comment


        #4
        Hi CriticalTrader,

        Are you referring to the MarketDataType property of the BarsPeriod?
        http://ninjatrader.com/support/helpG...barsperiod.htm

        This allows you to set Ask, Bid, or Last as the market data type when creating the bars request.

        If this is not what you are referring to, can you elaborate on what you are trying to do?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Dah...apparently I am asking that. Sorry... for some reason I missed that option.
          Thank you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Aviram Y, Today, 05:29 AM
          0 responses
          5 views
          0 likes
          Last Post Aviram Y  
          Started by quantismo, 04-17-2024, 05:13 PM
          3 responses
          27 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          36 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          6 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          219 views
          1 like
          Last Post PaulMohn  
          Working...
          X