Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Instrument.GetInstrument not appearing in Intellisense

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

    Instrument.GetInstrument not appearing in Intellisense

    In the NinjaScript Editor, the Intellisense for Instrument. does not include Instrument.GetInstrument. Can this be rectified?

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello jeronymite,

    I am finding this is available.

    Are you opening Visual Studio by clicking the Visual Studio icon on the NinjaScript Editor toolbar?
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      I am not using Visual Studio. This is a NinjaScript Editor started from the Control Center.

      Thanks.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #4
        Hello jeronymite,

        Apologies, I'm not sure why I immediately thought you were looking for this in VS.

        I am showing this is available in the NinjaScript Editor as well.


        Are you using 8.0.21.1?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks, Chelsea.

          I am on 8.0.21.0.

          Here is what I see:

          Click image for larger version

Name:	GetInstrument in NinjaScript Editor.png
Views:	230
Size:	197.3 KB
ID:	1102059

          I would have expected GetInstrument to be there. Am I missing something obvious?

          Grateful for your advice. Thanks!
          Multi-Dimensional Managed Trading
          jeronymite
          NinjaTrader Ecosystem Vendor - Mizpah Software

          Comment


            #6
            Hello jeronymite,

            May I confirm that this script is an indicator or strategy and is extending the Indicator or Strategy class?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hi Chelsea,

              It's an Addon.

              Thanks.
              Multi-Dimensional Managed Trading
              jeronymite
              NinjaTrader Ecosystem Vendor - Mizpah Software

              Comment


                #8
                Hello jeronymite,

                I'm not certain which namespace this Instrument in your script is inheriting from so use the fully qualified namespace NinjaTrader.Cbi.Instrument.
                Attached Files
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Hi Chelsea,

                  That did it!

                  When using the not-fully-qualified name, why does it not appear in Intellisense, yet I can still add it by simply typing it and it works?

                  Thanks.
                  Last edited by jeronymite; 05-28-2020, 03:34 PM. Reason: Additional detail.
                  Multi-Dimensional Managed Trading
                  jeronymite
                  NinjaTrader Ecosystem Vendor - Mizpah Software

                  Comment


                    #10
                    Hello jeronymite,

                    Likely an issue with inheritance and ambiguity. Use the fully qualified namespace.
                    Chelsea B.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by rtwave, 04-12-2024, 09:30 AM
                    4 responses
                    29 views
                    0 likes
                    Last Post rtwave
                    by rtwave
                     
                    Started by yertle, Yesterday, 08:38 AM
                    7 responses
                    28 views
                    0 likes
                    Last Post yertle
                    by yertle
                     
                    Started by bmartz, 03-12-2024, 06:12 AM
                    2 responses
                    21 views
                    0 likes
                    Last Post bmartz
                    by bmartz
                     
                    Started by funk10101, Today, 12:02 AM
                    0 responses
                    6 views
                    0 likes
                    Last Post funk10101  
                    Started by gravdigaz6, Yesterday, 11:40 PM
                    1 response
                    9 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Working...
                    X