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

About Ninja Script Explorer

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

    About Ninja Script Explorer

    I think there are AddOns, BardTypes, Indicators, etc. in the Ninja Script Explorer items. What is the difference between them?

    #2
    Hi ラリー, thanks for posting. These are all the different types of scripts you can make on the platform. The platform lets you create many different scripts for each Window or module that is built in. E.g. an Addon can be a fully featured application running in its own window, Indicators can be applied to Charts, Market Analyzer Windows, and SuperDOM Windows, BarTypes are specifically for building custom bars on a chart.

    Kind regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply.

      Is it possible, for example, if I write exactly the same code in an indicator and a market analyzer, they behave differently?

      Comment


        #4
        Both are when applied to the Market Analyzer.

        Comment


          #5
          Hi, thanks for the follow up. An indicator type script and a Market Analyzer type script are different. You can test this out by right clicking on the Market Analyzer folder in the editor and creating a new script, doing the same thing on the Indicators folder of the editor, and generating a new script to study the differences. Please make sure if you have a question, please test out the behavior in the platform first.

          Kind regards,
          -ChrisL
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            Thank you for your reply.

            Both are newly created, but there are descriptions from lines 36 to 45 in the indicator script, but they are not in the market analyzer.

            Also, there is a description of OnBarUpdate on line 52, but it is not in the Market Analyzer, either.

            In other words, is it correct to understand that the indicator can be used for a wide range of purposes?​
            Attached Files

            Comment


              #7
              Hello ラリー,

              Indicators can be selected in the Market Analyzer by selecting Indicator from the Available list, then on the right you can select the indicator.

              For an indicator to appear in the Market Analyzer or the Strategy Builder, the indicator must have a plot added with AddPlot() and the Value series returned with a public Series<double>.
              https://ninjatrader.com/support/foru...er#post1182264


              MarketAnalyzerColumn scripts by default do not have OnBarUpdate() implemented, but this can be added by enabling IsDataSeriesRequired.
              https://ninjatrader.com/support/help...esrequired.htm

              Indicators can be used on charts, in the Market Analyzer as an Indicator column as well as called from other NinjaScript Strategies and Indicators.
              Last edited by NinjaTrader_ChelseaB; 11-09-2022, 07:36 AM.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                Thank you for your reply.

                It was helpful.​

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by GussJ, 03-04-2020, 03:11 PM
                12 responses
                3,239 views
                0 likes
                Last Post Leafcutter  
                Started by AveryFlynn, Today, 04:57 AM
                0 responses
                5 views
                0 likes
                Last Post AveryFlynn  
                Started by RubenCazorla, 08-30-2022, 06:36 AM
                3 responses
                79 views
                0 likes
                Last Post PaulMohn  
                Started by f.saeidi, Yesterday, 12:14 PM
                9 responses
                25 views
                0 likes
                Last Post f.saeidi  
                Started by Tim-c, Today, 03:54 AM
                0 responses
                5 views
                0 likes
                Last Post Tim-c
                by Tim-c
                 
                Working...
                X