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 PaulMohn, Today, 05:00 AM
              0 responses
              8 views
              0 likes
              Last Post PaulMohn  
              Started by ZenCortexAuCost, Today, 04:24 AM
              0 responses
              6 views
              0 likes
              Last Post ZenCortexAuCost  
              Started by ZenCortexAuCost, Today, 04:22 AM
              0 responses
              3 views
              0 likes
              Last Post ZenCortexAuCost  
              Started by SantoshXX, Today, 03:09 AM
              0 responses
              16 views
              0 likes
              Last Post SantoshXX  
              Started by DanielTynera, Today, 01:14 AM
              0 responses
              5 views
              0 likes
              Last Post DanielTynera  
              Working...
              X