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

Can I get official session close price?

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

    Can I get official session close price?

    Is there a way in NT to query and receive the official closing price of any instrument (using MasterInstrument.Instrument?) from the exchange? For example, I want to know the 'official' (not the broker's) closing price of the ES instrument as of the close of the US trading session, as of the close of the Tokyo trading session, as of the close of the London trading session, etc. Is this information available to an indicator or strategy?

    See http://www.cmegroup.com/trading/equity-index/us-index/emini-sandp500_contract_specifications.html

    Thanks!
    Bryan
    cassb
    NinjaTrader Ecosystem Vendor - Logical Forex

    #2
    Hello cassb,

    Thank you for your post.

    There is no means to pull this from a data provider as they will provide the last price of the day. If you had an external file with the value in it you could use the System.IO methods to pull from that file. For information on System.IO in NinjaTrader 7 please visit the following link: http://ninjatrader.com/support/forum...ead.php?t=3477

    Comment


      #3
      What do you mean by "the last price of the day"? Isn't this the Close price for that session?

      Bryan
      cassb
      NinjaTrader Ecosystem Vendor - Logical Forex

      Comment


        #4
        cassb,

        You were referring to the official settlement price, correct?
        The data provider that you connect to supplies the Close[0]/last price of the day (if a day bar). If they use the settlement or not is entirely their discretion.

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          cassb,

          You were referring to the official settlement price, correct?
          The data provider that you connect to supplies the Close[0]/last price of the day (if a day bar). If they use the settlement or not is entirely their discretion.
          So you're saying that whatever the Close[0] is on the last bar of the session is the "official close price" from the exchange? Or is that 'official' settlement price not available to retail traders?

          Thanks!
          Bryan
          cassb
          NinjaTrader Ecosystem Vendor - Logical Forex

          Comment


            #6
            Hello,
            You would need to discuss this with your Data Provider. Depending on the data provider the Close for the end of the day bar may be the settlement price or could be a different price depending on what time the close of the bar is.
            Cody B.NinjaTrader Customer Service

            Comment


              #7
              OK thank you. So you're saying that there is no method or function or property within NT8 to query the exchange or data provider directly to specifically get the official settlement price? Like a GetSettlementPrice() call, or Instrument.MasterInstrument.SettlementPrice(Date) or something like that?

              Thanks!
              Bryan
              cassb
              NinjaTrader Ecosystem Vendor - Logical Forex

              Comment


                #8
                Hello,
                There is not a way to query the exchange. Calling Close[0] on a daily bar or at the time of the close will provide you with the close provided by the data provider. Depending on how the data provider handles the close this may or may not be the settlement price.
                Cody B.NinjaTrader Customer Service

                Comment


                  #9
                  OK, thank you Cody!
                  cassb
                  NinjaTrader Ecosystem Vendor - Logical Forex

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by funk10101, Today, 09:43 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post funk10101  
                  Started by pkefal, 04-11-2024, 07:39 AM
                  11 responses
                  36 views
                  0 likes
                  Last Post jeronymite  
                  Started by bill2023, Yesterday, 08:51 AM
                  8 responses
                  44 views
                  0 likes
                  Last Post bill2023  
                  Started by yertle, Today, 08:38 AM
                  6 responses
                  26 views
                  0 likes
                  Last Post ryjoga
                  by ryjoga
                   
                  Started by algospoke, Yesterday, 06:40 PM
                  2 responses
                  24 views
                  0 likes
                  Last Post algospoke  
                  Working...
                  X