Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              647 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              369 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              108 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              572 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              573 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X