Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

'NinjaTrader.Cbi.Instrument.FullName.get'

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

    'NinjaTrader.Cbi.Instrument.FullName.get'

    ​hi for all
    in trying to get instrument name
    and i get this error

    'NinjaTrader.Cbi.Instrument.FullName.get'

    any one has ideas how i can solve this error
    Attached Files

    #2
    You cannot get the instrument name until the script is run on a chart. Go ahead and declare the string but do not populate until State.DataLoaded in the OnStateChange() method.

    Comment


      #3
      Hello hamdan,

      NinjaTrader.Cbi.Instrument.FullName.get is not a method in that namespace, class, or property.

      You may be wanting Instrument.GetInstrument().

      Below is a link to the help guide.
      https://ninjatrader.com/support/help...instrument.htm
      Last edited by NinjaTrader_ChelseaB; 12-20-2022, 08:18 AM.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        is possible to get instrument name from chart and using it

        before State.DataLoaded

        or in namespace, class, or property

        thanks for help

        Comment


          #5
          Hello hamdan,

          Apologies, I've edited my post above. That method actually does not rely on the NinjaScript provided Instrument object, but is instead a method of the Instrument class and can be used with the Addon approach.

          Below is a link to an example that uses the method call in an Addon.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            hamdan Are you creating a Strategy, an Indicator, or an AddOn? If a Strategy or an Indicator, see here https://ninjatrader.com/support/help...instrument.htm and here https://ninjatrader.com/support/help...t_fullname.htm. On the basis of your filename, I suspect an Indicator. The links document what is possible: use Instrument.Fullname (it's a string that is exactly what you are asking for) from State.DataLoaded onwards.

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

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            65 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            41 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            23 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            26 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            52 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X