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 f.saeidi, Today, 12:14 PM
              2 responses
              5 views
              0 likes
              Last Post f.saeidi  
              Started by TradeForge, 04-19-2024, 02:09 AM
              2 responses
              28 views
              0 likes
              Last Post TradeForge  
              Started by aprilfool, 12-03-2022, 03:01 PM
              3 responses
              327 views
              0 likes
              Last Post NinjaTrader_Adrian  
              Started by giulyko00, Today, 12:03 PM
              1 response
              5 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by AnnBarnes, Today, 12:17 PM
              1 response
              2 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Working...
              X