Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 yertle, Yesterday, 08:38 AM
        7 responses
        28 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by bmartz, 03-12-2024, 06:12 AM
        2 responses
        21 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by funk10101, Today, 12:02 AM
        0 responses
        5 views
        0 likes
        Last Post funk10101  
        Started by gravdigaz6, Yesterday, 11:40 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by MarianApalaghiei, Yesterday, 10:49 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X