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 ScottWalsh, Today, 06:52 PM
            4 responses
            32 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            4 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            19 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            6 views
            0 likes
            Last Post cre8able  
            Started by Haiasi, Today, 06:53 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Working...
            X