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 AaronKoRn, Today, 09:49 PM
          0 responses
          6 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Today, 08:42 PM
          0 responses
          8 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Today, 07:51 PM
          0 responses
          9 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,975 views
          3 likes
          Last Post jhudas88  
          Started by rbeckmann05, Today, 06:48 PM
          0 responses
          9 views
          0 likes
          Last Post rbeckmann05  
          Working...
          X