Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Maintaining versions of strategies between PC's

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

    Maintaining versions of strategies between PC's

    Hi

    I do development and backtesting on one PC and have the actual strategies running in production on another PC.

    What is the best way to keep strategies synchronized and up-to-date between these PC's.

    When exporting and importing many strategies at once I often run into the "import failed. May contain duplicate methods..." http://img146.imageshack.us/img146/9...1061311072.png
    or some other error.

    So export and import, besides being a hassle doesnt really work.
    Opening the strategies in strategy editor and copy-pasting the updated portions of the code and then compiling is a hassle and is error prone.

    1. Can one just copy or keep the .cs files in sync?
    2. How does one do if one keeps the code in CVS?

    Thanks for any hints on this. I am sure many face the same issues.

    #2
    naxo79, best suggestion would then be finding out first which methods are really duplicate and therefore cause an issue - if you transfer strategies / codes are you importing / exporting the source code or assemblies?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi,

      I guess all are duplicate since of course older versions of the same strategy exist on the PC trying the import.

      I have been exporting them as source coude.

      Comment


        #4
        No, they would be overwritten normally if you choose to do so, it would prompt you - you would need to find out what duplicate methods are in conflict, I suspect there's part of them contained in an assembly (not source) so there would be really a conflict present here.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Sorry, I dont understand.
          How can they be contained in an assembly if I export them as source?

          Some of the strategies use indicators from NT can these be the ones being in assembly?

          Comment


            #6
            You would need to check the system were you have the issues carefully and debug why you would receive the duplicate methods warning...this is normally seen when assemblies (compiled versions) are at play in the installed NT, so this was a guess from me here to help you troubleshoot the issue.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Got it sorted by reviewing the tracefile. tnx.

              Any guides on using a CVS for code and version maintenance?

              Comment


                #8
                Glad to hear that naxo, what's a CVS?

                I would include your own custom version info in the code commentary, or copy to a new code for each significant revision, adds the benefit to cross run / check different builds of your script.
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by DavidHP, Today, 07:56 AM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by kujista, Today, 06:23 AM
                3 responses
                6 views
                0 likes
                Last Post kujista
                by kujista
                 
                Started by Mindset, Yesterday, 02:04 AM
                2 responses
                17 views
                0 likes
                Last Post NinjaTrader_RyanS  
                Started by f.saeidi, Today, 08:03 AM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by samish18, 04-17-2024, 08:57 AM
                15 responses
                52 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Working...
                X