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

Is there anything like an Instrument.Description parameter?

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

    Is there anything like an Instrument.Description parameter?

    I'm curious if there is a way to access the description field of an instrument through NinjaScript?

    I'd like to be able to draw the description (full instrument name, i.e. 'Microsoft' instead of 'MSFT') on a chart.

    I noticed Instrument.MasterInstrument.Name and Instrument.FullName, but is there anything like Instrument.Description?

    #2
    Unfortunately this is beyond what we provide support for.

    Hint: You could try Instrument.MasterInstrument.Description.

    Comment


      #3
      Originally posted by NinjaTrader_Dierk View Post
      Unfortunately this is beyond what we provide support for.

      Hint: You could try Instrument.MasterInstrument.Description.
      Thanks for the hint.

      The reason I asked is because I couldn't find anything in the documentation.

      Comment


        #4
        Whatever you don't find in the docs most likely is not supported.

        Comment


          #5
          You might want to check the posting that I made last week on how to do this for the Market Analyzer...



          I'm pretty sure this will also work in an indicator or strategy.

          Keep in mind that when Dierk says it's unsupported, that this means the developers might change the way this works in the future, at which point you'd have to re-figure this out to make it work in a newer version of NinjaTrader.

          Comment


            #6
            Thanks so much!


            Looking at your code I see
            Instrument.MasterInstrument.Description;

            Which I always assumed was there, but I don't understand why there is no documentation on it? Its such a basic thing to be able to see the full name of an instrument, especially when you may have 50 or so in the market analyzer....
            Last edited by Elliott Wave; 04-18-2008, 06:48 PM.

            Comment


              #7
              Here is a 'quick and dirty' indicator that can be used to display the InstrumentDescription on the chart.

              Now if only I could figure out a way to 'hack' the description into the chart title bar as I feel its totally redundant to display the instrument symbol twice, without the option of a more meaningful description.






              Attached Files

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by WHICKED, Today, 12:45 PM
              2 responses
              16 views
              0 likes
              Last Post WHICKED
              by WHICKED
               
              Started by GussJ, 03-04-2020, 03:11 PM
              15 responses
              3,271 views
              0 likes
              Last Post xiinteractive  
              Started by Tim-c, Today, 02:10 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by Taddypole, Today, 02:47 PM
              0 responses
              2 views
              0 likes
              Last Post Taddypole  
              Started by chbruno, 04-24-2024, 04:10 PM
              4 responses
              51 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Working...
              X