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 Stanfillirenfro, Today, 07:23 AM
          9 responses
          23 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by George21, Today, 10:07 AM
          0 responses
          6 views
          0 likes
          Last Post George21  
          Started by DayTradingDEMON, Today, 09:28 AM
          2 responses
          18 views
          0 likes
          Last Post DayTradingDEMON  
          Started by navyguy06, Today, 09:28 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          8 responses
          32 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X