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

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

    About Ninja Script

    About Ninja script, how do I run the code?

    #2
    Add it to a chart.

    Comment


      #3
      Hello ラリー,

      Thank you for your post.

      bltdavid is essentially correct, though some scripts like Strategies may be run in different ways. Here are some links from our help guide that go over using strategies and indicators:





      Please let us know if we may be of further assistance to you.

      Kate W.NinjaTrader Customer Service

      Comment


        #4
        Thank you for your reply.
        I am sorry for my poor way of communicating with you.
        I would like to verify this in the editor.

        Comment


          #5
          Hello ラリー,

          Thank you for your reply.

          I do not know what you mean by "I would like to verify this in the editor", can you please clarify what you are asking for?

          Thanks in advance; I look forward to assisting you further.
          Kate W.NinjaTrader Customer Service

          Comment


            #6
            Originally posted by ラリー View Post
            Thank you for your reply.
            I am sorry for my poor way of communicating with you.
            I would like to verify this in the editor.
            The editor does not 'run' the NinjaScript.

            Comment


              #7
              Hello ラリー,

              Are you simply wanting to open the source code in the NinjaScript Editor? The Editor can be opened by going to New > NinjaScript Editor. You can click on the folders in the right hand pane to see the different scripts, then click on the script you would like to view/edit to open it. Built in scripts cannot be edited - you would need to right click on the open script > Save as and save a copy with a new unique name to create a custom version to edit.

              Please let us know if we may be of further assistance to you.

              Kate W.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Kate View Post
                Hello ラリー,

                Thank you for your reply.

                I do not know what you mean by "I would like to verify this in the editor", can you please clarify what you are asking for?

                Thanks in advance; I look forward to assisting you further.
                I thought the code would be executed in the editor.

                Comment


                  #9
                  Originally posted by bltdavid View Post

                  The editor does not 'run' the NinjaScript.
                  I'm glad you understand.

                  Comment


                    #10
                    Originally posted by NinjaTrader_Kate View Post
                    Hello ラリー,

                    Are you simply wanting to open the source code in the NinjaScript Editor? The Editor can be opened by going to New > NinjaScript Editor. You can click on the folders in the right hand pane to see the different scripts, then click on the script you would like to view/edit to open it. Built in scripts cannot be edited - you would need to right click on the open script > Save as and save a copy with a new unique name to create a custom version to edit.

                    Please let us know if we may be of further assistance to you.
                    The source code is opened, but I thought that they were executed in the editor, but it seems that they are not executed in the editor, so I solved this problem.

                    However, I still don't understand how to apply the ninja script to the chart.

                    Comment


                      #11
                      Hello ラリー,

                      Thank you for your reply.

                      The following two links explain the basics of applying indicators and strategies to a chart to run them:





                      Please let us know if we may be of further assistance to you.
                      Kate W.NinjaTrader Customer Service

                      Comment


                        #12
                        Originally posted by NinjaTrader_Kate View Post
                        Hello ラリー,

                        Thank you for your reply.

                        The following two links explain the basics of applying indicators and strategies to a chart to run them:





                        Please let us know if we may be of further assistance to you.

                        Thank you.
                        I was able to apply the indicator to the chart.
                        If I want to apply an indicator that I created myself, can I also do it from here (attached image)?
                        Attached Files

                        Comment


                          #13
                          Hello ラリー,

                          Yes, any indicator that you create can be applied to a chart through the Indicators dialog.

                          If you do not see an indicator of yours listed and it compiles, please check the Log tab of the Control Center for any runtime errors that may have caused the indicator to error out and not list.
                          JimNinjaTrader Customer Service

                          Comment


                            #14
                            Originally posted by NinjaTrader_Jim View Post
                            Hello ラリー,

                            Yes, any indicator that you create can be applied to a chart through the Indicators dialog.

                            If you do not see an indicator of yours listed and it compiles, please check the Log tab of the Control Center for any runtime errors that may have caused the indicator to error out and not list.
                            Thank you for your reply.
                            I will give it a try.

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by RubenCazorla, Today, 09:07 AM
                            0 responses
                            1 view
                            0 likes
                            Last Post RubenCazorla  
                            Started by BarzTrading, Today, 07:25 AM
                            2 responses
                            28 views
                            1 like
                            Last Post BarzTrading  
                            Started by devatechnologies, 04-14-2024, 02:58 PM
                            3 responses
                            20 views
                            0 likes
                            Last Post NinjaTrader_BrandonH  
                            Started by tkaboris, Today, 08:01 AM
                            0 responses
                            6 views
                            0 likes
                            Last Post tkaboris  
                            Started by EB Worx, 04-04-2023, 02:34 AM
                            7 responses
                            165 views
                            0 likes
                            Last Post VFI26
                            by VFI26
                             
                            Working...
                            X