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?
    Custom Trading System
    NinjaTrader Ecosystem Vendor - CustomTradingSystem

    #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
        Custom Trading System
        NinjaTrader Ecosystem Vendor - CustomTradingSystem

        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.
          JesseNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Kaledus, Today, 01:29 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by frankthearm, Yesterday, 09:08 AM
          13 responses
          45 views
          0 likes
          Last Post frankthearm  
          Started by PaulMohn, Today, 12:36 PM
          2 responses
          16 views
          0 likes
          Last Post PaulMohn  
          Started by Conceptzx, 10-11-2022, 06:38 AM
          2 responses
          55 views
          0 likes
          Last Post PhillT
          by PhillT
           
          Started by yertle, Yesterday, 08:38 AM
          8 responses
          37 views
          0 likes
          Last Post ryjoga
          by ryjoga
           
          Working...
          X