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

I know this is an old thread but does this also work with Ninjatrader 8

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

    I know this is an old thread but does this also work with Ninjatrader 8

    I know this is an old thread but does this also work with Ninjatrader 8? Recently i formatted my old pc but forgot to make a backup file with Ninjatrader. However i did backup my document map with the ninjatrader 8 map in it. So i have a bunch of CS files from strategies i build with Strategy Builder. Is there a way to get these on my fresh Ninjatrader 8 install?

    #2
    Hello Bert1995,

    As your inquiry is not for NinjaTrader 7 and is for NinjaTrader 8, I have moved your inquiry from the original thread to the NinjaTrader 8 section of the forums.


    Note, you can link a forum thread from a new thread if you would like to refer to it.


    We recommend that you create backups, and/or export files that can be re-imported, and we typically never recommend manually modifying the filesystem, as this typically will lead to compile errors.

    That said, yes, you can place NinjaScript Strategy .cs files in the Documents\NinjaTrader 8\bin\Custom\Strategies folder.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      thanks for your reply,

      if i copy a cs. strategy (created with Strategy builder) to that folder it doesn't show up even after restarting NT8. Do i need to do more?

      Comment


        #4
        Hello Bert1995,

        Are you certain the strategy is not unlocked?

        Open the NinjaScript Editor and double click on the file name. Does the file open up the Strategy Builder or does it open in the NinjaScript Editor?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello,

          It does show up in NinjaScript Editor and it opens in Strategy Builder. But it does not show up in Strategy Analyser or in the Strategies tab on a chart.

          Comment


            #6
            Hello Bert1995,

            If the Strategy opens in the Strategy Builder then it's in NinjaTrader. Have you compiled?

            Below is a link to a forum post with helpful resources on setting started with NinjaScript and C#. Please watch the training videos.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7



              But now i cant open Strategy builder anymore
              its says Ninjascript must be in a compilable state to create or edit stratgies

              What does that mean
              Last edited by Bert1995; 01-18-2023, 08:21 AM.

              Comment


                #8
                Hello Bert1995,

                It means there is a compile error, which will be appearing at the bottom of the NinjaScript Editor.

                As stated in post # 2, our team does not advise manually adding or removing files from the file system, as this will typically cause compile errors.

                Compile in the NinjaScript Editor, then copy and paste the error message (Ctrl + c to copy, Ctrl + v to paste).

                https://ninjatrader.com/support/foru...er#post1108067
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  for some reason it works if i add the strategies one for one and wait for a tone from ninjatrader. The problem i have to do this this way is that i have no backup file from NT8 itself but only a backup of the NT8 folder

                  Comment


                    #10
                    Hello Bert1995,

                    To help prevent loss, ensure to do backup regularly.

                    Below I have provided a link to the Backup and Restore section of our help guide:
                    https://ninjatrader.com/support/help...p__restore.htm

                    ​(I recommend unchecking Historical Data, Log and Trace files, and Market Replay Data but leaving everything else checked)
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      thanks for your help!

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by DJ888, 04-16-2024, 06:09 PM
                      6 responses
                      18 views
                      0 likes
                      Last Post DJ888
                      by DJ888
                       
                      Started by Jon17, Today, 04:33 PM
                      0 responses
                      1 view
                      0 likes
                      Last Post Jon17
                      by Jon17
                       
                      Started by Javierw.ok, Today, 04:12 PM
                      0 responses
                      6 views
                      0 likes
                      Last Post Javierw.ok  
                      Started by timmbbo, Today, 08:59 AM
                      2 responses
                      10 views
                      0 likes
                      Last Post bltdavid  
                      Started by alifarahani, Today, 09:40 AM
                      6 responses
                      41 views
                      0 likes
                      Last Post alifarahani  
                      Working...
                      X