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 junkone, Today, 11:37 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by frankthearm, Yesterday, 09:08 AM
          11 responses
          42 views
          0 likes
          Last Post frankthearm  
          Started by quantismo, 04-17-2024, 05:13 PM
          5 responses
          35 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by proptrade13, Today, 11:06 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by love2code2trade, 04-17-2024, 01:45 PM
          4 responses
          35 views
          0 likes
          Last Post love2code2trade  
          Working...
          X