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

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.

      Comment


        #4
        Brett,

        Thank you very much for answering my questions!!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by helpwanted, Today, 03:06 AM
        1 response
        7 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        7 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        5 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        242 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        385 views
        1 like
        Last Post Gavini
        by Gavini
         
        Working...
        X