Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Removing strategies with multiple cross references

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

    Removing strategies with multiple cross references

    I imported a package written by someone else, and it consists of multiple user-defined-methods strategy files. Now I want to remove them but I can't. If I try to remove one of them, I get an error message "'xxxx.cs' can't be deleted. It is referenced by 'yyyy.cs'. Please remove this dependency before deleting the file.

    Is there an easier way to do this than to individually comment out the contents of all 8 scripts and then delete them?

    -Alex

    #2
    Hello Alex,

    Thank you for your post.

    You can remove the NinjaScript files manually if you wish.
    • First shut down NinjaTrader and then go to the following directory on your PC: My Documents\NinjaTrader 7\bin\Custom\Indicator
    • From here you can delete the .CS files that you do not wish to have.
    • Once complete, restart NinjaTrader and then go to Tools > Edit NinjaScript > Indicator > select and indicator > OK > and then press F5 to compile all NinjaScript files once the NinjaScript Editor window opens.

    Please let me know if you receive any errors after compiling.

    Comment


      #3
      Thanks that worked. I was about to try that myself but I wasn't sure if manually deleting the .cs files would damage anything.

      Comment


        #4
        Hello Alex,

        You can run into items when you delete the .CS files with @ symbols in the name, these are NinjaTrader preloaded indicators and must not be deleted.

        Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cre8able, 02-11-2023, 05:43 PM
        3 responses
        236 views
        0 likes
        Last Post rhubear
        by rhubear
         
        Started by frslvr, 04-11-2024, 07:26 AM
        8 responses
        114 views
        1 like
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        10 responses
        47 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by rocketman7, Today, 09:41 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by traderqz, Today, 09:44 AM
        2 responses
        10 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X