Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"Exchange " data

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

    "Exchange " data

    Hi

    In the Instrument manager I have eg ES 12-09 Globex.

    In the Instrument Class I can't see any property that will give me the 'exchange' information.ie the Globex bit
    Can you provide the correct syntax to grab this info please?
    Attached Files

    #2
    Hello Mindset,

    Thank you for your post.

    To help and provide you correct information please clarify what instrument are your trying to set the exchange information for?

    I look forward to assisting you further.
    Sergey T.NinjaTrader Customer Service

    Comment


      #3
      Hi Sergey

      Its not the exchange per se that I need - its that information I have shown - so ES12-09 = "Globex".

      Comment


        #4
        Hi Mindset,

        Thank you for your reply.

        You can find the ‘exchange information’ for any instrument in the Instrument manager. To open the instrument manager up please go to the Control Center-->Tools-->Instrument Manager.

        For more information about the Instrument Manager please follow the link below.


        If this doesn’t fit your needs either, please elaborate on what you are trying to accomplish.
        Sergey T.NinjaTrader Customer Service

        Comment


          #5
          Sergey

          It's a programming thing.
          If I want the symbol name for instance I use Instrument.FullName;
          I know the 'exchange' info is there because I can see it - my question is what is the syntax/code to access it?

          eg string ex = Instrument.Exchange produces an implicit conversion error.
          Attached Files

          Comment


            #6
            Mindset, unfortunately accessing this is not supported (as it's not documented) - you can try something like this, works for me -

            Code:
             
            string myExch = Instrument.Exchange.ToString();
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Great

              Thanks v much Bertrand - I tried various things but not the obvious one!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ETFVoyageur, Today, 04:00 PM
              0 responses
              5 views
              0 likes
              Last Post ETFVoyageur  
              Started by AaronKTradingForum, Today, 03:44 PM
              1 response
              6 views
              0 likes
              Last Post AaronKTradingForum  
              Started by Felix Reichert, 04-26-2024, 02:12 PM
              11 responses
              77 views
              0 likes
              Last Post Felix Reichert  
              Started by junkone, 04-28-2024, 02:19 PM
              7 responses
              82 views
              1 like
              Last Post junkone
              by junkone
               
              Started by pechtri, 06-22-2023, 02:31 AM
              11 responses
              136 views
              0 likes
              Last Post Nyman
              by Nyman
               
              Working...
              X