Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Export NinjaScript

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

    Export NinjaScript

    How best to copy an indicator/strategy between machines?

    I am trying to use the File/Utilities/Export NinjaScript... menu item...

    and the attempt is failing "Error Compiling Export Source..."

    My scripts have refereneces to code in the "UserDefinedMethods" modules... "UserDefinedMethods" does not appear in the listbox for Exporting...

    Thanks!

    #2
    Hi SteveB,

    If your codes have errors, you will need to fix them before exporting, here are tips how to proceed - http://www.ninjatrader-support2.com/...ead.php?t=4678

    You can also try the BackUp and Restore function for moving custom NinjaTrader files between machines -



    Comment


      #3
      SteveB,

      Since you cannot export UserDefinedMethods, you will need to create globally used functions / methods in an indicator which acts as a global.

      Reference my post here for details.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #4
        Thanks MrLogik!

        Comment


          #5
          The issue is that Ninja Trader does not allow you to export the user defined functions file. This is because it would overwrite that file on the target user's PC.
          There is a very easy solution. You just need to rename the file and then it will appear in the box to export the code.
          Go to :
          C:\Users\******\Documents\NinjaTrader 7\bin\Custom\Strategy
          rename: UserDefinedMethods.cs to myUserDefinedMethods.cs

          DONE!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          65 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          41 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          23 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          26 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          52 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X