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

Power Outage Destroys script?

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

    Power Outage Destroys script?

    Howdy....

    I was just working on a script, and had quite a bit of time into it and almost had it doing what I want.

    I had just hit the compile button to check a change, and BAM!!! My power goes out and my PC restarts.

    Upon re-opening the chart that the study was on, the indicator still plots the correct values. But when I go to edit and manipulate the script, it is blank. There is NOT one line of code there.

    But again the indie still plots on a chart the way it should.

    Is there a way to recover that?

    #2
    Here are some more pics of how things are.

    You can see it is RUNNING RIGHT NOW on a chart I had up before the outage. You can also see it shows up as a study available for edit.

    But you see what it looks like when I open it.
    Attached Files

    Comment


      #3
      Hi forrestang,

      If you do not see it within the NinjaScript editor, then unfortunately there's no way to recover the code. It needs to be rebuilt.

      It could exist in a previous version of the Nt.Custom.dll assembly, but there's no way to turn that into NS code, and continuing to use could cause further issues down the road. This file can be deleted and NT will rebuild on startup. After doing this, will need to compile to resolve any programming errors or remove bad script. Once you delete the file below, the assembly will be rebuilt according to the current version of the script - empty.

      Close NT, and browse to:
      Documents\NinjaTrader 7\bin\Custom
      Right click on file NinjaTrader.Custom.dll and select delete.
      Last edited by NinjaTrader_RyanM1; 07-25-2011, 01:55 PM.
      Ryan M.NinjaTrader Customer Service

      Comment


        #4
        Ok, i've recreated the script.

        Now I have another problem. I export the files to a zip for import on another machine and I get two errors upon reloading it.

        ---------------------------
        Import NinjaScript Archive File (.zip) Error
        ---------------------------
        Import failed. The NinjaScript Archive File may contain duplicate method names that already exist on your PC or there is a required file missing on either your PC or in the import archive.
        ---------------------------
        OK
        ---------------------------
        Import NinjaScript Archive File (.zip)
        ---------------------------
        The assemblies 'FeltonChannel1, MSTats' have to be added to use the products in the imported assembly.
        ---------------------------
        OK
        Now I'm not sure why, but some funny stuff happened after that outage. The second notice using FeltonChannel which is a 3rd party indicator has nothing to do with my indicator. The 'MSTas' is what I tried to rename the study to after the power outage.

        How do I break these ties and create a clean export?

        Comment


          #5
          Got it working.

          I see I wanted to pick the first option for exporting.

          Comment


            #6
            OK, glad you got it working again. Thanks for updating us here.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by yertle, Yesterday, 08:38 AM
            7 responses
            28 views
            0 likes
            Last Post yertle
            by yertle
             
            Started by bmartz, 03-12-2024, 06:12 AM
            2 responses
            21 views
            0 likes
            Last Post bmartz
            by bmartz
             
            Started by funk10101, Today, 12:02 AM
            0 responses
            5 views
            0 likes
            Last Post funk10101  
            Started by gravdigaz6, Yesterday, 11:40 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by MarianApalaghiei, Yesterday, 10:49 PM
            3 responses
            11 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Working...
            X