Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator loading

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

    Indicator loading

    Is there a way to know if an indicator is being loaded from the chart or from within another indicator (being called from another indicator)?

    #2
    Hello PDT123,

    Thank you for your note.

    Are you looking to identify if an indicator on your chart is called from another indicator or manually placed on the chart by the user?

    Or are you looking to access this information from within your NinjaScript code?

    I look forward to assisting you further.

    Comment


      #3
      I need to know this inside of ninjascript in the indicator that I am writing. Thanks!

      Comment


        #4
        Hello PDT123,

        Thank you for your response.

        You would not be able to access the indicators that were created outside of your NinjaScript file to see if they were created manually or from another indicator.

        However, you can of course call indicators and add them to your indicator to use in calculations with or without them visualized on the chart.

        For the different indicator methods you can access in your NinjaScript code please visit the following link: http://www.ninjatrader.com/support/h...indicators.htm

        Please let me know if I may be of further assistance.

        Comment


          #5
          Hi Patrick,

          What I need to know is if my indicator is being loaded from another indicator.

          I am calling ChartControl.Invalidate() to refresh and it is generating an error when it has been loaded from another indicator.

          Thanks,
          Dan

          Comment


            #6
            Dan, there's unfortunately no method available to check for this. A workaround idea would be checking for returned timestamps by your custom indicator called, when run from another indicator those would be showing as 1/1/1800 12:00:00 AM, instead of the underlying bar series time you would expect for a direct call.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            596 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
            554 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X