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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          135 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          292 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          238 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          332 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          171 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X