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 JoMoon2024, Today, 06:56 AM
          0 responses
          6 views
          0 likes
          Last Post JoMoon2024  
          Started by Haiasi, 04-25-2024, 06:53 PM
          2 responses
          17 views
          0 likes
          Last Post Massinisa  
          Started by Creamers, Today, 05:32 AM
          0 responses
          5 views
          0 likes
          Last Post Creamers  
          Started by Segwin, 05-07-2018, 02:15 PM
          12 responses
          1,786 views
          0 likes
          Last Post Leafcutter  
          Started by poplagelu, Today, 05:00 AM
          0 responses
          3 views
          0 likes
          Last Post poplagelu  
          Working...
          X