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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        153 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        133 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X