Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript Editor 401 update with intellisense demo for all ninjascript methods

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

    NinjaScript Editor 401 update with intellisense demo for all ninjascript methods

    Hello,

    NinjaTrader_ChelseaB do you have an update to this demo?


    If not, when's the next one scheduled?
    Could you prepare a demo of the ninjascript editor intellisense?

    Mainly how to quickly and efficiently build all the main ninjascript methods
    for indicators, strategies and from the addon framework.

    #2
    NinjaTrader_ChelseaB hello,

    Did you cover in a previous 401 or weekly recording the way to use intellisense when calling another indicator inside a different indicator script?
    How do you limit the methods/objects called to the actual ones from the referenced indicator?

    I tested with the period "." but it returns a large list of foreign methods as well.

    What is the way to restrict the intellisense to the relevant methods/objects only?

    Comment


      #3
      Hello PaulMohn,

      If you are in the parenthesis of a method press Ctrl + Shift + Space bar to show the method signature.

      If you are looking for properties available to an object, putting a period after the variable name would bring up properties for that specific object.
      A period with no variable name would imply 'this' as the object which would be the indicator class.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        How about with this

        //class level Indicator variable
        private NinjaTrader.NinjaScript.Indicators.MyTestIndicator MyTestIndicator1;

        // in OnBarUpdate
        if (Close[0] > MyTestIndicator1. XXX)


        How to return only the relevant methods/objects with this in XXX (not the whole lot) ?​
        MyTestIndicator1.
        Last edited by PaulMohn; 05-03-2024, 11:56 AM.

        Comment


          #5
          Hello PaulMohn,

          MyTestIndicator1 is going to be inheriting from Indicator and will have all the properties and methods from the Indicator class.

          MyTestIndicator1.XXX would list all properties and methods from the Indicator class.

          I'm not sure if you are meaning you want just the public variables you've declared in your script and not all properties available to the class but there would not be a list for that I am aware of.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          647 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X