Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TOS to Ninjascript

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

    TOS to Ninjascript

    Hi folks. I'm new here and wanted to know if there is anyway to convert Thinkscript to C# so that I could import it into Ninjatrader. This is a futures strategy that I would like to backtest by hand but for whatever reason, I cannot get my TOS ondemand to run smoothly. I am using an ES grid previously mentioned on this forum: https://usethinkscript.com/threads/e...inkorswim.987/

    #2
    Hello Rraannddyy,

    Thanks for your post and welcome to the NinjaTrader forums!

    You would need to manually convert the code from one to the other as they are not compatible. We would not be able to help with the conversion but could answer any specific Ninjascript questions you might have.

    If you would like to convert this yourself, we can provide links to get you started with Ninjascript.

    If you would like it converted for you, we can provide a link to 3rd party programmers in the Ninjagtrader Ecosystem.

    We will also leave this thread open for any forum member to assist you.

    Comment


      #3
      Can you post both resources on how to do it myself and links to 3rd party programmers?

      Comment


        #4
        Hello Rraannddyy,

        Thanks for your reply.

        I will ask our vendor support team to post the 3rd party programmer link so it will be a separate post.

        Ninjscript is the programming language of NinjaTrader. Ninjascript is based on C# Programming language and we recommend a good working knowledge of C#. We do not provide C# education/tutorials as these can be found on the internet in many places.

        If you are not familiar with C# and do not wish to learn to program, you can still create strategies (automated trading) without programming knowledge by using the Strategy Builder. The strategy Builder allows you to create basic to medium complexity strategies. The Strategy Builder will also convert your conditions and actions into viable C# code so that you get the same speed and performance as a Ninjascript created strategy. You can also view this code that is created and that can be very useful in learning Ninjascript as well. You can copy and paste code from the builder into another script.

        Here are the educational resource available on the strategy builder:
        Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
        Previous recording of the Strategy Builder 301 webinar:
        https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
        Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm
        Help guide tutorial: https://ninjatrader.com/support/help...strategies.htm

        To create an indicator or a non strategy builder strategy, you would need to use the indicator or strategy wizard. These will create the basic structures including the inputs and outputs. Here are is where you can find out further about the wizards: https://ninjatrader.com/support/help...?ns_wizard.htm

        Help guide tutorial for building indicators: https://ninjatrader.com/support/help...indicators.htm

        Help guide info on basic programming concepts: https://ninjatrader.com/support/help...g_concepts.htm

        Once you have created a Ninjascript strategy or indicator you would need to use the Ninjascript editor for further coding and debugging, here is a link to the overall Ninjascript editor: https://ninjatrader.com/support/help...t8/?editor.htm


        Here is a link to live webinars where you can find the Ninjascript editor and strategy builder, alternating on Thursdays: https://ninjatrader.com/PlatformTraining


        Here is a link to a recording of the Ninjascript editor webinar:
        https://www.youtube.com/watch?v=H7aD...We0Nf&index=14


        Here are various links to key help guide sections, each link will have further cascading links:


        https://ninjatrader.com/support/help...erence_wip.htm

        https://ninjatrader.com/support/help..._reference.htm

        https://ninjatrader.com/support/help..._resources.htm

        https://ninjatrader.com/support/help...ce_samples.htm

        https://ninjatrader.com/support/help.../nt8/?tips.htm


        In addition, you may want to review, use, or modify the freely available scripts from the NT user apps in the Ninjatrader Ecosystem. (Note this includes both NinjaTrader7 and Ninjatrader8 scripts that are not compatible with the other version, you can click the "show all" button for segregation)



        The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

        Comment


          #5
          Hello Rraannddyy,

          Thank you for your post.

          You can search our list of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more:
          You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third-party services for NinjaTrader, all pricing and support information will need to be obtained through the consultant.

          The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem, LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

          Let me know if I may be of further assistance.
          Thomas C.NinjaTrader Customer Service

          Comment


            #6
            I have a similar question.

            if the code on thinkscript is:

            Plot x1 = 19000.00; x1.setdefaultcolor(color.red);
            x1.setlineweight(3);

            Plot x2 = 19100.00;
            x2.setdefaultcolor(color.green);
            x2.setlineweight(3);

            what's the easiest way to make a nt8 indicator that mimics it?

            Comment


              #7
              Originally posted by nytrader83 View Post
              I have a similar question.

              if the code on thinkscript is:

              Plot x1 = 19000.00; x1.setdefaultcolor(color.red);
              x1.setlineweight(3);

              Plot x2 = 19100.00;
              x2.setdefaultcolor(color.green);
              x2.setlineweight(3);

              what's the easiest way to make a nt8 indicator that mimics it?
              There are many indicators that draw lines at NT ecosystem. Here's one of them: https://ninjatraderecosystem.com/use...rago-strategy/

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              576 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              334 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              553 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X