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

Ninja script to C++

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

    Ninja script to C++

    Hi-- would it be a incorrect assumption to assume that the ninja script has c++ running in the background?

    Meaning.. when we develop our strats using Ninja Script.. it the background... that script is converted to C++ and then executed?

    Is there a way to get the c++ code? I've made strategies on NT script and would like to convert them to c++.

    #2
    Hi calhawk01,

    NinjaTrader and NinjaScript are written in C#.

    NinjaScripts are not converted to C++ and are compiled as C#.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hi calhawk01,

      NinjaTrader and NinjaScript are written in C#.

      NinjaScripts are not converted to C++ and are compiled as C#.
      is it possible to get the c# code?
      and copy/paste that somewhere where c# can be ran?

      Comment


        #4
        Hi calhawk01,

        Are you asking if you can get the code of a NinjaScript?

        Yes, this code can be found by editing the script with NinjaTrader.

        Click Tools -> Edit NinjaScript -> select Indicator or Strategy -> select the script -> click OK.

        Are you asking for something else?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hi calhawk01,

          Are you asking if you can get the code of a NinjaScript?

          Yes, this code can be found by editing the script with NinjaTrader.

          Click Tools -> Edit NinjaScript -> select Indicator or Strategy -> select the script -> click OK.

          Are you asking for something else?
          I'm asking something else

          I know you can get the code of ninja script and I know where and how to get it.

          What I'm asking is that. Since the ninja script is eventually converted to c#.. Is there a way to get the c# code?

          Comment


            #6
            Hi calhawk01,

            I am not quite understanding.

            NinjaScript are in C#. Could you clarify what you are looking for?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_ChelseaB View Post
              Hi calhawk01,

              I am not quite understanding.

              NinjaScript are in C#. Could you clarify what you are looking for?
              Ok. Maybe my lack of understanding of programming is causing confusion

              So are you saying that ninja script is written in c#.. Meaning variables such as "crossover" are already defined by c#?? Or when we wrote ninja script and use a variable such as "crossover" in the background.. That variable is converted so that c# understands what a cross over is?

              What I'm trying to do is.. Be able to copy paste ninja script into a different platform and have that platform understand what I pasted. That's why I'm asking. Is ninja script eventually (in the background) converted to c# language??

              Comment


                #8
                Hi calhawk01,

                NinaScripts are in C#.

                CrossOver is a method that is written as part of the Indicator base class in C#.

                Just because something is written in C# does not mean it will work on another platform as you would need all of the classes, namesspaces, methods, and functions written copied over as well.
                There are objects that are created in C# that would have to be included.

                Basically, in your project, you will need to include references to the same NinjaTrader files that NinjaTrader does.

                This is not supported by NinjaTrader and I will not be able to assist with this.
                Last edited by NinjaTrader_ChelseaB; 04-10-2014, 03:51 PM.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by calhawk01 View Post
                  Hi-- would it be a incorrect assumption to assume that the ninja script has c++ running in the background?

                  Meaning.. when we develop our strats using Ninja Script.. it the background... that script is converted to C++ and then executed?

                  Is there a way to get the c++ code? I've made strategies on NT script and would like to convert them to c++.
                  I meant to say c#

                  Comment


                    #10
                    Hi calhawk01,

                    Again, I'm not sure what you are asking. NinjaScripts are in C#.

                    To edit a script in another program you will need to reference the same references that NinjaTrader uses.

                    To view the references used by NinjaTrader open a script for editing, right-click the NinjaScript editor, then select References.

                    Also, below is a link to the help guide on debugging using Visual Studio.
                    http://www.ninjatrader.com/support/h..._debugging.htm
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      hi



                      this might be helpful :-?

                      thx
                      SM

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by DanielTynera, Today, 01:14 AM
                      0 responses
                      2 views
                      0 likes
                      Last Post DanielTynera  
                      Started by yertle, 04-18-2024, 08:38 AM
                      9 responses
                      40 views
                      0 likes
                      Last Post yertle
                      by yertle
                       
                      Started by techgetgame, Yesterday, 11:42 PM
                      0 responses
                      10 views
                      0 likes
                      Last Post techgetgame  
                      Started by sephichapdson, Yesterday, 11:36 PM
                      0 responses
                      2 views
                      0 likes
                      Last Post sephichapdson  
                      Started by bortz, 11-06-2023, 08:04 AM
                      47 responses
                      1,615 views
                      0 likes
                      Last Post aligator  
                      Working...
                      X