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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            164 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            319 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            246 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            350 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            179 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X