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 argusthome, 03-08-2026, 10:06 AM
        0 responses
        69 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        42 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        24 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        27 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        54 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X