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 rhyminkevin, Today, 04:58 PM
                    3 responses
                    47 views
                    0 likes
                    Last Post Anfedport  
                    Started by iceman2018, Today, 05:07 PM
                    0 responses
                    5 views
                    0 likes
                    Last Post iceman2018  
                    Started by lightsun47, Today, 03:51 PM
                    0 responses
                    7 views
                    0 likes
                    Last Post lightsun47  
                    Started by 00nevest, Today, 02:27 PM
                    1 response
                    14 views
                    0 likes
                    Last Post 00nevest  
                    Started by futtrader, 04-21-2024, 01:50 AM
                    4 responses
                    50 views
                    0 likes
                    Last Post futtrader  
                    Working...
                    X