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 Vietanhnguyen2hotmailcom, 05-03-2024, 10:29 AM
              4 responses
              26 views
              0 likes
              Last Post Vietanhnguyen2hotmailcom  
              Started by PhillT, 04-19-2024, 02:16 PM
              4 responses
              36 views
              0 likes
              Last Post PhillT
              by PhillT
               
              Started by ageeholdings, 05-01-2024, 05:22 AM
              5 responses
              38 views
              0 likes
              Last Post ageeholdings  
              Started by reynoldsn, Yesterday, 02:34 PM
              0 responses
              14 views
              0 likes
              Last Post reynoldsn  
              Started by nightstalker, Yesterday, 02:05 PM
              0 responses
              26 views
              0 likes
              Last Post nightstalker  
              Working...
              X