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 argusthome, Yesterday, 10:06 AM
          0 responses
          17 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          16 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          14 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          9 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          36 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X