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

Read values from third party indicators

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

    Read values from third party indicators

    Hello guys!

    I wonder how I should read an external indicator inside my strategy, depending that this indicator is from a third party vendor that I purchased and not the ones that comes with Ninja. ¿Do I need to create a private instance of the indicator, then pass input values to it? Do you have any code example?

    Thank you!

    #2
    Hello facuevasm,

    Thanks for your post.

    I see that you mention an 'external' indicator.

    To clarify, is this an indicator that runs externally (outside) of NinjaTrader?

    Or, is this a third-party indicator that was imported into and runs in NinjaTrader?

    If this is a third-party indicator that is imported into and runs in NinjaTrader, you could create a private instance of the indicator in your strategy as you have described.

    See this help guide page for adding indicators to strategies: https://ninjatrader.com/support/help..._strategie.htm

    You could also use the Strategy Builder to create a condition based on an indicator (such as SMA) and click the 'View code' button to see the generated syntax for an example of how indicators are added to strategies.

    See this help guide page: https://ninjatrader.com/support/help...gy_builder.htm

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by facuevasm View Post
      I wonder how I should read an external indicator inside my strategy, depending that this indicator is from a third party vendor that I purchased and not the ones that comes with Ninja.
      It really depends on the third-party vendor.

      What I mean is ...
      The indicator author has the ability to expose (or hide) information
      from the strategy author -- which means the strategy author needs
      to be aware of what methods and properties the indicator makes
      public. Documentation usually comes with third-party indicators,
      precisely to describe these kinds of programming details.

      Some vendors do a better job of this than others. I've seen the
      same indicator sold as a basic version and a more expensive pro
      version. The only difference was the pro version exposed the
      methods and properties needed by a strategy, where as the
      basic version hid these things on purpose. Not all vendors do
      this -- I'm just saying the choice is theirs to make. It is intrinsic
      to the indicator what is public and what is private, you won't be
      able to get around that.

      You really need to contact the third-party vendor and ask them
      your questions. They should be able to give you examples of
      how your strategy can interact with their indicator.

      Good luck!



      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Vikuno1, 11-28-2023, 11:42 PM
      15 responses
      357 views
      1 like
      Last Post PaulMohn  
      Started by PaulMohn, Yesterday, 02:06 AM
      3 responses
      12 views
      0 likes
      Last Post PaulMohn  
      Started by gertrudeabrams, Today, 12:33 AM
      0 responses
      3 views
      0 likes
      Last Post gertrudeabrams  
      Started by NJA_MC, 01-03-2021, 10:34 PM
      11 responses
      150 views
      0 likes
      Last Post wzgy0920  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      173 responses
      2,367 views
      0 likes
      Last Post jeronymite  
      Working...
      X