Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto generated code fails if there is another namespace before indicator

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

    Auto generated code fails if there is another namespace before indicator

    Hi Guys,

    This fails to compile (indicator should use a type from CustomTradingSystem_Test namespace):

    namespace CustomTradingSystem_Test
    namespace NinjaTrader.NinjaScript.Indicators.CustomTradingSy stem
    #region NinjaScript generated code. Neither change nor remove.


    This compiles:
    namespace NinjaTrader.NinjaScript.Indicators.CustomTradingSy stem
    namespace CustomTradingSystem_Test
    #region NinjaScript generated code. Neither change nor remove.

    Should the code generator try to take correct namespace, i.e. derived from NinjaTrader.NinjaScript.Indicators?

    #2
    Hello CustomTradingSystem,

    Thank you for your patience.

    I am looking into this further to see if this is expected or not.

    Comment


      #3
      Hello CustomTradingSystem,

      Thank you for your patience.

      Do you see the same issue with Beta 5?

      If so, do you have a file we may test for this error?

      Comment


        #4
        Hi Patrick,

        Yes, I can confirm, this still occurs in 8.0.0.6

        Comment


          #5
          Hello,

          I wanted to check if this is still occurring in B7, if so can you please attach a sample script with the specific syntax used that generates the error?

          I tried copy and pasting what you had provided but I am unsure if I am doing the same test as you are as mine has compiled.

          I look forward to being of further assistance.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          672 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          379 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          111 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          575 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          582 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X