Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compiler error: The name 'indicator' does not exist in the current context

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

    Compiler error: The name 'indicator' does not exist in the current context

    Hi,

    I was getting an issue where NinjaTrader locks up when I try to add an indicator to a chart. This implied to me that somewhere, in some script, there is an error in SetDefaults, which was causing an unhandled exception, but I couldn't see one.

    So I started removing scripts, hoping to track down the offending script.

    Somehow when I run a compile now, I get this error:

    "The name 'indicator' does not exist in the current context".

    The error appears on scripts that I did not write. These scripts came from NinjaTrader, so it seems that something has been corrupted. Do you have any suggestions?


    #2
    creo que borraste una cs, a mi me paso y le di a reparar en el instalador y wuala, volvio a copilar

    Comment


      #3
      Hello, thanks for writing in. Please first try running a repair on the installation. Shut down NinjaTrader, then go to the Windows Control Panel>Uninstall a program, then look for "NinjaTrader" and repair the installation.

      Comment


        #4
        Thank you! It looks like that solved the problem.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        77 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        45 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        168 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        101 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        165 views
        2 likes
        Last Post CaptainJack  
        Working...
        X