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 selu72, Today, 02:01 PM
                    1 response
                    3 views
                    0 likes
                    Last Post NinjaTrader_Zachary  
                    Started by WHICKED, Today, 02:02 PM
                    2 responses
                    8 views
                    0 likes
                    Last Post WHICKED
                    by WHICKED
                     
                    Started by f.saeidi, Today, 12:14 PM
                    8 responses
                    21 views
                    0 likes
                    Last Post f.saeidi  
                    Started by Mikey_, 03-23-2024, 05:59 PM
                    3 responses
                    50 views
                    0 likes
                    Last Post Sam2515
                    by Sam2515
                     
                    Started by Russ Moreland, Today, 12:54 PM
                    1 response
                    7 views
                    0 likes
                    Last Post NinjaTrader_Erick  
                    Working...
                    X