Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT Generated Code

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

    NT Generated Code

    I created a custom indicator and it is working perfectly on a chart. However, I want to call that indicator from inside another indicator. I've done this many time and never had this problem. Example: Let's name the indicator i'm calling indicatorA. So, when I attempt to call indicatorA from inside another indicator, I get the following error.

    'NinjaTrader.Indicator.indicatorA' is a 'type' but is used like a 'variable'

    The funny thing to me is indicatorA compiles without any error but there is no region after the custom code for "NinjaScript generated code."

    Not sure what's going on...Can you please advise. My other custom indicators work just fine.

    Thanks,
    Mike



    #2
    Hello Mike,

    Could you please post the code snippet you use to call the indicator?
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello Mike,

      Could you please post the code snippet you use to call the indicator?
      Crud...i thought i'd done that. Oh well...i fixed it anyway.

      Thanks and sorry to bother you.

      Mike

      Comment


        #4
        No problem, Mike. Glad to hear you got it resolved.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        598 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        555 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X