Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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?
    Dive into manipulating C# code from within an unlocked NinjaScript strategy using the NinjaScript Editor.Download NOW at http://ninjatrader.com/GetStarted fo...


    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
    Hello PaulMohn,

    Thanks for your post.

    There is no update for the publicly available training video 'NinjaScript Editor 401'. This is the most up to date training video available for using the NinjaScript Editor window.

    We do not have an ETA for when/if a new NinjaScript Editor 401 training video will be released at this time.

    To use intellisense in the NinjaScript Editor window you could start by typing the name of an object or method and type "." to see options available for that object or method. For example: you could type "Time[0]." and then see the options available for Time[0].

    Here is a brief demonstration video of using intellisense to see what options are available for Time[0]: https://brandonh-ninjatrader.tinytak...OF8yMzE0NzU5NA

    All the supported methods and properties would be found on the NinjaTrader Help Guide linked here: https://ninjatrader.com/support/help...erence_wip.htm

    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      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


        #4
        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


          #5
          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


            #6
            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 ETFVoyageur, Yesterday, 12:26 PM
            6 responses
            28 views
            0 likes
            Last Post ETFVoyageur  
            Started by ETFVoyageur, 05-18-2024, 12:45 AM
            12 responses
            64 views
            0 likes
            Last Post ETFVoyageur  
            Started by armybender, 11-16-2023, 08:38 PM
            12 responses
            189 views
            1 like
            Last Post NinjaTrader_RyanS  
            Started by Ryan333, Yesterday, 05:25 PM
            4 responses
            18 views
            0 likes
            Last Post Ryan333
            by Ryan333
             
            Started by wuannetraam, Yesterday, 07:43 AM
            8 responses
            46 views
            0 likes
            Last Post wuannetraam  
            Working...
            X