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 CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          51 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          30 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          99 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          177 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          170 views
          0 likes
          Last Post CarlTrading  
          Working...
          X