Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Some Newbie Questions

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

    Some Newbie Questions

    Hi:

    I am new to NT programming (2 days) and have some newbie questions. Thank you in advance for all replies.

    1. How do I "rename" an existing strategy script?
    2. How do I copy an existing script into a new one (other than brute force cut/paste code)?
    3. Is it possible to have a "-", "_" or another symbol in the script name?
    The Wizard does not allow this, and it is forcing me to use a letter such as z
    or x as a separator within the name :-(
    4. Is NT7 Help content available as a single PDF?
    5. Is there an NT7 programming book available to buy?
    6. In a "Print" statement, how does one set a "field width" for each field (I guess this
    is probably more of a C# question
    7. How can one print out the name of the script using the "Print statement"?
    8. What is the easiest way to share a script without sharing source code?

    Again, thank you.

    #2
    I was able to overcome #6 above using Formatting parameters for the ToString() method.

    Comment


      #3
      Hello,

      Welcome to the NinjaTrader support forum!

      1. How do I "rename" an existing strategy script?

      You would need to right click on the code editor window and select Save As and give it a new name and save it to a new file.

      2. How do I copy an existing script into a new one (other than brute force cut/paste code)?

      See answer to number 1.

      3. Is it possible to have a "-", "_" or another symbol in the script name?
      The Wizard does not allow this, and it is forcing me to use a letter such as z
      or x as a separator within the name :-(

      This is not possible with NinjaScript strategy names.

      4. Is NT7 Help content available as a single PDF?



      5. Is there an NT7 programming book available to buy?

      There is no programming book availiable to purchase.

      6. In a "Print" statement, how does one set a "field width" for each field (I guess this
      is probably more of a C# question

      You found this already.

      7. How can one print out the name of the script using the "Print statement"?

      You would simply need to hard code it in. Print("Name of Script");

      8. What is the easiest way to share a script without sharing source code?

      Please see this page in the help guide:



      Let me know if I can be of further assistance.
      BrettNinjaTrader Product Management

      Comment


        #4
        Brett,

        Thank you very much for answering my questions!!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        332 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