Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

deleting user-defined variables

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

    deleting user-defined variables

    Hello-

    There are variables in my indicators I no longer use and want to remove. Before I remove them I comment out the variable, all occurrences, and its properties.

    When I compile I get 'no definition' errors in the Ninja gen code. So I end up keeping the old variables.

    What is the correct/simplest/most straight-forward way to remove user-defined variables?

    Thank you. (using 8061)

    #2
    Hello imalil,

    Thanks for writing in.

    The NinjaScript generated code will be refreshed when you compile or save in the NinjaScript Editor. You should not have issue compiling the code after you have commented or removed any instances of the variable. Can I confirm that you are removing the variables using the NinjaScript Editor?

    You can also remove the NinjaScript generated code from the NinjaScript Editor and it will refresh if it is missing.

    If you are receiving these errors in the NinjaScript Editor, could you provide me a screen shot of the full error and the line it is referencing?

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

    Comment


      #3
      Yes, I'm deleting in the editor.

      Just so I'm clear, when I get the error, you want me to highlight and delete everything below

      "ninjascript generated code, do not edit or delete."

      Is this what you want me to do to delete these variables?

      Comment


        #4
        Hello imalil,

        After looking at similar issues to this, there may be an issue that is causing the NinjaScript generated code to be created with errors.

        The generated code should be refreshed after making changes, so removing the generated code and recompiling may not be necessary. You can try removing the NinjaScript generated code from within the NinjaScript Editor and recompiling, but you will still likely receive the same errors. As a general precaution, I would advise to make a back up of the file before removing anything.

        Could you provide me a sample script that exhibits this behavior with the NinjaScript generated code so I can provide further direction?

        I look forward to being of further help.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        332 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X