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 f.saeidi, Today, 08:01 PM
          0 responses
          2 views
          0 likes
          Last Post f.saeidi  
          Started by Rapine Heihei, Today, 07:51 PM
          0 responses
          3 views
          0 likes
          Last Post Rapine Heihei  
          Started by frslvr, 04-11-2024, 07:26 AM
          5 responses
          96 views
          1 like
          Last Post caryc123  
          Started by algospoke, 04-17-2024, 06:40 PM
          6 responses
          49 views
          0 likes
          Last Post algospoke  
          Started by arvidvanstaey, Today, 02:19 PM
          4 responses
          11 views
          0 likes
          Last Post arvidvanstaey  
          Working...
          X