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 -



    BertrandNinjaTrader Customer Service

    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 wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          26 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 02-22-2024, 01:11 AM
          5 responses
          32 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, Yesterday, 09:53 PM
          2 responses
          49 views
          0 likes
          Last Post wzgy0920  
          Started by Kensonprib, 04-28-2021, 10:11 AM
          5 responses
          192 views
          0 likes
          Last Post Hasadafa  
          Started by GussJ, 03-04-2020, 03:11 PM
          11 responses
          3,234 views
          0 likes
          Last Post xiinteractive  
          Working...
          X