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

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.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by arvidvanstaey, Today, 02:19 PM
            4 responses
            11 views
            0 likes
            Last Post arvidvanstaey  
            Started by samish18, 04-17-2024, 08:57 AM
            16 responses
            60 views
            0 likes
            Last Post samish18  
            Started by jordanq2, Today, 03:10 PM
            2 responses
            9 views
            0 likes
            Last Post jordanq2  
            Started by traderqz, Today, 12:06 AM
            10 responses
            18 views
            0 likes
            Last Post traderqz  
            Started by algospoke, 04-17-2024, 06:40 PM
            5 responses
            47 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X